Re: [PATCH net-next 3/4] net: ipa: introduce ipa_assert()

From: Andrew Lunn
Date: Fri Mar 19 2021 - 14:21:47 EST


> 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