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

    isdn: fix section mismatch warning for ISACVer
    
    Fix following warnings:
    WARNING: drivers/isdn/hisax/built-in.o(.text+0x19723): Section mismatch in 
reference from the function ISACVersion() to the variable .devinit.data:ISACVer
    WARNING: drivers/isdn/hisax/built-in.o(.text+0x2005b): Section mismatch in 
reference from the function setup_avm_a1_pcmcia() to the function 
.devinit.text:setup_isac()
    
    ISACVer were only used from function annotated __devinit
    so add same annotation to ISACVer.
    One af the fererencing functions missed __devinit so add it
    and kill an additional warning.
    
    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/avm_a1p.c |    3 +--
 drivers/isdn/hisax/isac.c    |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/isdn/hisax/avm_a1p.c b/drivers/isdn/hisax/avm_a1p.c
index c87fa3f..3039c6d 100644
--- a/drivers/isdn/hisax/avm_a1p.c
+++ b/drivers/isdn/hisax/avm_a1p.c
@@ -213,8 +213,7 @@ AVM_card_msg(struct IsdnCardState *cs, int mt, void *arg)
        return 0;
 }
 
-int
-setup_avm_a1_pcmcia(struct IsdnCard *card)
+int __devinit setup_avm_a1_pcmcia(struct IsdnCard *card)
 {
        u_char model, vers;
        struct IsdnCardState *cs = card->cs;
diff --git a/drivers/isdn/hisax/isac.c b/drivers/isdn/hisax/isac.c
index bd6c61e..07b1673 100644
--- a/drivers/isdn/hisax/isac.c
+++ b/drivers/isdn/hisax/isac.c
@@ -27,8 +27,7 @@ static char *ISACVer[] __devinitdata =
 {"2086/2186 V1.1", "2085 B1", "2085 B2",
  "2085 V2.3"};
 
-void
-ISACVersion(struct IsdnCardState *cs, char *s)
+void __devinit ISACVersion(struct IsdnCardState *cs, char *s)
 {
        int val;
 
-
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