mainline build failure due to 6b47441bed49 ("watchdog: hpe-wdt: Introduce HPE GXP Watchdog")
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
Guenter Roeck
maintainerQuoted 9 lines · Sudip Mukherjee
Hi All,
The latest mainline kernel branch fails to build for "arm allmodconfig" with the error:
ERROR: modpost: missingMODULE_LICENSE()indrivers/watchdog/gxp-wdt.omake[1]: *** [scripts/Makefile.modpost:134: modules-only.symvers] Error 1The file is missing
MODULE_LICENSE().
I sent a patch fixing the problem a minute ago.
Guenter
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
Guenter Roeck
maintainerQuoted 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