From patchwork Fri Oct 5 14:55:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12017 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 5691E23E57 for ; Fri, 5 Oct 2012 14:56:18 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id DFD77A190DC for ; Fri, 5 Oct 2012 14:56:17 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so3893159iej.11 for ; Fri, 05 Oct 2012 07:56:17 -0700 (PDT) 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:in-reply-to:references :x-provags-id:x-gm-message-state; bh=TWpqpO6uiPdD4o7iJ/SmKZsc1846tP0Jj+0FA0fN+nI=; b=Hq6FLsDGi0XVkk5cAPKTJsjO8hWAkxVhXx1JKOZj41I+qTSETA8bmrlb2Vo2Np4Llx A65BAwcPeKGoRcCXFvGRccNk3HYnfpMnq+PUE47eg9s3ESXgVJmcHoD5bQklVZJi/WKu u8KyznQ5/amOYqGoPFHm6lPO/gbhLxHSHRYV8yWx1lkNDNwaw2QnZXlw3HGXMWSpBcPY fFwh2sSW6g2ckko+s/GgjsonFGslqPZgkivzDxPvnATXY9u/SSCXMBDyBXxJV0f7no3z ZI88ITzcjA2ppuPzaTv6j7hhI0aqBMyhW/zWAoMLOzUMHcouZQ6KC6Id4hleuV4yRR9C 8qag== Received: by 10.50.154.227 with SMTP id vr3mr1370046igb.43.1349448977188; Fri, 05 Oct 2012 07:56:17 -0700 (PDT) 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.184.232 with SMTP id ex8csp130656igc; Fri, 5 Oct 2012 07:56:16 -0700 (PDT) Received: by 10.204.152.211 with SMTP id h19mr2970029bkw.45.1349448975933; Fri, 05 Oct 2012 07:56:15 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.17.8]) by mx.google.com with ESMTPS id gf6si4923030bkc.22.2012.10.05.07.56.15 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Oct 2012 07:56:15 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.17.8 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.17.8; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.17.8 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from klappe2.boeblingen.de.ibm.com (deibp9eh1--blueice3n2.emea.ibm.com [195.212.29.180]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0MYpHi-1SxTwu13tS-00VSdi; Fri, 05 Oct 2012 16:55:47 +0200 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, arm@kernel.org, Arnd Bergmann , Russell King , "James E.J. Bottomley" , linux-scsi@vger.kernel.org Subject: [PATCH 04/16] SCSI: ARM: make fas216_dumpinfo function conditional Date: Fri, 5 Oct 2012 16:55:18 +0200 Message-Id: <1349448930-23976-5-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1349448930-23976-1-git-send-email-arnd@arndb.de> References: <1349448930-23976-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:ohcDqDMidpqe/T7qk0zYUp6CKmfAq4PXr6GLHa0lBf4 XIGdh5kw8xCNvL2tel10aTPz8akL1Vb7YypfCQwsaZs0LyW4ph XCyErDqs06NIlNuxoB/YUTEDu5RkUtPllM8p98WTn0PDRyW6wt xNvStUs2k1PyboFDvYrjWlzfpwV+nHxo2M/n/CGTwSLSKW4pyQ ZK5mFMh51GX6kwTJiLaTI+ezkET10g+NafLERErhB6dk8t1Tec Ch+ny6/3elXO8Mvtb3e4VdMOrA7lc3E2m+Bb9Z5jJJcV4+sOjn YgaR+x65whKRtH8JB5nTn0p+8oMRlip/F5XBWbrBQAMNFzsutu N2ljuNAB05p0YwTr1UaBClDLI63gFsKpUwHPrCID1w7Yd8Kteo Ev0VNILy4VG5DteD1gmxi0SCQyD+JPPOnE= X-Gm-Message-State: ALoCoQkhxJlddnLStZl3mOJADhMP22rHS1f6AKZWBuwT/R2yVvjvZvm5mFb9/G2Cj3f8YTZgTPSe The fas216_dumpinfo function is only used by __fas216_checkmagic, which is conditionally compiled, so we should put both functions inside of the same #ifdef. Without this patch, building rpc_defconfig results in: drivers/scsi/arm/fas216.c:182:13: warning: 'fas216_dumpinfo' defined but not used [-Wunused-function] Signed-off-by: Arnd Bergmann Cc: Russell King Cc: "James E.J. Bottomley" Cc: linux-arm-kernel@lists.infradead.org Cc: linux-scsi@vger.kernel.org --- drivers/scsi/arm/fas216.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/arm/fas216.c b/drivers/scsi/arm/fas216.c index 6206a66..737554c 100644 --- a/drivers/scsi/arm/fas216.c +++ b/drivers/scsi/arm/fas216.c @@ -179,6 +179,7 @@ static void print_SCp(struct scsi_pointer *SCp, const char *prefix, const char * SCp->buffers_residual, suffix); } +#ifdef CHECK_STRUCTURE static void fas216_dumpinfo(FAS216_Info *info) { static int used = 0; @@ -223,7 +224,6 @@ static void fas216_dumpinfo(FAS216_Info *info) info->internal_done, info->magic_end); } -#ifdef CHECK_STRUCTURE static void __fas216_checkmagic(FAS216_Info *info, const char *func) { int corruption = 0;