linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Minor PXA fixes
@ 2011-11-04 11:30 Russell King - ARM Linux
  2011-11-04 11:30 ` [PATCH 1/2] ARM: PXA: fix lubbock PCMCIA driver build error Russell King - ARM Linux
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Russell King - ARM Linux @ 2011-11-04 11:30 UTC (permalink / raw)
  To: linux-arm-kernel

Eric,

Here's a couple of fixes I have queued in my tree for some PXA build
problems I found after kernel summit.  Do you want to pick them up,
or shall I send them to Linus in the next couple of days along with
the other fixes I have queued?

Thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] ARM: PXA: fix lubbock PCMCIA driver build error
  2011-11-04 11:30 [PATCH 0/2] Minor PXA fixes Russell King - ARM Linux
@ 2011-11-04 11:30 ` Russell King - ARM Linux
  2011-11-04 11:31 ` [PATCH 2/2] ARM: PXA: eseries: fix eseries_register_clks section mismatch warning Russell King - ARM Linux
       [not found] ` <CAMPhdO-t0mJb2U+1eutKA4YRwCXsr2smLNKDw_a7T+TJXLbmvQ@mail.gmail.com>
  2 siblings, 0 replies; 6+ messages in thread
From: Russell King - ARM Linux @ 2011-11-04 11:30 UTC (permalink / raw)
  To: linux-arm-kernel

Fix:

ERROR: "pxa2xx_configure_sockets" [drivers/pcmcia/pxa2xx_lubbock_cs.ko] undefined!

by exporting the required function.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
 drivers/pcmcia/pxa2xx_base.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/pcmcia/pxa2xx_base.c b/drivers/pcmcia/pxa2xx_base.c
index 2c54054..a87e272 100644
--- a/drivers/pcmcia/pxa2xx_base.c
+++ b/drivers/pcmcia/pxa2xx_base.c
@@ -231,6 +231,7 @@ void pxa2xx_configure_sockets(struct device *dev)
 
 	__raw_writel(mecr, MECR);
 }
+EXPORT_SYMBOL(pxa2xx_configure_sockets);
 
 static const char *skt_names[] = {
 	"PCMCIA socket 0",
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] ARM: PXA: eseries: fix eseries_register_clks section mismatch warning
  2011-11-04 11:30 [PATCH 0/2] Minor PXA fixes Russell King - ARM Linux
  2011-11-04 11:30 ` [PATCH 1/2] ARM: PXA: fix lubbock PCMCIA driver build error Russell King - ARM Linux
@ 2011-11-04 11:31 ` Russell King - ARM Linux
       [not found] ` <CAMPhdO-t0mJb2U+1eutKA4YRwCXsr2smLNKDw_a7T+TJXLbmvQ@mail.gmail.com>
  2 siblings, 0 replies; 6+ messages in thread
From: Russell King - ARM Linux @ 2011-11-04 11:31 UTC (permalink / raw)
  To: linux-arm-kernel

Fix:

WARNING: vmlinux.o(.text+0x1a820): Section mismatch in reference from the function eseries_register_clks() to the function .init.text:clkdev_add_table()
The function eseries_register_clks() references
the function __init clkdev_add_table().
This is often because eseries_register_clks lacks a __init
annotation or the annotation of clkdev_add_table is wrong.

by adding the __init annotation to eseries_register_clks() - this
function is only called from other __init-marked functions.  While
we're here, mark it static as it's only called from within eseries.c.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
 arch/arm/mach-pxa/eseries.c |    2 +-
 arch/arm/mach-pxa/eseries.h |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-pxa/eseries.c b/arch/arm/mach-pxa/eseries.c
index e4a1f4d..55f8e3f 100644
--- a/arch/arm/mach-pxa/eseries.c
+++ b/arch/arm/mach-pxa/eseries.c
@@ -144,7 +144,7 @@ static struct clk_lookup eseries_clkregs[] = {
 	INIT_CLKREG(&tmio_dummy_clk, NULL, "CLK_CK32K"),
 };
 
-void eseries_register_clks(void)
+static void __init eseries_register_clks(void)
 {
 	clkdev_add_table(eseries_clkregs, ARRAY_SIZE(eseries_clkregs));
 }
diff --git a/arch/arm/mach-pxa/eseries.h b/arch/arm/mach-pxa/eseries.h
index be92196..b96949d 100644
--- a/arch/arm/mach-pxa/eseries.h
+++ b/arch/arm/mach-pxa/eseries.h
@@ -11,5 +11,4 @@ extern int eseries_tmio_resume(struct platform_device *dev);
 extern void eseries_get_tmio_gpios(void);
 extern struct resource eseries_tmio_resources[];
 extern struct platform_device e300_tc6387xb_device;
-extern void eseries_register_clks(void);
 
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 0/2] Minor PXA fixes
       [not found] ` <CAMPhdO-t0mJb2U+1eutKA4YRwCXsr2smLNKDw_a7T+TJXLbmvQ@mail.gmail.com>
@ 2011-11-05 22:28   ` Russell King - ARM Linux
  2011-11-05 22:29     ` [PATCH 1/2] ARM: PXA: fix gpio-pxa.h build errors Russell King - ARM Linux
  2011-11-05 22:29     ` [PATCH 2/2] ARM: PXA: fix includes in pxa2xx_cm_x2xx PCMCIA driver Russell King - ARM Linux
  0 siblings, 2 replies; 6+ messages in thread
From: Russell King - ARM Linux @ 2011-11-05 22:28 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Nov 05, 2011 at 10:13:31PM +0800, Eric Miao wrote:
> On Friday, November 4, 2011, Russell King - ARM Linux <
> linux at arm.linux.org.uk> wrote:
> > Eric,
> >
> > Here's a couple of fixes I have queued in my tree for some PXA build
> > problems I found after kernel summit.  Do you want to pick them up,
> > or shall I send them to Linus in the next couple of days along with
> > the other fixes I have queued?
> >
> 
> Russell,
> 
> Please go ahead and send to Linus directly, really appreciated.
> 
> The patches are good, feel free to put my Acked-by.

Thanks.  Two more follow.  First is a build error with the latest kernel,
the second is one which is caused by touching mach/system.h (as the commit
log describes why including mach/system.h is wrong.)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] ARM: PXA: fix gpio-pxa.h build errors
  2011-11-05 22:28   ` [PATCH 0/2] Minor PXA fixes Russell King - ARM Linux
