Remove some that are not needed. No functional change intended.
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/kern/vfs_vnops.c | ||
---|---|---|
45 |
There is no mention in style(9) that sys/param.h must not be directly included even if sys/systm.h is also. On the contrary, it evokes their ordering when both should be included. As said elsewhere, we should stick with listing all the includes that are directly needed, unless we have clear agreed-upon exceptions (which are equivalent to a kind of commitment that the headers won't be disentangled). If you wish that sys/param.h is not listed when sys/systm.h is included, then please propose a draft modifying style(9). Actually, sys/systm.h includes sys/param.h only on _KERNEL, not in userland. This would need to be spelled clearly in such a proposal (and seems a drawback to me). In the meantime, I would not remove sys/param.h here. |
sys/kern/vfs_vnops.c | ||
---|---|---|
45 | sys/systm.h was written as a convenience header providing the set of the kernel symbols. sys/param.h is part of the systm.h contract. |