aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorHu Yadi <[email protected]>2024-01-12 15:40:59 +0800
committerChristian Brauner <[email protected]>2024-01-22 15:33:37 +0100
commit0f05ee447949cf1b72bd7c415c803ea7f7209403 (patch)
tree832fe42ecf30565cd0fd313f06083aab5903ad23 /lib/debugobjects.c
parent8b3d838139bcd1e552f1899191f734264ce2a1a5 (diff)
selftests/filesystems:fix build error in overlayfs
One build issue comes up due to both mount.h included dev_in_maps.c In file included from dev_in_maps.c:10: /usr/include/sys/mount.h:35:3: error: expected identifier before numeric constant 35 | MS_RDONLY = 1, /* Mount read-only. */ | ^~~~~~~~~ In file included from dev_in_maps.c:13: Remove one of them to solve conflict, another error comes up: dev_in_maps.c:170:6: error: implicit declaration of function ‘mount’ [-Werror=implicit-function-declaration] 170 | if (mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL) == -1) { | ^~~~~ cc1: all warnings being treated as errors and then , add sys_mount definition to solve it After both above, dev_in_maps.c can be built correctly on my mache(gcc 10.2,glibc-2.32,kernel-5.10) Signed-off-by: Hu Yadi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Andrei Vagin <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions