From 47eb2bf35cf8bce3f3e9b163fe6e1c5596ce1aa9 Mon Sep 17 00:00:00 2001
From: Wenkai Lin <linwenkai6@hisilicon.com>
Date: Sun, 24 Apr 2022 09:54:27 +0800
Subject: [PATCH 121/183] uadk: fix macro argument

macro argument 'drv' should be enclosed in parentheses.

Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
---
 include/drv/wd_aead_drv.h   | 2 +-
 include/drv/wd_cipher_drv.h | 2 +-
 include/drv/wd_comp_drv.h   | 2 +-
 include/drv/wd_dh_drv.h     | 2 +-
 include/drv/wd_digest_drv.h | 2 +-
 include/drv/wd_ecc_drv.h    | 2 +-
 include/drv/wd_rsa_drv.h    | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/drv/wd_aead_drv.h b/include/drv/wd_aead_drv.h
index 137e70a..6d883bf 100644
--- a/include/drv/wd_aead_drv.h
+++ b/include/drv/wd_aead_drv.h
@@ -86,7 +86,7 @@ struct wd_aead_driver *wd_aead_get_driver(void)			\
 #define WD_AEAD_SET_DRIVER(drv)				              \
 static void __attribute__((constructor)) set_aead_driver(void)		      \
 {									      \
-	wd_aead_set_driver(&drv);					      \
+	wd_aead_set_driver(&(drv));					      \
 }
 #endif
 
diff --git a/include/drv/wd_cipher_drv.h b/include/drv/wd_cipher_drv.h
index 87b77d3..ecd421d 100644
--- a/include/drv/wd_cipher_drv.h
+++ b/include/drv/wd_cipher_drv.h
@@ -71,7 +71,7 @@ struct wd_cipher_driver *wd_cipher_get_driver(void)			      \
 #define WD_CIPHER_SET_DRIVER(drv)				              \
 static void __attribute__((constructor)) set_driver(void)		      \
 {									      \
-	wd_cipher_set_driver(&drv);					      \
+	wd_cipher_set_driver(&(drv));					      \
 }
 #endif
 
diff --git a/include/drv/wd_comp_drv.h b/include/drv/wd_comp_drv.h
index 73403b5..a6c93d0 100644
--- a/include/drv/wd_comp_drv.h
+++ b/include/drv/wd_comp_drv.h
@@ -77,7 +77,7 @@ struct wd_comp_driver *wd_comp_get_driver(void)				      \
 #define WD_COMP_SET_DRIVER(drv)						      \
 static void __attribute__((constructor)) set_driver(void)		      \
 {									      \
-	wd_comp_set_driver(&drv);					      \
+	wd_comp_set_driver(&(drv));					      \
 }
 #endif
 
diff --git a/include/drv/wd_dh_drv.h b/include/drv/wd_dh_drv.h
index 0d3fb2b..f0235c7 100644
--- a/include/drv/wd_dh_drv.h
+++ b/include/drv/wd_dh_drv.h
@@ -45,7 +45,7 @@ struct wd_dh_driver *wd_dh_get_driver(void)				\
 #define WD_DH_SET_DRIVER(drv)						\
 static void __attribute__((constructor)) set_driver_dh(void)		\
 {									\
-	wd_dh_set_driver(&drv);						\
+	wd_dh_set_driver(&(drv));						\
 }
 #endif
 
diff --git a/include/drv/wd_digest_drv.h b/include/drv/wd_digest_drv.h
index 6907bc5..2401728 100644
--- a/include/drv/wd_digest_drv.h
+++ b/include/drv/wd_digest_drv.h
@@ -74,7 +74,7 @@ struct wd_digest_driver *wd_digest_get_driver(void)			      \
 #define WD_DIGEST_SET_DRIVER(drv)					      \
 static void __attribute__((constructor)) set_drivers(void)		      \
 {									      \
-	wd_digest_set_driver(&drv);					      \
+	wd_digest_set_driver(&(drv));					      \
 }
 #endif
 
diff --git a/include/drv/wd_ecc_drv.h b/include/drv/wd_ecc_drv.h
index 66ed641..74dbcf8 100644
--- a/include/drv/wd_ecc_drv.h
+++ b/include/drv/wd_ecc_drv.h
@@ -198,7 +198,7 @@ struct wd_ecc_driver *wd_ecc_get_driver(void)				\
 #define WD_ECC_SET_DRIVER(drv)						\
 static void __attribute__((constructor)) set_driver_ecc(void)		\
 {									\
-	wd_ecc_set_driver(&drv);					\
+	wd_ecc_set_driver(&(drv));					\
 }
 #endif
 
diff --git a/include/drv/wd_rsa_drv.h b/include/drv/wd_rsa_drv.h
index 837420e..bde6bbd 100644
--- a/include/drv/wd_rsa_drv.h
+++ b/include/drv/wd_rsa_drv.h
@@ -70,7 +70,7 @@ struct wd_rsa_driver *wd_rsa_get_driver(void)				      \
 #define WD_RSA_SET_DRIVER(drv)						      \
 static void __attribute__((constructor)) set_driver_rsa(void)		      \
 {									      \
-	wd_rsa_set_driver(&drv);					      \
+	wd_rsa_set_driver(&(drv));					      \
 }
 #endif
 
-- 
2.27.0

