| .. | .. |
|---|
| 1 | 1 | // SPDX-License-Identifier: GPL-2.0 |
|---|
| 2 | | -/* Copyright(c) 2013 - 2018 Intel Corporation. */ |
|---|
| 2 | +/* Copyright(c) 2013 - 2019 Intel Corporation. */ |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | #include "fm10k_vf.h" |
|---|
| 5 | 5 | |
|---|
| .. | .. |
|---|
| 198 | 198 | * This function should determine the MAC address for the VF |
|---|
| 199 | 199 | **/ |
|---|
| 200 | 200 | s32 fm10k_msg_mac_vlan_vf(struct fm10k_hw *hw, u32 **results, |
|---|
| 201 | | - struct fm10k_mbx_info *mbx) |
|---|
| 201 | + struct fm10k_mbx_info __always_unused *mbx) |
|---|
| 202 | 202 | { |
|---|
| 203 | 203 | u8 perm_addr[ETH_ALEN]; |
|---|
| 204 | 204 | u16 vid; |
|---|
| .. | .. |
|---|
| 267 | 267 | * This function is used to add or remove unicast MAC addresses for |
|---|
| 268 | 268 | * the VF. |
|---|
| 269 | 269 | **/ |
|---|
| 270 | | -static s32 fm10k_update_uc_addr_vf(struct fm10k_hw *hw, u16 glort, |
|---|
| 271 | | - const u8 *mac, u16 vid, bool add, u8 flags) |
|---|
| 270 | +static s32 fm10k_update_uc_addr_vf(struct fm10k_hw *hw, |
|---|
| 271 | + u16 __always_unused glort, |
|---|
| 272 | + const u8 *mac, u16 vid, bool add, |
|---|
| 273 | + u8 __always_unused flags) |
|---|
| 272 | 274 | { |
|---|
| 273 | 275 | struct fm10k_mbx_info *mbx = &hw->mbx; |
|---|
| 274 | 276 | u32 msg[7]; |
|---|
| .. | .. |
|---|
| 309 | 311 | * This function is used to add or remove multicast MAC addresses for |
|---|
| 310 | 312 | * the VF. |
|---|
| 311 | 313 | **/ |
|---|
| 312 | | -static s32 fm10k_update_mc_addr_vf(struct fm10k_hw *hw, u16 glort, |
|---|
| 314 | +static s32 fm10k_update_mc_addr_vf(struct fm10k_hw *hw, |
|---|
| 315 | + u16 __always_unused glort, |
|---|
| 313 | 316 | const u8 *mac, u16 vid, bool add) |
|---|
| 314 | 317 | { |
|---|
| 315 | 318 | struct fm10k_mbx_info *mbx = &hw->mbx; |
|---|
| .. | .. |
|---|
| 373 | 376 | * are ready to bring up the interface. |
|---|
| 374 | 377 | **/ |
|---|
| 375 | 378 | s32 fm10k_msg_lport_state_vf(struct fm10k_hw *hw, u32 **results, |
|---|
| 376 | | - struct fm10k_mbx_info *mbx) |
|---|
| 379 | + struct fm10k_mbx_info __always_unused *mbx) |
|---|
| 377 | 380 | { |
|---|
| 378 | 381 | hw->mac.dglort_map = !results[FM10K_LPORT_STATE_MSG_READY] ? |
|---|
| 379 | 382 | FM10K_DGLORTMAP_NONE : FM10K_DGLORTMAP_ZERO; |
|---|
| .. | .. |
|---|
| 392 | 395 | * enabled we can add filters, if it is disabled all filters for this |
|---|
| 393 | 396 | * logical port are flushed. |
|---|
| 394 | 397 | **/ |
|---|
| 395 | | -static s32 fm10k_update_lport_state_vf(struct fm10k_hw *hw, u16 glort, |
|---|
| 396 | | - u16 count, bool enable) |
|---|
| 398 | +static s32 fm10k_update_lport_state_vf(struct fm10k_hw *hw, |
|---|
| 399 | + u16 __always_unused glort, |
|---|
| 400 | + u16 __always_unused count, bool enable) |
|---|
| 397 | 401 | { |
|---|
| 398 | 402 | struct fm10k_mbx_info *mbx = &hw->mbx; |
|---|
| 399 | 403 | u32 msg[2]; |
|---|
| .. | .. |
|---|
| 420 | 424 | * so that it can enable either multicast, multicast promiscuous, or |
|---|
| 421 | 425 | * promiscuous mode of operation. |
|---|
| 422 | 426 | **/ |
|---|
| 423 | | -static s32 fm10k_update_xcast_mode_vf(struct fm10k_hw *hw, u16 glort, u8 mode) |
|---|
| 427 | +static s32 fm10k_update_xcast_mode_vf(struct fm10k_hw *hw, |
|---|
| 428 | + u16 __always_unused glort, u8 mode) |
|---|
| 424 | 429 | { |
|---|
| 425 | 430 | struct fm10k_mbx_info *mbx = &hw->mbx; |
|---|
| 426 | 431 | u32 msg[3]; |
|---|
| .. | .. |
|---|
| 475 | 480 | * that information to then populate a DGLORTMAP/DEC entry and the queues |
|---|
| 476 | 481 | * to which it has been assigned. |
|---|
| 477 | 482 | **/ |
|---|
| 478 | | -static s32 fm10k_configure_dglort_map_vf(struct fm10k_hw *hw, |
|---|
| 483 | +static s32 fm10k_configure_dglort_map_vf(struct fm10k_hw __always_unused *hw, |
|---|
| 479 | 484 | struct fm10k_dglort_cfg *dglort) |
|---|
| 480 | 485 | { |
|---|
| 481 | 486 | /* verify the dglort pointer */ |
|---|