Re: [PATCH 08/19] riscv: Add explicit include for cpu.h

2023-04-29 Thread Palmer Dabbelt
On Wed, 29 Mar 2023 08:52:05 PDT (-0700), r...@kernel.org wrote: Removing the include of cpu.h from of_device.h (included by of_platform.h) causes an error in setup.c: arch/riscv/kernel/setup.c:313:22: error: arithmetic on a pointer to an incomplete type 'typeof(struct cpu)' (aka 'struct cpu')

[PATCH 08/19] riscv: Add explicit include for cpu.h

2023-03-29 Thread Rob Herring
Removing the include of cpu.h from of_device.h (included by of_platform.h) causes an error in setup.c: arch/riscv/kernel/setup.c:313:22: error: arithmetic on a pointer to an incomplete type 'typeof(struct cpu)' (aka 'struct cpu') The of_platform.h header is not necessary either, so it can be dro