From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2] ethernet: hnae: drop adhoc assert() macros Date: Tue, 11 Sep 2018 23:07:16 -0700 (PDT) Message-ID: <20180911.230716.1048852895308106303.davem@davemloft.net> References: <20180908150142.27976-1-igor.stoppa@huawei.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: igor.stoppa@huawei.com, huangdaode@hisilicon.com, yisen.zhuang@huawei.com, salil.mehta@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: igor.stoppa@gmail.com Return-path: In-Reply-To: <20180908150142.27976-1-igor.stoppa@huawei.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Igor Stoppa Date: Sat, 8 Sep 2018 18:01:42 +0300 > Replace assert() with a less misleading test_condition() using WARN() > Drop one check which had bitrotted and didn't compile anymore. > > Signed-off-by: Igor Stoppa I'm still kind of not happy about this. Make the driver use kernel interfaces like WARN_ON_ONCE() etc. directly instead of defining alias CPP macros private to the driver. If it needs to be conditional upon DEBUG, we have pr_debug() and the likes as well. Thank you.