mirror of
https://github.com/torvalds/linux.git
synced 2025-08-15 14:11:42 +02:00
bitmap: remove _check_eq_u32_array
This has been unused since commit 3aa56885e5
("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>
This commit is contained in:
parent
f54af4af7b
commit
158e9d2f33
1 changed files with 0 additions and 28 deletions
|
@ -100,34 +100,6 @@ __check_eq_pbl(const char *srcfile, unsigned int line,
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool __init
|
||||
__check_eq_u32_array(const char *srcfile, unsigned int line,
|
||||
const u32 *exp_arr, unsigned int exp_len,
|
||||
const u32 *arr, unsigned int len) __used;
|
||||
static bool __init
|
||||
__check_eq_u32_array(const char *srcfile, unsigned int line,
|
||||
const u32 *exp_arr, unsigned int exp_len,
|
||||
const u32 *arr, unsigned int len)
|
||||
{
|
||||
if (exp_len != len) {
|
||||
pr_warn("[%s:%u] array length differ: expected %u, got %u\n",
|
||||
srcfile, line,
|
||||
exp_len, len);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (memcmp(exp_arr, arr, len*sizeof(*arr))) {
|
||||
pr_warn("[%s:%u] array contents differ\n", srcfile, line);
|
||||
print_hex_dump(KERN_WARNING, " exp: ", DUMP_PREFIX_OFFSET,
|
||||
32, 4, exp_arr, exp_len*sizeof(*exp_arr), false);
|
||||
print_hex_dump(KERN_WARNING, " got: ", DUMP_PREFIX_OFFSET,
|
||||
32, 4, arr, len*sizeof(*arr), false);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool __init __check_eq_clump8(const char *srcfile, unsigned int line,
|
||||
const unsigned int offset,
|
||||
const unsigned int size,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue