openwrt/target/linux/generic
Mieczyslaw Nalewaj 4d18c41a6c kernel: mtk_bmt: counteracting calloc-transposed-args compiler warning
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>
2025-05-13 22:07:11 +02:00
..
backport-6.6 kernel: bump 6.6 to 6.6.90 2025-05-13 21:43:34 +02:00
backport-6.12 kernel: bump 6.12 to 6.12.28 2025-05-12 18:10:03 +02:00
files kernel: mtk_bmt: counteracting calloc-transposed-args compiler warning 2025-05-13 22:07:11 +02:00
hack-6.6 kernel: bump 6.6 to 6.6.90 2025-05-13 21:43:34 +02:00
hack-6.12 kernel: bump 6.12 to 6.12.28 2025-05-12 18:10:03 +02:00
image target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
other-files initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
pending-6.6 kernel: bump 6.6 to 6.6.90 2025-05-13 21:43:34 +02:00
pending-6.12 kernel: bump 6.12 to 6.12.28 2025-05-12 18:10:03 +02:00
config-6.6 kernel/generic: Restore kernel files for v6.6 2025-04-30 16:26:29 +02:00
config-6.12 generic: 6.12: add CONFIG_EC_LENOVO_YOGA_C630 2025-05-12 17:05:04 +02:00
config-filter generic: config-filter: filter out CONFIG_RUSTC_SUPPORTS_* symbols 2025-05-09 14:13:19 +02:00
kernel-6.6 kernel: bump 6.6 to 6.6.90 2025-05-13 21:43:34 +02:00
kernel-6.12 kernel: bump 6.12 to 6.12.28 2025-05-12 18:10:03 +02:00
PATCHES