-Wunused-function rising on main again

From: Bjoern A. Zeeb <bzeeb-lists_at_lists.zabbadoz.net>
Date: Fri, 05 Sep 2025 21:11:46 UTC
Hi,

for a long time we were down to 1 zfs warning, now we accumulate a lot
more.  Can people please pay attention.  make -s is your friend:

2 --------------------------------------------------------------
3 >>> Kernel build for LINT started on Fri Sep  5 20:14:36 UTC 2025
4 --------------------------------------------------------------
5 ===> LINT
6         0.12 real         0.04 user         0.09 sys
7
8 --------------------------------------------------------------
9 >>> stage 2.3: build tools
10 --------------------------------------------------------------
11         0.33 real         0.23 user         0.10 sys
12
13 --------------------------------------------------------------
14 >>> stage 3.1: building everything
15 --------------------------------------------------------------
16 /tank/users/bz/git/FreeBSD/freebsd-src/sys/dev/ichwd/i6300esbwd.c:49:1: warning: unused function 'i6300esbwd_cfg_read' [-Wunused-function]
17    49 | i6300esbwd_cfg_read(struct i6300esbwd_softc *sc)
18       | ^~~~~~~~~~~~~~~~~~~
19 1 warning generated.
20 /tank/users/bz/git/FreeBSD/freebsd-src/sys/net/iflib.c:7124:1: warning: unused function 'iflib_simple_transmit' [-Wunused-function]
21  7124 | iflib_simple_transmit(if_t ifp, struct mbuf *m)
22       | ^~~~~~~~~~~~~~~~~~~~~
23 1 warning generated.
24 /tank/users/bz/git/FreeBSD/freebsd-src/sys/dev/ixgbe/ixgbe_e610.c:1411:13: warning: unused function 'ixgbe_is_media_cage_present' [-Wunused-function]
25  1411 | static bool ixgbe_is_media_cage_present(struct ixgbe_hw *hw)
26       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
27 1 warning generated.
28 /tank/users/bz/git/FreeBSD/freebsd-src/sys/dev/ixgbe/ixgbe_e610.c:1411:13: warning: unused function 'ixgbe_is_media_cage_present' [-Wunused-function]
29  1411 | static bool ixgbe_is_media_cage_present(struct ixgbe_hw *hw)
30       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
31 1 warning generated.
32 /tank/users/bz/git/FreeBSD/freebsd-src/sys/contrib/openzfs/module/zstd/zfs_zstd.c:445:1: warning: unused function 'zfs_zstd_compress_wrap' [-Wunused-function]
33   445 | zfs_zstd_compress_wrap(void *s_start, void *d_start, size_t s_len, size_t d_len,
34       | ^~~~~~~~~~~~~~~~~~~~~~
35 1 warning generated.
36 /tank/users/bz/git/FreeBSD/freebsd-src/sys/dev/ixgbe/ixgbe_e610.c:1411:13: warning: unused function 'ixgbe_is_media_cage_present' [-Wunused-function]
37  1411 | static bool ixgbe_is_media_cage_present(struct ixgbe_hw *hw)
38       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
39 1 warning generated.
40 /tank/users/bz/git/FreeBSD/freebsd-src/sys/net/iflib.c:7124:1: warning: unused function 'iflib_simple_transmit' [-Wunused-function]
41  7124 | iflib_simple_transmit(if_t ifp, struct mbuf *m)
42       | ^~~~~~~~~~~~~~~~~~~~~
43 1 warning generated.
44 /tank/users/bz/git/FreeBSD/freebsd-src/sys/dev/ichwd/i6300esbwd.c:49:1: warning: unused function 'i6300esbwd_cfg_read' [-Wunused-function]
45    49 | i6300esbwd_cfg_read(struct i6300esbwd_softc *sc)
46       | ^~~~~~~~~~~~~~~~~~~
47 1 warning generated.
48 linking kernel

-- 
Bjoern A. Zeeb                                                     r15:7