summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Medve <Emilian.Medve@Freescale.com>2014-01-08 10:41:02 (GMT)
committerEmilian Medve <Emilian.Medve@freescale.com>2014-01-10 16:52:04 (GMT)
commit902a793877eed6fcab22e34417b46aa4dfc0fb98 (patch)
treebb0a26298d4e45f01bbb9f5801783691a6492293
parent9cf684295c771018cf857cdd9fada90506cfe501 (diff)
downloadlinux-fsl-qoriq-902a793877eed6fcab22e34417b46aa4dfc0fb98.tar.xz
fsl_qbman: Fix the checkpatch error type COMPLEX_MACRO
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parenthesis Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com> Change-Id: I31e2455ca46408f7b87c1aa7006a8a803eada12f Reviewed-on: http://git.am.freescale.net:8181/7772 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Haiying Wang <Haiying.Wang@freescale.com> Reviewed-by: Geoff Thorpe <Geoff.Thorpe@freescale.com> Reviewed-by: Emilian Medve <Emilian.Medve@freescale.com>
-rw-r--r--drivers/staging/fsl_qbman/bman_test_high.c4
-rw-r--r--drivers/staging/fsl_qbman/qman_test_high.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/fsl_qbman/bman_test_high.c b/drivers/staging/fsl_qbman/bman_test_high.c
index f2a5284..7bdd181 100644
--- a/drivers/staging/fsl_qbman/bman_test_high.c
+++ b/drivers/staging/fsl_qbman/bman_test_high.c
@@ -36,8 +36,8 @@
/* constants */
/*************/
-#define PORTAL_OPAQUE (void *)0xf00dbeef
-#define POOL_OPAQUE (void *)0xdeadabba
+#define PORTAL_OPAQUE ((void *)0xf00dbeef)
+#define POOL_OPAQUE ((void *)0xdeadabba)
#define NUM_BUFS 93
#define LOOPS 3
#define BMAN_TOKEN_MASK 0x00FFFFFFFFFFLLU
diff --git a/drivers/staging/fsl_qbman/qman_test_high.c b/drivers/staging/fsl_qbman/qman_test_high.c
index cba6c25..bdd1843 100644
--- a/drivers/staging/fsl_qbman/qman_test_high.c
+++ b/drivers/staging/fsl_qbman/qman_test_high.c
@@ -45,7 +45,7 @@
QM_SDQCR_TOKEN_SET(0x98) | \
QM_SDQCR_CHANNELS_DEDICATED | \
QM_SDQCR_CHANNELS_POOL(POOL_ID))
-#define PORTAL_OPAQUE (void *)0xf00dbeef
+#define PORTAL_OPAQUE ((void *)0xf00dbeef)
#define VDQCR_FLAGS (QMAN_VOLATILE_FLAG_WAIT | QMAN_VOLATILE_FLAG_FINISH)
/*************************************/