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

Stephen Rothwell
2023-05-15T23:25:51Z

[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

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.