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

From: Stephen Rothwell
Date: Mon May 15 2023 - 19:26:20 EST


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.

--
Cheers,
Stephen Rothwell

Attachment: pgpQzfOakCivU.pgp
Description: OpenPGP digital signature