mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
const: drop static keyword
We don't need relocatable space to store 'const' number.
This commit is contained in:
parent
abf7c40185
commit
efe2005022
@ -2568,12 +2568,12 @@ static int _check_reserved_values_supported(const struct dm_report_field_type fi
|
||||
const struct dm_report_reserved_value *iter;
|
||||
const struct dm_report_field_reserved_value *field_res;
|
||||
const struct dm_report_field_type *field;
|
||||
static uint32_t supported_reserved_types = DM_REPORT_FIELD_TYPE_NUMBER |
|
||||
const uint32_t supported_reserved_types = DM_REPORT_FIELD_TYPE_NUMBER |
|
||||
DM_REPORT_FIELD_TYPE_SIZE |
|
||||
DM_REPORT_FIELD_TYPE_PERCENT |
|
||||
DM_REPORT_FIELD_TYPE_STRING |
|
||||
DM_REPORT_FIELD_TYPE_TIME;
|
||||
static uint32_t supported_reserved_types_with_range = DM_REPORT_FIELD_RESERVED_VALUE_RANGE |
|
||||
const uint32_t supported_reserved_types_with_range = DM_REPORT_FIELD_RESERVED_VALUE_RANGE |
|
||||
DM_REPORT_FIELD_TYPE_NUMBER |
|
||||
DM_REPORT_FIELD_TYPE_SIZE |
|
||||
DM_REPORT_FIELD_TYPE_PERCENT |
|
||||
|
@ -550,8 +550,8 @@ static struct device *_get_device_for_sysfs_dev_name_using_devno(const char *dev
|
||||
|
||||
static int _get_vgid_and_lvid_for_dev(struct device *dev)
|
||||
{
|
||||
static size_t lvm_prefix_len = sizeof(UUID_PREFIX) - 1;
|
||||
static size_t lvm_uuid_len = sizeof(UUID_PREFIX) - 1 + 2 * ID_LEN;
|
||||
const size_t lvm_prefix_len = sizeof(UUID_PREFIX) - 1;
|
||||
const size_t lvm_uuid_len = sizeof(UUID_PREFIX) - 1 + 2 * ID_LEN;
|
||||
char uuid[DM_UUID_LEN];
|
||||
size_t uuid_len;
|
||||
|
||||
|
@ -77,7 +77,7 @@ int memlock_count_daemon(void)
|
||||
|
||||
static size_t _size_stack;
|
||||
static size_t _size_malloc_tmp;
|
||||
static size_t _size_malloc = 2000000;
|
||||
const size_t _size_malloc = 2000000;
|
||||
|
||||
static void *_malloc_mem = NULL;
|
||||
static int _mem_locked = 0;
|
||||
|
@ -2566,12 +2566,12 @@ static int _check_reserved_values_supported(const struct dm_report_field_type fi
|
||||
const struct dm_report_reserved_value *iter;
|
||||
const struct dm_report_field_reserved_value *field_res;
|
||||
const struct dm_report_field_type *field;
|
||||
static uint32_t supported_reserved_types = DM_REPORT_FIELD_TYPE_NUMBER |
|
||||
const uint32_t supported_reserved_types = DM_REPORT_FIELD_TYPE_NUMBER |
|
||||
DM_REPORT_FIELD_TYPE_SIZE |
|
||||
DM_REPORT_FIELD_TYPE_PERCENT |
|
||||
DM_REPORT_FIELD_TYPE_STRING |
|
||||
DM_REPORT_FIELD_TYPE_TIME;
|
||||
static uint32_t supported_reserved_types_with_range = DM_REPORT_FIELD_RESERVED_VALUE_RANGE |
|
||||
const uint32_t supported_reserved_types_with_range = DM_REPORT_FIELD_RESERVED_VALUE_RANGE |
|
||||
DM_REPORT_FIELD_TYPE_NUMBER |
|
||||
DM_REPORT_FIELD_TYPE_SIZE |
|
||||
DM_REPORT_FIELD_TYPE_PERCENT |
|
||||
|
Loading…
Reference in New Issue
Block a user