[PATCH] isdn: use __init for ICCVersion()
From: Randy.Dunlap (rddunlap_at_osdl.org)
Date: 02/28/05
- Previous message: Randy.Dunlap: "[PATCH] parport_pc: use devinitdata"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 27 Feb 2005 19:30:53 -0800 To: lkml <linux-kernel@vger.kernel.org>
ICCVersion() is only used by init code & can be marked __init;
Error: ./drivers/isdn/hisax/icc.o .text refers to 000000000000014a R_X86_64_32S .init.data
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/isdn/hisax/icc.c | 2 +-
drivers/isdn/hisax/icc.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff -Naurp ./drivers/isdn/hisax/icc.h~hisax_icc_sections ./drivers/isdn/hisax/icc.h
--- ./drivers/isdn/hisax/icc.h~hisax_icc_sections 2004-12-24 13:35:24.000000000 -0800
+++ ./drivers/isdn/hisax/icc.h 2005-02-27 19:10:40.578113328 -0800
@@ -65,7 +65,7 @@
#define ICC_IND_AIL 0xE
#define ICC_IND_DC 0xF
-extern void ICCVersion(struct IsdnCardState *cs, char *s);
+extern void __init ICCVersion(struct IsdnCardState *cs, char *s);
extern void initicc(struct IsdnCardState *cs);
extern void icc_interrupt(struct IsdnCardState *cs, u_char val);
extern void clear_pending_icc_ints(struct IsdnCardState *cs);
diff -Naurp ./drivers/isdn/hisax/icc.c~hisax_icc_sections ./drivers/isdn/hisax/icc.c
--- ./drivers/isdn/hisax/icc.c~hisax_icc_sections 2004-12-24 13:35:50.000000000 -0800
+++ ./drivers/isdn/hisax/icc.c 2005-02-27 19:10:33.756150424 -0800
@@ -27,7 +27,7 @@
static char *ICCVer[] __initdata =
{"2070 A1/A3", "2070 B1", "2070 B2/B3", "2070 V2.4"};
-void
+void __init
ICCVersion(struct IsdnCardState *cs, char *s)
{
int val;
--- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Randy.Dunlap: "[PATCH] parport_pc: use devinitdata"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|