summaryrefslogtreecommitdiff
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2020-03-10 12:49:09 -0300
committerJason Gunthorpe <jgg@mellanox.com>2020-03-10 12:49:09 -0300
commit6f00a54c2cdc82543d5804b0074821b5a40e577f (patch)
treea145ce5a9eee817c69633ac64b7635ef5afd4e42 /include/linux/mm.h
parent3e3cf2e82cca92ecedba972251a20da4fa4ab1c8 (diff)
parent2c523b344dfa65a3738e7039832044aa133c75fb (diff)
downloadlwn-6f00a54c2cdc82543d5804b0074821b5a40e577f.tar.gz
lwn-6f00a54c2cdc82543d5804b0074821b5a40e577f.zip
Merge tag 'v5.6-rc5' into rdma.git for-next
Required due to dependencies in following patches. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 52269e56c514..c54fb96cb1e6 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -2715,6 +2715,10 @@ static inline bool debug_pagealloc_enabled_static(void)
#if defined(CONFIG_DEBUG_PAGEALLOC) || defined(CONFIG_ARCH_HAS_SET_DIRECT_MAP)
extern void __kernel_map_pages(struct page *page, int numpages, int enable);
+/*
+ * When called in DEBUG_PAGEALLOC context, the call should most likely be
+ * guarded by debug_pagealloc_enabled() or debug_pagealloc_enabled_static()
+ */
static inline void
kernel_map_pages(struct page *page, int numpages, int enable)
{