diff options
-rw-r--r-- | drivers/net/ixgbe/ixgbe_mbx.c | 2 | ||||
-rw-r--r-- | drivers/net/ixgbe/ixgbe_mbx.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_mbx.c b/drivers/net/ixgbe/ixgbe_mbx.c index ea82c5a1cd3e..f215c4c296c4 100644 --- a/drivers/net/ixgbe/ixgbe_mbx.c +++ b/drivers/net/ixgbe/ixgbe_mbx.c | |||
@@ -437,6 +437,7 @@ out_no_read: | |||
437 | return ret_val; | 437 | return ret_val; |
438 | } | 438 | } |
439 | 439 | ||
440 | #ifdef CONFIG_PCI_IOV | ||
440 | /** | 441 | /** |
441 | * ixgbe_init_mbx_params_pf - set initial values for pf mailbox | 442 | * ixgbe_init_mbx_params_pf - set initial values for pf mailbox |
442 | * @hw: pointer to the HW structure | 443 | * @hw: pointer to the HW structure |
@@ -465,6 +466,7 @@ void ixgbe_init_mbx_params_pf(struct ixgbe_hw *hw) | |||
465 | break; | 466 | break; |
466 | } | 467 | } |
467 | } | 468 | } |
469 | #endif /* CONFIG_PCI_IOV */ | ||
468 | 470 | ||
469 | struct ixgbe_mbx_operations mbx_ops_generic = { | 471 | struct ixgbe_mbx_operations mbx_ops_generic = { |
470 | .read = ixgbe_read_mbx_pf, | 472 | .read = ixgbe_read_mbx_pf, |
diff --git a/drivers/net/ixgbe/ixgbe_mbx.h b/drivers/net/ixgbe/ixgbe_mbx.h index 3df9b1590218..ada0ce32a7a6 100644 --- a/drivers/net/ixgbe/ixgbe_mbx.h +++ b/drivers/net/ixgbe/ixgbe_mbx.h | |||
@@ -86,7 +86,9 @@ s32 ixgbe_write_mbx(struct ixgbe_hw *, u32 *, u16, u16); | |||
86 | s32 ixgbe_check_for_msg(struct ixgbe_hw *, u16); | 86 | s32 ixgbe_check_for_msg(struct ixgbe_hw *, u16); |
87 | s32 ixgbe_check_for_ack(struct ixgbe_hw *, u16); | 87 | s32 ixgbe_check_for_ack(struct ixgbe_hw *, u16); |
88 | s32 ixgbe_check_for_rst(struct ixgbe_hw *, u16); | 88 | s32 ixgbe_check_for_rst(struct ixgbe_hw *, u16); |
89 | #ifdef CONFIG_PCI_IOV | ||
89 | void ixgbe_init_mbx_params_pf(struct ixgbe_hw *); | 90 | void ixgbe_init_mbx_params_pf(struct ixgbe_hw *); |
91 | #endif /* CONFIG_PCI_IOV */ | ||
90 | 92 | ||
91 | extern struct ixgbe_mbx_operations mbx_ops_generic; | 93 | extern struct ixgbe_mbx_operations mbx_ops_generic; |
92 | 94 | ||