Page MenuHomeFreeBSD

sys/mount.h: Add missing headers so it's standalone for _WANT_MOUNT
ClosedPublic

Authored by jrtc27 on Jun 6 2025, 2:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 6, 7:30 AM
Unknown Object (File)
Wed, Nov 5, 12:25 AM
Unknown Object (File)
Oct 26 2025, 12:40 PM
Unknown Object (File)
Oct 26 2025, 11:14 AM
Unknown Object (File)
Oct 23 2025, 4:12 AM
Unknown Object (File)
Oct 21 2025, 12:44 AM
Unknown Object (File)
Oct 17 2025, 1:13 PM
Unknown Object (File)
Oct 4 2025, 5:36 AM
Subscribers
None

Diff Detail

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

Event Timeline

jrtc27 requested review of this revision.Jun 6 2025, 2:12 PM
jrtc27 created this revision.
This revision is now accepted and ready to land.Jun 6 2025, 2:46 PM

You need at least sys/types.h there as well.

In D50716#1158047, @kib wrote:

You need at least sys/types.h there as well.

Hm, isn't it more that there's an existing issue of sys/types.h not being explicitly included for normal userspace includes? All kinds of userspace-visible types are using uintN_t for example here. It just works because sys/ucred.h includes sys/types.h (and perhaps via other include chains too). I can definitely fix that, but I feel that should be a separate (precursor?) commit.

In D50716#1158047, @kib wrote:

You need at least sys/types.h there as well.

Hm, isn't it more that there's an existing issue of sys/types.h not being explicitly included for normal userspace includes? All kinds of userspace-visible types are using uintN_t for example here. It just works because sys/ucred.h includes sys/types.h (and perhaps via other include chains too). I can definitely fix that, but I feel that should be a separate (precursor?) commit.

I have no objections about sys/types.h being a preparational commit.