mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Fix the following gcc warnings on sparc64, when TCP_OFFLOAD is not
defined: sys/dev/cxgbe/t4_main.c:7474: warning: 'sysctl_tp_tick' defined but not used sys/dev/cxgbe/t4_main.c:7505: warning: 'sysctl_tp_dack_timer' defined but not used sys/dev/cxgbe/t4_main.c:7519: warning: 'sysctl_tp_timer' defined but not used This just adds a bunch of #ifdef TCP_OFFLOAD in the right places. Reviewed by: np Differential Revision: https://reviews.freebsd.org/D5620
This commit is contained in:
parent
e74d991d69
commit
353cae4976
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=296735
@ -491,9 +491,11 @@ static int sysctl_tx_rate(SYSCTL_HANDLER_ARGS);
|
|||||||
static int sysctl_ulprx_la(SYSCTL_HANDLER_ARGS);
|
static int sysctl_ulprx_la(SYSCTL_HANDLER_ARGS);
|
||||||
static int sysctl_wcwr_stats(SYSCTL_HANDLER_ARGS);
|
static int sysctl_wcwr_stats(SYSCTL_HANDLER_ARGS);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef TCP_OFFLOAD
|
||||||
static int sysctl_tp_tick(SYSCTL_HANDLER_ARGS);
|
static int sysctl_tp_tick(SYSCTL_HANDLER_ARGS);
|
||||||
static int sysctl_tp_dack_timer(SYSCTL_HANDLER_ARGS);
|
static int sysctl_tp_dack_timer(SYSCTL_HANDLER_ARGS);
|
||||||
static int sysctl_tp_timer(SYSCTL_HANDLER_ARGS);
|
static int sysctl_tp_timer(SYSCTL_HANDLER_ARGS);
|
||||||
|
#endif
|
||||||
static uint32_t fconf_iconf_to_mode(uint32_t, uint32_t);
|
static uint32_t fconf_iconf_to_mode(uint32_t, uint32_t);
|
||||||
static uint32_t mode_to_fconf(uint32_t);
|
static uint32_t mode_to_fconf(uint32_t);
|
||||||
static uint32_t mode_to_iconf(uint32_t);
|
static uint32_t mode_to_iconf(uint32_t);
|
||||||
@ -7455,6 +7457,7 @@ sysctl_wcwr_stats(SYSCTL_HANDLER_ARGS)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef TCP_OFFLOAD
|
||||||
static void
|
static void
|
||||||
unit_conv(char *buf, size_t len, u_int val, u_int factor)
|
unit_conv(char *buf, size_t len, u_int val, u_int factor)
|
||||||
{
|
{
|
||||||
@ -7538,6 +7541,7 @@ sysctl_tp_timer(SYSCTL_HANDLER_ARGS)
|
|||||||
|
|
||||||
return (sysctl_handle_long(oidp, &v, 0, req));
|
return (sysctl_handle_long(oidp, &v, 0, req));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static uint32_t
|
static uint32_t
|
||||||
fconf_iconf_to_mode(uint32_t fconf, uint32_t iconf)
|
fconf_iconf_to_mode(uint32_t fconf, uint32_t iconf)
|
||||||
|
Loading…
Reference in New Issue
Block a user