git: 3ddf7666a0c4 - main - mii: fix the LINT-NOVIMAGE build for LAN867X
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Nov 2026 04:28:37 UTC
The branch main has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=3ddf7666a0c4d970102be1e6d392a8029c009297
commit 3ddf7666a0c4d970102be1e6d392a8029c009297
Author: Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-11-03 04:19:19 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-11-03 04:26:24 +0000
mii: fix the LINT-NOVIMAGE build for LAN867X
`sys/kernel.h` must be included for all kernel drivers, per driver(9).
`sys/kernel.h` provides defines for `SI_*`, which
`EARLY_DRIVER_MODULE(..)` in `sys/bus.h` relies on and the latter header
is not "self-standing".
Found when running `make tinderbox`.
Fixes: 83d0eed50106 ("lan867xphy: New driver for Microchip ...")
---
sys/dev/mii/lan867xphy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/mii/lan867xphy.c b/sys/dev/mii/lan867xphy.c
index 6fe23959df86..cb86314fb1e8 100644
--- a/sys/dev/mii/lan867xphy.c
+++ b/sys/dev/mii/lan867xphy.c
@@ -20,9 +20,9 @@
* - Link status (D0 and later)
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/bus.h>
+#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/socket.h>