* [PATCH] ARM: amba: don't include <asm/sizes.h>
@ 2012-02-16 16:05 Alessandro Rubini
2012-02-16 17:25 ` Sam Ravnborg
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Alessandro Rubini @ 2012-02-16 16:05 UTC (permalink / raw)
To: linux-arm-kernel
The file uses no SZ_* symbol and some architectures miss sizes.h
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Acked-by: Giancarlo Asnaghi <giancarlo.asnaghi@st.com>
---
There a number of files including but not using it. This one
in particular I need under x86 so the fix is trivial.
However, I remember different feelings about sizes.h . Should it die
or should it proliferate to other archs using asm-generic/sizes.h ?
drivers/amba/bus.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index 01c2cf4..928f80f 100644
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -18,7 +18,6 @@
#include <linux/amba/bus.h>
#include <asm/irq.h>
-#include <asm/sizes.h>
#define to_amba_driver(d) container_of(d, struct amba_driver, drv)
--
1.7.7.2
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] ARM: amba: don't include <asm/sizes.h>
2012-02-16 16:05 [PATCH] ARM: amba: don't include <asm/sizes.h> Alessandro Rubini
@ 2012-02-16 17:25 ` Sam Ravnborg
2012-02-16 18:20 ` Alessandro Rubini
2012-02-16 22:14 ` Russell King - ARM Linux
2 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2012-02-16 17:25 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Feb 16, 2012 at 05:05:25PM +0100, Alessandro Rubini wrote:
> The file uses no SZ_* symbol and some architectures miss sizes.h
>
> Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
> Acked-by: Giancarlo Asnaghi <giancarlo.asnaghi@st.com>
> ---
>
> There a number of files including but not using it. This one
> in particular I need under x86 so the fix is trivial.
>
> However, I remember different feelings about sizes.h . Should it die
> or should it proliferate to other archs using asm-generic/sizes.h ?
It would be good to have it included for all architectures.
It really has nothing arch specific in it so it ought to live in
include/linux:
git mv include/asm-generic include/linux
And a fix for the archs that will be broken by this.
A small wrapper in arch/$ARCH/include/asm could do the trick
And speaking of this file I sometime have missed:
#define SZ_1K_BITS 10
#define SZ_2K_BITS 11
Or something similar.
Sam
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH] ARM: amba: don't include <asm/sizes.h>
2012-02-16 16:05 [PATCH] ARM: amba: don't include <asm/sizes.h> Alessandro Rubini
2012-02-16 17:25 ` Sam Ravnborg
@ 2012-02-16 18:20 ` Alessandro Rubini
2012-02-16 22:14 ` Russell King - ARM Linux
2 siblings, 0 replies; 4+ messages in thread
From: Alessandro Rubini @ 2012-02-16 18:20 UTC (permalink / raw)
To: linux-arm-kernel
> It would be good to have it included for all architectures.
> It really has nothing arch specific in it so it ought to live in
> include/linux:
>
> git mv include/asm-generic include/linux
Ok. I can do this if it has any chance to be accepted. I find more
and more SZ_4K as I dig into my PCIe-AMBA bridge.
/alessandro
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ARM: amba: don't include <asm/sizes.h>
2012-02-16 16:05 [PATCH] ARM: amba: don't include <asm/sizes.h> Alessandro Rubini
2012-02-16 17:25 ` Sam Ravnborg
2012-02-16 18:20 ` Alessandro Rubini
@ 2012-02-16 22:14 ` Russell King - ARM Linux
2 siblings, 0 replies; 4+ messages in thread
From: Russell King - ARM Linux @ 2012-02-16 22:14 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Feb 16, 2012 at 05:05:25PM +0100, Alessandro Rubini wrote:
> The file uses no SZ_* symbol and some architectures miss sizes.h
>
> Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
> Acked-by: Giancarlo Asnaghi <giancarlo.asnaghi@st.com>
> ---
>
> There a number of files including but not using it. This one
> in particular I need under x86 so the fix is trivial.
>
> However, I remember different feelings about sizes.h . Should it die
> or should it proliferate to other archs using asm-generic/sizes.h ?
If you're going to continue with this change, please make sure you
test build Versatile Express, Versatile and Realview to ensure that
this doesn't cause breakage.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-16 22:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-16 16:05 [PATCH] ARM: amba: don't include <asm/sizes.h> Alessandro Rubini
2012-02-16 17:25 ` Sam Ravnborg
2012-02-16 18:20 ` Alessandro Rubini
2012-02-16 22:14 ` Russell King - ARM Linux
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).