Skip to content

Commit e6ca232

Browse files
AdrianBunktorvalds
authored andcommitted
uninline atl1e_setup_mac_ctrl()
There doesn't seem to be a compelling reason why atl1e_setup_mac_ctrl() is marked as "inline": It's not used in any place where speed would matter much, and as long as it has only one caller non-ancient gcc versions anyway inline it automatically. This patch fixes the following compile error with gcc 3.4: CC drivers/net/atl1e/atl1e_main.o atl1e_main.c: In function `atl1e_check_link': atl1e_main.c:50: sorry, unimplemented: inlining failed in call to atl1e_main.c:196: sorry, unimplemented: called from here Reported-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 28efb9e commit e6ca232

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/atl1e/atl1e_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ MODULE_DESCRIPTION("Atheros 1000M Ethernet Network Driver");
4747
MODULE_LICENSE("GPL");
4848
MODULE_VERSION(DRV_VERSION);
4949

50-
static inline void atl1e_setup_mac_ctrl(struct atl1e_adapter *adapter);
50+
static void atl1e_setup_mac_ctrl(struct atl1e_adapter *adapter);
5151

5252
static const u16
5353
atl1e_rx_page_vld_regs[AT_MAX_RECEIVE_QUEUE][AT_PAGE_NUM_PER_QUEUE] =
@@ -1037,7 +1037,7 @@ static inline void atl1e_configure_dma(struct atl1e_adapter *adapter)
10371037
return;
10381038
}
10391039

1040-
static inline void atl1e_setup_mac_ctrl(struct atl1e_adapter *adapter)
1040+
static void atl1e_setup_mac_ctrl(struct atl1e_adapter *adapter)
10411041
{
10421042
u32 value;
10431043
struct atl1e_hw *hw = &adapter->hw;

0 commit comments

Comments
 (0)