Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 3 messages Jan 12, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

[Reported by "kernelci.org bot" <[email protected]>]

After merging the pwm tree, today's linux-next build (arm64-allmodconfig) failed like this:

In file included from drivers/pwm/pwm-imx27.c:15:
drivers/pwm/pwm-imx27.c:292:25: error: 'imx_pwm_dt_ids' undeclared here (not in a function); did you mean 'pwm_imx27_dt_ids'?

 MODULE_DEVICE_TABLE(of, imx_pwm_dt_ids);
                         ^~~~~~~~~~~~~~
include/linux/module.h:213:15: note: in definition of macro 'MODULE_DEVICE_TABLE'
 extern typeof(name) __mod_##type##__##name##_device_table  \
               ^~~~
include/linux/module.h:213:21: error: '__mod_of__imx_pwm_dt_ids_device_table' aliased to undefined symbol 'imx_pwm_dt_ids'
 extern typeof(name) __mod_##type##__##name##_device_table  \
                     ^~~~~~

drivers/pwm/pwm-imx27.c:292:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
MODULE_DEVICE_TABLE(of, imx_pwm_dt_ids);

Caused by commit

5a309d380019 ("pwm: imx: Split into two drivers")

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

Hi all,

Quoted 2 lines · On Sat, 12 Jan 2019 17:01:17 +1100 Stephen Rothwell <[email protected]>…

[Reported by "kernelci.org bot" <[email protected]>]

[Also reported by Mark Brown <[email protected]>]

Quoted 20 lines

After merging the pwm tree, today's linux-next build (arm64-allmodconfig) failed like this:

In file included from drivers/pwm/pwm-imx27.c:15:
drivers/pwm/pwm-imx27.c:292:25: error: 'imx_pwm_dt_ids' undeclared here (not in a function); did you mean 'pwm_imx27_dt_ids'?

 MODULE_DEVICE_TABLE(of, imx_pwm_dt_ids);
                         ^~~~~~~~~~~~~~
include/linux/module.h:213:15: note: in definition of macro 'MODULE_DEVICE_TABLE'
 extern typeof(name) __mod_##type##__##name##_device_table  \
               ^~~~
include/linux/module.h:213:21: error: '__mod_of__imx_pwm_dt_ids_device_table' aliased to undefined symbol 'imx_pwm_dt_ids'
 extern typeof(name) __mod_##type##__##name##_device_table  \
                     ^~~~~~

drivers/pwm/pwm-imx27.c:292:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
MODULE_DEVICE_TABLE(of, imx_pwm_dt_ids);

Caused by commit

5a309d380019 ("pwm: imx: Split into two drivers")

Signature · 2 lines
Cheers,
Stephen Rothwell
#2 lore raw

Hello,

Quoted 5 lines · Stephen Rothwell
Quoted 2 lines · On Sat, 12 Jan 2019 17:01:17 +1100 Stephen Rothwell <[email protected]>…

[Reported by "kernelci.org bot" <[email protected]>]

[Also reported by Mark Brown <[email protected]>]

And also reported by the zero-day bot
(201901110232.L51oPCXW%[email protected]).

Quoted 6 lines
Quoted 6 lines

After merging the pwm tree, today's linux-next build (arm64-allmodconfig) failed like this:

In file included from drivers/pwm/pwm-imx27.c:15:
drivers/pwm/pwm-imx27.c:292:25: error: 'imx_pwm_dt_ids' undeclared here (not in a function); did you mean 'pwm_imx27_dt_ids'?
MODULE_DEVICE_TABLE(of, imx_pwm_dt_ids);

I already asked Thierry if he can fixup my commit with

	s/imx_pwm_dt_ids/pwm_imx27_dt_ids/

(as already suggested by the compiler), but it seems he didn't act on that yet.

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |