From: Lee Jones Date: Wed, 14 Apr 2021 18:10:59 +0000 (+0100) Subject: staging: vt6655: upc: Suppress set but not used warning in macro X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b259c9b2380a1a4150cd2bdda90076d1e3fbd386;p=linux.git staging: vt6655: upc: Suppress set but not used warning in macro 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 Cc: Greg Kroah-Hartman Cc: linux-staging@lists.linux.dev Signed-off-by: Lee Jones Link: https://lore.kernel.org/r/20210414181129.1628598-28-lee.jones@linaro.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6655/upc.h b/drivers/staging/vt6655/upc.h index e086ec6e77f73..8608693ae9c3e 100644 --- a/drivers/staging/vt6655/upc.h +++ b/drivers/staging/vt6655/upc.h @@ -42,7 +42,7 @@ #define PCAvDelayByIO(uDelayUnit) \ do { \ - unsigned char byData; \ + unsigned char __maybe_unused byData; \ unsigned long ii; \ \ if (uDelayUnit <= 50) { \