staging: tidspbridge: fix build errors for OMAP2_L4_IO_ADDRESS
PATCH 1/1 staging: tidspbridge: fix build errors for OMAP2_L4_IO_ADDRESS
drivers/staging/tidspbridge/core/tiomap3430.c: In function 'bridge_brd_start':drivers/staging/tidspbridge/core/tiomap3430.c:425: error: implicit declaration of function 'OMAP2_L4_IO_ADDRESS' drivers/staging/tidspbridge/core/wdt.c: In function 'dsp_wdt_init':drivers/staging/tidspbridge/core/wdt.c:56: error: implicit declaration of function 'OMAP2_L4_IO_ADDRESS'
The proper fix will come later.
--- drivers/staging/tidspbridge/include/dspbridge/dbdefs.h | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/staging/tidspbridge/include/dspbridge/dbdefs.h +8 -0
@@ -28,6 +28,14 @@#define PG_ALIGN_LOW (addr, pg_size) ((addr) & PG_MASK(pg_size))#define PG_ALIGN_HIGH (addr, pg_size) (((addr)+(pg_size)-1) & PG_MASK(pg_size)) +/* +* NOTE: Please update to use ioremap + read/write +*/ + +#define OMAP2_L4_IO_OFFSET 0xb2000000 +#define IOMEM (x) ((void __force __iomem *)(x)) +#define OMAP2_L4_IO_ADDRESS (pa) IOMEM((pa) + OMAP2_L4_IO_OFFSET) +/* API return value and calling convention */ #define DBAPI int
Signature · 1 line
1.7.10
PATCH 1/1 staging: tidspbridge: fix build errors for OMAP2_L4_IO_ADDRESS
Quoted 6 lines · Felipe Contreras
drivers/staging/tidspbridge/core/tiomap3430.c: In function 'bridge_brd_start':drivers/staging/tidspbridge/core/tiomap3430.c:425: error: implicit declaration of function 'OMAP2_L4_IO_ADDRESS'drivers/staging/tidspbridge/core/wdt.c: In function 'dsp_wdt_init':drivers/staging/tidspbridge/core/wdt.c:56: error: implicit declaration of function 'OMAP2_L4_IO_ADDRESS'The proper fix will come later.
Hmm. Given that this is staging stuff, which hasn't been making much progress out of staging, I'd suggest not doing the quick fix on it, but spending the time to implement the proper fix now and move the code closer to the point where it can move out of staging. You might get a gold star from Greg for moving this forward...
PATCH 1/1 staging: tidspbridge: fix build errors for OMAP2_L4_IO_ADDRESS
Quoted 6 lines · Russell King - ARM Linux
Quoted 5 lines · Felipe Contreras
drivers/staging/tidspbridge/core/tiomap3430.c: In function 'bridge_brd_start':drivers/staging/tidspbridge/core/tiomap3430.c:425: error: implicit declaration of function 'OMAP2_L4_IO_ADDRESS'drivers/staging/tidspbridge/core/wdt.c: In function 'dsp_wdt_init':drivers/staging/tidspbridge/core/wdt.c:56: error: implicit declaration of function 'OMAP2_L4_IO_ADDRESS'
Quoted 6 lines
Quoted 1 line
The proper fix will come later.
Hmm. ?Given that this is staging stuff, which hasn't been making much progress out of staging, I'd suggest not doing the quick fix on it, but spending the time to implement the proper fix now and move the code closer to the point where it can move out of staging.
Omar is already on that.
Quoted 1 line
You might get a gold star from Greg for moving this forward...
In my experience gold stars from Greg mean nothing.
Cheers.
Signature · 1 line
Felipe Contreras