linux/drivers/soc/fsl
Arnd Bergmann 72ebb41b88 soc: fsl: dpio: fix kcalloc() argument order
A previous bugfix added a call to kcalloc(), which starting in gcc-14
causes a harmless warning about the argument order:

drivers/soc/fsl/dpio/dpio-service.c: In function 'dpaa2_io_service_enqueue_multiple_desc_fq':
drivers/soc/fsl/dpio/dpio-service.c:526:29: error: 'kcalloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
  526 |         ed = kcalloc(sizeof(struct qbman_eq_desc), 32, GFP_KERNEL);
      |                             ^~~~~~
drivers/soc/fsl/dpio/dpio-service.c:526:29: note: earlier argument should specify number of elements, later size of each element

Since the two are only multiplied, the order does not change the
behavior, so just fix it now to shut up the compiler warning.

Dmity independently came up with the same fix.

Fixes: 5c4a5999b2 ("soc: fsl: dpio: avoid stack usage warning")
Reported-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2024-03-13 17:17:32 +01:00
..
dpio soc: fsl: dpio: fix kcalloc() argument order 2024-03-13 17:17:32 +01:00
qbman soc: fsl: Use of_property_present() for testing DT property presence 2023-04-14 14:58:50 +02:00
qe soc: fsl: cpm1: qmc: Introduce functions to change timeslots at runtime 2023-12-12 10:29:20 +01:00
dpaa2-console.c soc/fsl: dpaa2-console: Convert to platform remove callback returning void 2023-10-14 23:26:45 +02:00
guts.c soc: fsl: guts: check return value after calling of_iomap() in fsl_guts_get_soc_uid() 2022-07-05 08:41:55 +08:00
Kconfig soc: fsl: select FSL_GUTS driver for DPIO 2022-09-02 11:28:40 +02:00
Makefile soc: fsl: add RCPM driver 2019-11-12 15:26:05 -06:00
rcpm.c soc: fsl: rcpm: Make use of the helper function devm_platform_ioremap_resource() 2021-10-21 19:37:32 -05:00