Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp248836rbb; Fri, 23 Feb 2024 21:30:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXjMwO2z6WQ0pV0l4LKE7hrfikSsKYZ9IvS4hSq4sTWvm5Z/z2Y3+mjnqDDjv5FMnPa5EZaauKRarfTuk+TKpBby2yQ7g3NMoBRXw0OMA== X-Google-Smtp-Source: AGHT+IEKODnquRxbvD2uL6F/nObMwgiXQKgSl3wHg+pXPCOb9vL+RFfBjJis8UBCS1EgAfm0HPlc X-Received: by 2002:a05:620a:190e:b0:787:bc8b:e9b9 with SMTP id bj14-20020a05620a190e00b00787bc8be9b9mr3474671qkb.9.1708752621445; Fri, 23 Feb 2024 21:30:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708752621; cv=pass; d=google.com; s=arc-20160816; b=x/j4+Bxu9TR9TzU3Ls4o/LS+GDeLOpHLlB2J+CeO2JnB2Ei4ZkN53jDdN0ljs+luW9 MPSV+oNafm+92/rEKFN53xRJNMQ1+lXwPcMbkaf6AMIswD6u+EToQuifItUw8LOelkuL l2NLNLHPHF/m1blUOouvGRPopDtKPxs95PIOarGqWrviN+kANMNfikQyxywtMFwkJwC5 fisBUgG1MZ5Dqw27xItP9Y02mUU76mB7JCugYpHya9RznZKiAfHbm5FlyWx2C19x4Fmi bQ6Fcgn3Zd+P54ooNlIH/cdlpLwpC8DWiwBEqh2CaEuEiW80o8m+Oi+c0VM6Mc+gsZyu /Jgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date; bh=IAWQyNdDPqfLqbQi+dAUHSuE4Kr8XiMwrvTmejDWy5I=; fh=8ataJfA0nECUY5TRPs092aODbyBk+DHJK6H/pnX6Q38=; b=HV2DXiu7r+EG/04JTCAbdwRx37k63Lqd49jBoGBHZf4Xcz+yqv4itqYbu79b3sx3gJ pQZekA5q05W9XvbmhRB56l+mXMYAnzBUSE1fdBgxRlySranaNCK1DJkq3mJKUKlt9AgQ 9DXUa1iZSFSSVzL+GrlQkgmPq90BQQV+BwnEiB5n7kpgC+e57Xdtzy11tGN+6cYEMiZr oWkC4tmegsmqwykyn7MZKIDwWCzA1fHcQgn+/kfhlM5C0V/ZzZfNq6TWX6Deu1o8eE+5 Flqm72IRxcCgikkKbhzsV1C3htMt5zNU+pDKMpf+CGxPfzcfJHmBSWmEQgL4fhDcXsfz EoyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-79476-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79476-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g10-20020a05620a40ca00b007877c19b782si457759qko.269.2024.02.23.21.30.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 21:30:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79476-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-79476-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79476-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0955A1C21E9E for ; Sat, 24 Feb 2024 05:30:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 077D6175BF; Sat, 24 Feb 2024 05:30:13 +0000 (UTC) Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9984F1756B; Sat, 24 Feb 2024 05:29:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.133.224.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708752612; cv=none; b=V2AjoEtIQXMYIOh0n4fEmZQSnGnc/h6SF9huSZzwRVhiGyELVgXS74Pccp/TxZceVGPDPqnAOksuQj2IjVZVNcn/+YVHv8PamHBiUYMPnvq2ZhW0U/KYWktKrWSSjgpbSZZjqoGc6Af2W15+n7SXgXl/XG+jdawCh5QIL+5UnmU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708752612; c=relaxed/simple; bh=N5rSrdJpnGbvCnN6AyHeeW8tZjA/gyKIaqsB0im1iXQ=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=ETbG7FIPO7aBklg8PWdhSSbBnGPAmTJaUdqpkcjUV9Rg4gBbbjl7+gfWxT7tQpNF6nVWhKnPVpfAoQtQ02XkYmLP4DIS9psukPLPNLfsOY4wSEZ5upGNA9FuShtuH/EyJqwielT3OlVs7X3osJjGuXRSzz19OxgdJSl4vBkdtAY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk; spf=none smtp.mailfrom=orcam.me.uk; arc=none smtp.client-ip=78.133.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=orcam.me.uk Received: by angie.orcam.me.uk (Postfix, from userid 500) id 7E2B092009C; Sat, 24 Feb 2024 06:29:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 7232792009B; Sat, 24 Feb 2024 05:29:43 +0000 (GMT) Date: Sat, 24 Feb 2024 05:29:43 +0000 (GMT) From: "Maciej W. Rozycki" To: Sam Ravnborg cc: Miquel Raynal , sparclinux@vger.kernel.org, linux-parport@lists.infradead.org, "David S. Miller" , Andreas Larsson , Randy Dunlap , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] sparc32: Do not select GENERIC_ISA_DMA In-Reply-To: Message-ID: References: <20240223-sam-fix-sparc32-all-builds-v1-0-5c60fd5c9250@ravnborg.org> <20240223-sam-fix-sparc32-all-builds-v1-5-5c60fd5c9250@ravnborg.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Sat, 24 Feb 2024, Maciej W. Rozycki wrote: > > 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. > > Not according to my observations, kernel/dma.c is always built for > GENERIC_ISA_DMA configurations, so: > > kernel/dma.c:70:5: error: no previous prototype for 'request_dma' [-Werror=missing-prototypes] > 70 | int request_dma(unsigned int dmanr, const char * device_id) > | ^~~~~~~~~~~ > kernel/dma.c:88:6: error: no previous prototype for 'free_dma' [-Werror=missing-prototypes] > 88 | void free_dma(unsigned int dmanr) > | ^~~~~~~~ > > are issued regardless (and FAOD with PARPORT_PC unset). > > I can't speak for SPARC support for ISA DMA, but it seems to me like the > second sentence would best be removed, as would the Fixes: tag (in favour > to: > > Fixes: 0fcb70851fbf ("Makefile.extrawarn: turn on missing-prototypes globally") > > I presume), and possibly the messages quoted above included instead. Actually I think ZONE_DMA should go too (it's linked to GENERIC_ISA_DMA, isn't it? -- cf. commit 5ac6da669e24 ("[PATCH] Set CONFIG_ZONE_DMA for arches with GENERIC_ISA_DMA")), and the whole thing use: Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") 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 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? Maciej