Skip to content

Commit

Permalink
kbuild: do not emit src version warning for non-modules
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sravnborg committed May 2, 2007
1 parent 95e30f9 commit 4be40e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/mod/sumversion.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,9 @@ void get_src_version(const char *modname, char sum[], unsigned sumlen)
(int) strlen(basename) - 2, basename);

file = grab_file(filelist, &len);
if (!file) {
warn("could not find versions for %s\n", filelist);
if (!file)
/* not a module or .mod file missing - ignore */
return;
}

sources = strchr(file, '\n');
if (!sources) {
Expand Down

0 comments on commit 4be40e2

Please sign in to comment.