DF-1163 / build.log
========================================================================
DF-1163 fix compile-validation (amdgpu gfx_v7_0.c, sys/dev/drm/amd/amdgpu)
Guest: DragonFly 6.5-DEVELOPMENT #0, cc 8.3, with-src (unpatched baseline)
========================================================================
[1] APPLY fix.diff (7 hunks: fw_dwords decl + cp_dwords + 5 branch datasize + loop guard):
cd /usr/src && patch -p1 --forward < /root/df1163.diff
Hunks #1..#7 succeeded; 5 'fw->datasize / 4;' inserts + the bounds guard present.
[2] FULL MODULE BUILD (amdgpu, generates forwarder dir + compiles gfx_v7_0.o):
cd /usr/src/sys/dev/drm/amd && make (backgrounded, ~3-4 min)
-> AMDGPU_MAKE_DONE rc=0
-> sys/dev/drm/amd/amdgpu/gfx_v7_0.o produced (80360 bytes)
-> 0 'error:' lines under -Werror (excl the cosmetic missing-include-dirs
warning that is normal for the first module build and resolves once the
forwarder dir is generated).
[3] RESULT: fix.diff APPLIES + COMPILES clean (amdgpu module, -Werror).
[4] REVERT (source returned to unpatched baseline):
cd /usr/src && patch -p1 -R < /root/df1163.diff -> done
'datasize / 4;' count -> 0 (clean)
RUNTIME: not exercised -- amdgpu not in GENERIC, no AMD GPU on guest (latent).