From patchwork Thu Nov 22 12:07:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 13070 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 6E90523FC6 for ; Thu, 22 Nov 2012 12:07:57 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 10206A19DE5 for ; Thu, 22 Nov 2012 12:07:56 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id t4so3137421iag.11 for ; Thu, 22 Nov 2012 04:07:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=40v1gyi3PxYMocYL1GZ3SsVYeuCFpeQ/BvEageF/T+I=; b=eMQD8hMBzlUojNDJExRPoD9WJXWT7hn1iXbCWuaP8Fr+F2kVekHpF4svDwXRh+A7if 9ib7nZ7N4BVwOU1TsWO44PmUvVBn3Lf4xHbd+2nvqV/R0XmeWjkBQD5Vn4SPFqAi2bdz /+rOOLDeqN0kY/9b5vVhOSPc1sS68DrSoJTMpPBX+Auwnu5WXGCJefTV+CGEbTpRbaNr L49oVtppWlifF1qO8N0//g3vwwuecNRcqPL0ypEShcYvIZtD+m1EoKzqCnsBoz4gjRzm RhI0QaYz+GXfX7MOhUYkujxNpX/lIPvrrg9oZFPFkbMNY+G/rsvFbWEk+EIVp14WloeV yrNw== Received: by 10.43.7.132 with SMTP id oo4mr334634icb.6.1353586076483; Thu, 22 Nov 2012 04:07:56 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp199481igt; Thu, 22 Nov 2012 04:07:55 -0800 (PST) Received: by 10.180.102.71 with SMTP id fm7mr4234000wib.5.1353586075025; Thu, 22 Nov 2012 04:07:55 -0800 (PST) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by mx.google.com with ESMTPS id x46si1678584weo.115.2012.11.22.04.07.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Nov 2012 04:07:55 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.176 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.176; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.176 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wi0-f176.google.com with SMTP id hm6so627011wib.3 for ; Thu, 22 Nov 2012 04:07:54 -0800 (PST) Received: by 10.216.203.210 with SMTP id f60mr182100weo.69.1353586074226; Thu, 22 Nov 2012 04:07:54 -0800 (PST) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id dw4sm4202839wib.1.2012.11.22.04.07.52 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Nov 2012 04:07:53 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones , Russell King , Gregory CLEMENT Subject: [PATCH 1/1] ARM: cache-l2x0: Fix compile time warnings when !CONFIG_OF Date: Thu, 22 Nov 2012 12:07:47 +0000 Message-Id: <1353586067-9989-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQn4a5SEN+QwtByR+d57BVyoLhXblKrlfncaaOoGKMyQN46a38xmoHl5TBWLfpntVLN+CiO/ Introduced by: 07bd005ed2457876f653fda12981708d737543df ARM: 7547/1: cache-l2x0: add support for Aurora L2 cache ctrl arch/arm/mm/cache-l2x0.c:37:12: warning: ‘l2_wt_override’ defined but not used arch/arm/mm/cache-l2x0.c:292:22: warning: ‘calc_range_end’ defined but not used arch/arm/mm/cache-l2x0.c:315:13: warning: ‘aurora_pa_range’ defined but not used arch/arm/mm/cache-l2x0.c:328:13: warning: ‘aurora_inv_range’ defined but not used arch/arm/mm/cache-l2x0.c:347:13: warning: ‘aurora_clean_range’ defined but not used arch/arm/mm/cache-l2x0.c:365:13: warning: ‘aurora_flush_range’ defined but not used Cc: Russell King Cc: Gregory CLEMENT Signed-off-by: Lee Jones --- arch/arm/mm/cache-l2x0.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index bfb5986..25a9226 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c @@ -34,7 +34,6 @@ static DEFINE_RAW_SPINLOCK(l2x0_lock); static u32 l2x0_way_mask; /* Bitmask of active ways */ static u32 l2x0_size; static unsigned long sync_reg_offset = L2X0_CACHE_SYNC; -static int l2_wt_override; /* Aurora don't have the cache ID register available, so we have to * pass it though the device tree */ @@ -284,6 +283,10 @@ static void l2x0_flush_range(unsigned long start, unsigned long end) raw_spin_unlock_irqrestore(&l2x0_lock, flags); } +#ifdef CONFIG_OF + +static int l2_wt_override; + /* * Note that the end addresses passed to Linux primitives are * noninclusive, while the hardware cache range operations use @@ -375,6 +378,7 @@ static void aurora_flush_range(unsigned long start, unsigned long end) } } } +#endif static void l2x0_disable(void) {