Skip to content

Commit a54e049

Browse files
Christoph HellwigJessica Yu
authored andcommitted
modules: mark each_symbol_section static
each_symbol_section is only used inside of module.c. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jessica Yu <jeyu@kernel.org>
1 parent 7731104 commit a54e049

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

include/linux/module.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -590,15 +590,6 @@ struct symsearch {
590590
bool unused;
591591
};
592592

593-
/*
594-
* Walk the exported symbol table
595-
*
596-
* Must be called with module_mutex held or preemption disabled.
597-
*/
598-
bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
599-
struct module *owner,
600-
void *data), void *data);
601-
602593
/* Returns 0 and fills in value, defined and namebuf, or -ERANGE if
603594
symnum out of range. */
604595
int module_get_kallsym(unsigned int symnum, unsigned long *value, char *type,

kernel/module.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ static bool each_symbol_in_section(const struct symsearch *arr,
422422
}
423423

424424
/* Returns true as soon as fn returns true, otherwise false. */
425-
bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
425+
static bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
426426
struct module *owner,
427427
void *data),
428428
void *data)
@@ -484,7 +484,6 @@ bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
484484
}
485485
return false;
486486
}
487-
EXPORT_SYMBOL_GPL(each_symbol_section);
488487

489488
struct find_symbol_arg {
490489
/* Input */

0 commit comments

Comments
 (0)