mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 05:42:46 +01:00
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 <[email protected]>
This commit is contained in:
1 parent
95e30f9593
commit
4be40e2223
1 file changed
+2
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user