Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: BCM47XX: drop unneeded semicolon
@ 2026-08-01 19:10 Julia Lawall
  2026-08-02 15:17 ` Philippe Mathieu-Daudé
  2026-08-03 13:10 ` Thomas Bogendoerfer
  0 siblings, 2 replies; 3+ messages in thread
From: Julia Lawall @ 2026-08-01 19:10 UTC (permalink / raw)
  To: Hauke Mehrtens
  Cc: kernel-janitors, Rafał Miłecki, Thomas Bogendoerfer,
	linux-mips, linux-kernel

When a function-like macro expands to an expression, that expression
doesn't need a semicolon after it.  All uses have been verified to
have their own semicolons.

This was found using the following Coccinelle semantic patch:

@r@
identifier i : script:ocaml() { String.lowercase_ascii i = i };
expression e;
@@

*#define i(...) e;

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>

---
 arch/mips/bcm47xx/buttons.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/bcm47xx/buttons.c b/arch/mips/bcm47xx/buttons.c
index 46994f9bb..e76ca34c8 100644
--- a/arch/mips/bcm47xx/buttons.c
+++ b/arch/mips/bcm47xx/buttons.c
@@ -512,7 +512,7 @@ static int __init bcm47xx_buttons_copy(const struct gpio_keys_button *buttons,
 }
 
 #define bcm47xx_copy_bdata(dev_buttons)					\
-	bcm47xx_buttons_copy(dev_buttons, ARRAY_SIZE(dev_buttons));
+	bcm47xx_buttons_copy(dev_buttons, ARRAY_SIZE(dev_buttons))
 
 int __init bcm47xx_buttons_register(void)
 {


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-03 14:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-01 19:10 [PATCH] MIPS: BCM47XX: drop unneeded semicolon Julia Lawall
2026-08-02 15:17 ` Philippe Mathieu-Daudé
2026-08-03 13:10 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox