svn commit: r317362 - stable/11/sys/dev/isp
Alexander Motin
mav at FreeBSD.org
Mon Apr 24 11:12:05 UTC 2017
Author: mav
Date: Mon Apr 24 11:12:03 2017
New Revision: 317362
URL: https://svnweb.freebsd.org/changeset/base/317362
Log:
MFC r315913: Add brackets to fix incorrect macro expansion.
Modified:
stable/11/sys/dev/isp/ispmbox.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/isp/ispmbox.h
==============================================================================
--- stable/11/sys/dev/isp/ispmbox.h Mon Apr 24 11:06:10 2017 (r317361)
+++ stable/11/sys/dev/isp/ispmbox.h Mon Apr 24 11:12:03 2017 (r317362)
@@ -1207,7 +1207,7 @@ typedef struct {
#define ICB2400_VPINFO_OFF 0x80 /* offset from start of ICB */
#define ICB2400_VPINFO_PORT_OFF(chan) \
(ICB2400_VPINFO_OFF + \
- sizeof (isp_icb_2400_vpinfo_t) + (chan * ICB2400_VPOPT_WRITE_SIZE))
+ sizeof (isp_icb_2400_vpinfo_t) + ((chan) * ICB2400_VPOPT_WRITE_SIZE))
#define ICB2400_VPGOPT_FCA 0x01 /* Assume Clean Address bit in FLOGI ACC set (works only in static configurations) */
#define ICB2400_VPGOPT_MID_DISABLE 0x02 /* when set, connection mode2 will work with NPIV-capable switched */
More information about the svn-src-all
mailing list