if_wi_pccard.c build failed

From: Rong-En Fan <grafan_at_gmail.com>
Date: Sun, 27 Mar 2005 22:08:24 +0800
It seems that rev 1.53 of if_wi_pccard.c breaks module build.
When building if_wi module, WI_SYMBOL_FIRMWARE is defined
thus we need those removed code.

root_at_woodstock|UTF-8 [/usr/src/sys/modules/wi] (22:04)$ make
Warning: Object directory not changed from original
/home/admin/usr/src/sys/modules/wi
_at_ -> /home/admin/usr/src/sys
machine -> /home/admin/usr/src/sys/i386/include
echo "#define WI_SYMBOL_FIRMWARE 1" > opt_wi.h
awk -f _at_/tools/makeobjops.awk _at_/dev/pccard/card_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/kern/device_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/kern/bus_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/dev/pci/pci_if.m -h
awk -f _at_/tools/pccarddevs2h.awk _at_/dev/pccard/pccarddevs
cc -O -pipe  -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I-   -I. -I_at_
-I_at_/contrib/altq -I_at_/../include -I/usr/include -finline-limit=8000
-fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual 
-fformat-extensions -std=c99 -c
/home/admin/usr/src/sys/modules/wi/../../dev/wi/if_wi.c
cc -O -pipe  -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I-   -I. -I_at_
-I_at_/contrib/altq -I_at_/../include -I/usr/include -finline-limit=8000
-fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual 
-fformat-extensions -std=c99 -c
/home/admin/usr/src/sys/modules/wi/../../dev/wi/if_wi_pccard.c
/home/admin/usr/src/sys/modules/wi/../../dev/wi/if_wi_pccard.c: In
function `wi_pccard_attach':
/home/admin/usr/src/sys/modules/wi/../../dev/wi/if_wi_pccard.c:233:
error: `sc' undeclared (first use in this function)
/home/admin/usr/src/sys/modules/wi/../../dev/wi/if_wi_pccard.c:233:
error: (Each undeclared identifier is reported only once
/home/admin/usr/src/sys/modules/wi/../../dev/wi/if_wi_pccard.c:233:
error: for each function it appears in.)
*** Error code 1

Stop in /home/admin/usr/src/sys/modules/wi.

Regards,
Rong-En Fan
Received on Sun Mar 27 2005 - 12:08:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:30 UTC