summaryrefslogtreecommitdiff
path: root/scripts/mod/modpost.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-05-21 19:04:09 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2023-05-28 14:32:04 +0300
commit05bb0704672dec59cbdc6b901130098ecfe7a846 (patch)
treee102bdc9180f7f5759d97f0646d3e3dbea9390f9 /scripts/mod/modpost.c
parent17b53f10aba7c17e92bcf713179bc577cba059b7 (diff)
downloadlinux-05bb0704672dec59cbdc6b901130098ecfe7a846.tar.xz
modpost: remove unused argument from secref_whitelist()
secref_whitelist() does not use the argument 'mismatch'. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r--scripts/mod/modpost.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 71de14544432..c0b262b68d50 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1035,8 +1035,7 @@ static const struct sectioncheck *section_mismatch(
* refsymname = *.constprop.*
*
**/
-static int secref_whitelist(const struct sectioncheck *mismatch,
- const char *fromsec, const char *fromsym,
+static int secref_whitelist(const char *fromsec, const char *fromsym,
const char *tosec, const char *tosym)
{
/* Check for pattern 1 */
@@ -1202,7 +1201,7 @@ static void default_mismatch_handler(const char *modname, struct elf_info *elf,
tosym = sym_name(elf, to);
/* check whitelist - we may ignore it */
- if (!secref_whitelist(mismatch, fromsec, fromsym, tosec, tosym))
+ if (!secref_whitelist(fromsec, fromsym, tosec, tosym))
return;
sec_mismatch_count++;