Skip to content

Commit 035d3c7

Browse files
ffainelliakpm00
authored andcommitted
tools/mm: fix build warnings with musl-libc
musl-libc warns about the following: /home/florian/dev/buildroot/output/arm64/rpi4-b/host/aarch64-buildroot-linux-musl/sysroot/usr/include/sys/errno.h:1:2: attention: #warning redirecting incorrect #include <sys/errno.h> to <errno.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/errno.h> to <errno.h> | ^~~~~~~ /home/florian/dev/buildroot/output/arm64/rpi4-b/host/aarch64-buildroot-linux-musl/sysroot/usr/include/sys/fcntl.h:1:2: attention: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> | ^~~~~~~ include errno.h and fcntl.h directly. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 3219585 commit 035d3c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/mm/page-types.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#include <signal.h>
2525
#include <inttypes.h>
2626
#include <sys/types.h>
27-
#include <sys/errno.h>
28-
#include <sys/fcntl.h>
27+
#include <errno.h>
28+
#include <fcntl.h>
2929
#include <sys/mount.h>
3030
#include <sys/statfs.h>
3131
#include <sys/mman.h>

0 commit comments

Comments
 (0)