Skip to contentSkip to conversation

linux-next: build warning after merge of the mm tree

DISCUSSION Stephen Rothwell 1 participant 1 message May 15, 2023 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the mm tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

mm/memory.c: In function '__access_remote_vm':
mm/memory.c:5608:29: warning: unused variable 'ret' [-Wunused-variable]
5608 | int ret = 0;
| ^~~

Introduced by commit

eca1a00155df ("mm/gup: remove vmas parameter from get_user_pages_remote()")

"ret" is only used if CONFIG_HAVE_IOREMAP_PROT is set.

Signature · 2 lines
Cheers,
Stephen Rothwell