They are widely used all over the kernel and aren't contained only to the locking code.
Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
looks like this is guarded by _KERNEL in the original header, we should stick to it just in case in the new one
Well, down below are still collection of assertions. I'd rather pull down KASSERT() definitions under _KERNEL. However, that would require additional tinderbox build.
sys/sys/systm.h | ||
---|---|---|
148 ↗ | (On Diff #68241) | I do not understand, from the discussion above you all agreed to have the macros under _KERNEL, but there it is not ? |
sys/sys/systm.h | ||
---|---|---|
148 ↗ | (On Diff #68241) | It is. The ifdef is above at line 134. |
sys/sys/systm.h | ||
---|---|---|
148 ↗ | (On Diff #68241) | But isn't endif at line 138 ends its scope ? |
sys/sys/systm.h | ||
---|---|---|
148 ↗ | (On Diff #68241) | You are damn right. So looks like all other kernel related asserts in systm.h aren't covered by _KERNEL. Then I'd suggest to proceed as is, with original patch, where MPASSes were right after KASSERT definition. Then with a new patch tested with separate tinderbox build I will push all kernel related assertions under _KERNEL, all at once. |
sys/sys/systm.h | ||
---|---|---|
148 ↗ | (On Diff #68241) | ok |