diff --git a/lib/format_text/text_label.c b/lib/format_text/text_label.c index 1f8325f0f..59e1c268f 100644 --- a/lib/format_text/text_label.c +++ b/lib/format_text/text_label.c @@ -660,7 +660,7 @@ static void _fmt_text_destroy(struct labeller *l) free(l); } -const struct label_ops _text_ops = { +static const struct label_ops _text_ops = { .can_handle = _text_can_handle, .write = _text_write, .read = _text_read, diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c index 735cda8eb..a73da59bc 100644 --- a/lib/mm/memlock.c +++ b/lib/mm/memlock.c @@ -77,7 +77,7 @@ int memlock_count_daemon(void) static size_t _size_stack; static size_t _size_malloc_tmp; -const size_t _size_malloc = 2000000; +static const size_t _size_malloc = 2000000; static void *_malloc_mem = NULL; static int _mem_locked = 0; diff --git a/tools/toollib.c b/tools/toollib.c index 40fc3353a..080ee5429 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -461,7 +461,7 @@ const char *extract_vgname(struct cmd_context *cmd, const char *lv_name) return vg_name; } -const char _pe_size_may_not_be_negative_msg[] = "Physical extent size may not be negative."; +static const char _pe_size_may_not_be_negative_msg[] = "Physical extent size may not be negative."; int vgcreate_params_set_defaults(struct cmd_context *cmd, struct vgcreate_params *vp_def,