mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 15:22:21 -04:00
random: vDSO: Drop custom PAGE_SIZE definitions
These custom definitions where added in commit 7f053812da ("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
This commit is contained in:
committed by
Thomas Gleixner
parent
1f8258de23
commit
92e785d887
@@ -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); \
|
||||
|
||||
Reference in New Issue
Block a user