Subject: kern/15499: CARDBUS_PRODUCT_REALTEK_RT8139 undeclared, 1.5.3_ALPHA
To: None <gnats-bugs@gnats.netbsd.org>
From: None <gendalia@iastate.edu>
List: netbsd-bugs
Date: 02/05/2002 13:08:13
>Number:         15499
>Category:       kern
>Synopsis:       CARDBUS_PRODUCT_REALTEK_RT8139 undeclared
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 05 11:09:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Tracy J. Di Marco White
>Release:        NetBSD 1.5.3_ALPHA cvs updated 2002-Feb-04
>Organization:
>Environment:
System: NetBSD aurora.ait.iastate.edu 1.5.3_ALPHA NetBSD 1.5.3_ALPHA (SOCRATES) #6: Wed Nov 28 22:53:31 CST 2001 root@socrates.ait.iastate.edu:/usr/src-1.5/sys/arch/i386/compile/SOCRATES i386
Architecture: i386
Machine: i386
>Description:
cc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes  -Wpointer-arith -Wno-uninitialized -Wno-main -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -Di386  -c /usr/src/sys/dev/cardbus/if_rtk_cardbus.c /usr/src/sys/dev/cardbus/if_rtk_cardbus.c:110: `CARDBUS_PRODUCT_REALTEK_RT8139' undeclared here (not in a function)
/usr/src/sys/dev/cardbus/if_rtk_cardbus.c:110: initializer element for `rtk_cardbus_devs[3].rtk_did' is not constant

>How-To-Repeat:
make snapshot
>Fix:
--- sys/dev/cardbus/cardbusdevs.h.orig	Tue Feb  5 11:46:13 2002
+++ sys/dev/cardbus/cardbusdevs.h	Tue Feb  5 11:46:43 2002
@@ -110,3 +110,4 @@
 
 /* Realtek (Creative Labs?) products */
 #define	CARDBUS_PRODUCT_REALTEK_RT8138	0x8138		/* 8138 Ethernet */
+#define	CARDBUS_PRODUCT_REALTEK_RT8139	0x8139		/* 8139 Ethernet */
--- sys/dev/cardbus/cardbusdevs_data.h.orig	Tue Feb  5 11:46:24 2002
+++ sys/dev/cardbus/cardbusdevs_data.h	Tue Feb  5 11:47:48 2002
@@ -148,6 +148,12 @@ struct cardbus_knowndev cardbus_knowndev
 	    "8138 Ethernet",
 	},
 	{
+	    CARDBUS_VENDOR_REALTEK, CARDBUS_PRODUCT_REALTEK_RT8139,
+	    0,
+	    "Realtek Semiconductor",
+	    "8139 Ethernet",
+	},
+	{
 	    CARDBUS_VENDOR_DEC, 0,
 	    CARDBUS_KNOWNDEV_NOPROD,
 	    "Digital Equipment",
>Release-Note:
>Audit-Trail:
>Unformatted: