Please notice the guard name of the exported one will be kept as-is. I am going to add include/linux/const.h for the kernel space.Īdd _UAPI to the include guard of include/uapi/linux/const.h to 12:15 ` Masahiro Yamada 12:15 ` Masahiro Yamada -1 siblings, 0 replies 24+ messages in threadĬc: David Howells, linux-arm-kernel, Masahiro Yamada, linux-kernel * linux/const.h: prefix include guard of uapi/linux/const.h with _UAPI 12:15 ` Masahiro Yamada 0 siblings, 0 replies 24+ messages in thread * linux/const.h: cleanups of macros such as UL(), _BITUL(), BIT() etc. Linux/const.h: move BIT(_ULL) to linux/const.h for use in assemblyĪrch/arm64/include/asm/memory.h | 6 -Īrch/unicore32/include/asm/memory.h | 6. Linux/const.h: refactor _BITUL and _BITULL a bit Linux/const.h: move UL() macro to include/linux/const.h Linux/const.h: prefix include guard of uapi/linux/const.h with _UAPI So, we can prefix the include guard of include/uapi/linux/const.h, I ran "make headers_install" and confirmed the result is what I expect. Scripts/headers_install.sh rips off _UAPI prefix from guard macro names. Looking at the code closer, I noticed this is not a problem. Some userspace stuffĭepends on the guard macro names on the kernel header files. It pulls in more bloats just for defining some bit macros.Īt that time, what blocked this series was a comment from So let's move it toĬurrently, must be included to use UL(). More architectures may introduce it in the future. Will Deacon, linux-m68k, Guan Xuetao, Geert Uytterhoeven,ĪRM, ARM64, UniCore32 define UL() as a shorthand of _AC(., UL). 12:15 ` Masahiro Yamada 0 siblings, 0 replies 24+ messages in threadįrom: Masahiro Yamada 12:15 UTC ( / raw)Ĭc: David Howells, linux-arm-kernel, Masahiro Yamada, linux-kernel, All of help / color / mirror / Atom feed * linux/const.h: cleanups of macros such as UL(), _BITUL(), BIT() etc. Linux/const.h: cleanups of macros such as UL(), _BITUL(), BIT() etc.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |