mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-19 19:12:09 -05:00
For kernel 6.12 there is a warning causing an error:
drivers/mtd/nand/mtk_bmt_v2.c: In function 'mtk_bmt_get_mapping_mask':
drivers/mtd/nand/mtk_bmt_v2.c:307:31: error: 'kmalloc_array_noprof' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
307 | used = kcalloc(sizeof(unsigned long), BIT_WORD(bmtd.bmt_blk_idx) + 1, GFP_KERNEL);
| ^~~~~~~~
Swapping the arguments solves the problem.
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18701
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||
|---|---|---|
| .. | ||
| mtk_bmt_bbt.c | ||
| mtk_bmt_nmbm.c | ||
| mtk_bmt_v2.c | ||
| mtk_bmt.c | ||
| mtk_bmt.h | ||