aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index f4dce9c8670d..99497cb32e71 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -400,7 +400,7 @@ static bool shmem_confirm_swap(struct address_space *mapping,
400 400
401static int shmem_huge __read_mostly; 401static int shmem_huge __read_mostly;
402 402
403#if defined(CONFIG_SYSFS) || defined(CONFIG_TMPFS) 403#if defined(CONFIG_SYSFS)
404static int shmem_parse_huge(const char *str) 404static int shmem_parse_huge(const char *str)
405{ 405{
406 if (!strcmp(str, "never")) 406 if (!strcmp(str, "never"))
@@ -417,7 +417,9 @@ static int shmem_parse_huge(const char *str)
417 return SHMEM_HUGE_FORCE; 417 return SHMEM_HUGE_FORCE;
418 return -EINVAL; 418 return -EINVAL;
419} 419}
420#endif
420 421
422#if defined(CONFIG_SYSFS) || defined(CONFIG_TMPFS)
421static const char *shmem_format_huge(int huge) 423static const char *shmem_format_huge(int huge)
422{ 424{
423 switch (huge) { 425 switch (huge) {