mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
module: Remove the unused function within
The function within is defined in the main.c file, but not called elsewhere, so remove this unused function. This routine became no longer used after commit ("module: replace module_layout with module_memory"). kernel/module/main.c:3007:19: warning: unused function 'within'. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4035 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> [mcgrof: adjust commit log to explain why this change is needed] Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
This commit is contained in:
parent
ac3b432839
commit
9e07f16171
1 changed files with 0 additions and 5 deletions
|
@ -2975,11 +2975,6 @@ SYSCALL_DEFINE3(finit_module, int, fd, const char __user *, uargs, int, flags)
|
||||||
return load_module(&info, uargs, flags);
|
return load_module(&info, uargs, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int within(unsigned long addr, void *start, unsigned long size)
|
|
||||||
{
|
|
||||||
return ((void *)addr >= start && (void *)addr < start + size);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Keep in sync with MODULE_FLAGS_BUF_SIZE !!! */
|
/* Keep in sync with MODULE_FLAGS_BUF_SIZE !!! */
|
||||||
char *module_flags(struct module *mod, char *buf, bool show_state)
|
char *module_flags(struct module *mod, char *buf, bool show_state)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue