Skip to contentSkip to conversation

spi: bcm2835: make read-only const array pinctrl_compats static

PATCH In review Colin Ian King 2 participants 2 messages Jul 14 – Jul 15

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: bcm2835: make read-only const array pinctrl_compats static

Don't populate the read-only const array pinctrl_compats on the stack at run time, instead make it static const char * const

---
 drivers/spi/spi-bcm2835.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-bcm2835.c +1 -1
index ff94482fefcc..3d5255d75ff2 100644
@@ -1226,7 +1226,7 @@ static int bcm2835_spi_setup(struct spi_device *spi)
 	struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
 	struct bcm2835_spidev *target = spi_get_ctldata(spi);
 	struct gpiod_lookup_table *lookup __free(kfree) = NULL;
-	const char *pinctrl_compats[] = {
+	static const char * const pinctrl_compats[] = {
 		"brcm,bcm2835-gpio",
 		"brcm,bcm2711-gpio",
 		"brcm,bcm7211-gpio",
Signature · 1 line
2.53.0
maintainer
#1 lore raw
Quoted 1 line · Colin Ian King

spi: bcm2835: make read-only const array pinctrl_compats static

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-7.3

Thanks!

[1/1] spi: bcm2835: make read-only const array pinctrl_compats static

      https://git.kernel.org/broonie/spi/c/9c4a2dced735

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark