From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 458FC294A10; Tue, 14 Jul 2026 11:00:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784026844; cv=none; b=V+JVNIQOtEIZKFjOaGLX4cpfK+ddvltEPJWOAi7r/sP9AdwCITiYjaV3egofxb3+CMkzkLd6rsji5MdPUp0G0dEqcuZ5j8YUaJW3ePet8nZ0T9PbPdv5k7hJk3FRdcDXkZBhA/Twi0qwvaABS82EVh0xJKZimqFMxkKWSVzOR9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784026844; c=relaxed/simple; bh=+b9h4x58nuRHFx18jbDfzoMRPyuPXoZCHsaPqr9H68M=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=k6fBUpdSXuWd2qrvOJ1dihzMHw8mgDCLnrFXsPlg20eUSJ/rGoWMTNA0tQSaxgp/0JKcmArQNkMILqqJV/Za8zJdvzORLQTSyPrtDhMi50Om3mAt6snMxcJ10Mx3A84GoE/+QbWHDgFYWcur0KIOeu2yaRmBD0rnDuCCBkCRnFo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MIFe8qeJ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MIFe8qeJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B31851F000E9; Tue, 14 Jul 2026 11:00:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1784026842; bh=/iv2AyieqD+wQwL0gejSGdtTP/mLifcPc9iiJuDu94M=; h=Date:From:To:Cc:Subject:In-Reply-To; b=MIFe8qeJETo7Wq9A8nBgLwOqwjMW62COVF1AfM5tzJUUaMLdanyCyL88ks4ZEPNml LLK73UZff5LTqb5R0Q3Tdgf5JMYuxXe6sAlpC4Yc/qUUpK6B6xGdhvWffKD+sjP3C3 U5KY06jrIot3FN/VphtEX+vZm0IxOAwAoNLXCRu7Nt2rtixKpXsnSNFrZAQn8OwgVw HtsAiNbMUpDSmXHPF6q0O03vDHcoX8uHAx8nQlz+2T7g475d+faW5QtxymwWLjZGc/ FDVU2CkfkI/iL4M11yP7wJ2jF4xMxFFFAcwxZtFmdOKSs2QI82QBQnhR25Tl5LsQ4S 3pqgkiUe1PEJg== Date: Tue, 14 Jul 2026 06:00:41 -0500 From: Bjorn Helgaas To: Marek Vasut Cc: Marc Zyngier , linux-pci@vger.kernel.org, kernel test robot , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Catalin Marinas , Conor Dooley , Geert Uytterhoeven , Krzysztof Kozlowski , Lorenzo Pieralisi , Manivannan Sadhasivam , Rob Herring , Yoshihiro Shimoda , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH] PCI: rcar-gen4: Inline GIC_TRANSLATER offset macro Message-ID: <20260714110041.GA1349622@bhelgaas> Precedence: bulk X-Mailing-List: devicetree@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: <2013cac8-d887-4a09-b1c5-6dc9606f16f0@mailbox.org> On Mon, Jul 13, 2026 at 08:05:38PM +0200, Marek Vasut wrote: > On 7/13/26 7:54 PM, Bjorn Helgaas wrote: > > On Fri, Jul 10, 2026 at 03:35:10PM +0200, Marek Vasut wrote: > > > On 7/10/26 10:30 AM, Marc Zyngier wrote: > > > > On Thu, 09 Jul 2026 21:10:03 +0100, > > > > Marek Vasut wrote: > > > > > > > > > > Instead of pulling in the whole linux/irqchip/arm-gic-v3.h , > > > > > copy the one GITS_TRANSLATER register offset macro directly into > > > > > the driver. This repairs the ability to build the driver on > > > > > non-ARM non-GIC targets the way it was possible until now, which > > > > > retains good build test coverage. > > > ... > > > > > So in the end, it is either this patch or limit the build to > > > arm/arm64 . At least this patch still allows building this driver > > > with more compilers on the various build bots, so I would opt for > > > this patch here. > > > > I like the build coverage, but duplicating the #define doesn't really > > seem good to me. It makes readability worse because cscope/tags now > > sees two definitions without an obvious reason. > > I can rename the macro, or ... sigh ... I can reduce the driver to build > only on ARM/ARM64. Which one do you prefer ? I think a dependency on ARM/ARM64 is preferable.