From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Rothwell Subject: linux-next: build failure after merge of the userns tree Date: Wed, 28 Mar 2018 18:41:25 +1100 Message-ID: <20180328184125.3dbcfbf5@canb.auug.org.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/v4.foYZPa8UEMEN4NoXkpfH"; protocol="application/pgp-signature" Return-path: Sender: linux-kernel-owner@vger.kernel.org To: "Eric W. Biederman" Cc: Linux-Next Mailing List , Linux Kernel Mailing List List-Id: linux-next.vger.kernel.org --Sig_/v4.foYZPa8UEMEN4NoXkpfH Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Eric, After merging the userns tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: In file included from include/linux/sched.h:16:0, from arch/powerpc/lib/xor_vmx_glue.c:14: include/linux/shm.h:17:35: error: 'struct file' declared inside parameter l= ist will not be visible outside of this definition or declaration [-Werror] bool is_file_shm_hugepages(struct file *file); ^~~~ and many, many more (most warnings, but some errors - arch/powerpc is mostly built with -Werror) Maybe caused by commit 1a5c1349d105 ("sem: Move struct sem and struct sem_array into ipc/sem.c") I have appplied the following fix patch for today: From: Stephen Rothwell Date: Wed, 28 Mar 2018 18:36:27 +1100 Subject: [PATCH] fix up for struct file no longer being available in shm.h Signed-off-by: Stephen Rothwell --- include/linux/shm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/shm.h b/include/linux/shm.h index 3a8eae3ca33c..d8e69aed3d32 100644 --- a/include/linux/shm.h +++ b/include/linux/shm.h @@ -7,6 +7,8 @@ #include #include =20 +struct file; + #ifdef CONFIG_SYSVIPC struct sysv_shm { struct list_head shm_clist; --=20 2.16.1 --=20 Cheers, Stephen Rothwell --Sig_/v4.foYZPa8UEMEN4NoXkpfH Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlq7RyUACgkQAVBC80lX 0GzdFwgAmqFjHLk1tRKi8FtbIYW/3ZpBRnp4V+QZnP2hYg3gpdzTEmxt2XZjKvi7 sqWfzsZBlKkxSYIg9zsM3zbl/9cmm2+ZGgoUqZu/YB70jHYGOE/D+z0XK8nJ+WNZ XB/wlawGMi4fndOQhq0gg5BiuNN0GZZs6na77Ec4KbAvOv9nC5ttDbWU3L+jsTSs WmJuqy4DznkPXZB0jhbRtweMKH8W2sqyoKy6M0ilMQFUbWOpvdXEhCVWg0dKZpz3 Kf4VJbLDhaPViJRH72RjLk2U0YNhLzERh+u9OHynxbOw0DeMIuHoJoT7C2Lxrea8 DXWMkwVk7z61D1ZPwKsa/c1WFB0IHA== =HScI -----END PGP SIGNATURE----- --Sig_/v4.foYZPa8UEMEN4NoXkpfH--