Subject: cell: sparse annotations for axon_dcr Signed-off-by: Arnd Bergmann Index: linux-2.6/arch/powerpc/platforms/cell/axon_dcr.c =================================================================== --- linux-2.6.orig/arch/powerpc/platforms/cell/axon_dcr.c +++ linux-2.6/arch/powerpc/platforms/cell/axon_dcr.c @@ -132,7 +132,7 @@ u64 of_translate_dcr_address(struct devi } EXPORT_SYMBOL(of_translate_dcr_address); -void *dcr_find_controller(struct device_node * node) +void __iomem *dcr_find_controller(struct device_node * node) { u64 addr = of_translate_dcr_address(node, NULL); Index: linux-2.6/include/asm-powerpc/dcr.h =================================================================== --- linux-2.6.orig/include/asm-powerpc/dcr.h +++ linux-2.6/include/asm-powerpc/dcr.h @@ -23,7 +23,7 @@ #include #if defined(CONFIG_40x) || defined(CONFIG_BOOKE) -inline void *dcr_find_controller(struct device_node *node) +static inline void __iomem *dcr_find_controller(struct device_node *node) { return NULL; @@ -31,12 +31,12 @@ inline void *dcr_find_controller(struct #include -inline u32 dcr_read(void *, int dcr_n) +static inline u32 dcr_read(void *, int dcr_n) { return mfdcr(dcr_n); } -inline void dcr_write(void *, int dcr_n, u32 value) +static inline void dcr_write(void *, int dcr_n, u32 value) { mtdcr(dcr_n, value); } @@ -46,7 +46,7 @@ inline void dcr_write(void *, int dcr_n, given a DCR based device node, search up the dt for the "owning" dcr controller node and return its token */ -extern void *dcr_find_controller(struct device_node *); +extern void __iomem *dcr_find_controller(struct device_node *); extern u32 dcr_read(void *, int); extern void dcr_write(void *, int, u32);