diff options
| author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2026-07-24 15:40:30 +0200 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-08-10 16:27:14 +0200 |
| commit | 92e785d887a8a61a897289f2b342f754cf02551b (patch) | |
| tree | 9bcda626ae17471da30d4cf10ddfb8364be4ac86 /lib | |
| parent | 1f8258de239da872fd3cdccfb97b406ccb354ce3 (diff) | |
random: vDSO: Drop custom PAGE_SIZE definitions
These custom definitions where added in commit 7f053812dab3 ("random:
vDSO: minimize and simplify header includes") to avoid pulling in
non-vDSO-safe headers from linux/page.h.
vdso/page.h provides these definitions for the vDSO now. Use that instead.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260724-vdso-random-page-size-v1-1-e69283d36b2f@linutronix.de
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/vdso/getrandom.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/vdso/getrandom.c b/lib/vdso/getrandom.c index 7e29005aa208..2851afa9154f 100644 --- a/lib/vdso/getrandom.c +++ b/lib/vdso/getrandom.c @@ -8,6 +8,7 @@ #include <vdso/datapage.h> #include <vdso/getrandom.h> #include <vdso/limits.h> +#include <vdso/page.h> #include <vdso/unaligned.h> #include <asm/barrier.h> #include <asm/vdso/getrandom.h> @@ -18,11 +19,6 @@ /* Bring in default accessors */ #include <vdso/vsyscall.h> -#undef PAGE_SIZE -#undef PAGE_MASK -#define PAGE_SIZE (1UL << CONFIG_PAGE_SHIFT) -#define PAGE_MASK (~(PAGE_SIZE - 1)) - #define MEMCPY_AND_ZERO_SRC(type, dst, src, len) do { \ while (len >= sizeof(type)) { \ __put_unaligned_t(type, __get_unaligned_t(type, src), dst); \ |
