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

From: Stephen Rothwell <[email-masked]>
Date: Tue, 16 May 2023 09:25:33 +1000

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