aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_main.c
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2019-02-08 15:50:28 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-02-25 11:56:01 -0500
commit99be37edeb2fc3c9295abefc498cc3cc37eb8357 (patch)
tree70ca0fdcb67184b6175116d7f195fa9869869548 /drivers/net/ethernet/intel/ice/ice_main.c
parentbd16693f359bbab8776541c06a6df32f3996638e (diff)
ice: Mark extack argument as __always_unused
Commit 87b0984ebfab ("net: Add extack argument to ndo_fdb_add()") in net-next added an extended parameter to the .ndo_fdb_add op and changed ice_fdb_add() accordingly. Update the function header and add the __always_unused attribute to the new parameter to avoid -Wunused-parameter warnings. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c
index 48f033928aa2..9d266d754445 100644
--- a/drivers/net/ethernet/intel/ice/ice_main.c
+++ b/drivers/net/ethernet/intel/ice/ice_main.c
@@ -2435,11 +2435,12 @@ static void ice_set_rx_mode(struct net_device *netdev)
2435 * @addr: the MAC address entry being added 2435 * @addr: the MAC address entry being added
2436 * @vid: VLAN id 2436 * @vid: VLAN id
2437 * @flags: instructions from stack about fdb operation 2437 * @flags: instructions from stack about fdb operation
2438 * @extack: netlink extended ack
2438 */ 2439 */
2439static int ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[], 2440static int
2440 struct net_device *dev, const unsigned char *addr, 2441ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[],
2441 u16 vid, u16 flags, 2442 struct net_device *dev, const unsigned char *addr, u16 vid,
2442 struct netlink_ext_ack *extack) 2443 u16 flags, struct netlink_ext_ack __always_unused *extack)
2443{ 2444{
2444 int err; 2445 int err;
2445 2446