NetBSD-Bugs archive

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

kern/47978: 6.99.23 expected 'struct pfil_head_t *' but argument is of type 'struct pfil_head_t **'



>Number:         47978
>Category:       kern
>Synopsis:       6.99.23 expected 'struct pfil_head_t *' but argument is of 
>type 'struct pfil_head_t **'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 30 17:25:00 +0000 2013
>Originator:     David Shao
>Release:        NetBSD 6.99.22 (GENERIC) amd64
>Organization:
>Environment:
NetBSD 6.99.22 (GENERIC) amd64
>Description:
#    create  pf/pf_if.d
CC=/usr/src/../tools/bin/x86_64--netbsd-gcc /usr/src/../tools/bin/nbmkdep -f 
pf_if.d  --      -I/usr/src/common/include 
--sysroot=/usr/src/../obj/destdir.amd64 -I/usr/src/sys/dist/pf -I/usr/src/sys 
-DINET6 -DINET -I/usr/src/common/include  -nostdinc -I. 
-I/usr/src/sys/modules/pf -isystem /usr/src/sys -isystem /usr/src/sys/arch 
-isystem /usr/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE 
-DSYSCTL_INCLUDE_DESCR  /usr/src/sys/dist/pf/net/pf_if.c
#    create  pf/pf_ioctl.d
CC=/usr/src/../tools/bin/x86_64--netbsd-gcc /usr/src/../tools/bin/nbmkdep -f 
pf_ioctl.d  --      -I/usr/src/common/include 
--sysroot=/usr/src/../obj/destdir.amd64 -I/usr/src/sys/dist/pf -I/usr/src/sys 
-DINET6 -DINET -I/usr/src/common/include  -nostdinc -I. 
-I/usr/src/sys/modules/pf -isystem /usr/src/sys -isystem /usr/src/sys/arch 
-isystem /usr/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE 
-DSYSCTL_INCLUDE_DESCR  /usr/src/sys/dist/pf/net/pf_ioctl.c
#    create  pf/.depend
rm -f .depend
CC=/usr/src/../tools/bin/x86_64--netbsd-gcc /usr/src/../tools/bin/nbmkdep -s .o 
-d -f .depend if_compat.d if_pflog.d pf.d pf_if.d pf_ioctl.d pf_mtag.d 
pf_norm.d pf_osfp.d pf_ruleset.d pf_table.d tcp_rndiss.d
#   compile  pf/pf_if.o
/usr/src/../tools/bin/x86_64--netbsd-gcc -O2 -std=gnu99  -Wall 
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  
-Wno-traditional  -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow 
-Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare 
-Werror   -ffreestanding  -fno-strict-aliasing -Wno-pointer-sign -mno-red-zone 
-mcmodel=kernel -fno-omit-frame-pointer  -I/usr/src/common/include 
--sysroot=/usr/src/../obj/destdir.amd64 -I/usr/src/sys/dist/pf -I/usr/src/sys 
-DINET6 -DINET -I/usr/src/common/include  -nostdinc -I. 
-I/usr/src/sys/modules/pf -isystem /usr/src/sys -isystem /usr/src/sys/arch 
-isystem /usr/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE 
-DSYSCTL_INCLUDE_DESCR -c    /usr/src/sys/dist/pf/net/pf_if.c
cc1: warnings being treated as errors
/usr/src/sys/dist/pf/net/pf_if.c: In function 'pfi_destroy':
/usr/src/sys/dist/pf/net/pf_if.c:148:2: error: passing argument 4 of 
'pfil_remove_hook' from incompatible pointer type
/usr/src/sys/net/pfil.h:62:5: note: expected 'struct pfil_head_t *' but 
argument is of type 'struct pfil_head_t **'
/usr/src/sys/dist/pf/net/pf_if.c:149:2: error: passing argument 4 of 
'pfil_remove_hook' from incompatible pointer type
/usr/src/sys/net/pfil.h:62:5: note: expected 'struct pfil_head_t *' but 
argument is of type 'struct pfil_head_t **'

*** Failed target:  pf_if.o
*** Failed command: /usr/src/../tools/bin/x86_64--netbsd-gcc -O2 -std=gnu99 
-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 
-Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch 
-Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter 
-Wno-sign-compare -Werror -ffreestanding -fno-strict-aliasing -Wno-pointer-sign 
-mno-red-zone -mcmodel=kernel -fno-omit-frame-pointer -I/usr/src/common/include 
--sysroot=/usr/src/../obj/destdir.amd64 -I/usr/src/sys/dist/pf -I/usr/src/sys 
-DINET6 -DINET -I/usr/src/common/include -nostdinc -I. 
-I/usr/src/sys/modules/pf -isystem /usr/src/sys -isystem /usr/src/sys/arch 
-isystem /usr/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE 
-DSYSCTL_INCLUDE_DESCR -c /usr/src/sys/dist/pf/net/pf_if.c
*** Error code 1

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index