gpio: rcar: Fix runtime PM imbalance on error
[linux/fpc-iii.git] / drivers / net / ethernet / intel / ice / ice_sriov.h
blob3d78a0795138c92c30558d47e588a89395a35ae2
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2018, Intel Corporation. */
4 #ifndef _ICE_SRIOV_H_
5 #define _ICE_SRIOV_H_
7 #include "ice_common.h"
9 #ifdef CONFIG_PCI_IOV
10 enum ice_status
11 ice_aq_send_msg_to_vf(struct ice_hw *hw, u16 vfid, u32 v_opcode, u32 v_retval,
12 u8 *msg, u16 msglen, struct ice_sq_cd *cd);
14 u32 ice_conv_link_speed_to_virtchnl(bool adv_link_support, u16 link_speed);
15 #else /* CONFIG_PCI_IOV */
16 static inline enum ice_status
17 ice_aq_send_msg_to_vf(struct ice_hw __always_unused *hw,
18 u16 __always_unused vfid, u32 __always_unused v_opcode,
19 u32 __always_unused v_retval, u8 __always_unused *msg,
20 u16 __always_unused msglen,
21 struct ice_sq_cd __always_unused *cd)
23 return 0;
26 static inline u32
27 ice_conv_link_speed_to_virtchnl(bool __always_unused adv_link_support,
28 u16 __always_unused link_speed)
30 return 0;
33 #endif /* CONFIG_PCI_IOV */
34 #endif /* _ICE_SRIOV_H_ */