From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C498C77B6F for ; Thu, 6 Apr 2023 16:06:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239863AbjDFQG2 (ORCPT ); Thu, 6 Apr 2023 12:06:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229806AbjDFQG0 (ORCPT ); Thu, 6 Apr 2023 12:06:26 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBA4E9EE8; Thu, 6 Apr 2023 09:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=uEPm8dOBZnv4i4WftC68ZDl47ANTw+nTJX9zwRJJnoU=; b=XkVcysRnaHexPtQQr+vU3HjoDA V70/R60nM8HX/CGVLtWMa4ZCFfNpJEa5zRclK2NwiTYMKu+hrYtnxUg06CxAwIw+BLnvJyFmzDViR rMh10UWLdUPwwdjgiAEmKdTKeAI+bVIxCRc7s7VUi+lgtBc2AR8yOjO0y9j0MhnBEchITnauumCmE PHfKDoFTANve/sYDjO2QA63O80nyVjIVttl5ItkZQ5QYn1m+WpvHDQCmnmj0Zq1Deel85nR4YJKiw eUJ62iv7bCMvD1VAXjAkIztqFbB5pEZBw0ybNvqb5PT/Kr3G2Mv5bQdecHFtCrUY5bAMbq2pw+x0n 9F4hS02Q==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pkS7T-007wQR-0G; Thu, 06 Apr 2023 16:05:51 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Sudip Mukherjee , "Maciej W . Rozycki" , "David S. Miller" , sparclinux@vger.kernel.org, Sam Ravnborg , linux-parport@lists.infradead.org Subject: [PATCH] parport_pc: don't allow driver for SPARC32 Date: Thu, 6 Apr 2023 09:05:48 -0700 Message-Id: <20230406160548.25721-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/sparc/kernel/ebus.o is only built for SPARC64. ns87303_lock is only built for SPARC64. arch/sparc/include/asm/parport.h says that it is for sparc64. Various documentation on the internet says that ebus is for UltraSPARC systems (64-bit). Therefore don't allow PARPORT_PC to be built for SPARC32. Fixes these build errors on SPARC32: ERROR: modpost: "ebus_dma_irq_enable" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ebus_dma_unregister" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ebus_dma_register" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ns87303_lock" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ebus_dma_enable" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ebus_dma_prepare" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ebus_dma_request" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ebus_dma_residue" [drivers/parport/parport_pc.ko] undefined! Fixes: 66bcd06099bb ("parport_pc: Also enable driver for PCI systems") Signed-off-by: Randy Dunlap Cc: Sudip Mukherjee Cc: Maciej W. Rozycki Cc: "David S. Miller" Cc: sparclinux@vger.kernel.org Cc: Sam Ravnborg Cc: linux-parport@lists.infradead.org --- drivers/parport/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/drivers/parport/Kconfig b/drivers/parport/Kconfig --- a/drivers/parport/Kconfig +++ b/drivers/parport/Kconfig @@ -42,7 +42,7 @@ if PARPORT config PARPORT_PC tristate "PC-style hardware" - depends on ARCH_MIGHT_HAVE_PC_PARPORT || (PCI && !S390) + depends on ARCH_MIGHT_HAVE_PC_PARPORT || (PCI && !S390 && !SPARC32) help You should say Y here if you have a PC-style parallel port. All IBM PC compatible computers and some Alphas have PC-style