[PATCH] riscv: make unexported items static
Ben Dooks
ben.dooks at codethink.co.uk
Wed Nov 22 01:02:55 PST 2023
The relocation_hashtable and used_buckets_list are not used
outside of the module.c file and therefore should be made
static to avoid the follwoing sdparse warnings:
arch/riscv/kernel/module.c:48:19: warning: symbol 'relocation_hashtable' was not declared. Should it be static?
arch/riscv/kernel/module.c:50:18: warning: symbol 'used_buckets_list' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks at codethink.co.uk>
---
arch/riscv/kernel/module.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 56a8c78e9e21..b5109a3889c9 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel/module.c
@@ -45,9 +45,9 @@ void process_accumulated_relocations(struct module *me);
int add_relocation_to_accumulate(struct module *me, int type, void *location,
unsigned int hashtable_bits, Elf_Addr v);
-struct hlist_head *relocation_hashtable;
+static struct hlist_head *relocation_hashtable;
-struct list_head used_buckets_list;
+static struct list_head used_buckets_list;
/*
* The auipc+jalr instruction pair can reach any PC-relative offset
--
2.37.2.352.g3c44437643
More information about the linux-riscv
mailing list