From patchwork Sat Jul 21 19:58:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 10538963 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 87CFAA65E for ; Sun, 22 Jul 2018 00:57:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FF3E28800 for ; Sat, 21 Jul 2018 19:58:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4039028806; Sat, 21 Jul 2018 19:58:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 603BD287CE for ; Sat, 21 Jul 2018 19:58:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727997AbeGUUwZ (ORCPT ); Sat, 21 Jul 2018 16:52:25 -0400 Received: from merlin.infradead.org ([205.233.59.134]:51314 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727970AbeGUUwZ (ORCPT ); Sat, 21 Jul 2018 16:52:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vVDsbc0wwrGaEdSC878gWHtkkPRKj4nGbiRx7ID+nhg=; b=Tyf/dLGH7ixdAG0TLSDUQGl+6/ gVM9xYKncBrncVlCkZ/ut2UbvfN6jhVBhT610w/8gzklUl0kiZIY2NDOZkPKeHDV4h8cPc2fi5xa9 uKMXufC7sohThE5j8/edqlX6Z8SsUT9njiSXXRmQXnoLvAkszJUAnwe0zuSvNah64Qw4tIWKJKE9b A6YoNjHmrmGYtRrZgfxdheUKgA+wjG9iBSkU8FmQT8pTHoFJ2ogufIlV4rfPC9z5qTYK3cT8Pt0iJ t7nK1XA5eqv3GyE4shr2LS2Q/ZI4nwhGQZ7kSYVAoTE+wFX6k0GdhncgXa1n0mCLT+e3cu0X+CBKy 3e9ykbFQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=dragon.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fgy1H-000440-0D; Sat, 21 Jul 2018 19:58:23 +0000 To: PowerPC , Michael Ellerman , linux-scsi , "Martin K. Petersen" , "James E.J. Bottomley" From: Randy Dunlap Subject: [PATCH] scsi: prevent ISA driver from building on PPC32 Message-ID: <5928f120-5a23-eff9-6c1d-41344d588b11@infradead.org> Date: Sat, 21 Jul 2018 12:58:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Language: en-US Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap Prevent drivers from building on PPC32 if they use isa_bus_to_virt(), isa_virt_to_bus(), or isa_page_to_bus(), which are not available and thus cause build errors. ../drivers/scsi/aha1542.c: In function 'aha1542_queuecommand': ../drivers/scsi/aha1542.c:461:30: error: implicit declaration of function 'isa_page_to_bus'; did you mean 'page_to_bus'? [-Werror=implicit-function-declaration] Signed-off-by: Randy Dunlap Suggested-by: Michael Ellerman --- drivers/scsi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20180720.orig/drivers/scsi/Kconfig +++ linux-next-20180720/drivers/scsi/Kconfig @@ -428,7 +428,7 @@ config SCSI_AHA152X config SCSI_AHA1542 tristate "Adaptec AHA1542 support" - depends on ISA && SCSI && ISA_DMA_API + depends on ISA && SCSI && ISA_DMA_API && !PPC32 ---help--- This is support for a SCSI host adapter. It is explained in section 3.4 of the SCSI-HOWTO, available from