mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-10 14:22:05 +08:00
kernel: mtk_bmt: fix compile warning
For kernel 6.12 there is a warning causing an error. Swapping the arguments solves the problem. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
ca9b1c268b
commit
e0faf71ce5
@ -304,7 +304,7 @@ mtk_bmt_get_mapping_mask(void)
|
|||||||
unsigned long *used;
|
unsigned long *used;
|
||||||
int i, k;
|
int i, k;
|
||||||
|
|
||||||
used = kcalloc(sizeof(unsigned long), BIT_WORD(bmtd.bmt_blk_idx) + 1, GFP_KERNEL);
|
used = kcalloc(BIT_WORD(bmtd.bmt_blk_idx) + 1, sizeof(unsigned long), GFP_KERNEL);
|
||||||
if (!used)
|
if (!used)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user