Skip to contentSkip to conversation

staging: fbtft: Remove trailing semicolon in macro.

PATCH In review Sakirnth Nagarasa 2 participants 2 messages Jul 30, 2024

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

PATCH 1/1 staging: fbtft: Remove trailing semicolon in macro.

Fix checkpath warning: "WARNING: macros should not use a trailing semicolon in fbtft.h:356.

---

Hello, this is my first patch to the kernel.

---
 drivers/staging/fbtft/fbtft.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/fbtft/fbtft.h +1 -1
index f86ed9d47..45dfc92b8 100644
@@ -365,7 +365,7 @@ MODULE_DEVICE_TABLE(spi, spi_ids);						\
 										\
 FBTFT_SPI_DRIVER(_name, _comp_vend "," _comp_dev, _display, spi_ids)		\
 										\
-module_spi_driver(fbtft_driver_spi_driver);
+module_spi_driver(fbtft_driver_spi_driver)
 
 /* Debug macros */
 
Signature · 1 line
2.20.1
maintainer
#1 lore raw
Quoted 17 lines · Sakirnth Nagarasa

Fix checkpath warning: "WARNING: macros should not use a trailing semicolon in fbtft.h:356.

---

Hello, this is my first patch to the kernel.

---
 drivers/staging/fbtft/fbtft.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/fbtft/fbtft.h +0 -0
index f86ed9d47..45dfc92b8 100644

drivers/staging/fbtft/fbtft.h MODULE_DEVICE_TABLE(spi, spi_ids); \ · line 368

Quoted 5 lines
drivers/staging/fbtft/fbtft.h +1 -1
@@ -365,7 +365,7 @@ MODULE_DEVICE_TABLE(spi, spi_ids);						\
 										\
 FBTFT_SPI_DRIVER(_name, _comp_vend "," _comp_dev, _display, spi_ids)		\
 										\
-module_spi_driver(fbtft_driver_spi_driver);
+module_spi_driver(fbtft_driver_spi_driver)

checkpatch is wrong here, the ';' is correct.

thanks,

greg k-h