Commit 790c7369 authored by Guenter Roeck's avatar Guenter Roeck Committed by Linus Torvalds
Browse files

mm/gup.c: mark undo_dev_pagemap as __maybe_unused

Several mips builds generate the following build warning.

  mm/gup.c:1788:13: warning: 'undo_dev_pagemap' defined but not used

The function is declared unconditionally but only called from behind
various ifdefs. Mark it __maybe_unused.


Signed-off-by: default avatarGuenter Roeck <>
Reviewed-by: default avatarAndrew Morton <>
Cc: Stephen Rothwell <>
Cc: Robin Murphy <>
Cc: Kirill A. Shutemov <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent b5d1c39f
......@@ -1796,7 +1796,8 @@ static inline pte_t gup_get_pte(pte_t *ptep)
static void undo_dev_pagemap(int *nr, int nr_start, struct page **pages)
static void __maybe_unused undo_dev_pagemap(int *nr, int nr_start,
struct page **pages)
while ((*nr) - nr_start) {
struct page *page = pages[--(*nr)];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment