diff options
| author | ruanjinjie <ruanjinjie@huawei.com> | 2022-10-19 14:34:14 +0800 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-11-24 23:31:49 +1100 |
| commit | 16a3f41ff3322830683d3ccc14d77736829c61bf (patch) | |
| tree | d9447361f87918d35f0cc18ecd3f6a496363f581 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | powerpc/xive: add missing iounmap() in error path in xive_spapr_populate_irq_... (diff) | |
| download | linux-16a3f41ff3322830683d3ccc14d77736829c61bf.tar.gz linux-16a3f41ff3322830683d3ccc14d77736829c61bf.zip | |
powerpc/mpic_msgr: fix cast removes address space of expression warnings
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.
Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221019063414.3758087-1-ruanjinjie@huawei.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
