* [net-ext PATCH] ixgbe: Fix compile for kernel without CONFIG_PCI_IOV defined
@ 2011-11-07 17:44 Greg Rose
2011-11-07 18:23 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Greg Rose @ 2011-11-07 17:44 UTC (permalink / raw)
To: netdev; +Cc: davem
Fix compiler errors and warnings with CONFIG_PCI_IOV defined and not
defined.
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
---
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 2 ++
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
index db95731..00fcd39 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
@@ -442,12 +442,14 @@ static int ixgbe_set_vf_macvlan(struct ixgbe_adapter *adapter,
int ixgbe_check_vf_assignment(struct ixgbe_adapter *adapter)
{
+#ifdef CONFIG_PCI_IOV
int i;
for (i = 0; i < adapter->num_vfs; i++) {
if (adapter->vfinfo[i].vfdev->dev_flags &
PCI_DEV_FLAGS_ASSIGNED)
return true;
}
+#endif
return false;
}
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h
index 4a5d889..df04f1a 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h
@@ -42,11 +42,11 @@ int ixgbe_ndo_set_vf_spoofchk(struct net_device *netdev, int vf, bool setting);
int ixgbe_ndo_get_vf_config(struct net_device *netdev,
int vf, struct ifla_vf_info *ivi);
void ixgbe_check_vf_rate_limit(struct ixgbe_adapter *adapter);
-#ifdef CONFIG_PCI_IOV
void ixgbe_disable_sriov(struct ixgbe_adapter *adapter);
+int ixgbe_check_vf_assignment(struct ixgbe_adapter *adapter);
+#ifdef CONFIG_PCI_IOV
void ixgbe_enable_sriov(struct ixgbe_adapter *adapter,
const struct ixgbe_info *ii);
-int ixgbe_check_vf_assignment(struct ixgbe_adapter *adapter);
#endif
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [net-ext PATCH] ixgbe: Fix compile for kernel without CONFIG_PCI_IOV defined
2011-11-07 17:44 [net-ext PATCH] ixgbe: Fix compile for kernel without CONFIG_PCI_IOV defined Greg Rose
@ 2011-11-07 18:23 ` David Miller
2011-11-07 18:25 ` Rose, Gregory V
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2011-11-07 18:23 UTC (permalink / raw)
To: gregory.v.rose; +Cc: netdev
From: Greg Rose <gregory.v.rose@intel.com>
Date: Mon, 07 Nov 2011 09:44:17 -0800
> Fix compiler errors and warnings with CONFIG_PCI_IOV defined and not
> defined.
>
> Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
It's "net-next" not "net-ext" :-)
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [net-ext PATCH] ixgbe: Fix compile for kernel without CONFIG_PCI_IOV defined
2011-11-07 18:23 ` David Miller
@ 2011-11-07 18:25 ` Rose, Gregory V
0 siblings, 0 replies; 3+ messages in thread
From: Rose, Gregory V @ 2011-11-07 18:25 UTC (permalink / raw)
To: David Miller; +Cc: netdev@vger.kernel.org
> -----Original Message-----
> From: David Miller [mailto:davem@davemloft.net]
> Sent: Monday, November 07, 2011 10:24 AM
> To: Rose, Gregory V
> Cc: netdev@vger.kernel.org
> Subject: Re: [net-ext PATCH] ixgbe: Fix compile for kernel without
> CONFIG_PCI_IOV defined
>
> From: Greg Rose <gregory.v.rose@intel.com>
> Date: Mon, 07 Nov 2011 09:44:17 -0800
>
> > Fix compiler errors and warnings with CONFIG_PCI_IOV defined and not
> > defined.
> >
> > Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
>
> It's "net-next" not "net-ext" :-)
>
> Applied, thanks.
Ugh... I'm really stepping in it deep.
Thanks Dave,
- Greg
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-07 18:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07 17:44 [net-ext PATCH] ixgbe: Fix compile for kernel without CONFIG_PCI_IOV defined Greg Rose
2011-11-07 18:23 ` David Miller
2011-11-07 18:25 ` Rose, Gregory V
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.