kernel build error in cam_periph_mapmem

From: Harald Schmalzbauer <h_at_schmalzbauer.de>
Date: Fri, 16 Jul 2004 19:25:09 +0200
Dear hackers,

for several cvsups my kernel build fails with the following:

cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -std=c99  -nostdinc -I-  -I. -I/usr/src/sys 
-I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq 
-I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf 
-I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd 
-I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common 
-finline-limit=8000  -mno-align-long-strings -mpreferred-stack-boundary=2 
-ffreestanding -Werror  /usr/src/sys/cam/cam_periph.c
/usr/src/sys/cam/cam_periph.c: In function `cam_periph_mapmem':
/usr/src/sys/cam/cam_periph.c:624: warning: implicit declaration of function 
`_mtx_assert'
/usr/src/sys/cam/cam_periph.c:624: error: `MA_OWNED' undeclared (first use in 
this function)
/usr/src/sys/cam/cam_periph.c:624: error: (Each undeclared identifier is 
reported only once
/usr/src/sys/cam/cam_periph.c:624: error: for each function it appears in.)
/usr/src/sys/cam/cam_periph.c:659: warning: redundant redeclaration of 
`_mtx_assert' in same scope
/usr/src/sys/cam/cam_periph.c:624: warning: previous declaration of 
`_mtx_assert'
/usr/src/sys/cam/cam_periph.c: In function `cam_periph_unmapmem':
/usr/src/sys/cam/cam_periph.c:684: error: `MA_OWNED' undeclared (first use in 
this function)
/usr/src/sys/cam/cam_periph.c:706: warning: redundant redeclaration of 
`_mtx_assert' in same scope
/usr/src/sys/cam/cam_periph.c:684: warning: previous declaration of 
`_mtx_assert'
/usr/src/sys/cam/cam_periph.c:723: warning: redundant redeclaration of 
`_mtx_assert' in same scope
/usr/src/sys/cam/cam_periph.c:684: warning: previous declaration of 
`_mtx_assert'
*** Error code 1

Stop in /usr/obj/usr/src/sys/CALE.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

Nothing unusual in my custom kernel, see attached.

Best regards,

-Hary

Received on Fri Jul 16 2004 - 15:25:21 UTC

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