Re: linux-next: Tree for Jul 24 (arch/powerpc/platforms/embedded6xx/mvme5100.c)

From: Randy Dunlap
Date: Mon Jul 24 2023 - 19:37:58 EST




On 7/23/23 21:08, Stephen Rothwell wrote:
> Hi all,
>
> Changes since 20230721:
>

on ppc32:

../arch/powerpc/platforms/embedded6xx/mvme5100.c: In function 'mvme5100_add_bridge':
../arch/powerpc/platforms/embedded6xx/mvme5100.c:135:65: error: passing argument 5 of 'early_read_config_dword' from incompatible pointer type [-Werror=incompatible-pointer-types]
135 | early_read_config_dword(hose, 0, 0, PCI_BASE_ADDRESS_1, &pci_membase);
| ^~~~~~~~~~~~
| |
| phys_addr_t * {aka long long unsigned int *}
In file included from ../arch/powerpc/platforms/embedded6xx/mvme5100.c:19:
../arch/powerpc/include/asm/pci-bridge.h:150:53: note: expected 'u32 *' {aka 'unsigned int *'} but argument is of type 'phys_addr_t *' {aka 'long long unsigned int *'}
150 | int dev_fn, int where, u32 *val);
| ~~~~~^~~
In file included from ../include/asm-generic/bug.h:22,
from ../arch/powerpc/include/asm/bug.h:116,
from ../include/linux/bug.h:5,
from ../include/linux/thread_info.h:13,
from ../include/asm-generic/preempt.h:5,
from ./arch/powerpc/include/generated/asm/preempt.h:1,
from ../include/linux/preempt.h:79,
from ../include/linux/spinlock.h:56,
from ../include/linux/irq.h:14,
from ../include/linux/of_irq.h:7,
from ../arch/powerpc/platforms/embedded6xx/mvme5100.c:15:
../include/linux/kern_levels.h:5:25: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
../include/linux/printk.h:427:25: note: in definition of macro 'printk_index_wrap'
427 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
../include/linux/printk.h:528:9: note: in expansion of macro 'printk'
528 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
../include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
14 | #define KERN_INFO KERN_SOH "6" /* informational */
| ^~~~~~~~
../include/linux/printk.h:528:16: note: in expansion of macro 'KERN_INFO'
528 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
../arch/powerpc/platforms/embedded6xx/mvme5100.c:142:9: note: in expansion of macro 'pr_info'
142 | pr_info("mvme5100_pic_init: pci_membase: %x\n", pci_membase);
| ^~~~~~~
cc1: some warnings being treated as errors


Full randconfig file is attached.

--
~Randy

Attachment: config-r3694.gz
Description: application/gzip