Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

linux/const.h: Extract common header for vDSO

The vDSO library should only include the necessary headers required for
a userspace library (UAPI and a minimal set of kernel headers). To make
this possible it is necessary to isolate from the kernel headers the
common parts that are strictly necessary to build the library.

Split const.h into linux and common headers to make the latter suitable
for inclusion in the vDSO library.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200320145351.32292-2-vincenzo.frascino@arm.com

authored by

Vincenzo Frascino and committed by
Thomas Gleixner
8165b57b 52da479a

+11 -4
+1 -4
include/linux/const.h
··· 1 1 #ifndef _LINUX_CONST_H 2 2 #define _LINUX_CONST_H 3 3 4 - #include <uapi/linux/const.h> 5 - 6 - #define UL(x) (_UL(x)) 7 - #define ULL(x) (_ULL(x)) 4 + #include <vdso/const.h> 8 5 9 6 #endif /* _LINUX_CONST_H */
+10
include/vdso/const.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef __VDSO_CONST_H 3 + #define __VDSO_CONST_H 4 + 5 + #include <uapi/linux/const.h> 6 + 7 + #define UL(x) (_UL(x)) 8 + #define ULL(x) (_ULL(x)) 9 + 10 + #endif /* __VDSO_CONST_H */