diff mbox series

[RFC,24/24] target: mark __rcu to avoid warning

Message ID 20210220214112.7469-1-chaitanya.kulkarni@wdc.com
State New
Headers show
Series [RFC,01/24] target/iblock: remove an extra argument | expand

Commit Message

Chaitanya Kulkarni Feb. 20, 2021, 9:41 p.m. UTC
Mark struct fc_lport member prov with __rcu that fixes following
warning :-

drivers/target/tcm_fc/tfc_sess.c:47:17: error: incompatible types in comparison expression (different address spaces):
drivers/target/tcm_fc/tfc_sess.c:47:17:    void [noderef] __rcu *
drivers/target/tcm_fc/tfc_sess.c:47:17:    void *
drivers/target/tcm_fc/tfc_sess.c:72:9: error: incompatible types in comparison expression (different address spaces):
drivers/target/tcm_fc/tfc_sess.c:72:9:    void [noderef] __rcu *
drivers/target/tcm_fc/tfc_sess.c:72:9:    void *

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
---
 include/scsi/libfc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h
index 9b87e1a1c646..0446513e46d8 100644
--- a/include/scsi/libfc.h
+++ b/include/scsi/libfc.h
@@ -746,7 +746,7 @@  struct fc_lport {
 	struct mutex		       lp_mutex;
 	struct list_head	       list;
 	struct delayed_work	       retry_work;
-	void			       *prov[FC_FC4_PROV_SIZE];
+	void			       __rcu *prov[FC_FC4_PROV_SIZE];
 	struct list_head	       lport_list;
 };