Skip to content

Commit 2e64250

Browse files
committed
mm/mempolicy: Remove CONFIG_TMPFS from mpol_parse_str in headers
Commit 24993d7 ("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: 24993d7 ("mm/numa: Allow override of kernel's default NUMA policy") Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 976d8ab commit 2e64250

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

include/linux/mempolicy.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,7 @@ static inline void check_highest_zone(enum zone_type k)
160160
int do_migrate_pages(struct mm_struct *mm, const nodemask_t *from,
161161
const nodemask_t *to, int flags);
162162

163-
164-
#ifdef CONFIG_TMPFS
165163
extern int mpol_parse_str(char *str, struct mempolicy **mpol);
166-
#endif
167164

168165
extern void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol);
169166

0 commit comments

Comments
 (0)