]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
modpost: remove unused argument from secref_whitelist()
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 21 May 2023 16:04:09 +0000 (01:04 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 28 May 2023 11:32:04 +0000 (20:32 +0900)
secref_whitelist() does not use the argument 'mismatch'.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/mod/modpost.c

index 71de1454443298a7ca8da68f74b51e4a246771f7..c0b262b68d50d4a260fba430b7cbdf5a88df7aec 100644 (file)
@@ -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++;