aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/scsi/libfc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h
index d888cbecd72e..2fdd8ac12b89 100644
--- a/include/scsi/libfc.h
+++ b/include/scsi/libfc.h
@@ -223,9 +223,9 @@ struct fc_rport_libfc_priv {
223}; 223};
224 224
225#define PRIV_TO_RPORT(x) \ 225#define PRIV_TO_RPORT(x) \
226 (struct fc_rport *)((void *)x - sizeof(struct fc_rport)); 226 ((struct fc_rport *)((void *)(x) - sizeof(struct fc_rport)))
227#define RPORT_TO_PRIV(x) \ 227#define RPORT_TO_PRIV(x) \
228 (struct fc_rport_libfc_priv *)((void *)x + sizeof(struct fc_rport)); 228 ((struct fc_rport_libfc_priv *)((void *)(x) + sizeof(struct fc_rport)))
229 229
230static inline void fc_rport_set_name(struct fc_rport *rport, u64 wwpn, u64 wwnn) 230static inline void fc_rport_set_name(struct fc_rport *rport, u64 wwpn, u64 wwnn)
231{ 231{