mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-13 20:14:37 -04:00
staging: vchiq_core: Add parentheses to VCHIQ_MSG_SRCPORT
checkpatch.pl complains ERROR: Macros with complex values should be enclosed in parentheses +#define VCHIQ_MSG_SRCPORT(msgid) \ + (unsigned short)(((unsigned int)(msgid) >> 12) & 0xfff) Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Link: https://lore.kernel.org/r/20240425165852.6681-4-wahrenst@gmx.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
aab643309b
commit
001a3df620
@@ -43,7 +43,7 @@
|
||||
(((type) << TYPE_SHIFT) | ((srcport) << 12) | ((dstport) << 0))
|
||||
#define VCHIQ_MSG_TYPE(msgid) ((unsigned int)(msgid) >> TYPE_SHIFT)
|
||||
#define VCHIQ_MSG_SRCPORT(msgid) \
|
||||
(unsigned short)(((unsigned int)(msgid) >> 12) & 0xfff)
|
||||
((unsigned short)(((unsigned int)(msgid) >> 12) & 0xfff))
|
||||
#define VCHIQ_MSG_DSTPORT(msgid) \
|
||||
((unsigned short)(msgid) & 0xfff)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user