From patchwork Fri Oct 5 14:55:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12008 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 1B33523EF8 for ; Fri, 5 Oct 2012 14:55:59 +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 9708CA190EE for ; Fri, 5 Oct 2012 14:55:58 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so3893275iej.11 for ; Fri, 05 Oct 2012 07:55:58 -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=oBTyb5EmZ/0Cp94AhNaY5txJMqbdWIHtzWSPlEUTrDo=; b=V0I+nKf7JioD07QvsnCb2Sj4+wOZQp1CV3GUfGePbMYnqIhxL2ShD577EC1XXHVl1D RmdYyiSZ9Cc4oEcCH6RnUGnPNTGeSGG9KVqXWOJeRTVrKWzdR5CWhiziDMOZFiIDvus1 malfzMmn+WqtxSxXqLx4heu/xM7/fE1w6CaGQ3bV80dyR/vF9O4VJCE+ZoGzZXR8fYot 15xmMpQ4Vdmlu86KohN3D56QmoRxGeu9LKnN3LR2UOvbVH/S1orQqqLEJfW8ClrZa1kr nN5mw4RPIzk5k1m1Q4GyZ+K6WGbobs+kURst/kbmxAoA8QRsyZjpDO7XIDJb8cjAXzbi 4Tzw== Received: by 10.50.154.227 with SMTP id vr3mr1368748igb.43.1349448958369; Fri, 05 Oct 2012 07:55:58 -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 ex8csp130608igc; Fri, 5 Oct 2012 07:55:57 -0700 (PDT) Received: by 10.216.65.202 with SMTP id f52mr4902935wed.206.1349448957125; Fri, 05 Oct 2012 07:55:57 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.17.9]) by mx.google.com with ESMTPS id a8si2920077wie.24.2012.10.05.07.55.56 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Oct 2012 07:55:57 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.17.9 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.17.9; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.17.9 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 0MH9sM-1TF9MJ3hAo-00DnGQ; Fri, 05 Oct 2012 16:55:46 +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 03/16] SCSI: ARM: ncr5380/oak uses no interrupts Date: Fri, 5 Oct 2012 16:55:17 +0200 Message-Id: <1349448930-23976-4-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:702RgIr6IIr1koYlcAuv9NWJCMs57bZQkXwEO/6HwIe 3YyiXBBPVHDs1qq0rix5+0OVbmoxtQLJE/mLSoIqCt8KRPriEf 0PzyOQ/vTgSjAiM4xZQ4Ac91B0lDpL/5PVeZahy3EFviF/VssF jQ0a4JR/uxOa768ZXCMCluTb1MiEyGuhStP7GiJb877rv61OlL C3Sx/1cnWFT8f85p0vEhSin4scpf8LVm1PPchBCus2e3IC7LnC AO8IVltafvVLFjUrWQeIwJ0a7+QRNtBg7Z4+mtFrXzNbtm2Tss auCvOh1Yd8P1+5wGOX9HKzqsPZmihpoJ0nnV8u6Bi5m5DeD5fy A5pr5YtADazY1oNvprYjeLS/aT435E6YAXGC1U/D5wAc/B7k/v Am5jyr2suS2bqrvrQz0gbOLXgj51tt0+ps= X-Gm-Message-State: ALoCoQnWzg5kn2+X/t4xv4WnXqPTZt68by6BaQqCOB6lJYxLTbFjwlI3XblcqUGNUmEieWImRFrz The ncr5380 driver is included by multiple board specific drivers, which may or may not use the interrupt handler. The oak variant doesn't, and should set the DONT_USE_INTR macro. Without this patch, building rpc_defconfig results in: drivers/scsi/arm/../NCR5380.c:1160:20: warning: 'oakscsi_intr' 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/oak.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/arm/oak.c b/drivers/scsi/arm/oak.c index d25f944..fc6a5aa 100644 --- a/drivers/scsi/arm/oak.c +++ b/drivers/scsi/arm/oak.c @@ -21,6 +21,7 @@ /*#define PSEUDO_DMA*/ #define OAKSCSI_PUBLIC_RELEASE 1 +#define DONT_USE_INTR #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata) #define NCR5380_local_declare() void __iomem *_base