From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (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 2295972 for ; Mon, 20 Sep 2021 14:30:20 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 3E50960E76; Mon, 20 Sep 2021 14:30:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632148219; bh=Q9AttzYMMlrQ9pqRSwf8ZRicqkLjL7wPmPl+QB6Dqw8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RDkwv2niPIMZc3hgsAxpdvEuyVP+F5N/JUNkW66BOpvgSf4CoVfmrciUp7kzVTtcd vJpGZa1i3FV11K4wwUlsEBAWmgeTmL+9KbgS5EiBPJsmmMIjZke6jN6yqhoY5Rw+1v NLyl5E+Ht2w3D5fP5Hrv0nCaxiFBHvCKNqWWHQDow+10eDHDaZcxEtZBWaPgxU6svG zwKGHAH4xxP+WqgoIK34diFMkNXM3Kew3NGnArqQak2EbmjLpJYXg3yteJP6u3M52g fO+W0vP20ycNgIC1V8/TCohayPJ7AnWswWi2EOdQnHSV31s6W+iEwRioS1Fpbs2UfP E4HosL1jloyBA== Date: Mon, 20 Sep 2021 07:30:15 -0700 From: Nathan Chancellor To: Linus Torvalds Cc: Helge Deller , Arnd Bergmann , Guenter Roeck , Ulrich Teichert , linux-arch , James Bottomley , llvm@lists.linux.dev Subject: Re: Odd pci_iounmap() declaration rules.. Message-ID: References: Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sun, Sep 19, 2021 at 05:44:03PM -0700, Linus Torvalds wrote: > On Sun, Sep 19, 2021 at 3:44 PM Linus Torvalds > wrote: > > > > The fix seems to be to just move that odd code from the header file to > > lib/pci_iomap.c, and that should make it all JustWork(tm). > > I'm not 100% happy about the end result, and in particular I think > that the new generic pci_iounmap() function for the > ARCH_WANTS_GENERIC_PCI_IOUNMAP case should do the "iounmap(p)" thing > even if ARCH_HAS_GENERIC_IOPORT_MAP wasn't true, but I tried to keep > the old rules, even if they seemed broken. > > arm and arm64 build for me, as did sparc64 and alpha. At least in the > configs I tested. > > And the code _does_ make a bit more sense than it used to. It still > has crazy corners, but moving the pci_iounmap() code out of the header > file should make it easier to fix up in the future. Thanks, I can confirm that all of my build tests pass without any issues now. Cheers, Nathan