DF-5332 / build.log
Warning: Object directory not changed from original /root/df5332
cc -O2 -pipe -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. -Idragonfly -I/root/df5332/forwarder_x86_64/include -Idragonfly/../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 evilcd3.c
cc -Wl,--build-id=sha1 -nostdlib -Wl,--hash-style=sysv -r -Wl,-d -o evilcd3.ko evilcd3.o
poc_chres.c: In function 'main':
poc_chres.c:59:23: warning: unused variable 'error' [-Wunused-variable]
int fd, r, i, mib_n, error;
^~~~~
poc_chres.c:59:16: warning: unused variable 'mib_n' [-Wunused-variable]
int fd, r, i, mib_n, error;
^~~~~
build OK:
-rw-r--r-- 1 root wheel 16744 Oct 2 23:19 evilcd3.ko
-rwxr-xr-x 1 root wheel 18560 Oct 2 23:19 poc_chres