William Cordis wrote:
> /* These identify the driver base version and may not be removed. */
> static const char version1[] __devinitdata =
> "via-rhine.c:v1.05-LK1.1.5 5/2/2000 Written by Donald Becker\n";
> static const char version2[] __devinitdata =
> " http://www.scyld.com/network/via-rhine.html\n";
> [end snip]
>
> Removing the const from these two declarations allows the file to compile.
> this fits the explanition in http://gcc.gnu.org/ml/gcc/2000-01/msg00823.html
> about another instance of problem. I don't think its the final answer but it
> works thus far (now to fix the vmscan.c deal).
Those who don't remember history are doomed to repeat it. :/ I even
fixed this problem in another driver.
The __{dev}initdata sections are rw not ro, so you cannot put const data
in them. Thanks for pointing this out William.
Jeff
-- Jeff Garzik | Nothing cures insomnia like the Building 1024 | realization that it's time to get up. MandrakeSoft, Inc. | -- random fortune- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:13 EST