⬢ DragonFlyBSD Kernel Audit
DF-5606 / build_s2.log
← back to finding ↓ download raw
Warning: Object directory not changed from original /root/df5606/obj2
dragonfly -> /sys
machine_base -> /sys/platform/pc64
machine -> /sys/platform/pc64/include
cpu_base -> /sys/cpu/x86_64
cpu -> /sys/cpu/x86_64/include
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/alignbytes.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/asm.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/asm_mjgmacros.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/asmacros.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/atomic.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/bus_dma.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/cpu.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/cpufunc.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/cpumask.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/cputypes.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/db_machdep.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/elf.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/endian.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/exec.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/frame.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/ieeefp.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/int_const.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/int_limits.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/inttypes.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/limits.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/lwbuf.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/npx.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/param.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/pat.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/pmap.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/profile.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/psl.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/reg.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/reloc.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/segments.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/setjmp.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/sigframe.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/signal.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/specialreg.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/stdarg.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/stdint.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/sysarch.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/tls.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/trap.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/tss.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/types.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/ucontext.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/vframe.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/wchar.h
creating machine/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/machine/wchar_limits.h
creating sys/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/aio.h
creating sys/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/errno.h
creating sys/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/fcntl.h
creating sys/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/linker_set.h
creating sys/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/poll.h
creating sys/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/syslog.h
creating sys/ forwarding header /root/df5606/obj2/forwarder_x86_64/include/ucontext.h
awk -f dragonfly/tools/makeobjops.awk -- -h dragonfly/kern/bus_if.m
awk -f dragonfly/tools/makeobjops.awk -- -h dragonfly/kern/device_if.m
awk -f dragonfly/tools/makeobjops.awk -- -h dragonfly/dev/netif/mii_layer/miibus_if.m
cc  -O2 -pipe  -I/root/df5606/obj2/../fakeinc -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual  -Wold-style-definition -Wmissing-include-dirs  -Wno-pointer-sign -Winit-self -Wundef -Wno-unused-but-set-variable -std=gnu11 -Werror -DKLD_MODULE -nostdinc -I/root/df5606/obj2/../fakeinc -I. -Idragonfly -I/root/df5606/obj2/forwarder_x86_64/include -Idragonfly/../include -I/usr/include  -Wold-style-declaration -fno-common -ffreestanding -fno-stack-protector -fno-strict-aliasing -fno-strict-overflow -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -mno-fp-ret-in-387 -mindirect-branch=thunk-inline   -c ruephy.c
In file included from dragonfly/sys/bus.h:41,
                 from ruephy.c:41:
ruephy.c:62:27: error: 'mii_phy_detach' undeclared here (not in a function); did you mean 'mii_phy_match'?
  DEVMETHOD(device_detach, mii_phy_detach),
                           ^~~~~~~~~~~~~~
dragonfly/sys/kobj.h:112:59: note: in definition of macro 'KOBJMETHOD'
 #define KOBJMETHOD(NAME, FUNC) { &NAME##_desc, (kobjop_t) FUNC }
                                                           ^~~~
ruephy.c:62:2: note: in expansion of macro 'DEVMETHOD'
  DEVMETHOD(device_detach, mii_phy_detach),
  ^~~~~~~~~
ruephy.c:87:2: error: 'MII_PHY_END' undeclared here (not in a function); did you mean 'MII_PHYDESC'?
  MII_PHY_END
  ^~~~~~~~~~~
  MII_PHYDESC
