perf usage of arch/arm64/include/asm/cputype.h

Arnaldo Carvalho de Melo acme at kernel.org
Wed Jun 18 06:15:04 PDT 2025


On Wed, Jun 18, 2025 at 12:24:40PM +0100, Leo Yan wrote:
> On Wed, Jun 18, 2025 at 09:52:53AM +0100, Mark Rutland wrote:
> > If we want to share headers between userspace and kernel, we should
> > refactor those headers such that this is safe by construction.

> > There is no need to update the userspace headers just because the kernel
> > headers have changed, so the simple solution in the short term is to
> > suppress the warning from check-headers.sh.
 
> Sure, makes sense for me.
> 
> @Arnaldo, as Mark suggested, do you want me to send a patch to remove
> cputype.h checking in check-headers.sh or it is fine to keep the warning
> until finish the header refactoring?

It is ok to have the warning, its just this one at this point and it is
serving its purpose.

When the refactoring gets done, it will go away. Think of it as a
reminder :-)

- Arnaldo



More information about the linux-arm-kernel mailing list