Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kbuild: do not emit src version warning for non-modules

modpost is now called with .o files that are not modules.
So do not warn if there is no corresponding .mod
file listing .o files (in .tmp_versions/).

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

+2 -3
+2 -3
scripts/mod/sumversion.c
··· 397 397 (int) strlen(basename) - 2, basename); 398 398 399 399 file = grab_file(filelist, &len); 400 - if (!file) { 401 - warn("could not find versions for %s\n", filelist); 400 + if (!file) 401 + /* not a module or .mod file missing - ignore */ 402 402 return; 403 - } 404 403 405 404 sources = strchr(file, '\n'); 406 405 if (!sources) {