svn commit: r310933 - stable/11/sys/dev/sfxge/common
Andrew Rybchenko
arybchik at FreeBSD.org
Sat Dec 31 11:14:04 UTC 2016
Author: arybchik
Date: Sat Dec 31 11:14:03 2016
New Revision: 310933
URL: https://svnweb.freebsd.org/changeset/base/310933
Log:
MFC r310695
sfxge(4): fix defined-but-not-used warning if neither VPD nor NVRAM opt
enabled
Sponsored by: Solarflare Communications, Inc.
Modified:
stable/11/sys/dev/sfxge/common/siena_nic.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/sfxge/common/siena_nic.c
==============================================================================
--- stable/11/sys/dev/sfxge/common/siena_nic.c Sat Dec 31 11:13:23 2016 (r310932)
+++ stable/11/sys/dev/sfxge/common/siena_nic.c Sat Dec 31 11:14:03 2016 (r310933)
@@ -37,6 +37,8 @@ __FBSDID("$FreeBSD$");
#if EFSYS_OPT_SIENA
+#if EFSYS_OPT_VPD || EFSYS_OPT_NVRAM
+
static __checkReturn efx_rc_t
siena_nic_get_partn_mask(
__in efx_nic_t *enp,
@@ -78,6 +80,8 @@ fail1:
return (rc);
}
+#endif /* EFSYS_OPT_VPD || EFSYS_OPT_NVRAM */
+
static __checkReturn efx_rc_t
siena_board_cfg(
__in efx_nic_t *enp)
More information about the svn-src-stable
mailing list