kbuild: include limits.h in sumversion.c for PATH_MAX
[sfrench/cifs-2.6.git] / scripts / mod / sumversion.c
index 8a2875689e4da48202ddc87468a23e0e8db58c58..d9cc6901d68082ea74a2add806d72b01738679c4 100644 (file)
@@ -7,6 +7,7 @@
 #include <ctype.h>
 #include <errno.h>
 #include <string.h>
+#include <limits.h>
 #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) {