* [Intel-wired-lan] [PATCH] ixgbevf: Remove unused parameter
@ 2016-04-26 23:29 Nguyen, Anthony L
2016-04-27 21:19 ` Jeff Kirsher
0 siblings, 1 reply; 3+ messages in thread
From: Nguyen, Anthony L @ 2016-04-26 23:29 UTC (permalink / raw)
To: intel-wired-lan
ixgbevf_update_xcast_mode() is not using the netdev parameter; removing it since it's unnecessary.
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 2 +-
drivers/net/ethernet/intel/ixgbevf/vf.c | 4 +---
drivers/net/ethernet/intel/ixgbevf/vf.h | 2 +-
3 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
index 007cbe0..bcbadac 100644
--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
@@ -1908,7 +1908,7 @@ static void ixgbevf_set_rx_mode(struct net_device *netdev)
spin_lock_bh(&adapter->mbx_lock);
- hw->mac.ops.update_xcast_mode(hw, netdev, xcast_mode);
+ hw->mac.ops.update_xcast_mode(hw, xcast_mode);
/* reprogram multicast list */
hw->mac.ops.update_mc_addr_list(hw, netdev); diff --git a/drivers/net/ethernet/intel/ixgbevf/vf.c b/drivers/net/ethernet/intel/ixgbevf/vf.c
index 4d613a4..9511da0 100644
--- a/drivers/net/ethernet/intel/ixgbevf/vf.c
+++ b/drivers/net/ethernet/intel/ixgbevf/vf.c
@@ -475,13 +475,11 @@ static s32 ixgbevf_update_mc_addr_list_vf(struct ixgbe_hw *hw,
/**
* ixgbevf_update_xcast_mode - Update Multicast mode
* @hw: pointer to the HW structure
- * @netdev: pointer to net device structure
* @xcast_mode: new multicast mode
*
* Updates the Multicast Mode of VF.
**/
-static s32 ixgbevf_update_xcast_mode(struct ixgbe_hw *hw,
- struct net_device *netdev, int xcast_mode)
+static s32 ixgbevf_update_xcast_mode(struct ixgbe_hw *hw, int
+xcast_mode)
{
struct ixgbe_mbx_info *mbx = &hw->mbx;
u32 msgbuf[2];
diff --git a/drivers/net/ethernet/intel/ixgbevf/vf.h b/drivers/net/ethernet/intel/ixgbevf/vf.h
index ef9f773..a407c15 100644
--- a/drivers/net/ethernet/intel/ixgbevf/vf.h
+++ b/drivers/net/ethernet/intel/ixgbevf/vf.h
@@ -63,7 +63,7 @@ struct ixgbe_mac_operations {
s32 (*set_uc_addr)(struct ixgbe_hw *, u32, u8 *);
s32 (*init_rx_addrs)(struct ixgbe_hw *);
s32 (*update_mc_addr_list)(struct ixgbe_hw *, struct net_device *);
- s32 (*update_xcast_mode)(struct ixgbe_hw *, struct net_device *, int);
+ s32 (*update_xcast_mode)(struct ixgbe_hw *, int);
s32 (*enable_mc)(struct ixgbe_hw *);
s32 (*disable_mc)(struct ixgbe_hw *);
s32 (*clear_vfta)(struct ixgbe_hw *);
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Intel-wired-lan] [PATCH] ixgbevf: Remove unused parameter
2016-04-26 23:29 [Intel-wired-lan] [PATCH] ixgbevf: Remove unused parameter Nguyen, Anthony L
@ 2016-04-27 21:19 ` Jeff Kirsher
2016-04-27 21:19 ` Jeff Kirsher
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Kirsher @ 2016-04-27 21:19 UTC (permalink / raw)
To: intel-wired-lan
On Tue, 2016-04-26 at 23:29 +0000, Nguyen, Anthony L wrote:
> ixgbevf_update_xcast_mode() is not using the netdev parameter;
> removing it since it's unnecessary.
>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
> ---
> ?drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 2 +-
> ?drivers/net/ethernet/intel/ixgbevf/vf.c?????????? | 4 +---
> ?drivers/net/ethernet/intel/ixgbevf/vf.h?????????? | 2 +-
> ?3 files changed, 3 insertions(+), 5 deletions(-)
2 issues with this patch, first it was corrupted by whatever means you
used to send this patch. ?Second this patch fails to compile (after I
had to apply it by hand) because it was not generated against my
lastest dev-queue branch.
There are only three things I ask when generating kernel patches:
1- always use my dev-queue branch to generate kernel patches against
our Intel wired LAN drivers
2- run checkpatch.pl against your patch and fix the reported errors and
possibly warnings
3- Compile test your patch before sending it off to intel-wired-lan at lis
ts.osuosl.org?mailing list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20160427/ba6a98c4/attachment.asc>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Intel-wired-lan] [PATCH] ixgbevf: Remove unused parameter
2016-04-27 21:19 ` Jeff Kirsher
@ 2016-04-27 21:19 ` Jeff Kirsher
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Kirsher @ 2016-04-27 21:19 UTC (permalink / raw)
To: intel-wired-lan
On Wed, 2016-04-27 at 14:19 -0700, Jeff Kirsher wrote:
> On Tue, 2016-04-26 at 23:29 +0000, Nguyen, Anthony L wrote:
> > ixgbevf_update_xcast_mode() is not using the netdev parameter;
> > removing it since it's unnecessary.
> >?
> > Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
> > ---
> > ?drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 2 +-
> > ?drivers/net/ethernet/intel/ixgbevf/vf.c?????????? | 4 +---
> > ?drivers/net/ethernet/intel/ixgbevf/vf.h?????????? | 2 +-
> > ?3 files changed, 3 insertions(+), 5 deletions(-)
>
> 2 issues with this patch, first it was corrupted by whatever means
> you
> used to send this patch. ?Second this patch fails to compile (after I
> had to apply it by hand) because it was not generated against my
> lastest dev-queue branch.
>
> There are only three things I ask when generating kernel patches:
> 1- always use my dev-queue branch to generate kernel patches against
> our Intel wired LAN drivers
> 2- run checkpatch.pl against your patch and fix the reported errors
> and
> possibly warnings
> 3- Compile test your patch before sending it off to intel-wired-lan at l
> is
> ts.osuosl.org?mailing list
Oh forgot to mention, dropping this patch for the v2 I created for Tony
:-(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20160427/26b19dc7/attachment.asc>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-27 21:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-26 23:29 [Intel-wired-lan] [PATCH] ixgbevf: Remove unused parameter Nguyen, Anthony L
2016-04-27 21:19 ` Jeff Kirsher
2016-04-27 21:19 ` Jeff Kirsher
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.