DragonFlyBSD Kernel Audit
DF-1586 / fix_build.log
← back to finding ↓ download raw
============================================================
FIX-COMPILE BUILD LOG (DF-1586)
============================================================
Translation-unit-only compile test of the patched file
(vega10_processpptables.c). Same kernel CFLAGS as DF-1574.

Applied patch:
  patch -p1 < /root/df1586.diff  -> Hunk #1 succeeded at line 1031

Build command (extracted from amdgpu's `make -V CFLAGS`):

  cc -O2 -pipe -DBUILD_FEATURE_TIMING_SYNC=0 \
     -include dragonfly/dev/drm/kconfig.h \
     -D_KERNEL -Wall -Wredundant-decls -Wnested-externs \
     -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
     -Wcast-qual -Wold-style-definition -Wno-pointer-sign -Winit-self \
     -Wundef -Wno-unused-but-set-variable -std=gnu11 -Werror \
     -DKLD_MODULE -nostdinc \
     [include paths: amd powerplay inc, display dc, scheduler, ...] \
     -fno-common -ffreestanding -fno-stack-protector -fno-strict-aliasing \
     -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float \
     -c ../powerplay/hwmgr/vega10_processpptables.c \
     -o /tmp/df1586_test.o

OUTPUT:
  (no diagnostics; -Werror clean)

DF1586_RC=0
-rw-r--r-- 1 root wheel 11952 Jul 18 07:02 /tmp/df1586_test.o

============================================================
SANITY: PATCH APPLIES CLEANLY (read-only sys/ tree)
============================================================
$ git apply --check -p1 findings/poc/DF-1586/fix.diff
(no output -> OK)