Subject: port-i386/30387: -current i386 GENERIC_LAPTOP kernel compilation failure
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <njoly@pasteur.fr>
List: netbsd-bugs
Date: 05/31/2005 17:47:00
>Number: 30387
>Category: port-i386
>Synopsis: -current i386 GENERIC_LAPTOP kernel compilation failure
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-i386-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 31 17:47:00 +0000 2005
>Originator: Nicolas Joly
>Release: NetBSD 3.99.5
>Organization:
Institut Pasteur
>Environment:
System: NetBSD calamity.sis.pasteur.fr 3.99.5 NetBSD 3.99.5 (CALAMITY) #16: Tue May 31 13:34:19 CEST 2005 njoly@calamity.sis.pasteur.fr:/local/src/NetBSD/obj/i386/sys/arch/i386/compile/CALAMITY i386
Architecture: i386
Machine: i386
>Description:
I wanted to upgrade my -current i386 laptop but noticed that my custom kernel
does not compile anymore with recent cast/shadow compilation flags.
>How-To-Repeat:
Try to compile a custom kernel based on GENERIC_LAPTOP
>Fix:
Index: sys/arch/i386/i386/apm.c
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/i386/apm.c,v
retrieving revision 1.84
diff -u -r1.84 apm.c
--- sys/arch/i386/i386/apm.c 30 Aug 2004 15:05:17 -0000 1.84
+++ sys/arch/i386/i386/apm.c 31 May 2005 17:18:48 -0000
@@ -636,7 +636,7 @@
{
int error, retval;
struct bioscallregs nregs;
- char *code;
+ const char *code;
retval = 1; /* assume we are going to make progress */
Index: sys/arch/i386/include/apmvar.h
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/include/apmvar.h,v
retrieving revision 1.19
diff -u -r1.19 apmvar.h
--- sys/arch/i386/include/apmvar.h 25 Dec 2003 21:03:55 -0000 1.19
+++ sys/arch/i386/include/apmvar.h 31 May 2005 17:18:48 -0000
@@ -66,7 +66,7 @@
};
struct apm_attach_args {
- char *aaa_busname;
+ const char *aaa_busname;
};
#ifdef _KERNEL
Index: sys/arch/i386/pci/pci_addr_fixup.c
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/pci/pci_addr_fixup.c,v
retrieving revision 1.13
diff -u -r1.13 pci_addr_fixup.c
--- sys/arch/i386/pci/pci_addr_fixup.c 11 Apr 2004 06:00:26 -0000 1.13
+++ sys/arch/i386/pci/pci_addr_fixup.c 31 May 2005 17:18:48 -0000
@@ -84,7 +84,7 @@
const struct {
bus_addr_t start;
bus_size_t size;
- char *name;
+ const char *name;
} system_reserve [] = {
{ 0xfec00000, 0x100000, "I/O APIC" },
{ 0xfee00000, 0x100000, "Local APIC" },
Index: sys/dev/pcmcia/esl.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pcmcia/esl.c,v
retrieving revision 1.16
diff -u -r1.16 esl.c
--- sys/dev/pcmcia/esl.c 24 Mar 2005 22:34:39 -0000 1.16
+++ sys/dev/pcmcia/esl.c 31 May 2005 17:18:53 -0000
@@ -138,7 +138,7 @@
NULL,
};
-static char *eslmodel[] = {
+static const char *eslmodel[] = {
"1688",
"688",
};