* [PATCH] isdn: use __init for ICCVersion()
@ 2005-02-28 3:30 Randy.Dunlap
0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2005-02-28 3:30 UTC (permalink / raw)
To: lkml; +Cc: torvalds, akpm, kkeil
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;
---
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-28 3:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-28 3:30 [PATCH] isdn: use __init for ICCVersion() Randy.Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®