Page MenuHomeFreeBSD

nfs: make no-IP kernels compile
ClosedPublic

Authored by bz on Apr 18 2026, 1:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 16, 7:01 PM
Unknown Object (File)
Sat, May 16, 7:01 PM
Unknown Object (File)
Sat, May 16, 6:58 PM
Unknown Object (File)
Wed, May 13, 2:22 PM
Unknown Object (File)
Tue, May 12, 2:12 AM
Unknown Object (File)
Tue, May 12, 1:45 AM
Unknown Object (File)
Mon, May 11, 6:27 PM
Unknown Object (File)
Sat, May 9, 12:41 AM
Subscribers

Details

Summary

Compiling a LINT-NOIP kernel (assumingly also a NOINET) port and ip
are set but not used in nfsrv_getclientipaddr().

Hide the variables behind #ifdef checks and do likewise for the parsing
results. Admittingly the code probably wants to be rewritten one day.

Found with: gcc15 tinderbox build
MFC after: 3 days

Diff Detail

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

Event Timeline

bz requested review of this revision.Apr 18 2026, 1:34 PM

Actually that function should go away completely.
It is only used for NFSv4.0, which is now considered
deprecated in favour of NFSv4.1/4.2 and it only
deals with a callback address. Callback addresses
are used for NFSv4.0 only when delegations are
enabled and NFSv4.0 delegations are basically
useless.

I've had disabling callbacks/delegations for
NFSv4.0 on my to-do list for a while, but I
haven't gotten around to it.

Until then, this commit looks fine to me.

This revision is now accepted and ready to land.Apr 18 2026, 2:31 PM
This revision was automatically updated to reflect the committed changes.