mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
6badc62f8f
The str_array parameter has no reason to be an un-const array. Indeed, elements of the 'str_array' array are not changed by the code. Constify the 'str_array' array parameter. With this const qualifier added, the following construction is allowed: static const char * const tab_str[] = { "string1", "string2" }; of_changeset_add_prop_string_array(..., tab_str, ARRAY_SIZE(tab_str)); Signed-off-by: Herve Codina <herve.codina@bootlin.com> Link: https://lore.kernel.org/r/20240527161450.326615-14-herve.codina@bootlin.com Signed-off-by: Rob Herring (Arm) <robh@kernel.org> |
||
---|---|---|
.. | ||
unittest-data | ||
.kunitconfig | ||
address.c | ||
base.c | ||
cpu.c | ||
device.c | ||
dynamic.c | ||
empty_root.dts | ||
fdt_address.c | ||
fdt.c | ||
irq.c | ||
Kconfig | ||
kexec.c | ||
kobj.c | ||
Makefile | ||
module.c | ||
of_numa.c | ||
of_private.h | ||
of_reserved_mem.c | ||
of_test.c | ||
overlay.c | ||
pdt.c | ||
platform.c | ||
property.c | ||
resolver.c | ||
unittest.c |