From: Stephen Hemminger <stephen@networkplumber.org>
To: Hauke Mehrtens <hauke@hauke-m.de>
Cc: netdev@vger.kernel.org, heiko.thiery@gmail.com
Subject: Re: [PATCH iproute2] configure: Remove include <sys/stat.h>
Date: Wed, 21 Dec 2022 19:25:25 -0800 [thread overview]
Message-ID: <20221221192525.5b02610d@hermes.local> (raw)
In-Reply-To: <20221221225304.3477126-1-hauke@hauke-m.de>
On Wed, 21 Dec 2022 23:53:04 +0100
Hauke Mehrtens <hauke@hauke-m.de> wrote:
> The check_name_to_handle_at() function in the configure script is
> including sys/stat.h. This include fails with glibc 2.36 like this:
> ````
> In file included from /linux-5.15.84/include/uapi/linux/stat.h:5,
> from /toolchain-x86_64_gcc-12.2.0_glibc/include/bits/statx.h:31,
> from /toolchain-x86_64_gcc-12.2.0_glibc/include/sys/stat.h:465,
> from config.YExfMc/name_to_handle_at_test.c:3:
> /linux-5.15.84/include/uapi/linux/types.h:10:2: warning: #warning "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders" [-Wcpp]
> 10 | #warning "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders"
> | ^~~~~~~
> In file included from /linux-5.15.84/include/uapi/linux/posix_types.h:5,
> from /linux-5.15.84/include/uapi/linux/types.h:14:
> /linux-5.15.84/include/uapi/linux/stddef.h:5:10: fatal error: linux/compiler_types.h: No such file or directory
> 5 | #include <linux/compiler_types.h>
> | ^~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> ````
>
> Just removing the include works, the manpage of name_to_handle_at() says
> only fcntl.h is needed.
>
> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Please add a Fixes tag.
Fixes: c5b72cc56bf8 ("lib/fs: fix issue when {name,open}_to_handle_at() is not implemented")
Cc: heiko.thiery@gmail.com
next prev parent reply other threads:[~2022-12-22 3:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-21 22:53 [PATCH iproute2] configure: Remove include <sys/stat.h> Hauke Mehrtens
2022-12-22 3:25 ` Stephen Hemminger [this message]
2022-12-23 6:30 ` Heiko Thiery
2022-12-23 17:05 ` Hauke Mehrtens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221221192525.5b02610d@hermes.local \
--to=stephen@networkplumber.org \
--cc=hauke@hauke-m.de \
--cc=heiko.thiery@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox