From 2e642507c6074e4e6626a78c76926a956cf60ffe Mon Sep 17 00:00:00 2001 From: Dave Stevenson Date: Mon, 16 Feb 2026 12:08:16 +0000 Subject: [PATCH] mm/mempolicy: Remove CONFIG_TMPFS from mpol_parse_str in headers Commit 24993d71a571 ("mm/numa: Allow override of kernel's default NUMA policy") removed the #ifdef CONFIG_TMPFS guard from the function definition for mpol_parse_str, but not for the prototype. This lead to build errors/ warnings should CONFIG_TMPFS be disabled. Fixes: 24993d71a571 ("mm/numa: Allow override of kernel's default NUMA policy") Signed-off-by: Dave Stevenson --- include/linux/mempolicy.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index fb945bce7b1843..7d3233a7685c1f 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h @@ -160,10 +160,7 @@ static inline void check_highest_zone(enum zone_type k) int do_migrate_pages(struct mm_struct *mm, const nodemask_t *from, const nodemask_t *to, int flags); - -#ifdef CONFIG_TMPFS extern int mpol_parse_str(char *str, struct mempolicy **mpol); -#endif extern void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol);