From: Arnd Bergmann <arnd@arndb.de>
To: Guan Xuetao <guanxuetao@mprc.pku.edu.cn>
Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] asm-generic headers: modify stat.h in include/asm-generic to be applicable to more architectures
Date: Sun, 9 Jan 2011 01:28:25 +0100 [thread overview]
Message-ID: <201101090128.25371.arnd@arndb.de> (raw)
In-Reply-To: <024501cbaf37$4e479fd0$ead6df70$@mprc.pku.edu.cn>
On Saturday 08 January 2011, Guan Xuetao wrote:
> From: Guan Xuetao <guanxuetao@mprc.pku.edu.cn>
>
> This patch modifies stat.h in include/asm-generic to be applicable to more architectures.
> STAT64_HAS_BROKEN_ST_INO is defined in most architecture's asm/stat.h, and it need
> 32-bit __st_ino member to be defined in different position of 64-bit st_ino member.
> STAT64_PAD_BEFORE_ST_SIZE is the pad before st_size member, with default value 8 bytes.
> STAT64_PAD_BEFORE_ST_BLOCKS is the pad before st_blocks member, with default value
> 4 bytes to align the following member to 64-bit.
I'd prefer not to apply this patch. It makes the generic header
significantly more complex, and I can't see a significant benefit.
The existing architectures would all still have to define the macros
you test and also keep defining stuff like __old_kernel_stat, while
risking to introduce bugs while changing to the common header. We've
done similar tricks in other places, where the differences between
architectures are smaller, but this one doesn't seem worth it
unless we can get to the point where we can define struct stat in
linux/stat.h for everyone and only do the macros for the architectures
that need it.
Arnd
next prev parent reply other threads:[~2011-01-09 0:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-08 13:23 [PATCH] asm-generic headers: modify stat.h in include/asm-generic to be applicable to more architectures Guan Xuetao
2011-01-09 0:28 ` Arnd Bergmann [this message]
2011-01-09 0:28 ` Arnd Bergmann
2011-01-10 13:58 ` Guan Xuetao
2011-01-11 4:40 ` Arnd Bergmann
2011-01-11 8:50 ` Guan Xuetao
[not found] ` <lapr25MsLHA.5972@exchange1.tad.internal.tilera.com>
2011-01-17 4:27 ` Chris Metcalf
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=201101090128.25371.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=guanxuetao@mprc.pku.edu.cn \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@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;
as well as URLs for NNTP newsgroup(s).