Skip to content

Commit

Permalink
modpost: remove unused argument from secref_whitelist()
Browse files Browse the repository at this point in the history
secref_whitelist() does not use the argument 'mismatch'.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
  • Loading branch information
Masahiro Yamada committed May 28, 2023
1 parent 17b53f1 commit 05bb070
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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++;
Expand Down

0 comments on commit 05bb070

Please sign in to comment.