Module Name: src Committed By: rillig Date: Sun May 2 20:11:43 UTC 2021
Modified Files: src/sys/conf: lint.mk Log Message: sys/conf/lint.mk: fix order of command line options The option -o must come before the first filename. Now it is possible to lint kern_exec.c at least. The next failure is in netbsd32_machdep.c: netbsd32_machdep.c(395): error: illegal bit-field size: 255 [36] That line in netbsd32_process_read_fpregs reads: __CTASSERT(sizeof(*regs) == sizeof(struct save87)); This is probably a bug in lint. The struct save87 contains 3 uint16_t, followed by a union containing a uint64_t, followed by a packed struct with size 10. The combination of packed and padding is suspicious. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/conf/lint.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/conf/lint.mk diff -u src/sys/conf/lint.mk:1.3 src/sys/conf/lint.mk:1.4 --- src/sys/conf/lint.mk:1.3 Sun May 2 19:51:57 2021 +++ src/sys/conf/lint.mk Sun May 2 20:11:43 2021 @@ -1,4 +1,4 @@ -# $NetBSD: lint.mk,v 1.3 2021/05/02 19:51:57 rillig Exp $ +# $NetBSD: lint.mk,v 1.4 2021/05/02 20:11:43 rillig Exp $ ## ## lint @@ -9,7 +9,7 @@ ALLSFILES?= ${MD_SFILES} ${SFILES} LINTSTUBS?= ${ALLSFILES:T:R:C/^.*$/LintStub_&.c/g} KERNLINTFLAGS?= -bceghnxzFS -NORMAL_LN?= ${LINT} ${KERNLINTFLAGS} ${CPPFLAGS:M-[IDU]*} -i $< -o $@ +NORMAL_LN?= ${LINT} ${KERNLINTFLAGS} ${CPPFLAGS:M-[IDU]*} -o $@ -i $< _lsrc=${CFILES} ${LINTSTUBS} ${MI_CFILES} ${MD_CFILES} LOBJS?= ${_lsrc:T:S/.c$/.ln/g} ${LIBKERNLN} ${SYSLIBCOMPATLN}