> It will be much better for everyone if you don't obfuscate existing > kernel primitives and don't hide constant vs. dynamic expressions. > > So any random kernel developer will be able to change the code without > investing too much time to understand this custom logic. > > And constant expressions are checked with BUILD_BUG_ON(). > > If you still feel need to provide assertion like this, it should be done > in general code.
+1 Andrew