aboutsummaryrefslogtreecommitdiff
path: root/include/fsp-leds.h
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-07-08 10:38:35 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-11 13:52:09 +1000
commit281e152366d461faf70f29b52bd7c892e24c7b5d (patch)
treeaa13a0c7abfe19fe1508d230a3e1fe2ead169e48 /include/fsp-leds.h
parentc82b51ba56e0f55300e10ad664256af8e63a4f60 (diff)
downloadskiboot-281e152366d461faf70f29b52bd7c892e24c7b5d.zip
skiboot-281e152366d461faf70f29b52bd7c892e24c7b5d.tar.gz
skiboot-281e152366d461faf70f29b52bd7c892e24c7b5d.tar.bz2
fsp-leds: add () around macros
found by Smatch static analysis (http://smatch.sourceforge.net/): hw/fsp/fsp-leds.c:576 fsp_msg_set_led_state() warn: the 'FSP_LED_EXCL_FAULT' ma\ cro might need parens hw/fsp/fsp-leds.c:583 fsp_msg_set_led_state() warn: the 'FSP_LED_EXCL_IDENTIFY'\ macro might need parens Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/fsp-leds.h')
-rw-r--r--include/fsp-leds.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fsp-leds.h b/include/fsp-leds.h
index 577e719..c5a33ac 100644
--- a/include/fsp-leds.h
+++ b/include/fsp-leds.h
@@ -37,8 +37,8 @@
#define FSP_RSRC_PRSNC_UNKNOWN 0x80 /* Resource presence unknown */
/* LED exclusive bits */
-#define FSP_LED_EXCL_FAULT 1UL << 0
-#define FSP_LED_EXCL_IDENTIFY 1UL << 1
+#define FSP_LED_EXCL_FAULT (1UL << 0)
+#define FSP_LED_EXCL_IDENTIFY (1UL << 1)
/* LED update message source */
enum spcn_cmd_src {