@ 2011-11-05 22:29     ` Russell King - ARM Linux
  2011-11-05 22:29     ` [PATCH 2/2] ARM: PXA: fix includes in pxa2xx_cm_x2xx PCMCIA driver Russell King - ARM Linux
  1 sibling, 0 replies; 6+ messages in thread
From: Russell King - ARM Linux @ 2011-11-05 22:29 UTC (permalink / raw)
  To: linux-arm-kernel

A mismerge in 43872fa (Merge branch 'depends/rmk/gpio' into next/fixes)
causes these build errors:

In file included from arch/arm/mach-pxa/include/mach/gpio.h:30,
                 from arch/arm/include/asm/gpio.h:6,
                 from include/linux/gpio.h:31,
                 from arch/arm/mach-pxa/generic.c:20:
arch/arm/mach-pxa/include/mach/gpio-pxa.h: In function ?__gpio_is_occupied?:
arch/arm/mach-pxa/include/mach/gpio-pxa.h:121: error: invalid operands to binary >> (have ?void *? and ?unsigned int?)
arch/arm/mach-pxa/include/mach/gpio-pxa.h:122: error: invalid operands to binary & (have ?void *? and ?int?)
arch/arm/mach-pxa/include/mach/gpio-pxa.h:129: error: invalid operands to binary & (have ?void *? and ?int?)

So fix them.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
 arch/arm/mach-pxa/include/mach/gpio-pxa.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-pxa/include/mach/gpio-pxa.h b/arch/arm/mach-pxa/include/mach/gpio-pxa.h
index 576868f..41b4c93 100644
--- a/arch/arm/mach-pxa/include/mach/gpio-pxa.h
+++ b/arch/arm/mach-pxa/include/mach/gpio-pxa.h
@@ -25,7 +25,7 @@
 #define GPIO_REGS_VIRT	io_p2v(0x40E00000)
 
 #define BANK_OFF(n)	(((n) < 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2))
-#define GPIO_REG(x)	(GPIO_REGS_VIRT + (x))
+#define GPIO_REG(x)	(*(volatile u32 *)(GPIO_REGS_VIRT + (x)))
 
 /* GPIO Pin Level Registers */
 #define GPLR0		GPIO_REG(BANK_OFF(0) + 0x00)
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] ARM: PXA: fix includes in pxa2xx_cm_x2xx PCMCIA driver
  2011-11-05 22:28   ` [PATCH 0/2] Minor PXA fixes Russell King - ARM Linux
  2011-11-05 22:29     ` [PATCH 1/2] ARM: PXA: fix gpio-pxa.h build errors Russell King - ARM Linux
@ 2011-11-05 22:29     ` Russell King - ARM Linux
  1 sibling, 0 replies; 6+ messages in thread
From: Russell King - ARM Linux @ 2011-11-05 22:29 UTC (permalink / raw)
  To: linux-arm-kernel

The includes in the pxa2xx_cm_x2xx PCMCIA driver are rather random;
the driver doesn't require anything from these headers except the
cpu_is_xxx() macros which come from another include.

The concern is that it's getting these definitions via mach/system.h,
which is supposed to only be included by arch/arm/kernel/process.c.
As this header is scheduled for cleanup (and elimination) keeping
the status quo will cause build errors.  So lets fix properly and
independent of the future work.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
 drivers/pcmcia/pxa2xx_cm_x2xx.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/pcmcia/pxa2xx_cm_x2xx.c b/drivers/pcmcia/pxa2xx_cm_x2xx.c
index 4f09506..6e7dcfd 100644
--- a/drivers/pcmcia/pxa2xx_cm_x2xx.c
+++ b/drivers/pcmcia/pxa2xx_cm_x2xx.c
@@ -12,9 +12,8 @@
 
 #include <linux/module.h>
 
-#include <asm/system.h>
 #include <asm/mach-types.h>
-#include <mach/system.h>
+#include <mach/hardware.h>
 
 int cmx255_pcmcia_init(void);
 int cmx270_pcmcia_init(void);
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-11-05 22:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-04 11:30 [PATCH 0/2] Minor PXA fixes Russell King - ARM Linux
2011-11-04 11:30 ` [PATCH 1/2] ARM: PXA: fix lubbock PCMCIA driver build error Russell King - ARM Linux
2011-11-04 11:31 ` [PATCH 2/2] ARM: PXA: eseries: fix eseries_register_clks section mismatch warning Russell King - ARM Linux
     [not found] ` <CAMPhdO-t0mJb2U+1eutKA4YRwCXsr2smLNKDw_a7T+TJXLbmvQ@mail.gmail.com>
2011-11-05 22:28   ` [PATCH 0/2] Minor PXA fixes Russell King - ARM Linux
2011-11-05 22:29     ` [PATCH 1/2] ARM: PXA: fix gpio-pxa.h build errors Russell King - ARM Linux
2011-11-05 22:29     ` [PATCH 2/2] ARM: PXA: fix includes in pxa2xx_cm_x2xx PCMCIA driver 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).