From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AFF44C35FFA for ; Wed, 19 Mar 2025 17:30:24 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4ZHwhZ0Kqnz2yqT; Thu, 20 Mar 2025 04:30:22 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2604:1380:4641:c500::1" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1742405422; cv=none; b=nbs5fhgrq1eRdHI5o2aGRtGm2z2LpTzJhK4dW3TOQdJynmNgUArqqnTQRLwzZBPH9ykU/cZUzv0PLMQ/NT/YrLek5o0dAUcEEPvTP09FqVszn7aTOXHmnnO++6r5HhXpSvNqZ8NbdjkMIX2xkarN1rcSgKHMMAae4pR3sRJnmwrWvdcKItMiR57UPeEhtIAFwnCeITrjen7abhe4zj5V3isEGihHZWQ0zKVSReH4QxURAwsaXy1OlWrm6k5UbVlaJw672D3zEssnoHXKNLW6Kduzwh4+CFmLqL8MiydnbGFSis1rWcsGqvqaITqCn2jhB1e6dATmNLPsRRVu/47zWw== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1742405422; c=relaxed/relaxed; bh=AsfoyWYQwkuNnFqxzeEPQqfO/94I4+8DnMEa+Vta9E4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WwxxzZzU8YArURNJbfzDfAaqDPy14JoZZElyYbsO2ZWK9aLKcU595Jq58x449jsvePby0cyVEDDaUYt3QEKOy6VySrnLFeLR/IS7n+ntwecJ5NqCP5SHIb1nyb4tpAEVPZCmlZGxSdpfZuEPaLu+Vfnd+V+OqTRF95RzpZjII34GeTbp6HUcr1sNeOPuFrBmRIaFrFfn/9x7gvRlid5FAqvMYw22p8LbNlKqORlq/GiGSufyEDLdonbeTgYnhVYcahHHI7CyS/l9dYvNDHnvs4F/UxIi52H/Sdgy6Peq2DeCA6sazNOtCr/uB2dy+jI0M16DkxFrbYClOhvWBImcDQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Z9biRIG4; dkim-atps=neutral; spf=pass (client-ip=2604:1380:4641:c500::1; helo=dfw.source.kernel.org; envelope-from=nathan@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Z9biRIG4; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:4641:c500::1; helo=dfw.source.kernel.org; envelope-from=nathan@kernel.org; receiver=lists.ozlabs.org) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4ZHwhY2zYFz2xlQ for ; Thu, 20 Mar 2025 04:30:21 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id AC9715C499F; Wed, 19 Mar 2025 17:28:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4230AC4CEEC; Wed, 19 Mar 2025 17:30:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742405418; bh=gpKrn8HW8AZZySNjAdZoJyOHfdkLfMonlBIG0pb7rJs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Z9biRIG4v4RALHETyvhDmvsnPST2Po+0NgCvGoxxlYmK5oqGJFq3Rp9gX67v29Wa1 bH7PO28pgmcU0v/QDX91o2kqmi4Ab/alUwXSnKEhUVmpijp2QXT1kbAeE/BeUTB2w4 DztQSBkjHjFDEOE1vXLqLSxoM+x0cOQXFjAy/9AkqphJzxmv9vEJiHhiDLT1IF9R0a fvSkmrweH3Uqz5StTuzwnCRMzNnOP5xPmKGZG3FJCiX6/cCFVHJE4wc1QmxnLfYKX6 xZfGhbjQVQFVC+38sI2KRQZeyUXfOYxq9jp9xJit0e9jNp+XS4+tmVbVnRQlE5ZirP KE1eon15QED6w== Date: Wed, 19 Mar 2025 10:30:10 -0700 From: Nathan Chancellor To: Arnd Bergmann Cc: Arnd Bergmann , Linux-Arch , Richard Henderson , Matt Turner , Geert Uytterhoeven , Greg Ungerer , Thomas Bogendoerfer , "James E . J . Bottomley" , Helge Deller , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Julian Vetter , Bjorn Helgaas , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org Subject: Re: [PATCH 5/6] mips: drop GENERIC_IOMAP wrapper Message-ID: <20250319173010.GA84652@ax162> References: <20250315105907.1275012-1-arnd@kernel.org> <20250315105907.1275012-6-arnd@kernel.org> <20250318203906.GA4089579@ax162> <5b2779f8-573d-401e-817e-979e02f811d3@app.fastmail.com> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5b2779f8-573d-401e-817e-979e02f811d3@app.fastmail.com> On Tue, Mar 18, 2025 at 10:13:35PM +0100, Arnd Bergmann wrote: > Thanks for the report, I missed that the generic ioport_map() function > is missing the PCI_IOBASE macro, we should probably remove that from > the asm-generic/io.h header and require architectures to define it > themselves, since the NULL fallback is pretty much always wrong. > > There is also a type mismatch between the MIPS > PCI_IOBASE/mips_io_port_base and the one that asm-generic/io.h > expects, so I had to add a couple of extra typecasts, which > makes it rather ugly, but the change below seems to work. Thanks, that does make the -Wnull-pointer-arithmetic warnings disappear. That build still fails in next-20250319 (which includes that change) at the end with: $ make -skj"$(nproc)" ARCH=mips CROSS_COMPILE=mips-linux- mrproper malta_defconfig all ERROR: modpost: "pci_iounmap" [drivers/net/wireless/intel/ipw2x00/ipw2100.ko] undefined! which appears related to this original change. Cheers, Nathan