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
F157811395: D50716.id157134.diff
Mon, May 25, 11:14 AM
Unknown Object (File)
Tue, May 12, 4:08 PM
Unknown Object (File)
Mon, May 11, 10:23 PM
Unknown Object (File)
Mon, May 11, 9:35 PM
Unknown Object (File)
Mon, May 11, 8:59 PM
Unknown Object (File)
Thu, May 7, 7:43 AM
Unknown Object (File)
Mon, Apr 27, 4:25 PM
Unknown Object (File)
Apr 21 2026, 1:15 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.