]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/mm: fix build warnings with musl-libc
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Mon, 10 Feb 2025 20:05:18 +0000 (12:05 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Feb 2025 06:40:02 +0000 (22:40 -0800)
commit035d3c778709680288b3954ee896043132bc3f8d
tree69a03aa66373e406b2d3882a4ef64ae222a19477
parent3219585e894c12cbffd4ac93d3e6783d236f146e
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/20250210200518.1137295-1-florian.fainelli@broadcom.com
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/mm/page-types.c