staging: vt6655: upc: Suppress set but not used warning in macro
authorLee Jones <lee.jones@linaro.org>
Wed, 14 Apr 2021 18:10:59 +0000 (19:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 09:19:25 +0000 (11:19 +0200)
The variable is used in the function using the macro.

Fixes the following W=1 kernel build warning(s):

 drivers/staging/vt6655/upc.h:45:16: warning: variable ‘byData’ set but not used [-Wunused-but-set-variable]

Cc: Forest Bond <forest@alittletooquiet.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-staging@lists.linux.dev
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210414181129.1628598-28-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/upc.h

index e086ec6e77f733f748f69235f8b23d6d307a4548..8608693ae9c3e7f8f17b0bd934a4d5b24490c02c 100644 (file)
@@ -42,7 +42,7 @@
 
 #define PCAvDelayByIO(uDelayUnit)                              \
 do {                                                           \
-       unsigned char byData;                                   \
+       unsigned char __maybe_unused byData;                    \
        unsigned long ii;                                       \
                                                                \
        if (uDelayUnit <= 50) {                                 \