Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2018 18:39:44 +0000 (UTC)
From:      Matt Macy <mmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335903 - head/sys/conf
Message-ID:  <201807031839.w63Idi1m026405@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmacy
Date: Tue Jul  3 18:39:43 2018
New Revision: 335903
URL: https://svnweb.freebsd.org/changeset/base/335903

Log:
  explain the purpose of genoffset_test

Modified:
  head/sys/conf/kern.post.mk

Modified: head/sys/conf/kern.post.mk
==============================================================================
--- head/sys/conf/kern.post.mk	Tue Jul  3 18:20:42 2018	(r335902)
+++ head/sys/conf/kern.post.mk	Tue Jul  3 18:39:43 2018	(r335903)
@@ -194,6 +194,9 @@ genoffset.o: $S/kern/genoffset.c
 genoffset_test.c: $S/kern/genoffset.c
 	cp $S/kern/genoffset.c genoffset_test.c
 
+# genoffset_test.o is not actually used for anything - the point of compiling it
+# is to exercise the CTASSERT that checks that the offsets in the offset.inc
+# _lite struct(s) match those in the original(s). 
 genoffset_test.o: genoffset_test.c offset.inc
 	${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST genoffset_test.c
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807031839.w63Idi1m026405>