Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d348c2a3c8ad0948592f9a1138170002497903e2
Commit:     d348c2a3c8ad0948592f9a1138170002497903e2
Parent:     7740ac6a7cf8158e828b4cbd4fc5226e53b5d9a2
Author:     Sam Ravnborg <[EMAIL PROTECTED]>
AuthorDate: Sat Feb 9 23:28:12 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sat Feb 9 23:28:12 2008 -0800

    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 <[EMAIL PROTECTED]>
    Acked-by: Karsten Keil <[EMAIL PROTECTED]>
    Cc: Jeff Garzik <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 drivers/isdn/hisax/isac.c |    6 ++----
 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 4e9f238..bd6c61e 100644
--- a/drivers/isdn/hisax/isac.c
+++ b/drivers/isdn/hisax/isac.c
@@ -616,8 +616,7 @@ dbusy_timer_handler(struct IsdnCardState *cs)
        }
 }
 
-void __devinit
-initisac(struct IsdnCardState *cs)
+void initisac(struct IsdnCardState *cs)
 {
        cs->setstack_d = setstack_isac;
        cs->DC_Close = DC_Close_isac;
@@ -648,8 +647,7 @@ initisac(struct IsdnCardState *cs)
        cs->writeisac(cs, ISAC_MASK, 0x0);
 }
 
-void __devinit
-clear_pending_isac_ints(struct IsdnCardState *cs)
+void clear_pending_isac_ints(struct IsdnCardState *cs)
 {
        int val, eval;
 
diff --git a/drivers/isdn/hisax/isar.c b/drivers/isdn/hisax/isar.c
index c547a66..bfeb9b6 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) {
        return(0);
 }
 
-void __devinit
-initisar(struct IsdnCardState *cs)
+void initisar(struct IsdnCardState *cs)
 {
        cs->bcs[0].BC_SetStack = setstack_isar;
        cs->bcs[1].BC_SetStack = setstack_isar;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to