ruephy.c:87:2: error: initialization of 'unsigned int' from 'const kobj_method_t *' {aka 'const struct kobj_method *'} makes integer from pointer without a cast [-Werror=int-conversion]
ruephy.c:87:2: note: (near initialization for 'ruephys[1].mpd_oui')
ruephy.c:87:2: error: initializer element is not constant
ruephy.c:87:2: note: (near initialization for 'ruephys[1].mpd_oui')
ruephy.c:90:21: error: variable 'ruephy_funcs' has initializer but incomplete type
 static const struct mii_phy_funcs ruephy_funcs = {
                     ^~~~~~~~~~~~~
ruephy.c:91:2: error: excess elements in struct initializer [-Werror]
  ruephy_service,
  ^~~~~~~~~~~~~~
ruephy.c:91:2: note: (near initialization for 'ruephy_funcs')
ruephy.c:92:2: error: excess elements in struct initializer [-Werror]
  ruephy_status,
  ^~~~~~~~~~~~~
ruephy.c:92:2: note: (near initialization for 'ruephy_funcs')
ruephy.c:93:2: error: excess elements in struct initializer [-Werror]
  ruephy_reset
  ^~~~~~~~~~~~
ruephy.c:93:2: note: (near initialization for 'ruephy_funcs')
ruephy.c: In function 'ruephy_probe':
ruephy.c:102:11: error: implicit declaration of function 'mii_phy_dev_probe'; did you mean 'mii_phy_probe'? [-Werror=implicit-function-declaration]
   return (mii_phy_dev_probe(dev, ruephys, BUS_PROBE_DEFAULT));
           ^~~~~~~~~~~~~~~~~
           mii_phy_probe
ruephy.c:102:11: error: nested extern declaration of 'mii_phy_dev_probe' [-Werror=nested-externs]
ruephy.c: In function 'ruephy_attach':
ruephy.c:110:2: error: implicit declaration of function 'mii_phy_dev_attach'; did you mean 'mii_phy_match'? [-Werror=implicit-function-declaration]
  mii_phy_dev_attach(dev, MIIF_NOISOLATE | MIIF_NOMANPAUSE,
  ^~~~~~~~~~~~~~~~~~
  mii_phy_match
ruephy.c:110:2: error: nested extern declaration of 'mii_phy_dev_attach' [-Werror=nested-externs]
ruephy.c:110:43: error: 'MIIF_NOMANPAUSE' undeclared (first use in this function); did you mean 'MIIF_DOPAUSE'?
  mii_phy_dev_attach(dev, MIIF_NOISOLATE | MIIF_NOMANPAUSE,
                                           ^~~~~~~~~~~~~~~
                                           MIIF_DOPAUSE
ruephy.c:110:43: note: each undeclared identifier is reported only once for each function it appears in
ruephy.c:110:41: error: invalid operands to binary | (have 'int' and 'const struct mii_phydesc *')
  mii_phy_dev_attach(dev, MIIF_NOISOLATE | MIIF_NOMANPAUSE,
                                         ^
ruephy.c: In function 'ruephy_service':
ruephy.c:132:3: error: implicit declaration of function 'mii_phy_setmedia'; did you mean 'mii_phy_set_media'? [-Werror=implicit-function-declaration]
   mii_phy_setmedia(sc);
   ^~~~~~~~~~~~~~~~
   mii_phy_set_media
ruephy.c:132:3: error: nested extern declaration of 'mii_phy_setmedia' [-Werror=nested-externs]
ruephy.c:163:3: error: implicit declaration of function 'PHY_RESET'; did you mean 'PHY_READ'? [-Werror=implicit-function-declaration]
   PHY_RESET(sc);
   ^~~~~~~~~
   PHY_READ
ruephy.c:163:3: error: nested extern declaration of 'PHY_RESET' [-Werror=nested-externs]
ruephy.c:164:7: error: too few arguments to function 'mii_phy_auto'
   if (mii_phy_auto(sc) == EJUSTRETURN)
       ^~~~~~~~~~~~
In file included from ruephy.c:48:
/root/df5606/obj2/../fakeinc/dev/mii/miivar.h:270:5: note: declared here
 int mii_phy_auto(struct mii_softc *, int);
     ^~~~~~~~~~~~
ruephy.c:164:24: error: comparison between pointer and integer [-Werror]
   if (mii_phy_auto(sc) == EJUSTRETURN)
                        ^~
ruephy.c:170:2: error: implicit declaration of function 'PHY_STATUS'; did you mean 'PHY_READ'? [-Werror=implicit-function-declaration]
  PHY_STATUS(sc);
  ^~~~~~~~~~
  PHY_READ
ruephy.c:170:2: error: nested extern declaration of 'PHY_STATUS' [-Werror=nested-externs]
ruephy.c: At top level:
ruephy.c:90:35: error: storage size of 'ruephy_funcs' isn't known
 static const struct mii_phy_funcs ruephy_funcs = {
                                   ^~~~~~~~~~~~
cc1: all warnings being treated as errors
*** Error code 1

Stop.
make: stopped making "all" in /root/df5606/obj2