[PATCH] kmap: fix header include to reflect actual path
Aurabindo Pillai
aurabindo.pillai at amd.com
Sat Jun 28 03:31:51 AEST 2025
On 2025-06-27 12:34, Christophe Leroy wrote:
>
>
> Le 27/06/2025 à 17:32, Aurabindo Pillai a écrit :
>> [Vous ne recevez pas souvent de courriers de aurabindo.pillai at amd.com.
>> Découvrez pourquoi ceci est important à https://aka.ms/
>> LearnAboutSenderIdentification ]
>>
>> There are plenty of header includes like:
>>
>> #include <asm/kmap_size.h>
>
> Yes and in reality that includes those,
>
> ./arch/arm64/include/generated/asm/kmap_size.h
> ./arch/riscv/include/generated/asm/kmap_size.h
> ./arch/arc/include/generated/asm/kmap_size.h
> ./arch/x86/include/generated/asm/kmap_size.h
> ./arch/powerpc/include/generated/asm/kmap_size.h
> ./arch/arm/include/generated/asm/kmap_size.h
>
> Which contain:
>
> $ cat arch/powerpc/include/generated/asm/kmap_size.h
> #include <asm-generic/kmap_size.h>
>
> So what is the problem really ?
Thanks for the explanation. I was trying to reuse some driver source
code in another project such that it compiles the related files in Linux
and ran into a compilation issue, and the error was that the header file
asm-generic/kmap_size.h was not found.
I just realized that once the kernel is built, the path asm/kmap_size.h
will exist, and hence there is no need for this patch.
--
Thanks & Regards,
Aurabindo Pillai
More information about the Linuxppc-dev
mailing list