Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dm: avoid initializing static variables

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>

authored by

Heinz Mauelshagen and committed by
Mike Snitzer
2f06cd12 44bc08ed

+5 -5
+1 -1
drivers/md/dm-bufio.c
··· 216 216 217 217 static LIST_HEAD(global_queue); 218 218 219 - static unsigned long global_num = 0; 219 + static unsigned long global_num; 220 220 221 221 /* 222 222 * Buffers are freed after this timeout
+1 -1
drivers/md/dm-crypt.c
··· 230 230 #define POOL_ENTRY_SIZE 512 231 231 232 232 static DEFINE_SPINLOCK(dm_crypt_clients_lock); 233 - static unsigned int dm_crypt_clients_n = 0; 233 + static unsigned int dm_crypt_clients_n; 234 234 static volatile unsigned long dm_crypt_pages_per_client; 235 235 #define DM_CRYPT_MEMORY_PERCENT 2 236 236 #define DM_CRYPT_MIN_PAGES_PER_CLIENT (BIO_MAX_VECS * 16)
+1 -1
drivers/md/dm-raid.c
··· 30 30 */ 31 31 #define MIN_RAID456_JOURNAL_SPACE (4*2048) 32 32 33 - static bool devices_handle_discard_safely = false; 33 + static bool devices_handle_discard_safely; 34 34 35 35 /* 36 36 * The following flags are used by dm-raid.c to set up the array state.
+2 -2
drivers/md/dm.c
··· 50 50 51 51 static const char *_name = DM_NAME; 52 52 53 - static unsigned int major = 0; 54 - static unsigned int _major = 0; 53 + static unsigned int major; 54 + static unsigned int _major; 55 55 56 56 static DEFINE_IDR(_minor_idr); 57 57