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:
Mieczyslaw Nalewaj 2025-05-04 11:32:57 +02:00
parent ca9b1c268b
commit e0faf71ce5

View File

@ -304,7 +304,7 @@ mtk_bmt_get_mapping_mask(void)
unsigned long *used;
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)
return NULL;