diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index a828cf99c5215e132aa2105d9ba95d360afd4069..345944698dd467a817d4b0b07dd36e27b5176d05 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -2927,8 +2927,8 @@ static inline struct page *dev_alloc_page(void) * @page: The page that was allocated from skb_alloc_page * @skb: The skb that may need pfmemalloc set */ -static inline void skb_propagate_pfmemalloc(struct page *page, - struct sk_buff *skb) +static inline void skb_propagate_pfmemalloc(const struct page *page, + struct sk_buff *skb) { if (page_is_pfmemalloc(page)) skb->pfmemalloc = true;