* [PATCH net-next ] cxgb4: Fix issues caught by sparse in dcb patchset
@ 2014-06-24 0:27 Anish Bhatt
2014-06-24 0:27 ` [PATCH] cxgb4: Fix endian bug introduced in 76bcb31efc0685574fb123f7aaa92f8a50c14fd9 Anish Bhatt
2014-06-24 5:26 ` [PATCH net-next ] cxgb4: Fix issues caught by sparse in dcb patchset David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Anish Bhatt @ 2014-06-24 0:27 UTC (permalink / raw)
To: netdev; +Cc: davem, leedom, hariprasad, Anish Bhatt
Hi,
This patch fixes warnings generated by sparse as pointed out by kbuild test robot, please appy to net-next. Applies on top of commit 79631c89ed70643fd0579a65834b227795b251ee
Thanks,
Anish
Signed-off-by: Anish Bhatt <anish@chelsio.com>
--
Anish Bhatt (1):
cxgb4: Fix endian bug introduced in
76bcb31efc0685574fb123f7aaa92f8a50c14fd9
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--
2.0.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] cxgb4: Fix endian bug introduced in 76bcb31efc0685574fb123f7aaa92f8a50c14fd9
2014-06-24 0:27 [PATCH net-next ] cxgb4: Fix issues caught by sparse in dcb patchset Anish Bhatt
@ 2014-06-24 0:27 ` Anish Bhatt
2014-06-24 13:55 ` Sergei Shtylyov
2014-06-24 5:26 ` [PATCH net-next ] cxgb4: Fix issues caught by sparse in dcb patchset David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Anish Bhatt @ 2014-06-24 0:27 UTC (permalink / raw)
To: netdev; +Cc: davem, leedom, hariprasad, Anish Bhatt
Signed-off-by: Anish Bhatt <anish@chelsio.com>
---
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
index 39b4a85..a8b1073 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
@@ -488,12 +488,12 @@ static void cxgb4_setpfccfg(struct net_device *dev, int priority, u8 pfccfg)
pcmd.op_to_portid |= cpu_to_be32(FW_PORT_CMD_APPLY);
pcmd.u.dcb.pfc.type = FW_PORT_DCB_TYPE_PFC;
- pcmd.u.dcb.pfc.pfcen = cpu_to_be16(pi->dcb.pfcen);
+ pcmd.u.dcb.pfc.pfcen = pi->dcb.pfcen;
if (pfccfg)
- pcmd.u.dcb.pfc.pfcen |= cpu_to_be16(1 << priority);
+ pcmd.u.dcb.pfc.pfcen |= (1 << priority);
else
- pcmd.u.dcb.pfc.pfcen &= cpu_to_be16(~(1 << priority));
+ pcmd.u.dcb.pfc.pfcen &= (~(1 << priority));
err = t4_wr_mbox(adap, adap->mbox, &pcmd, sizeof(pcmd), &pcmd);
if (err != FW_PORT_DCB_CFG_SUCCESS) {
@@ -501,7 +501,7 @@ static void cxgb4_setpfccfg(struct net_device *dev, int priority, u8 pfccfg)
return;
}
- pi->dcb.pfcen = be16_to_cpu(pcmd.u.dcb.pfc.pfcen);
+ pi->dcb.pfcen = pcmd.u.dcb.pfc.pfcen;
}
static u8 cxgb4_setall(struct net_device *dev)
--
2.0.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next ] cxgb4: Fix issues caught by sparse in dcb patchset
2014-06-24 0:27 [PATCH net-next ] cxgb4: Fix issues caught by sparse in dcb patchset Anish Bhatt
2014-06-24 0:27 ` [PATCH] cxgb4: Fix endian bug introduced in 76bcb31efc0685574fb123f7aaa92f8a50c14fd9 Anish Bhatt
@ 2014-06-24 5:26 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2014-06-24 5:26 UTC (permalink / raw)
To: anish; +Cc: netdev, leedom, hariprasad
From: Anish Bhatt <anish@chelsio.com>
Date: Mon, 23 Jun 2014 17:27:28 -0700
> Hi,
> This patch fixes warnings generated by sparse as pointed out by kbuild test robot, please appy to net-next. Applies on top of commit 79631c89ed70643fd0579a65834b227795b251ee
> Thanks,
> Anish
>
> Signed-off-by: Anish Bhatt <anish@chelsio.com>
Please resubmit this properly.
First of all, the subject in the patch is not the place to mention
the SHA1 ID of the commit that added the problem.
Instead you should mention it in the commit message body and
you cannot provide just the SHA1 ID, you must also provide
the header line text of the commit right afterwards inside
of parenthesis and double quotes, for example like this:
$(SHA1_ID) ("cxgb4: blah blah blah")
Since this is a one patch series, this header posting is not really
necessary, put that material into the patch commit message itself
and just post that.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] cxgb4: Fix endian bug introduced in 76bcb31efc0685574fb123f7aaa92f8a50c14fd9
2014-06-24 0:27 ` [PATCH] cxgb4: Fix endian bug introduced in 76bcb31efc0685574fb123f7aaa92f8a50c14fd9 Anish Bhatt
@ 2014-06-24 13:55 ` Sergei Shtylyov
0 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2014-06-24 13:55 UTC (permalink / raw)
To: Anish Bhatt, netdev; +Cc: davem, leedom, hariprasad
Hello.
On 06/24/2014 04:27 AM, Anish Bhatt wrote:
Please move the "introduced by <SHA1>" part of the subject into the
changelog and add to <SHA1> the summary line of that commit in enclosed in
parens. You can also add:
Fixes: <12-digit SHA1> ("<commit summary>")
before your signoff.
> Signed-off-by: Anish Bhatt <anish@chelsio.com>
> ---
> drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
> index 39b4a85..a8b1073 100644
> --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
> +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
> @@ -488,12 +488,12 @@ static void cxgb4_setpfccfg(struct net_device *dev, int priority, u8 pfccfg)
> pcmd.op_to_portid |= cpu_to_be32(FW_PORT_CMD_APPLY);
>
> pcmd.u.dcb.pfc.type = FW_PORT_DCB_TYPE_PFC;
> - pcmd.u.dcb.pfc.pfcen = cpu_to_be16(pi->dcb.pfcen);
> + pcmd.u.dcb.pfc.pfcen = pi->dcb.pfcen;
>
> if (pfccfg)
> - pcmd.u.dcb.pfc.pfcen |= cpu_to_be16(1 << priority);
> + pcmd.u.dcb.pfc.pfcen |= (1 << priority);
> else
> - pcmd.u.dcb.pfc.pfcen &= cpu_to_be16(~(1 << priority));
> + pcmd.u.dcb.pfc.pfcen &= (~(1 << priority));
Outer () not needed here and above.
WBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-24 13:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-24 0:27 [PATCH net-next ] cxgb4: Fix issues caught by sparse in dcb patchset Anish Bhatt
2014-06-24 0:27 ` [PATCH] cxgb4: Fix endian bug introduced in 76bcb31efc0685574fb123f7aaa92f8a50c14fd9 Anish Bhatt
2014-06-24 13:55 ` Sergei Shtylyov
2014-06-24 5:26 ` [PATCH net-next ] cxgb4: Fix issues caught by sparse in dcb patchset David Miller
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).