Skip to content

Commit 158e9d2

Browse files
tamirdYuryNorov
authored andcommitted
bitmap: remove _check_eq_u32_array
This has been unused since commit 3aa5688 ("bitmap: replace bitmap_{from,to}_u32array") in 2018. Signed-off-by: Tamir Duberstein <[email protected]> Reviewed-by: David Gow <[email protected]> Signed-off-by: Yury Norov <[email protected]>
1 parent f54af4a commit 158e9d2

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

lib/test_bitmap.c

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -100,34 +100,6 @@ __check_eq_pbl(const char *srcfile, unsigned int line,
100100
return true;
101101
}
102102

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-
131103
static bool __init __check_eq_clump8(const char *srcfile, unsigned int line,
132104
const unsigned int offset,
133105
const unsigned int size,

0 commit comments

Comments
 (0)