Commit 05bb0704 authored by Masahiro Yamada's avatar Masahiro Yamada

modpost: remove unused argument from secref_whitelist()

secref_whitelist() does not use the argument 'mismatch'.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
parent 17b53f10
...@@ -1035,8 +1035,7 @@ static const struct sectioncheck *section_mismatch( ...@@ -1035,8 +1035,7 @@ static const struct sectioncheck *section_mismatch(
* refsymname = *.constprop.* * refsymname = *.constprop.*
* *
**/ **/
static int secref_whitelist(const struct sectioncheck *mismatch, static int secref_whitelist(const char *fromsec, const char *fromsym,
const char *fromsec, const char *fromsym,
const char *tosec, const char *tosym) const char *tosec, const char *tosym)
{ {
/* Check for pattern 1 */ /* Check for pattern 1 */
...@@ -1202,7 +1201,7 @@ static void default_mismatch_handler(const char *modname, struct elf_info *elf, ...@@ -1202,7 +1201,7 @@ static void default_mismatch_handler(const char *modname, struct elf_info *elf,
tosym = sym_name(elf, to); tosym = sym_name(elf, to);
/* check whitelist - we may ignore it */ /* check whitelist - we may ignore it */
if (!secref_whitelist(mismatch, fromsec, fromsym, tosec, tosym)) if (!secref_whitelist(fromsec, fromsym, tosec, tosym))
return; return;
sec_mismatch_count++; sec_mismatch_count++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment