summaryrefslogtreecommitdiffstats
path: root/scripts/mod/sumversion.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2007-03-20 21:30:23 +0100
committerSam Ravnborg <sam@ravnborg.org>2007-05-02 20:58:09 +0200
commit4be40e22233cfe6254bbf039ec09a5d7bff2ad14 (patch)
tree53ba8d9a523b04df2fb59167136858e5f665b971 /scripts/mod/sumversion.c
parent95e30f9593ebf39e26227a20ae8d9f160c50fb67 (diff)
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>
Diffstat (limited to 'scripts/mod/sumversion.c')
-rw-r--r--scripts/mod/sumversion.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/mod/sumversion.c b/scripts/mod/sumversion.c
index 8a2875689e4..6873d5af80d 100644
--- a/scripts/mod/sumversion.c
+++ b/scripts/mod/sumversion.c
@@ -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) {