mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01: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 <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://patch.msgid.link/[email protected]
This commit is contained in:
1 parent
1f8258de23
commit
92e785d887
1 file changed
+1
-5
@@ -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