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

bitmap: remove _check_eq_u32_array

This has been unused since commit 3aa56885e516 ("bitmap: replace
bitmap_{from,to}_u32array") in 2018.

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>

authored by

Tamir Duberstein and committed by
Yury Norov
158e9d2f f54af4af

-28
-28
lib/test_bitmap.c
··· 100 100 return true; 101 101 } 102 102 103 - static bool __init 104 - __check_eq_u32_array(const char *srcfile, unsigned int line, 105 - const u32 *exp_arr, unsigned int exp_len, 106 - const u32 *arr, unsigned int len) __used; 107 - static bool __init 108 - __check_eq_u32_array(const char *srcfile, unsigned int line, 109 - const u32 *exp_arr, unsigned int exp_len, 110 - const u32 *arr, unsigned int len) 111 - { 112 - if (exp_len != len) { 113 - pr_warn("[%s:%u] array length differ: expected %u, got %u\n", 114 - srcfile, line, 115 - exp_len, len); 116 - return false; 117 - } 118 - 119 - if (memcmp(exp_arr, arr, len*sizeof(*arr))) { 120 - pr_warn("[%s:%u] array contents differ\n", srcfile, line); 121 - print_hex_dump(KERN_WARNING, " exp: ", DUMP_PREFIX_OFFSET, 122 - 32, 4, exp_arr, exp_len*sizeof(*exp_arr), false); 123 - print_hex_dump(KERN_WARNING, " got: ", DUMP_PREFIX_OFFSET, 124 - 32, 4, arr, len*sizeof(*arr), false); 125 - return false; 126 - } 127 - 128 - return true; 129 - } 130 - 131 103 static bool __init __check_eq_clump8(const char *srcfile, unsigned int line, 132 104 const unsigned int offset, 133 105 const unsigned int size,