diff options
author | 2024-03-26 17:10:25 +0000 | |
---|---|---|
committer | 2024-04-25 20:56:14 -0700 | |
commit | 6e65aa55cdf4c7cc0490b156b4aae2035c157140 (patch) | |
tree | ff4339cc09c9d9e072ec14536abc0f33a4de30a5 /include/linux/page_ext.h | |
parent | xtensa: remove uses of PG_arch_1 on individual pages (diff) | |
download | wireguard-linux-6e65aa55cdf4c7cc0490b156b4aae2035c157140.tar.xz wireguard-linux-6e65aa55cdf4c7cc0490b156b4aae2035c157140.zip |
mm: make page_ext_get() take a const argument
In order to constify other functions, we need page_ext_get() to be const.
This is no problem as lookup_page_ext() already takes a const argument.
Link: https://lkml.kernel.org/r/20240326171045.410737-4-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/page_ext.h')
-rw-r--r-- | include/linux/page_ext.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/page_ext.h b/include/linux/page_ext.h index 07e0656898f9..e4b48a0dda24 100644 --- a/include/linux/page_ext.h +++ b/include/linux/page_ext.h @@ -77,7 +77,7 @@ static inline void page_ext_init(void) } #endif -extern struct page_ext *page_ext_get(struct page *page); +extern struct page_ext *page_ext_get(const struct page *page); extern void page_ext_put(struct page_ext *page_ext); static inline void *page_ext_data(struct page_ext *page_ext, @@ -117,7 +117,7 @@ static inline void page_ext_init_flatmem(void) { } -static inline struct page_ext *page_ext_get(struct page *page) +static inline struct page_ext *page_ext_get(const struct page *page) { return NULL; } |