ixgbe section fixes
Subsystems (2)
PATCH 14/32 ixgbe section fixes
ixgbe_init_interrupt_scheme() is called from ixgbe_resume(). Build that with CONFIG_PM and without CONFIG_HOTPLUG and you've got a problem. Several helpers called by it also are misannotated __devinit.
--- drivers/net/ixgbe/ixgbe_main.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-)
drivers/net/ixgbe/ixgbe_main.c +4 -5
@@ -2330,7 +2330,7 @@ static void ixgbe_acquire_msix_vectors(struct ixgbe_adapter *adapter,* Once we know the feature-set enabled for the device, we'll cache * the register offset the descriptor ring is assigned to. **/ -static void __devinit ixgbe_cache_ring_register (struct ixgbe_adapter *adapter) +static void ixgbe_cache_ring_register (struct ixgbe_adapter *adapter) {int feature_mask =0 , rss_i;int i, txr_idx, rxr_idx;
@@ -2367,7 +2367,7 @@ static void __devinit ixgbe_cache_ring_register(struct ixgbe_adapter *adapter)* number of queues at compile-time. The polling_netdev array is * intended for Multiqueue, but should work fine with a single queue. **/ -static int __devinit ixgbe_alloc_queues (struct ixgbe_adapter *adapter) +static int ixgbe_alloc_queues (struct ixgbe_adapter *adapter) {int i;
@@ -2408,8 +2408,7 @@ err_tx_ring_allocation:* Attempt to configure the interrupts using the best available * capabilities of the hardware and the kernel. **/ -static int __devinit ixgbe_set_interrupt_capability (struct ixgbe_adapter - *adapter) +static int ixgbe_set_interrupt_capability (struct ixgbe_adapter *adapter) {int err =0 ;int vector, v_budget;
@@ -2501,7 +2500,7 @@ static void ixgbe_reset_interrupt_capability(struct ixgbe_adapter *adapter)* - Hardware queue count (num_*_queues) * - defined by miscellaneous hardware support/features (RSS, etc.) **/ -static int __devinit ixgbe_init_interrupt_scheme (struct ixgbe_adapter *adapter) +static int ixgbe_init_interrupt_scheme (struct ixgbe_adapter *adapter) {int err;
Quoted 10 lines · Al Viro
ixgbe_init_interrupt_scheme()is called fromixgbe_resume(). Build that withCONFIG_PMand withoutCONFIG_HOTPLUGand you've got a problem. Several helpers called by it also are misannotated__devinit.Signed-off-by Al Viro <[email protected]>--- drivers/net/ixgbe/ixgbe_main.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-)
Adding Netdev...
Patch does not apply to latest net-next-2.6 tree because half of the requested changes are already applied to the driver in an earlier commit.
Please re-test withgit://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6.git
if possible.
Signature · 2 lines
Cheers, Jeff
Re: [PATCH 14/32] ixgbe section fixes (against netdev)
Quoted 14 lines · Jeff Kirsher
Quoted 10 lines · Al Viro
ixgbe_init_interrupt_scheme()is called fromixgbe_resume(). Build that withCONFIG_PMand withoutCONFIG_HOTPLUGand you've got a problem. Several helpers called by it also are misannotated__devinit.Signed-off-by Al Viro <[email protected]>--- drivers/net/ixgbe/ixgbe_main.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-)Adding Netdev...
Quoted 7 lines
Patch does not apply to latest net-next-2.6 tree because half of the requested changes are already applied to the driver in an earlier commit.
Please re-test with
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6.git
if possible.
ixgbe_init_interrupt_scheme() is called from ixgbe_resume(). Build that with CONFIG_PM and without CONFIG_HOTPLUG and you've got a problem. Several helpers called by it also are misannotated __devinit.
--- drivers/net/ixgbe/ixgbe_main.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/net/ixgbe/ixgbe_main.c +2 -3
@@ -2460,7 +2460,7 @@ static void ixgbe_acquire_msix_vectors(struct ixgbe_adapter *adapter,* Once we know the feature-set enabled for the device, we'll cache * the register offset the descriptor ring is assigned to. **/ -static void __devinit ixgbe_cache_ring_register (struct ixgbe_adapter *adapter) +static void ixgbe_cache_ring_register (struct ixgbe_adapter *adapter) {int feature_mask =0 , rss_i;int i, txr_idx, rxr_idx;
@@ -2565,8 +2565,7 @@ err_tx_ring_allocation:* Attempt to configure the interrupts using the best available * capabilities of the hardware and the kernel. **/ -static int __devinit ixgbe_set_interrupt_capability (struct ixgbe_adapter - *adapter) +static int ixgbe_set_interrupt_capability (struct ixgbe_adapter *adapter) {int err =0 ;int vector, v_budget;
Signature · 1 line
1.5.6.5
Re: [PATCH 14/32] ixgbe section fixes (against netdev)
From: Al Viro <[email protected]>
Date: Thu, 27 Nov 2008 23:23:35 +0000
Quoted 5 lines
ixgbe_init_interrupt_scheme()is called fromixgbe_resume(). Build that withCONFIG_PMand withoutCONFIG_HOTPLUGand you've got a problem. Several helpers called by it also are misannotated__devinit.Signed-off-by Al Viro <[email protected]>
Applied, thanks Al.