Skip to contentSkip to conversation

linux-next: build failure after merge of the driver-core tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Nov 14, 2022 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the driver-core tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

drivers/mfd/vexpress-sysreg.c:64:51: error: initializer element is not constant
64 | .resources = (struct resource []) {
| ^
drivers/mfd/vexpress-sysreg.c:64:51: note: (near initialization for 'vexpress_sysreg_cells[0]') drivers/mfd/vexpress-sysreg.c:73:51: error: initializer element is not constant
73 | .resources = (struct resource []) {
| ^
drivers/mfd/vexpress-sysreg.c:73:51: note: (near initialization for 'vexpress_sysreg_cells[1]') drivers/mfd/vexpress-sysreg.c:82:51: error: initializer element is not constant
82 | .resources = (struct resource []) {
| ^
drivers/mfd/vexpress-sysreg.c:82:51: note: (near initialization for 'vexpress_sysreg_cells[2]') drivers/mfd/vexpress-sysreg.c:90:51: error: initializer element is not constant
90 | .resources = (struct resource []) {
| ^
drivers/mfd/vexpress-sysreg.c:90:51: note: (near initialization for 'vexpress_sysreg_cells[3]')

Caused (probably) by commit

52c4d11f1dce ("resource: Convert DEFINE_RES_NAMED() to be compound literal")

I have used the driver-core tree from next-20221111 for today.

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

Hi all,

After merging the driver-core tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

drivers/mfd/vexpress-sysreg.c:64:51: error: initializer element is not constant
64 | .resources = (struct resource []) {
| ^
drivers/mfd/vexpress-sysreg.c:64:51: note: (near initialization for 'vexpress_sysreg_cells[0]') drivers/mfd/vexpress-sysreg.c:73:51: error: initializer element is not constant
73 | .resources = (struct resource []) {
| ^
drivers/mfd/vexpress-sysreg.c:73:51: note: (near initialization for 'vexpress_sysreg_cells[1]') drivers/mfd/vexpress-sysreg.c:82:51: error: initializer element is not constant
82 | .resources = (struct resource []) {
| ^
drivers/mfd/vexpress-sysreg.c:82:51: note: (near initialization for 'vexpress_sysreg_cells[2]') drivers/mfd/vexpress-sysreg.c:90:51: error: initializer element is not constant
90 | .resources = (struct resource []) {
| ^
drivers/mfd/vexpress-sysreg.c:90:51: note: (near initialization for 'vexpress_sysreg_cells[3]')

Quoted 5 lines

Caused (probably) by commit

52c4d11f1dce ("resource: Convert DEFINE_RES_NAMED() to be compound literal")

I have used the driver-core tree from next-20221111 for today.

Fix is available here:
https://lore.kernel.org/lkml/[email protected]/

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
Quoted 23 lines · Andy Shevchenko
Quoted 22 lines · Stephen Rothwell

Hi all,

After merging the driver-core tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

drivers/mfd/vexpress-sysreg.c:64:51: error: initializer element is not constant
64 | .resources = (struct resource []) {
| ^
drivers/mfd/vexpress-sysreg.c:64:51: note: (near initialization for 'vexpress_sysreg_cells[0]') drivers/mfd/vexpress-sysreg.c:73:51: error: initializer element is not constant
73 | .resources = (struct resource []) {
| ^
drivers/mfd/vexpress-sysreg.c:73:51: note: (near initialization for 'vexpress_sysreg_cells[1]') drivers/mfd/vexpress-sysreg.c:82:51: error: initializer element is not constant
82 | .resources = (struct resource []) {
| ^
drivers/mfd/vexpress-sysreg.c:82:51: note: (near initialization for 'vexpress_sysreg_cells[2]') drivers/mfd/vexpress-sysreg.c:90:51: error: initializer element is not constant
90 | .resources = (struct resource []) {
| ^
drivers/mfd/vexpress-sysreg.c:90:51: note: (near initialization for 'vexpress_sysreg_cells[3]')

Quoted 8 lines
Quoted 5 lines

Caused (probably) by commit

52c4d11f1dce ("resource: Convert DEFINE_RES_NAMED() to be compound literal")

I have used the driver-core tree from next-20221111 for today.

Fix is available here:
https://lore.kernel.org/lkml/[email protected]/

Thanks, I'll pick that up now.

greg k-h