Skip to content

Commit 4be40e2

Browse files
committed
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>
1 parent 95e30f9 commit 4be40e2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎scripts/mod/sumversion.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,9 @@ void get_src_version(const char *modname, char sum[], unsigned sumlen)
397397
(int) strlen(basename) - 2, basename);
398398

399399
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 */
402402
return;
403-
}
404403

405404
sources = strchr(file, '\n');
406405
if (!sources) {

0 commit comments

Comments
 (0)