From patchwork Thu Apr 6 16:05:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 80341 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1146944vqo; Thu, 6 Apr 2023 09:20:03 -0700 (PDT) X-Google-Smtp-Source: AKy350auvi1K0R65RrSJf1IHBDcyVwINH/0oEMyDsnpaOiMhHrD9h/L6aCS72v+hUUUW/44LnhUP X-Received: by 2002:a17:903:1d1:b0:19e:ecaf:c4b4 with SMTP id e17-20020a17090301d100b0019eecafc4b4mr11148863plh.4.1680798003092; Thu, 06 Apr 2023 09:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680798003; cv=none; d=google.com; s=arc-20160816; b=m2XohUoTHY8OgGgliAExwQbAjXg3zMZUmDCUOAFaZC32BcDoCtRV8bOA4WVN8aWKIH 7E62FKug2hyMRcvmhN2xTH1qfmYHfiTR/YrUsKMXdifMwHr4jpST+NMZIV5mtTEfLTWB sH6kQINQ22G9zA1xN9nzOOE3gVbxKsyOSLR1U9obxrrLGyGnlmUUkomkzkP8a09oEs9J zNWtoQvjQ4VT4K2QHSQNCpbs1dpAnMftgt0PDw4VweTLhd0miFHT6Dd3ZqQehgxJk7RL hvct87L1oUjk/fqDlYTznpNkIXAR2sIrrNkihgMEx6btDXoVlRafOVi5Y6MCo7hIQJa6 n8Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=uEPm8dOBZnv4i4WftC68ZDl47ANTw+nTJX9zwRJJnoU=; b=oOcZbo7wvmR09ikCuZlzyOY9GbHprds3jaQTYgu4wWWdXlyklcCPFsDaYEINwPAO/P A6BKIPOjPqyCmwErxg/Bo7WXWN8aF9IKtEumch0j+pfo11pJWlbkhdUcYScxICt1pgpQ YxCPvLikk2Pmv2NFydO0ltM4zTEgeJQI0Cn2XZZTioM5czkveKHEXxJ2MPwgQFy1jHu3 EzH8tVD2/ElTPX9CPiP5GPlrOOQWQTEH6rKUKLCrTc32bYOptKPAjTLimle0IHOywcKH LfIE+hOIJApWHW5wO91u5mIrwpucJ7gaZUpOcYvwgmG5iHCScfwPLiMZ64N0ZDR4luX2 2N4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=XkVcysRn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lg12-20020a170902fb8c00b0019ef86c257asi1926981plb.241.2023.04.06.09.19.50; Thu, 06 Apr 2023 09:20:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=XkVcysRn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239838AbjDFQG2 (ORCPT + 99 others); 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 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762444446550639681?= X-GMAIL-MSGID: =?utf-8?q?1762444446550639681?= 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 Acked-by: Sam Ravnborg --- 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