summaryrefslogtreecommitdiff
path: root/libkmod/libkmod-module.c
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2023-02-06 14:04:46 +0000
committerLucas De Marchi <lucas.de.marchi@gmail.com>2023-02-09 07:15:56 -0800
commitefc2e4b4673524220a525f2b6283bf41df99b7af (patch)
tree0727d42212a8feecdaceacf05c24ad8c86c7c364 /libkmod/libkmod-module.c
parent1712a1548eeaad61143f303b09afcb4215943203 (diff)
downloadkmod-efc2e4b4673524220a525f2b6283bf41df99b7af.tar.gz
kmod-efc2e4b4673524220a525f2b6283bf41df99b7af.tar.bz2
kmod-efc2e4b4673524220a525f2b6283bf41df99b7af.zip
treewide: add some static const notations
Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Diffstat (limited to 'libkmod/libkmod-module.c')
-rw-r--r--libkmod/libkmod-module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c
index 12d8ed1..c7232e0 100644
--- a/libkmod/libkmod-module.c
+++ b/libkmod/libkmod-module.c
@@ -551,7 +551,7 @@ KMOD_EXPORT int kmod_module_new_from_lookup(struct kmod_ctx *ctx,
const char *given_alias,
struct kmod_list **list)
{
- const lookup_func lookup[] = {
+ static const lookup_func lookup[] = {
kmod_lookup_alias_from_config,
kmod_lookup_alias_from_moddep_file,
kmod_lookup_alias_from_symbols_file,
@@ -619,7 +619,7 @@ KMOD_EXPORT int kmod_module_new_from_name_lookup(struct kmod_ctx *ctx,
const char *modname,
struct kmod_module **mod)
{
- const lookup_func lookup[] = {
+ static const lookup_func lookup[] = {
kmod_lookup_alias_from_moddep_file,
kmod_lookup_alias_from_builtin_file,
kmod_lookup_alias_from_kernel_builtin_file,