============================================================ FIX-COMPILE BUILD LOG (DF-1574) ============================================================ Translation-unit-only compile test of the patched file. The full amdgpu module build is ~1500 TUs / many minutes; for a one-line-clamp fix it is sufficient to prove the patched source compiles with the kernel's own CFLAGS (-Werror enabled). Applied patch: patch -p1 < /root/df1574.diff -> Hunk #1 succeeded at line 173 Build command (extracted from `make -V CFLAGS` for amdgpu.ko, with the forwarder_x86_64/include machine/cpu/sys forwarding headers generated by `make` itself): 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/process_pptables_v1_0.c \ -o /tmp/df1574_test.o OUTPUT: (no diagnostics; -Werror clean) RC=0 -rw-r--r-- 1 root wheel 12328 Jul 18 07:02 /tmp/df1574_test.o ============================================================ SANITY: PATCH APPLIES CLEANLY (read-only sys/ tree) ============================================================ $ git apply --check -p1 findings/poc/DF-1574/fix.diff (no output -> OK)