Page MenuHomeFreeBSD

pf: Fix NOINET and NOINET6 build.
ClosedPublic

Authored by des on Oct 2 2024, 3:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 8:56 PM
Unknown Object (File)
Mon, Nov 4, 6:25 AM
Unknown Object (File)
Fri, Oct 25, 5:57 PM
Unknown Object (File)
Fri, Oct 18, 8:57 PM
Unknown Object (File)
Fri, Oct 18, 4:22 PM
Unknown Object (File)
Fri, Oct 18, 12:15 PM
Unknown Object (File)
Fri, Oct 18, 9:34 AM
Unknown Object (File)
Wed, Oct 16, 5:25 AM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Oct 2 2024, 3:58 PM

I can't reproduce the build failure, but this is fine.

This revision is now accepted and ready to land.Oct 2 2024, 4:01 PM

Both LINT-NOINET and LINT-NOINET6 build for me. I wonder what's different about your env...
But it's fine.

Ah yes, you need to also not have ALTQ enabled, and in fact this patch is too simple because the module also fails to build with NOINET.

% cat sys/amd64/conf/PFNO6 ; make buildkernel KERNCONF=PFNO6 MODULES_OVERRIDE=pf -j12 >& PFNO6.log ; echo $? ; grep error: PFNO6.log
include MINIMAL
ident PFNO6
device pf
nooption INET6
2
/usr/src/main/sys/netpfil/pf/pf.c:8858:19: error: unused variable 'h6' [-Werror,-Wunused-variable]
/usr/src/main/sys/netpfil/pf/pf.c:8858:19: error: unused variable 'h6' [-Werror,-Wunused-variable]
% cat sys/amd64/conf/PFNO4 ; make buildkernel KERNCONF=PFNO4 MODULES_OVERRIDE=pf -j12 >& PFNO4.log ; echo $? ; grep error: PFNO4.log
include MINIMAL
ident PFNO4
device pf
nooption INET
2
/usr/src/main/sys/netpfil/pf/pf.c:8857:14: error: unused variable 'h' [-Werror,-Wunused-variable]
des retitled this revision from pf: Fix NOINET6 build. to pf: Fix NOINET and NOINET6 build..Oct 2 2024, 5:39 PM
This revision now requires review to proceed.Oct 2 2024, 5:40 PM
This revision is now accepted and ready to land.Oct 2 2024, 5:42 PM
This revision was automatically updated to reflect the committed changes.