diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-02-10 02:28:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-10 02:28:12 -0500 |
commit | d348c2a3c8ad0948592f9a1138170002497903e2 (patch) | |
tree | 72467549935b979f67e99aae790c7c4af45e4696 /drivers | |
parent | 7740ac6a7cf8158e828b4cbd4fc5226e53b5d9a2 (diff) |
isdn: fix section mismatch warnings in isac.c and isar.c
Fix the following warnings:
WARNING: drivers/isdn/hisax/built-in.o(.text+0x1b276): Section mismatch in reference from the function inithscxisac() to the function .devinit.text:clear_pending_isac_ints()
WARNING: drivers/isdn/hisax/built-in.o(.text+0x1b286): Section mismatch in reference from the function inithscxisac() to the function .devinit.text:initisac()
WARNING: drivers/isdn/hisax/built-in.o(.text+0x1fec7): Section mismatch in reference from the function AVM_card_msg() to the function .devinit.text:clear_pending_isac_ints()
WARNING: drivers/isdn/hisax/built-in.o(.text+0x21669): Section mismatch in reference from the function AVM_card_msg() to the function .devinit.text:clear_pending_isac_ints()
WARNING: drivers/isdn/hisax/built-in.o(.text+0x21671): Section mismatch in reference from the function AVM_card_msg() to the function .devinit.text:initisac()
WARNING: drivers/isdn/hisax/built-in.o(.text+0x2991e): Section mismatch in reference from the function Sedl_card_msg() to the function .devinit.text:clear_pending_isac_ints()
WARNING: drivers/isdn/hisax/built-in.o(.text+0x29936): Section mismatch in reference from the function Sedl_card_msg() to the function .devinit.text:initisac()
WARNING: drivers/isdn/hisax/built-in.o(.text+0x2993e): Section mismatch in reference from the function Sedl_card_msg() to the function .devinit.text:initisar()
WARNING: drivers/isdn/hisax/built-in.o(.text+0x2e026): Section mismatch in reference from the function NETjet_S_card_msg() to the function .devinit.text:clear_pending_isac_ints()
WARNING: drivers/isdn/hisax/built-in.o(.text+0x2e02e): Section mismatch in reference from the function NETjet_S_card_msg() to the function .devinit.text:initisac()
WARNING: drivers/isdn/hisax/built-in.o(.text+0x37813): Section mismatch in reference from the function BKM_card_msg() to the function .devinit.text:clear_pending_isac_ints()
WARNING: drivers/isdn/hisax/built-in.o(.text+0x37823): Section mismatch in reference from the function BKM_card_msg() to the function .devinit.text:initisac()
initisar(), initisac() and clear_pending_isac_ints()
were all used via a cardmsg fnction - which may be called
ouside __devinit context.
So remove the bogus __devinit annotation of the
above three functions to fix the warnings.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Karsten Keil <kkeil@suse.de>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/isdn/hisax/isac.c | 6 | ||||
-rw-r--r-- | drivers/isdn/hisax/isar.c | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/drivers/isdn/hisax/isac.c b/drivers/isdn/hisax/isac.c index 4e9f23803dae..bd6c61ebdbab 100644 --- a/drivers/isdn/hisax/isac.c +++ b/drivers/isdn/hisax/isac.c | |||
@@ -616,8 +616,7 @@ dbusy_timer_handler(struct IsdnCardState *cs) | |||
616 | } | 616 | } |
617 | } | 617 | } |
618 | 618 | ||
619 | void __devinit | 619 | void initisac(struct IsdnCardState *cs) |
620 | initisac(struct IsdnCardState *cs) | ||
621 | { | 620 | { |
622 | cs->setstack_d = setstack_isac; | 621 | cs->setstack_d = setstack_isac; |
623 | cs->DC_Close = DC_Close_isac; | 622 | cs->DC_Close = DC_Close_isac; |
@@ -648,8 +647,7 @@ initisac(struct IsdnCardState *cs) | |||
648 | cs->writeisac(cs, ISAC_MASK, 0x0); | 647 | cs->writeisac(cs, ISAC_MASK, 0x0); |
649 | } | 648 | } |
650 | 649 | ||
651 | void __devinit | 650 | void clear_pending_isac_ints(struct IsdnCardState *cs) |
652 | clear_pending_isac_ints(struct IsdnCardState *cs) | ||
653 | { | 651 | { |
654 | int val, eval; | 652 | int val, eval; |
655 | 653 | ||
diff --git a/drivers/isdn/hisax/isar.c b/drivers/isdn/hisax/isar.c index c547a6665052..bfeb9b6aa043 100644 --- a/drivers/isdn/hisax/isar.c +++ b/drivers/isdn/hisax/isar.c | |||
@@ -1894,8 +1894,7 @@ isar_auxcmd(struct IsdnCardState *cs, isdn_ctrl *ic) { | |||
1894 | return(0); | 1894 | return(0); |
1895 | } | 1895 | } |
1896 | 1896 | ||
1897 | void __devinit | 1897 | void initisar(struct IsdnCardState *cs) |
1898 | initisar(struct IsdnCardState *cs) | ||
1899 | { | 1898 | { |
1900 | cs->bcs[0].BC_SetStack = setstack_isar; | 1899 | cs->bcs[0].BC_SetStack = setstack_isar; |
1901 | cs->bcs[1].BC_SetStack = setstack_isar; | 1900 | cs->bcs[1].BC_SetStack = setstack_isar; |