[PATCH -next v2] powerpc/mpic_msgr: fix cast removes address space of expression warnings

Michael Ellerman patch-notifications at ellerman.id.au
Wed Nov 30 20:24:08 AEDT 2022


On Wed, 19 Oct 2022 14:34:14 +0800, ruanjinjie wrote:
> When build Linux kernel, encounter the following warnings:
> 
> ./arch/powerpc/sysdev/mpic_msgr.c:230:38: warning: cast removes address space '__iomem' of expression
> ./arch/powerpc/sysdev/mpic_msgr.c:230:27: warning: incorrect type in assignment (different address spaces)
> 
> The data type of msgr->mer and msgr->base are 'u32 __iomem *', but
> converted to 'u32 *' and 'u8 *' directly and cause above warnings, now
> instead of using a type cast, change the size of the pointer offset to fix
> these warnings.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/mpic_msgr: fix cast removes address space of expression warnings
      https://git.kernel.org/powerpc/c/16a3f41ff3322830683d3ccc14d77736829c61bf

cheers


More information about the Linuxppc-dev mailing list