Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4be40e22 authored by Sam Ravnborg's avatar Sam Ravnborg
Browse files

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: default avatarSam Ravnborg <sam@ravnborg.org>
parent 95e30f95
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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) {