From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64: Move struct stat64 to uapi.
Date: Tue, 15 Jul 2014 09:20:40 +0100 [thread overview]
Message-ID: <20140715082040.GB24269@arm.com> (raw)
In-Reply-To: <1405409946-1790-1-git-send-email-ijc@hellion.org.uk>
Hi Ian,
On Tue, Jul 15, 2014 at 08:39:06AM +0100, Ian Campbell wrote:
> This struct is part of the user API for compat tasks so I think it belongs in
> uapi and should use the __uFOO types.
I don't think we should be exposing compat structures through the arm64
UAPI. Compat tasks should be built against the native arm headers and
nothing else.
What happens if you turn compat off (CONFIG_COMPAT=n)?
> This was exposed by the Debian kernel's application of the aufs patches which
> led to:
>
> In file included from /?PKGBUILDDIR?/include/linux/mm.h:23:0,
> from /?PKGBUILDDIR?/include/linux/pid_namespace.h:6,
> from /?PKGBUILDDIR?/include/linux/ptrace.h:9,
> from /?PKGBUILDDIR?/arch/arm64/include/asm/compat.h:26,
> from /?PKGBUILDDIR?/arch/arm64/include/asm/stat.h:23,
> from /?PKGBUILDDIR?/include/linux/stat.h:5,
> from /?PKGBUILDDIR?/include/linux/module.h:10,
> from /?PKGBUILDDIR?/init/main.c:15:
> /?PKGBUILDDIR?/include/linux/fs.h:1575:64: warning: 'struct kstat' declared inside parameter list [enabled by default]
> int (*getattr) (struct vfsmount *mnt, struct dentry *, struct kstat *);
> ^
> /?PKGBUILDDIR?/include/linux/fs.h:1575:64: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
>
> This is due to an extra fs.h include added to mm.h. arm64 was the only arch built by
> Debian which had an issue with this, so I think it is an issue with the arm64
> headers rather than the aufs patches.
Hmm, but struct kstat is defined in linux/stat.h so I'm not sure why this is
arm64-specific. linux/fs.h includes that on line 10.
Can you help me unconfuse myself, please?
Will
next prev parent reply other threads:[~2014-07-15 8:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-15 7:39 [PATCH] arm64: Move struct stat64 to uapi Ian Campbell
2014-07-15 8:20 ` Will Deacon [this message]
2014-07-15 10:33 ` Ian Campbell
2014-07-16 13:27 ` Will Deacon
2014-07-16 15:50 ` Ian Campbell
2014-07-16 14:00 ` Arnd Bergmann
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=20140715082040.GB24269@arm.com \
--to=will.deacon@arm.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).