[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YFTrc4wGyZ5142Es@lunn.ch>
Date: Fri, 19 Mar 2021 19:20:35 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Leon Romanovsky <leon@...nel.org>
Cc: Alex Elder <elder@...aro.org>, davem@...emloft.net,
kuba@...nel.org, bjorn.andersson@...aro.org, evgreen@...omium.org,
cpratapa@...eaurora.org, elder@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 3/4] net: ipa: introduce ipa_assert()
> 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
Powered by blists - more mailing lists