mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user