[Sound-open-firmware] [PATCH] ipc: protect SOF_IPC_MESSAGE_ID macro parameters
4 Jun
2018
4 Jun
'18
6:46 p.m.
detected with checkpatch.pl --strict: CHECK: Macro argument 'x' may be better as '(x)' to avoid precedence issues
Signed-off-by: Pierre-Louis Bossart pierre-louis.bossart@linux.intel.com --- src/include/uapi/ipc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/include/uapi/ipc.h b/src/include/uapi/ipc.h index 88de113..fc4ce46 100644 --- a/src/include/uapi/ipc.h +++ b/src/include/uapi/ipc.h @@ -126,7 +126,7 @@ #define SOF_IPC_TRACE_DMA_POSITION SOF_CMD_TYPE(0x002)
/* Get message component id */ -#define SOF_IPC_MESSAGE_ID(x) (x & 0xffff) +#define SOF_IPC_MESSAGE_ID(x) ((x) & 0xffff)
/* maximum message size for mailbox Tx/Rx */ #define SOF_IPC_MSG_MAX_SIZE 128
--
2.14.1
2393
Age (days ago)
2393
Last active (days ago)
0 comments
1 participants
participants (1)
-
Pierre-Louis Bossart