From 1f4bb1bd2ac15dca897e5824413c4483b37179ea Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Wed, 28 Dec 2016 11:28:16 +0000 Subject: [PATCH] sfxge(4): fix defined-but-not-used warning if neither VPD nor NVRAM opt enabled Sponsored by: Solarflare Communications, Inc. MFC after: 2 days --- sys/dev/sfxge/common/siena_nic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/sfxge/common/siena_nic.c b/sys/dev/sfxge/common/siena_nic.c index b809a4d4d95..e4a8924900e 100644 --- a/sys/dev/sfxge/common/siena_nic.c +++ b/sys/dev/sfxge/common/siena_nic.c @@ -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)