From: David Miller <davem@davemloft.net>
To: igor.stoppa@gmail.com
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
Subject: Re: [PATCH v2] ethernet: hnae: drop adhoc assert() macros
Date: Tue, 11 Sep 2018 23:07:16 -0700 (PDT) [thread overview]
Message-ID: <20180911.230716.1048852895308106303.davem@davemloft.net> (raw)
In-Reply-To: <20180908150142.27976-1-igor.stoppa@huawei.com>
From: Igor Stoppa <igor.stoppa@gmail.com>
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 <igor.stoppa@huawei.com>
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.
next prev parent reply other threads:[~2018-09-12 6:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-08 15:01 [PATCH v2] ethernet: hnae: drop adhoc assert() macros Igor Stoppa
2018-09-12 6:07 ` David Miller [this message]
2018-09-12 15:04 ` Igor Stoppa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180911.230716.1048852895308106303.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=huangdaode@hisilicon.com \
--cc=igor.stoppa@gmail.com \
--cc=igor.stoppa@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=salil.mehta@huawei.com \
--cc=yisen.zhuang@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).