Message ID | 20240223-sam-fix-sparc32-all-builds-v1-5-5c60fd5c9250@ravnborg.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-79037-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp804583dyb; Fri, 23 Feb 2024 11:38:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWlvvW3OMQLYVsW3Ali6x072aVG1SDWzgPu9t0/zkfvbjhJr5kwr8V7JHa4gqN7wkj8qJzB+bPY8V7bag7fpVq99bq36A== X-Google-Smtp-Source: AGHT+IGcFM+vOo+X3waITkLzmKqtDMRoctu38C1yjaTwQpmRNuwaiP5HNyPqRNT5Py/9R2u7fMYh X-Received: by 2002:a17:902:d4c1:b0:1db:bd46:a429 with SMTP id o1-20020a170902d4c100b001dbbd46a429mr1051052plg.28.1708717114115; Fri, 23 Feb 2024 11:38:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708717114; cv=pass; d=google.com; s=arc-20160816; b=09pY2QYQWWxx2QDCBs+UIUo7cojcyTWJ2I0qZGKW33ciCGYyLjb94dU1VrlbH7aZwY XkEKi09h1MQl5+hoQbK0vagn2nDoMpqPTLweZWL2hF6h4z7QA8DsNuvJqijpMFAza5hK 1lJtKrvvIjWSDYobHDNN2AGwEg2spZ99K5Wof8L3z6jwKOKkqJPmX/RwDk7wFwwWihs6 cHVOZ8V8FwhP6Ivs6lP2L9X/bK6khZPosetqFo3weCAVabJYdWhJ5LTWg67B8eRYvWMG TK1NTOJHXvC5QdwzyUqiycrslFcQlxOu/R/yJgitjPqKotlOAD2YEBPU63noS6AliftM JK9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=mrbnfILbA5AzAlBcy4zJz/h470Acx+pw71XcbT9LLWg=; fh=CL4VwMdqDkOjIVq5vfpiK/zgFazi/Qclr+95A1i2dPU=; b=wsRGCkDnTdvNPSvdpFdBKjK5f0ODjhUw72K42YrdSBJN5jsgEgLwwWvdTPiMJeYqzU SpmuHNeBxkXmoYIkP2ypRXDfU+2lpHxR40/AlOHz9SwtbBtTCQfgP39uNhpFKbhoW/h8 koM2NDdPynF1tT1KWEkuxNvnlFhgzCF+MT/D27yx5xNAndVHJJdG/yIMw5jdThMUahGM UyWI7nlSPgQJXbo3xd8z2PseqXPcZzyRNmCmKfEOdTMz0qwlR6aUpijzr8K+k4afikDC jrWOJXi9DZQf1bvCsh/d1b5vKYMXKnFF4tsd2V9M2CjhSfozYHzeUnLOKT1NZ5ZWB58Q Bb+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vKHQnLvD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79037-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79037-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 191-20020a6300c8000000b005dc9617013bsi12336022pga.33.2024.02.23.11.38.33 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 11:38:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79037-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vKHQnLvD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79037-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79037-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A1257B22FBC for <ouuuleilei@gmail.com>; Fri, 23 Feb 2024 19:38:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B90691493A0; Fri, 23 Feb 2024 19:37:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vKHQnLvD" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60A811448E9; Fri, 23 Feb 2024 19:37:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708717025; cv=none; b=pdlI46xnVr1ZYRkxqOuzam4Wde9MveWEUtRz5YHL7P7IuPZVV+/xZ4rAeDr+3M9PRgoQidOmWMQlpa6IE8dVWftrqFPZzJSNj+SMHk8KAx1cgfrHYxhKPDlQiMP4dn38ckxRckH1seih6saKMDPwuwrIgCF7QwGT+XhxAavN2S4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708717025; c=relaxed/simple; bh=JDG9d1e3LSCtM7kTWA5ChJDE7Zpsj0NIfR9IlwvgsvI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gIs/x2LdMaFOxHinPm1D+VJuMHxkG+wg5HzT7amYbISnNomQsv3ZfPlUIm77hDsJe1t+afptIkv4vL9zaaszk7Wn5lNNC2JN2xux0riTkDCCJgRrqQ35lmXyIQFf3BavNgoGhJbvyjy/Pk+pZ0ISFOuN9LzbpWt6iOEBjoP+AOI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vKHQnLvD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 0EE19C433B1; Fri, 23 Feb 2024 19:37:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708717025; bh=JDG9d1e3LSCtM7kTWA5ChJDE7Zpsj0NIfR9IlwvgsvI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=vKHQnLvDwhGpG9NDVRHQkrTVS4jB2Bf9SZMHBRV9SDIFqB6+a9SVe4rLT62xGQMYb ViUAunfga39Q+8lzEK8/OSJhyKgqnr/HtPHQ0gob09YPADFSOLaojVHvkh0kw3xfZ1 l1rBkdvvR27e3XKlMrpBVRcFRdq0Scd7tOrOoK5Syvs0jBPy8hEGsH+WAMnhglTl9a vdUrIxY5RiRsMOEoqNprMRybx5J1rsoogTNIultb9eHTnYcbfxf4JHDcQ5N9fE/EDL uHxxEu+3Le7rrnabaJ+E8DfQfbCpnmmYoUIz9hIp8XDinY2DymfU+yn4U9zogQ0u8p ywwzPX3WX4sKQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFBC2C54E49; Fri, 23 Feb 2024 19:37:04 +0000 (UTC) From: Sam Ravnborg via B4 Relay <devnull+sam.ravnborg.org@kernel.org> Date: Fri, 23 Feb 2024 20:36:51 +0100 Subject: [PATCH 5/6] sparc32: Do not select GENERIC_ISA_DMA Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240223-sam-fix-sparc32-all-builds-v1-5-5c60fd5c9250@ravnborg.org> References: <20240223-sam-fix-sparc32-all-builds-v1-0-5c60fd5c9250@ravnborg.org> In-Reply-To: <20240223-sam-fix-sparc32-all-builds-v1-0-5c60fd5c9250@ravnborg.org> To: Miquel Raynal <miquel.raynal@bootlin.com>, "Maciej W. Rozycki" <macro@orcam.me.uk> Cc: sparclinux@vger.kernel.org, linux-parport@lists.infradead.org, "David S. Miller" <davem@davemloft.net>, Andreas Larsson <andreas@gaisler.com>, Randy Dunlap <rdunlap@infradead.org>, Arnd Bergmann <arnd@arndb.de>, linux-kernel@vger.kernel.org, Sam Ravnborg <sam@ravnborg.org> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708717023; l=889; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=lMxXdOPMpDx1tzgAvR97ar00I1WhL1W/uCEBzu9wvkY=; =?utf-8?q?b=3DggGkf5ePuxoN?= =?utf-8?q?77uiKL1N8qedIdOOw6npYIMJDxI/0wfpWe9GpS7/PQuyPyLuCNWZG1R1N2uUkMUu?= 7tJF7mj6AdTslYKT4aZkP2h+GawJFdO/y/vRle52oc2KWM7LBg7E X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg <sam@ravnborg.org> Reply-To: <sam@ravnborg.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791719756386280321 X-GMAIL-MSGID: 1791719756386280321 |
Series |
sparc32: build fixes for all{yes,mod}config builds
|
|
Commit Message
Sam Ravnborg via B4 Relay
Feb. 23, 2024, 7:36 p.m. UTC
From: Sam Ravnborg <sam@ravnborg.org> sparc32 do not support generic isa dma, so do not select the symbol. Without this fix, the following patch would break the build with a missing prototype. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Andreas Larsson <andreas@gaisler.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Maciej W. Rozycki <macro@orcam.me.uk> Fixes: 66bcd06099bb ("parport_pc: Also enable driver for PCI systems") --- arch/sparc/Kconfig | 4 ---- 1 file changed, 4 deletions(-)
Comments
On 2/23/24 11:36, Sam Ravnborg via B4 Relay wrote: > From: Sam Ravnborg <sam@ravnborg.org> > > sparc32 do not support generic isa dma, so do not select the symbol. > Without this fix, the following patch would break the build with a > missing prototype. > > Signed-off-by: Sam Ravnborg <sam@ravnborg.org> > Cc: Andreas Larsson <andreas@gaisler.com> > Cc: "David S. Miller" <davem@davemloft.net> > Cc: Randy Dunlap <rdunlap@infradead.org> > Cc: Maciej W. Rozycki <macro@orcam.me.uk> > Fixes: 66bcd06099bb ("parport_pc: Also enable driver for PCI systems") Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested > --- > arch/sparc/Kconfig | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig > index 734f23daecca..d08a5662ea60 100644 > --- a/arch/sparc/Kconfig > +++ b/arch/sparc/Kconfig > @@ -138,10 +138,6 @@ config HIGHMEM > default y if SPARC32 > select KMAP_LOCAL > > -config GENERIC_ISA_DMA > - bool > - default y if SPARC32 > - > config PGTABLE_LEVELS > default 4 if 64BIT > default 3 >
On Sat, Feb 24, 2024, at 06:29, Maciej W. Rozycki wrote: > On Sat, 24 Feb 2024, Maciej W. Rozycki wrote: > > The GENERIC_ISA_DMA option itself was added to arch/sparc/config.in with > 2.5.31 as: > > define_bool CONFIG_GENERIC_ISA_DMA y > > despite of: > > define_bool CONFIG_ISA n I think I've seen any combination of CONFIG_ISA (the 62/98 pin slots), CONFIG_GENERIC_ISA_DMA (the request_dma() interface) and CONFIG_ISA_DMA_API (the set_dma_addr()/enable_dma() type interface), but I agree that sparc should have none of the three as both floppy and parport use some other interface. > for a reason not clear to me (BLK_DEV_FD? -- but on SPARC that uses some > hacks to work in the absence of ISA DMA anyway). > > Am I missing anything here? I think it was part of the ISA DMA lookalike that got removed in 334ae614772b ("sparc: Kill SBUS DVMA layer.") and should have been changed back then. Arnd
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 734f23daecca..d08a5662ea60 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -138,10 +138,6 @@ config HIGHMEM default y if SPARC32 select KMAP_LOCAL -config GENERIC_ISA_DMA - bool - default y if SPARC32 - config PGTABLE_LEVELS default 4 if 64BIT default 3