From patchwork Wed Nov 7 06:03:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 1708011 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id C07263FC8F for ; Wed, 7 Nov 2012 06:05:59 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TVyjq-0002nd-Rj; Wed, 07 Nov 2012 06:03:46 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TVyjm-0002nD-5u for linux-arm-kernel@lists.infradead.org; Wed, 07 Nov 2012 06:03:44 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MD300GTDSRQP4N0@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 07 Nov 2012 15:03:37 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 2C.02.01231.8B9F9905; Wed, 07 Nov 2012 15:03:36 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-e0-5099f9b80091 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id EB.02.01231.8B9F9905; Wed, 07 Nov 2012 15:03:36 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MD300G5ISU0MI70@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 07 Nov 2012 15:03:36 +0900 (KST) From: Jingoo Han To: 'Russell King' Subject: [PATCH] ARM: cache-l2x0: move 'l2_wt_override' variable to proper place Date: Wed, 07 Nov 2012 15:03:36 +0900 Message-id: <003f01cdbcad$a024c1e0$e06e45a0$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac28raAMYuWNIVpPRueufeKQvH1Epw== Content-language: ko DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsVy+t8zA90dP2cGGEw9ZGWx6fE1VgdGj81L 6gMYo7hsUlJzMstSi/TtErgyfs50LbjDUXHq8hS2Bsbp7F2MnBwSAiYSE07PY4KwxSQu3FvP 1sXIxSEksIxR4mfHYjaYoqNtrewQiemMEg9fXGWBcBYzSWzdtxmsik1ATeLLl8NgY0UEtCW+ PzvKCGIzC/hInFkNsUJYIEBifXM3WJxFQFXizI/vzCA2r4CtxNfry1ghbEGJH5PvsUD0akls 3tbECmHLS2xe8xaongPoInWJR391IVbpSTy9fZgNokREYt+Ld1DjBSS+TT7EAlEuK7HpADPI yRICzewSf789ZoZ4TFLi4IobLBMYxWYh2TwLyeZZSDbPQrJiASPLKkbR1ILkguKk9FxDveLE 3OLSvHS95PzcTYyQSJHawbiyweIQowAHoxIP74T0mQFCrIllxZW5hxglOJiVRHiPfAIK8aYk VlalFuXHF5XmpBYfYvQBunwis5Rocj4wivNK4g2NjU3MTExNzC1NzU1xCCuJ8zZ7pAQICaQn lqRmp6YWpBbBjGPi4JRqYAxzvcWszDqp5qvNnNC67icby2atiTqe6vlg01FN2dtNIjavo38b WJ7vzmjlK40MvpAx//IeoxczLjxx/6yXcHDPjSchjvlvptZ5v538VeXbrAVVXvvqP8wU2cLt +H9R7qJjyb9T7FWL9u2b0Xx6kzdHV7S7W2ReT+Cvf4xH+6JbFmyQ4fc+t16JpTgj0VCLuag4 EQDizxkUwQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLIsWRmVeSWpSXmKPExsVy+t9jQd0dP2cGGOz7Ymax6fE1VgdGj81L 6gMYoxoYbTJSE1NSixRS85LzUzLz0m2VvIPjneNNzQwMdQ0tLcyVFPISc1NtlVx8AnTdMnOA pioplCXmlAKFAhKLi5X07TBNCA1x07WAaYzQ9Q0JgusxMkADCesYM37OdC24w1Fx6vIUtgbG 6exdjJwcEgImEkfbWqFsMYkL99azdTFycQgJTGeUePjiKguEs5hJYuu+zWwgVWwCahJfvhwG 6xAR0Jb4/uwoI4jNLOAjcWb1PCYQW1ggQGJ9czdYnEVAVeLMj+/MIDavgK3E1+vLWCFsQYkf k++xQPRqSWze1sQKYctLbF7zFqieA+gidYlHf3UhVulJPL19mA2iRERi34t3jBMYBWYhmTQL yaRZSCbNQtKygJFlFaNoakFyQXFSeq6hXnFibnFpXrpecn7uJkZwHD6T2sG4ssHiEKMAB6MS D++E9JkBQqyJZcWVuYcYJTiYlUR4j3wCCvGmJFZWpRblxxeV5qQWH2L0AXp0IrOUaHI+MEXk lcQbGpuYGVkamVkYmZib4xBWEudt9kgJEBJITyxJzU5NLUgtghnHxMEp1cCY9VU858sV80nv WFcILnjctDN8wQu1iXqF06oXrT3bdy+p7kjTryOTJvkViL3r/KpV76kt+oJ5ieBPhk99Gs33 fCcbHwv6cCs+85Dio8yvrGZnhJgKLwRMTL2admr9zSsbf5+tZXzkfjqtllfF4KCj/2kFNuW9 zKfuqliF7+YTWREboPks8coHJZbijERDLeai4kQArqkkPvACAAA= X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121107_010342_505811_7B08282D X-CRM114-Status: GOOD ( 10.83 ) X-Spam-Score: -7.6 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.33 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 T_MANY_HDRS_LCASE Odd capitalization of multiple message headers Cc: 'Jingoo Han' , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Fixed build warning as below: arch/arm/mm/cache-l2x0.c:37:12: warning: 'l2_wt_override' defined but not used [-Wunused-variable] Signed-off-by: Jingoo Han --- arch/arm/mm/cache-l2x0.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index 92ee4a0..920a704 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 */ @@ -429,6 +428,8 @@ void __init l2x0_init(void __iomem *base, u32 aux_val, u32 aux_mask) * noninclusive, while the hardware cache range operations use * inclusive start and end addresses. */ +static int l2_wt_override; + static unsigned long calc_range_end(unsigned long start, unsigned long end) { /*