* [PATCH] make riscom8.c build (248p4)
@ 2001-08-05 16:22 Rasmus Andersen
2001-08-05 19:24 ` Keith Owens
0 siblings, 1 reply; 2+ messages in thread
From: Rasmus Andersen @ 2001-08-05 16:22 UTC (permalink / raw)
To: pgmdsg; +Cc: linux-kernel
Hi.
The following patch is needed for me to be able to compile
drivers/char/riscom8.c. I am not exactly sure where it is
that the init.data section has been asked to hold rw data
before but I trust gcc to know this better than me...
--- linux-248-pre4-clean/drivers/char/riscom8.c Sun Aug 5 14:34:54 2001
+++ linux-248p4-kbuild/drivers/char/riscom8.c Sun Aug 5 18:14:29 2001
@@ -1866,10 +1866,10 @@
__setup("riscom8=", riscom8_setup);
#endif
-static const char banner[] __initdata =
+static char banner[] __initdata =
KERN_INFO "rc: SDL RISCom/8 card driver v1.1, (c) D.Gorodchanin "
"1994-1996.\n";
-static const char no_boards_msg[] __initdata =
+static char no_boards_msg[] __initdata =
KERN_INFO "rc: No RISCom/8 boards detected.\n";
/*
--
Rasmus(rasmus@jaquet.dk)
Duct tape is like the force; it has a light side and a dark side, and
it holds the universe together.
-- Anonymous
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] make riscom8.c build (248p4)
2001-08-05 16:22 [PATCH] make riscom8.c build (248p4) Rasmus Andersen
@ 2001-08-05 19:24 ` Keith Owens
0 siblings, 0 replies; 2+ messages in thread
From: Keith Owens @ 2001-08-05 19:24 UTC (permalink / raw)
To: Rasmus Andersen; +Cc: pgmdsg, linux-kernel
On Sun, 5 Aug 2001 18:22:08 +0200,
Rasmus Andersen <rasmus@jaquet.dk> wrote:
>--- linux-248-pre4-clean/drivers/char/riscom8.c Sun Aug 5 14:34:54 2001
>+++ linux-248p4-kbuild/drivers/char/riscom8.c Sun Aug 5 18:14:29 2001
>@@ -1866,10 +1866,10 @@
> __setup("riscom8=", riscom8_setup);
> #endif
>
>-static const char banner[] __initdata =
>+static char banner[] __initdata =
> KERN_INFO "rc: SDL RISCom/8 card driver v1.1, (c) D.Gorodchanin "
> "1994-1996.\n";
>-static const char no_boards_msg[] __initdata =
>+static char no_boards_msg[] __initdata =
> KERN_INFO "rc: No RISCom/8 boards detected.\n";
>
It is even documented in Documentation/DocBook/kernel-hacking.tmpl that
__initdata cannot be const. Not all versions of gcc flag an error,
newer ones do.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-05 19:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-05 16:22 [PATCH] make riscom8.c build (248p4) Rasmus Andersen
2001-08-05 19:24 ` Keith Owens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox