Skip to contentSkip to conversation

linux-next: build failure after merge of the pci tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Oct 17, 2021 – Oct 18, 2021 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the pci tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

drivers/misc/cxl/pci.c: In function 'cxl_vphb_error_detected':
drivers/misc/cxl/pci.c:1816:15: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
1816 | err_handler = afu_drv->err_handler;
| ^
drivers/misc/cxl/pci.c: In function 'cxl_pci_slot_reset':
drivers/misc/cxl/pci.c:2041:16: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
2041 | err_handler = afu_drv->err_handler;
| ^
drivers/misc/cxl/pci.c: In function 'cxl_pci_resume':
drivers/misc/cxl/pci.c:2090:16: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
2090 | err_handler = afu_drv->err_handler;
| ^
cc1: all warnings being treated as errors

Caused by commit

115c9d41e583 ("cxl: Factor out common dev->driver expressions")

I have used the pci tree from next-20211015 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 19 lines · Stephen Rothwell

Hi all,

After merging the pci tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:

drivers/misc/cxl/pci.c: In function 'cxl_vphb_error_detected':
drivers/misc/cxl/pci.c:1816:15: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
1816 | err_handler = afu_drv->err_handler;
| ^
drivers/misc/cxl/pci.c: In function 'cxl_pci_slot_reset':
drivers/misc/cxl/pci.c:2041:16: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
2041 | err_handler = afu_drv->err_handler;
| ^
drivers/misc/cxl/pci.c: In function 'cxl_pci_resume':
drivers/misc/cxl/pci.c:2090:16: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
2090 | err_handler = afu_drv->err_handler;
| ^
cc1: all warnings being treated as errors

Quoted 5 lines

Caused by commit

115c9d41e583 ("cxl: Factor out common dev->driver expressions")

I have used the pci tree from next-20211015 for today.

Sorry about this. I think I fixed it and updated my -next branch.