mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
configfs: Fixes for v7.4-rc2
- Fix the build of the configfs selftest on 32-bit architectures, broken since the test was added in the v7.4 merge window. The harness casts the ASSERT_NE() operands to intmax_t, so handing it the pointer returned by mkdtemp() triggers gcc's pointer-to-int-cast warning on 32-bit, and the test builds with -Werror. KernelCI's 32-bit arm kselftest builds hit this. -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEErIU5puj0ZwLKSkObNaOTn/x4d20FAmrt/jgACgkQNaOTn/x4 d21yQw//cPeD23ovXeLJQph2ajMY+TN8AOUROEUUy5W+QHTFmlb4tcq6/yxQ9yc5 UdvS5apZHoXzpAwlC1jko5OusE6iq9M2appewJsW/YF2Dl6to2rD16hFQguW6ove ftUb0k/xCl+HJ6Ac1qbGl2EUwHzCi5kp/swObI4hmZK3aN6bSYJtl2tfa11O56El c+bUW/06+uiv5TfkpH0MLTZuJsqfuPqx++P7VpRfSgXp3pZkI8V92Te0IAv17rQT PElqBKOJLLXxn8EN6XX/WrUXqg+yTVt6kkx4EivD8bqwzQBT6npvpvaE8Tjjh8EG Jn/MnuJgoo8lFHLf7P6+kK48Aa+cfvPU9sPdvdvAmlJHTmNJsqO4NCeIddmgAXP1 kVWlu+usM6ef+ZMH0imZi8iA589NuIaM5HfhWtHZ8K0M6PfRwXKf/f7p4HhytW1F gZEhkOIvFvNIDB24Log5Ge+EFeyX6K6GLLe231lSj8BBqh4Jdti6l6vgFP7dyANP j/z1kS80qXudRC1P75WAB9nARLsO6e+YbeWPTdzqZf0h1nPwEpCrApGoZqSwSCmK +HavPFHD6B5Et/DHy2HKsdh1dDUXj6mzTfSfLPflo5ptPfxvI6GXID70REft8Zd1 9dfoX7yEbsrkyYuFbPwCtTRRJE69FGgHqVZ6JQX3YxTFt+Tl+j0= =nOJZ -----END PGP SIGNATURE----- Merge tag 'configfs-7.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/leitao/linux Pull configfs fix from Breno Leitao: - Fix the build of the configfs selftest on 32-bit architectures, broken since the test was added in the v7.4 merge window. The harness casts the ASSERT_NE() operands to intmax_t, so handing it the pointer returned by mkdtemp() triggers gcc's pointer-to-int-cast warning on 32-bit, and the test builds with -Werror. KernelCI's 32-bit arm kselftest builds hit this. * tag 'configfs-7.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/leitao/linux: selftests/configfs: fix the build on 32-bit architectures
This commit is contained in:
commit
a91337fb5e
|
|
@ -122,7 +122,7 @@ FIXTURE_SETUP(configfs)
|
|||
ASSERT_EQ(unshare(CLONE_NEWNS), 0);
|
||||
ASSERT_EQ(mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL), 0);
|
||||
|
||||
ASSERT_NE(mkdtemp(tmpl), NULL);
|
||||
ASSERT_TRUE(mkdtemp(tmpl) != NULL);
|
||||
strcpy(self->mnt, tmpl);
|
||||
|
||||
ASSERT_EQ(mount("configfs", self->mnt, "configfs", 0, NULL), 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user