mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
kbuild: remove the first line of *.mod files
The current format of *.mod is like this: line 1: directory path to the .ko file line 2: a list of objects linked into this module line 3: unresolved symbols (only when CONFIG_TRIM_UNUSED_KSYMS=y) Now that *.mod and *.ko are created in the same directory, the line 1 provides no valuable information. It can be derived by replacing the extension .mod with .ko. In fact, nobody uses the first line any more. Cut down the first line. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
b7dca6dd1e
commit
60ae1b194b
3 changed files with 6 additions and 11 deletions
|
@ -398,7 +398,7 @@ void get_src_version(const char *modname, char sum[], unsigned sumlen)
|
|||
char *sources, *end, *fname;
|
||||
char filelist[PATH_MAX + 1];
|
||||
|
||||
/* objects for a module are listed in the second line of *.mod file. */
|
||||
/* objects for a module are listed in the first line of *.mod file. */
|
||||
snprintf(filelist, sizeof(filelist), "%.*smod",
|
||||
(int)strlen(modname) - 1, modname);
|
||||
|
||||
|
@ -407,13 +407,8 @@ void get_src_version(const char *modname, char sum[], unsigned sumlen)
|
|||
/* not a module or .mod file missing - ignore */
|
||||
return;
|
||||
|
||||
sources = strchr(file, '\n');
|
||||
if (!sources) {
|
||||
warn("malformed versions file for %s\n", modname);
|
||||
goto release;
|
||||
}
|
||||
sources = file;
|
||||
|
||||
sources++;
|
||||
end = strchr(sources, '\n');
|
||||
if (!end) {
|
||||
warn("bad ending versions file for %s\n", modname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue