From patchwork Tue Oct 9 20:13:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12081 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 3B9FB23F6D for ; Tue, 9 Oct 2012 20:14:11 +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 E04DAA18878 for ; Tue, 9 Oct 2012 20:14:10 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so12072772iej.11 for ; Tue, 09 Oct 2012 13:14:10 -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=pH/5albWHV1koAb+HKr2YmLNsqQJ2SlnquF/A46xk6Nqt7x7BE58CPSLXryUa7CAZd 8EJllF9klCNEEsXVfrjWYshB+1zAkcCYAfaHSQvVOqLo4kHeLMC47etgRd55BxBKv+Yr y4LJtxvrV6iW2ljGxCVQO4L4d0fwSTdSRKsc2a02FxO+svCgRSNa4WosgO+gPxEGI5Sj znOXvTLnPfWHkk4g+g9PbXnqVz3xfyjD5K3SMB//ao1UDqBsqREd46PANd4Cw+hjyInP /XAO81m/+4WZIMq7toSAD5rX9e1ye2LqSrQouAaHa9a3tRU5hck7n5rYQ7z1zrycrvr3 rVoQ== Received: by 10.50.77.138 with SMTP id s10mr2969072igw.70.1349813650288; Tue, 09 Oct 2012 13:14:10 -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.67.148 with SMTP id n20csp113875igt; Tue, 9 Oct 2012 13:14:08 -0700 (PDT) Received: by 10.180.8.41 with SMTP id o9mr7184681wia.3.1349813648356; Tue, 09 Oct 2012 13:14:08 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.17.10]) by mx.google.com with ESMTPS id s1si24502333wif.28.2012.10.09.13.14.07 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Oct 2012 13:14:08 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.17.10 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.17.10; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.17.10 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from klappe2.lan (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0M3qBK-1TdlGr3qja-00raKY; Tue, 09 Oct 2012 22:14:04 +0200 From: Arnd Bergmann To: arm@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Russell King , "James E.J. Bottomley" , linux-scsi@vger.kernel.org Subject: [PATCH v2 2/8] SCSI: ARM: make fas216_dumpinfo function conditional Date: Tue, 9 Oct 2012 22:13:52 +0200 Message-Id: <1349813638-4617-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1349813638-4617-1-git-send-email-arnd@arndb.de> References: <1349813638-4617-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:kAL3QSaspt1z9qO9j/JVQc8FEjH9Ijp2H4JzF1DjMEj FzIv/Jy+RrxnVUfG4fuoZ9uU7CUh1ljed29OasilMezT3fOs8u d5BIk8hQ1kdmaztXDCzDh9h1UmZwn6JP2fwGmPBl2DgrO6Ynhg 5Ri8qrzDSASrgGecreLhrqaVfqQ8+OV4kC0r3D1eX8A6c0iilo QKts1BZ4K2/HvqFHV5YIE2lPrkCv6g8u0cKsvpxV1oMnmg6xZq gZPdp6akF5rxmlF9s9t4Vljf9v49Iz04CkukbglR2MQSR3T5ef boGqK2DPqKlIwLxB0hdZm8h/ZU96PZdipREj5dOmutnmA3ZeMN ry40yyd4N1nElvTHv8OljIDkpEGIbleqw4an2neAy X-Gm-Message-State: ALoCoQn02Wsv9Ipr0BZOW5M1vXi1fRl+sSytflvDCJY7u7lEyTnCwLYRD2WRVaPInNelttiTwjkY 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;