Skip to content

Commit 1f0e290

Browse files
groecktorvalds
authored andcommitted
arch: Add generic Kconfig option indicating page size smaller than 64k
NTFS_RW and VMXNET3 require a page size smaller than 64kB. Add generic Kconfig option for use outside architecture code to avoid architecture specific Kconfig options in that code. Suggested-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Cc: Anton Altaparmakov <anton@tuxera.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 4f0dda3 commit 1f0e290

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

arch/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,16 @@ config HAVE_ARCH_COMPAT_MMAP_BASES
991991
and vice-versa 32-bit applications to call 64-bit mmap().
992992
Required for applications doing different bitness syscalls.
993993

994+
config PAGE_SIZE_LESS_THAN_64KB
995+
def_bool y
996+
depends on !ARM64_64K_PAGES
997+
depends on !IA64_PAGE_SIZE_64KB
998+
depends on !PAGE_SIZE_64KB
999+
depends on !PARISC_PAGE_SIZE_64KB
1000+
depends on !PPC_64K_PAGES
1001+
depends on !PPC_256K_PAGES
1002+
depends on !PAGE_SIZE_256KB
1003+
9941004
# This allows to use a set of generic functions to determine mmap base
9951005
# address by giving priority to top-down scheme only if the process
9961006
# is not in legacy mode (compat task, unlimited stack size or

0 commit comments

Comments
 (0)