DF-5714 / build.log
== source identity pin (must match host cksum: ffs 3349697062 1930 / ffsl 1444671719 1875 / strcmp 180206468 2066)
3349697062 1930 /usr/src/sys/libkern/ffs.c
1444671719 1875 /usr/src/sys/libkern/ffsl.c
180206468 2066 /usr/src/sys/libkern/strcmp.c
== verbatim renamed objects
BODY-IDENTICAL strcmp.c (modulo stripped kernel-only include)
p2_harness.c: In function 'main':
p2_harness.c:123:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (k != b) mism++; n++;
^~
p2_harness.c:123:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (k != b) mism++; n++;
^
p2_harness.c:129:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (k != b) mism++; n++;
^~
p2_harness.c:129:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (k != b) mism++; n++;
^
p2_harness.c:138:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (k != b) mism++; n++;
^~
p2_harness.c:138:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (k != b) mism++; n++;
^
p2_harness.c:144:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (k != b) mism++; n++;
^~
p2_harness.c:144:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (k != b) mism++; n++;
^
BUILD-OK
== dead-file proof: kernel-style compile of ffs.c (-nostdinc, kern.pre.mk:61)
DEADPROOF-OK: ffs.c cannot compile in-kernel:
/usr/src/sys/libkern/ffs.c:33:10: fatal error: string.h: No such file or directory
#include <string.h>
^~~~~~~~~~
compilation terminated.
== fix.diff validation: patched include, kernel-style compile
FIXCOMPILE-NAIVE-FAILS (include swap alone is insufficient; cpufunc.h:269
static __inline ffs collides with the out-of-line definition):
f_ffs.c:39:1: error: redefinition of 'ffs'
kinc/machine/cpufunc.h:269:1: note: previous definition of 'ffs' was here
== fix.diff (final): include swap + FreeBSD-style HAVE_INLINE_FFS gate ==
FIX2COMPILE-OK: guarded ffs.c compiles kernel-style (final fix validated;
on x86_64 the body compiles away under cpufunc.h's HAVE_INLINE_FFS)