[PATCH v1 3/7] RISC-V: kbuild: convert all use of SOC_FOO to ARCH_FOO

Palmer Dabbelt palmer at dabbelt.com
Thu Dec 8 17:24:10 PST 2022


On Mon, 21 Nov 2022 22:04:21 PST (-0800), Christoph Hellwig wrote:
> On Mon, Nov 21, 2022 at 10:14:11PM +0000, Conor Dooley wrote:
>> From: Conor Dooley <conor.dooley at microchip.com>
>>
>> Convert all non user visible use of SOC_FOO symbols to their ARCH_FOO
>> variants. The canaan DTs are an outlier in that they're gated at the
>> directory and the file level. Drop the directory level gating while we
>> are swapping the symbol names over.
>
>
> I still very much disagree with this.  ARCH_FOO for something that
> is not a Linux architecture is a really really bad idea.  We need to
> fix arm and not convert riscv, which got this right.

Makes sense, though I guess I'd argue that SOC is also a wrong name (but 
at least it doesn't conflict with the ARCH_* symbols that already 
exist).  That'll touch a bunch of trees, adding the Arm folks to see if 
they're on board.

I don't care a ton either way, my only opinion here is that RISC-V and 
Arm should use the same scheme.  If the Arm folks want to move over to 
SOC_* that works for me, and has the advantage of being  no work on my 
end ;)



More information about the linux-arm-kernel mailing list