linux-stable/lib/vdso
Christophe Leroy 7f053812da random: vDSO: minimize and simplify header includes
Depending on the architecture, building a 32-bit vDSO on a 64-bit kernel
is problematic when some system headers are included.

Minimise the amount of headers by moving needed items, such as
__{get,put}_unaligned_t, into dedicated common headers and in general
use more specific headers, similar to what was done in commit
8165b57bca ("linux/const.h: Extract common header for vDSO") and
commit 8c59ab839f ("lib/vdso: Enable common headers").

On some architectures this results in missing PAGE_SIZE, as was
described by commit 8b3843ae36 ("vdso/datapage: Quick fix - use
asm/page-def.h for ARM64"), so define this if necessary, in the same way
as done prior by commit cffaefd15a ("vdso: Use CONFIG_PAGE_SHIFT in
vdso/datapage.h").

Removing linux/time64.h leads to missing 'struct timespec64' in
x86's asm/pvclock.h. Add a forward declaration of that struct in
that file.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2024-09-13 17:28:35 +02:00
..
getrandom.c random: vDSO: minimize and simplify header includes 2024-09-13 17:28:35 +02:00
gettimeofday.c vdso/gettimeofday: Clarify comment about open coded function 2024-07-03 21:27:03 +02:00
Kconfig random: introduce generic vDSO getrandom() implementation 2024-07-19 20:22:12 +02:00
Makefile random: vDSO: add missing c-getrandom-y in Makefile 2024-09-13 17:28:35 +02:00