Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp286484rbb; Fri, 23 Feb 2024 23:59:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWUXu+yFbUS+2Jo8XScoQrR2KzkD9Gu7unsrfdSvxfb2del54eBRtYKJs0wD29wzeabEIwqF9d7rTAv5RmEreJAvKSHClm8vgzQPi/DMQ== X-Google-Smtp-Source: AGHT+IGcpQxfBl4pT6U3K/u7LgAQ5CqMzlwU2SQPe1E96WYIhDJVw31cKLV32ulDWEIrrqHR+Pgu X-Received: by 2002:a50:ed96:0:b0:565:dff:cd4d with SMTP id h22-20020a50ed96000000b005650dffcd4dmr1415265edr.13.1708761572511; Fri, 23 Feb 2024 23:59:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708761572; cv=pass; d=google.com; s=arc-20160816; b=Pyz3upgL+73pUIJ/VJ4zuda5E8cDeKZpaUvdiDB6Nq8LG+PVwk7SNtZux5gclKT4CH SAkkYp3jtp/iWKpiU4L2jqpW50modFMVb6lu73z+bRp2ZG8x4h6TK3jvKEHPFT+e9DMg 36Kb/zx+0HcryJDrIXWp4O8q1f5hhTVvVTcJ/kVafBrPv39QJc0Wo7VuNiPLI4N4QpYD dE3AtCC/DEl8/QnZlWABTVWLzymqemNhSb6DHqQvaIcnHstrtOVo3vI+/fDF6qQm1guo ar+TIq8PuFeea1+JyJHiH5oF/WimJIoyC8e2uInEPXf0MvHD049beuQyJokrnaQQyuxt wGUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=o1C0+AUnLT8vTzsLkx6TlC4ol/MArNCmdQKVohEbTME=; fh=7rHVMZeSVrrQYcf/S9fyLnMtulD+QfGdbr2dz1yrB3c=; b=tq8P8TLSMgjA5T1MN7gjh6zJ/9kauc9j/BilJsNxbAsrUV4JpfgMYPb3urMsucb8fQ MAnvNNNsnXdlRvlrVwtyHT3nMOsVR7d7kqCytU6jYzgBEF6ysbw7Tyrkji9DnnohJsKj yMnxxdNubQff3g/0QxM7Gl+FGCnhuDKOkXBioWwOFamCLZfED6ZhNgIzQs/MpPOwOR2R WiOukFMULr6MYaX9L0cw0BTz1nXYV5cogO4RDEZDP1xaOgN5bJTGWV0idnG/F+kjVr+p H3neqjybWZJE4+ZLnR2itB6vn8uktkzu1nvq4jtpsPTlDAvLG8mTAvRE2+/cE4YrJpSD m7kA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa2 header.b=biI3Or3M; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed2 header.b=Qm5OuQ19; arc=pass (i=1 dkim=pass dkdomain=ravnborg.org); spf=pass (google.com: domain of linux-kernel+bounces-79508-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79508-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m23-20020a056402051700b005642ed50e9fsi298940edv.682.2024.02.23.23.59.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 23:59:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79508-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa2 header.b=biI3Or3M; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed2 header.b=Qm5OuQ19; arc=pass (i=1 dkim=pass dkdomain=ravnborg.org); spf=pass (google.com: domain of linux-kernel+bounces-79508-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79508-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4737F1F22221 for ; Sat, 24 Feb 2024 07:59:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48A83171C8; Sat, 24 Feb 2024 07:59:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b="biI3Or3M"; dkim=permerror (0-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b="Qm5OuQ19" Received: from mailrelay5-1.pub.mailoutpod2-cph3.one.com (mailrelay5-1.pub.mailoutpod2-cph3.one.com [46.30.211.180]) (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 E0CDE13FEA for ; Sat, 24 Feb 2024 07:59:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.30.211.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708761564; cv=none; b=TIyxWGxHw8bwHcUP9LlvUMVdNTKXBhJqiCcTZnASd01y36MV6kRAbhVz9i5zdSzKoObhoQxJbTMhvnBksn4peJTqxnBYh9A5i46oFAzh4fjuAWueMOyoSknncpedAK0pF13GxtlmZmHW28J73IDGAYoTU2+cBI/jID4wsfODAMI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708761564; c=relaxed/simple; bh=IqUhJWwmMonEc4OhD9ftFsdV7ar9wnvzL/o/+DIhCYA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lQbUMHdD3mAFnQE5REqNRKCQEv9WyguB4pNiI/hEu/bcT1cYZuedtQm0iFKvwjJCy3letaeXkw9P1afHaPPLbYMAjXWkdvl9zpgiUcQ0hagVEem2LWWh4nM1GJOQOljTRdTcYu7HOTNdpd2FudPWUGjzA6cRORhQQPIM5voL40s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org; spf=none smtp.mailfrom=ravnborg.org; dkim=pass (2048-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b=biI3Or3M; dkim=permerror (0-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b=Qm5OuQ19; arc=none smtp.client-ip=46.30.211.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ravnborg.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa2; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=o1C0+AUnLT8vTzsLkx6TlC4ol/MArNCmdQKVohEbTME=; b=biI3Or3MPGuNThyjSNHLBfM+7SAl7NgxbyRm84iNa8Qi4Ygtd+Sb0zDCrAGETln1hhQyweMNnTMyC O/62jNcK1EZxtQjYvVcmnVuuY15vjnlFd6wxKxHEUVoM6EvAkWLgimgLwJWcIWcBNfderduy/mVQwc jegtqJB6zRk2iK14XYIGCDIBtfn51SNNZnfhSJ+/bkvBI6KxQCVXB9qVSj7qyZ+szW4RITSX1HrbBQ zO2ACtB4gH8aBsDc6HtQoE/QPsbbyof8QPjMlYlpeGkrdziMr53e1N4ImGJdLM5T2gwGdgjDfEvMm8 c1CIQ4F2tIINy5CBvXyzTY3HQ0YWjGw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed2; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=o1C0+AUnLT8vTzsLkx6TlC4ol/MArNCmdQKVohEbTME=; b=Qm5OuQ19rFGKkAWIAgie/8SWj3TvXY5EkixcA8OYt8qG5b8sqYs+fCVlBR3Iwyz7Z9WiQFBZ0PxV0 GYOW35SDA== X-HalOne-ID: 9c373c13-d2ea-11ee-b3bd-657a30c718c6 Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay5.pub.mailoutpod2-cph3.one.com (Halon) with ESMTPSA id 9c373c13-d2ea-11ee-b3bd-657a30c718c6; Sat, 24 Feb 2024 07:59:19 +0000 (UTC) Date: Sat, 24 Feb 2024 08:59:18 +0100 From: Sam Ravnborg To: "Maciej W. Rozycki" 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 Message-ID: <20240224075918.GB2959352@ravnborg.org> References: <20240223-sam-fix-sparc32-all-builds-v1-0-5c60fd5c9250@ravnborg.org> <20240223-sam-fix-sparc32-all-builds-v1-5-5c60fd5c9250@ravnborg.org> 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 Content-Disposition: inline In-Reply-To: Hi Marciej, On Sat, Feb 24, 2024 at 05:29:43AM +0000, Maciej W. Rozycki wrote: > 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. Thanks, I will update in v2. > > 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? Nice find - the code below conforms you are right: max_zone_pfn[ZONE_DMA] = max_low_pfn; max_zone_pfn[ZONE_NORMAL] = max_low_pfn; As they are set to the same value there is no smaller ZONE_DMA area. I will add an extra patch for this in v2. Sam