提交 99be37ed 编写于 作者: B Bruce Allan 提交者: Jeff Kirsher

ice: Mark extack argument as __always_unused

Commit 87b0984e ("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: NBruce Allan <bruce.w.allan@intel.com>
Signed-off-by: NAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 bd16693f
...@@ -2435,11 +2435,12 @@ static void ice_set_rx_mode(struct net_device *netdev) ...@@ -2435,11 +2435,12 @@ static void ice_set_rx_mode(struct net_device *netdev)
* @addr: the MAC address entry being added * @addr: the MAC address entry being added
* @vid: VLAN id * @vid: VLAN id
* @flags: instructions from stack about fdb operation * @flags: instructions from stack about fdb operation
* @extack: netlink extended ack
*/ */
static int ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[], static int
struct net_device *dev, const unsigned char *addr, ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[],
u16 vid, u16 flags, struct net_device *dev, const unsigned char *addr, u16 vid,
struct netlink_ext_ack *extack) u16 flags, struct netlink_ext_ack __always_unused *extack)
{ {
int err; int err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册