From: lethal@linux-sh.org (Paul Mundt)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: Use asm-generic/sizes.h
Date: Wed, 23 Mar 2011 13:07:04 +0900 [thread overview]
Message-ID: <20110323040704.GA15808@linux-sh.org> (raw)
In-Reply-To: <4D896616.7070307@codeaurora.org>
On Tue, Mar 22, 2011 at 08:16:38PM -0700, Stephen Boyd wrote:
> On 03/22/2011 06:29 PM, Guan Xuetao wrote:
> > IMO, the content of asm-generic/sizes.h should only include
> > power-of-2 sizes definitions. And SZ_48M could be replaced by
> > (SZ_32M | SZ_16M) or (SZ_32M + SZ_16M), or added to arch-specific
> > headers.
>
> I'm hoping that kbuild gets asm-generic support sometime soon so files
> with only a "#include <asm-generic/*>" are generated instead of living
> in the tree. In that case I'd rather have the non power of 2 constants
> added to the generic sizes.h and be done with it. There isn't any strong
> technical reason to deny power of 2 constants from the generic header,
> right?
>
> Note: SH could also move to this if SZ_26M is put in the generic header.
>
I since dropped it and just open-coded it in the one place it was being
used. If it had been used in more places I would have stubbed it in the
asm/ version after the asm-generic include.
I'd say the simplest is to stay with powers of 2 unless you have a size
that is used in more than one place. If ARM uses SZ_48M commonly then
there's certainly a good case for adding it generically.
next prev parent reply other threads:[~2011-03-23 4:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-21 23:51 [PATCH] ARM: Use asm-generic/sizes.h Stephen Boyd
2011-03-22 8:34 ` Arnd Bergmann
2011-03-22 9:21 ` Russell King - ARM Linux
2011-03-22 10:10 ` Arnd Bergmann
2011-03-22 13:43 ` Guan Xuetao
2011-03-22 18:39 ` Stephen Boyd
2011-03-23 1:29 ` Guan Xuetao
2011-03-23 3:16 ` Stephen Boyd
2011-03-23 4:07 ` Paul Mundt [this message]
2011-03-23 8:30 ` Guan Xuetao
2011-03-23 14:31 ` Sam Ravnborg
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=20110323040704.GA15808@linux-sh.org \
--to=lethal@linux-sh.org \
--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).