All of lore.kernel.org
 help / color / mirror / Atom feed
From: sboyd@codeaurora.org (Stephen Boyd)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: Use asm-generic/sizes.h
Date: Tue, 22 Mar 2011 20:16:38 -0700	[thread overview]
Message-ID: <4D896616.7070307@codeaurora.org> (raw)
In-Reply-To: <00fc01cbe8f9$cd807640$688162c0$@mprc.pku.edu.cn>

On 03/22/2011 06:29 PM, Guan Xuetao wrote:
>> -----Original Message-----
>> From: Stephen Boyd [mailto:sboyd at codeaurora.org]
>> Sent: Wednesday, March 23, 2011 2:40 AM
>> To: Guan Xuetao
>> Cc: 'Arnd Bergmann'; linux-arm-kernel at lists.infradead.org; 'Russell King - ARM Linux'; linux-kernel at vger.kernel.org
>> Subject: Re: [PATCH] ARM: Use asm-generic/sizes.h
>> Ah, I didn't notice this part. SZ_48M is actually used by ARM code so
>> that would need to be added to the generic header should we go with this
>> patch.
> 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.

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

WARNING: multiple messages have this Message-ID (diff)
From: Stephen Boyd <sboyd@codeaurora.org>
To: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: "'Russell King - ARM Linux'" <linux@arm.linux.org.uk>,
	linux-arm-kernel@lists.infradead.org,
	"'Arnd Bergmann'" <arnd@arndb.de>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ARM: Use asm-generic/sizes.h
Date: Tue, 22 Mar 2011 20:16:38 -0700	[thread overview]
Message-ID: <4D896616.7070307@codeaurora.org> (raw)
In-Reply-To: <00fc01cbe8f9$cd807640$688162c0$@mprc.pku.edu.cn>

On 03/22/2011 06:29 PM, Guan Xuetao wrote:
>> -----Original Message-----
>> From: Stephen Boyd [mailto:sboyd@codeaurora.org]
>> Sent: Wednesday, March 23, 2011 2:40 AM
>> To: Guan Xuetao
>> Cc: 'Arnd Bergmann'; linux-arm-kernel@lists.infradead.org; 'Russell King - ARM Linux'; linux-kernel@vger.kernel.org
>> Subject: Re: [PATCH] ARM: Use asm-generic/sizes.h
>> Ah, I didn't notice this part. SZ_48M is actually used by ARM code so
>> that would need to be added to the generic header should we go with this
>> patch.
> 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.

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.


  reply	other threads:[~2011-03-23  3:16 UTC|newest]

Thread overview: 22+ 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-21 23:51 ` Stephen Boyd
2011-03-22  8:34 ` Arnd Bergmann
2011-03-22  8:34   ` Arnd Bergmann
2011-03-22  9:21   ` Russell King - ARM Linux
2011-03-22  9:21     ` Russell King - ARM Linux
2011-03-22 10:10     ` Arnd Bergmann
2011-03-22 10:10       ` Arnd Bergmann
2011-03-22 13:43       ` Guan Xuetao
2011-03-22 13:43         ` Guan Xuetao
2011-03-22 18:39         ` Stephen Boyd
2011-03-22 18:39           ` Stephen Boyd
2011-03-23  1:29           ` Guan Xuetao
2011-03-23  1:29             ` Guan Xuetao
2011-03-23  3:16             ` Stephen Boyd [this message]
2011-03-23  3:16               ` Stephen Boyd
2011-03-23  4:07               ` Paul Mundt
2011-03-23  4:07                 ` Paul Mundt
2011-03-23  8:30               ` Guan Xuetao
2011-03-23  8:30                 ` Guan Xuetao
2011-03-23 14:31                 ` Sam Ravnborg
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=4D896616.7070307@codeaurora.org \
    --to=sboyd@codeaurora.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.