NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/52814: WD_SOFTBADSECT option cause build error



>Number:         52814
>Category:       kern
>Synopsis:       WD_SOFTBADSECT kernel option cause build error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 13 07:05:00 +0000 2017
>Originator:     Takahiro Kambe
>Release:        NetBSD 8.99.5
>Organization:
	
>Environment:
	
	
System: NetBSD currnet.a.back-street.net 8.99.5 NetBSD 8.99.5 (GENERIC) #10: Thu Oct 26 18:29:39 JST 2017 taca%currnet.a.back-street.net@localhost:/data/amd64/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	WD_SOFTBADSECT kernel option cause build error
>How-To-Repeat:
	Set WD_SOFTBADSECT in your kernel configuration file.

Don't forget to run "make depend"
depending the kern library objects
depending the compat library objects
making sure the compat library is up to date...
    compile  HPMICRO/wd.o
`libcompat.a' is up to date.
    compile  HPMICRO/wsdisplay_compat_usl.o
In file included from /usr/src/sys/sys/timevar.h:64:0,
                 from /usr/src/sys/sys/time.h:307,
                 from /usr/src/sys/sys/param.h:145,
                 from /usr/src/sys/dev/ata/wd.c:62:
/usr/src/sys/dev/ata/wd.c: In function 'wddetach':
/usr/src/sys/dev/ata/wd.c:538:23: error: 'sc' undeclared (first use in this function)
  while (!SLIST_EMPTY(&sc->sc_bslist)) {
                       ^
/usr/src/sys/sys/queue.h:124:29: note: in definition of macro 'SLIST_EMPTY'
 #define SLIST_EMPTY(head) ((head)->slh_first == NULL)
                             ^
/usr/src/sys/dev/ata/wd.c:538:23: note: each undeclared identifier is reported only once for each function it appears in
  while (!SLIST_EMPTY(&sc->sc_bslist)) {
                       ^
/usr/src/sys/sys/queue.h:124:29: note: in definition of macro 'SLIST_EMPTY'
 #define SLIST_EMPTY(head) ((head)->slh_first == NULL)
                             ^
/usr/src/sys/dev/ata/wd.c: In function 'wdstrategy':
/usr/src/sys/dev/ata/wd.c:589:20: error: 'blkno' undeclared (first use in this function)
   daddr_t maxblk = blkno + (bp->b_bcount / wd->sc_blksize) - 1;
                    ^
--- wd.o ---
*** [wd.o] Error code 1

nbmake: stopped in /data/amd64/obj/sys/arch/amd64/compile/HPMICRO
1 error

nbmake: stopped in /data/amd64/obj/sys/arch/amd64/compile/HPMICRO

ERROR: Failed to make all in "/data/amd64/obj/sys/arch/amd64/compile/HPMICRO"
*** BUILD ABORTED ***

>Fix:
	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index