[PATCH] speakup: Fix warning for label at end of compound statement

Greg KH posted 1 patch 1 year, 10 months ago
drivers/accessibility/speakup/devsynth.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] speakup: Fix warning for label at end of compound statement
Posted by Greg KH 1 year, 10 months ago
From: Samuel Thibault <samuel.thibault@ens-lyon.org>

Label at end of compound statements is a C2x extension, so add an empty instruction.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 807977260ae4 ("speakup: Add /dev/synthu device")
Closes: https://lore.kernel.org/oe-kbuild-all/202403090122.cpUNsozM-lkp@intel.com/
Link: https://lore.kernel.org/r/20240309203549.jj2l6epnznyjsrje@begin
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
Linus,

  Here's the fix for clang on top of the char-misc-next branch if you
  pull from it, or I can integrate it in and send a new pull request,
  your choice.

  thanks,

  greg k-h

 drivers/accessibility/speakup/devsynth.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/accessibility/speakup/devsynth.c b/drivers/accessibility/speakup/devsynth.c
index da4d0f6aa5bf..674204ee5a85 100644
--- a/drivers/accessibility/speakup/devsynth.c
+++ b/drivers/accessibility/speakup/devsynth.c
@@ -108,6 +108,7 @@ static ssize_t speakup_file_writeu(struct file *fp, const char __user *buffer,
 				break;
 			}
 drop:
+			;
 		}
 
 		count -= bytes;
-- 
2.44.0