Skip to contentSkip to conversation

mainline build failure due to 6b47441bed49 ("watchdog: hpe-wdt: Introduce HPE GXP Watchdog")

DISCUSSION Sudip Mukherjee 3 participants 4 messages Jun 3, 2022 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

Hi All,

The latest mainline kernel branch fails to build for "arm allmodconfig" with the error:
ERROR: modpost: missing MODULE_LICENSE() in drivers/watchdog/gxp-wdt.o make[1]: *** [scripts/Makefile.modpost:134: modules-only.symvers] Error 1

The file is missing MODULE_LICENSE().

--
Regards
Sudip

maintainer
#1 lore raw
Quoted 9 lines · Sudip Mukherjee

Hi All,

The latest mainline kernel branch fails to build for "arm allmodconfig" with the error:
ERROR: modpost: missing MODULE_LICENSE() in drivers/watchdog/gxp-wdt.o make[1]: *** [scripts/Makefile.modpost:134: modules-only.symvers] Error 1

The file is missing MODULE_LICENSE().

I sent a patch fixing the problem a minute ago.

Guenter

#2 lore raw
Quoted 1 line

I sent a patch fixing the problem a minute ago.

Thank you for correcting this. I had the compiler set to W=1, is there another option I should be using to catch errors like this?

-Nick

maintainer
#3 lore raw
Quoted 4 lines · Nick
Quoted 1 line

I sent a patch fixing the problem a minute ago.

Thank you for correcting this. I had the compiler set to W=1, is there another option I should be using to catch errors like this?

arm:allmodconfig reproduces the problem. I had seen it as well, which is why I sent a fix. The key is to enable -Werror (CONFIG_WERROR=y), not W=1.

Guenter