Skip to content

fs/nfs: Add #ifdef guards around IPv4 specific code#2184

Open
pgzh wants to merge 1 commit into
freebsd:mainfrom
pgzh:nfs-common-fix
Open

fs/nfs: Add #ifdef guards around IPv4 specific code#2184
pgzh wants to merge 1 commit into
freebsd:mainfrom
pgzh:nfs-common-fix

Conversation

@pgzh
Copy link
Copy Markdown
Contributor

@pgzh pgzh commented May 9, 2026

nfsaddr2_match() is missing #ifdef guards for IPv4 specific code and is inconsistent with nfsaddr_match().
This change is probably required for INET6-only builds.

TBH, I tested compilation with INET enabled and there may be other places that prevent a INET6-only build.
Still, nfsaddr_match() already uses #ifdef guards around INET-specific code, so it cannot hurt to align the two functions.

nfsaddr2_match() is missing #ifdef guards for IPv4 specific code
and is inconsistent with nfsaddr_match().
This change is probably required for INET6-only builds.

Signed-off-by: Peter Ganzhorn <peter.ganzhorn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant