hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/net/ethernet/intel/fm10k/fm10k_vf.c
....@@ -1,5 +1,5 @@
11 // SPDX-License-Identifier: GPL-2.0
2
-/* Copyright(c) 2013 - 2018 Intel Corporation. */
2
+/* Copyright(c) 2013 - 2019 Intel Corporation. */
33
44 #include "fm10k_vf.h"
55
....@@ -198,7 +198,7 @@
198198 * This function should determine the MAC address for the VF
199199 **/
200200 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)
202202 {
203203 u8 perm_addr[ETH_ALEN];
204204 u16 vid;
....@@ -267,8 +267,10 @@
267267 * This function is used to add or remove unicast MAC addresses for
268268 * the VF.
269269 **/
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)
272274 {
273275 struct fm10k_mbx_info *mbx = &hw->mbx;
274276 u32 msg[7];
....@@ -309,7 +311,8 @@
309311 * This function is used to add or remove multicast MAC addresses for
310312 * the VF.
311313 **/
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,
313316 const u8 *mac, u16 vid, bool add)
314317 {
315318 struct fm10k_mbx_info *mbx = &hw->mbx;
....@@ -373,7 +376,7 @@
373376 * are ready to bring up the interface.
374377 **/
375378 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)
377380 {
378381 hw->mac.dglort_map = !results[FM10K_LPORT_STATE_MSG_READY] ?
379382 FM10K_DGLORTMAP_NONE : FM10K_DGLORTMAP_ZERO;
....@@ -392,8 +395,9 @@
392395 * enabled we can add filters, if it is disabled all filters for this
393396 * logical port are flushed.
394397 **/
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)
397401 {
398402 struct fm10k_mbx_info *mbx = &hw->mbx;
399403 u32 msg[2];
....@@ -420,7 +424,8 @@
420424 * so that it can enable either multicast, multicast promiscuous, or
421425 * promiscuous mode of operation.
422426 **/
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)
424429 {
425430 struct fm10k_mbx_info *mbx = &hw->mbx;
426431 u32 msg[3];
....@@ -475,7 +480,7 @@
475480 * that information to then populate a DGLORTMAP/DEC entry and the queues
476481 * to which it has been assigned.
477482 **/
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,
479484 struct fm10k_dglort_cfg *dglort)
480485 {
481486 /* verify the dglort pointer */