From: Tom Rix <trix@redhat.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: rmody@marvell.com, skalluru@marvell.com, davem@davemloft.net,
GR-Linux-NIC-Dev@marvell.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: bna: remove trailing semicolon in macro definition
Date: Tue, 1 Dec 2020 09:25:16 -0800 [thread overview]
Message-ID: <eb49f169-ff60-7a23-a461-f9fa012c0a34@redhat.com> (raw)
In-Reply-To: <20201130190102.3220d9eb@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com>
On 11/30/20 7:01 PM, Jakub Kicinski wrote:
> On Fri, 27 Nov 2020 08:55:50 -0800 trix@redhat.com wrote:
>> From: Tom Rix <trix@redhat.com>
>>
>> The macro use will already have a semicolon.
>>
>> Signed-off-by: Tom Rix <trix@redhat.com>
>> ---
>> drivers/net/ethernet/brocade/bna/bna_hw_defs.h | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/net/ethernet/brocade/bna/bna_hw_defs.h b/drivers/net/ethernet/brocade/bna/bna_hw_defs.h
>> index f335b7115c1b..4b19855017d7 100644
>> --- a/drivers/net/ethernet/brocade/bna/bna_hw_defs.h
>> +++ b/drivers/net/ethernet/brocade/bna/bna_hw_defs.h
>> @@ -218,7 +218,7 @@ do { \
>>
>> /* Set the coalescing timer for the given ib */
>> #define bna_ib_coalescing_timer_set(_i_dbell, _cls_timer) \
>> - ((_i_dbell)->doorbell_ack = BNA_DOORBELL_IB_INT_ACK((_cls_timer), 0));
>> + ((_i_dbell)->doorbell_ack = BNA_DOORBELL_IB_INT_ACK((_cls_timer), 0))
>>
>> /* Acks 'events' # of events for a given ib while disabling interrupts */
>> #define bna_ib_ack_disable_irq(_i_dbell, _events) \
>> @@ -260,7 +260,7 @@ do { \
>>
>> #define bna_txq_prod_indx_doorbell(_tcb) \
>> (writel(BNA_DOORBELL_Q_PRD_IDX((_tcb)->producer_index), \
>> - (_tcb)->q_dbell));
>> + (_tcb)->q_dbell))
>>
>> #define bna_rxq_prod_indx_doorbell(_rcb) \
>> (writel(BNA_DOORBELL_Q_PRD_IDX((_rcb)->producer_index), \
> Same story here as Daniel pointed out for the BPF patch.
>
> There are 2 macros right below here which also have a semicolon at the
> end. And these ones are used. So the patch appears to be pretty arbitrary.
I will add the other macros in the next revision.
Sorry,
Tom
>
prev parent reply other threads:[~2020-12-01 17:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-27 16:55 [PATCH] net: bna: remove trailing semicolon in macro definition trix
2020-12-01 3:01 ` Jakub Kicinski
2020-12-01 17:25 ` Tom Rix [this message]
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=eb49f169-ff60-7a23-a461-f9fa012c0a34@redhat.com \
--to=trix@redhat.com \
--cc=GR-Linux-NIC-Dev@marvell.com \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=rmody@marvell.com \
--cc=skalluru@marvell.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).