X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=scripts%2Fmod%2Fsumversion.c;h=d9cc6901d68082ea74a2add806d72b01738679c4;hb=152382af4056aadc0c2ea2e8e8258b277be085bf;hp=8a2875689e4da48202ddc87468a23e0e8db58c58;hpb=7d14f145f839b5d0d221ea209b4998f93267e2ec;p=mv-sheeva.git diff --git a/scripts/mod/sumversion.c b/scripts/mod/sumversion.c index 8a2875689e4..d9cc6901d68 100644 --- a/scripts/mod/sumversion.c +++ b/scripts/mod/sumversion.c @@ -7,6 +7,7 @@ #include #include #include +#include #include "modpost.h" /* @@ -397,10 +398,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) {