From: James Simmons Date: Sat, 5 May 2018 21:35:30 +0000 (-0400) Subject: LU-10886 build: fix WARNING: modpost: missing MODULE_LICENSE() X-Git-Tag: 2.11.53~90 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=6dd7a9452664277e200ad41a1d219628ece72f12;ds=sidebyside LU-10886 build: fix WARNING: modpost: missing MODULE_LICENSE() With newer kernels modpost will print a warning when no license is provided. This could give false results if the kernel test set the -Werror flag. Update LB_LANG_PROGRAM macro to include the missing MODULE_LICENSE(). Test-Parameters: trivial Change-Id: Ia21d0fa5ee6c224d05b7949540ef805d09d3c7c5 Signed-off-by: James Simmons Reviewed-on: https://review.whamcloud.com/32303 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: Andreas Dilger Reviewed-by: Dmitry Eremin Reviewed-by: Oleg Drokin --- diff --git a/config/lustre-build-linux.m4 b/config/lustre-build-linux.m4 index 8895e96..8967c01 100644 --- a/config/lustre-build-linux.m4 +++ b/config/lustre-build-linux.m4 @@ -501,6 +501,7 @@ config_im_$1, [ m4_define([LB_LANG_PROGRAM], [ #include +#include $1 int main (void) @@ -510,7 +511,8 @@ dnl Don't move the `;' right after for the same reason. $2 ; return 0; -}]) +}; +MODULE_LICENSE("GPL");]) # # LB_LINUX_COMPILE_IFELSE