From nobody Thu Apr 10 12:47:18 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZYKMq1rjfz5svSR; Thu, 10 Apr 2025 12:47:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZYKMq12Wlz3pG7; Thu, 10 Apr 2025 12:47:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744289239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fic4JYH3mWtJYYb4+Y5jVA32K30WZVPtHsg1YuuTp9o=; b=LWr0zQo/P57qEQmW7Z9Ztkvp2YKVFj36YSNmAhwQMDqXmqh3LJjdypWvuP4EvpVq6vqpDO 3SH16ixBH3dzbk7m+XZOKD50wMjifynSSOGqPZarf4CZBpkkelCNOR2mIVo4gnlxGhHLTR YU3zB1Tze0CLrqXrXZ4IZ8yq+A7DJ7b7Q/s4mFLyvaTMkNkusbMzetKQofIuRbmVuxKdJt o6WftySImPr0I+j6rNgTO3ycjCyJGcZHZ18baqvrEp6vuDD3Ks5XxdQfJP+oyTed/ypKKF gkQz8PGzAonPUdpU1Q7VR1H+LUy0qWcgNGzT9Muf4zE/2CsTdcR3cPigEO8+vw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744289239; a=rsa-sha256; cv=none; b=YnRQeTN/+8KNJ0MzAcRh0YWZJXbefx2sxd7VxNUsE5wxuV+XtgKBHCqSQwbu4M/yEckNe+ g+8hNZDYcT2C+0efD+g2XDqs7YeXCSGVXEjlPRp6/lDbTCLgUJaDwARFPeP/AStPTJEqLL UoHmMqBd9YD8WnlFE8Qxo4SX1JWam/WMWlxnM2Kp5nhQu9BJIZJEodwJnKpV1ZuYyHJZTH 9W2tzR9Z8ICSdXg16dhq0Xglkzk0mFEsHs6YKZlPyDjaMunKItKjq/QJ8xH/MBCiOBze2y rMOViMK4FD+eOmqFSMa4nrUstZptxGmB9Btc6smofNuHSrTkr+P1iVdBmGGhZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744289239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fic4JYH3mWtJYYb4+Y5jVA32K30WZVPtHsg1YuuTp9o=; b=iGNdgkmwwKPyhh7nTfvSKBwL/0pha0iBVZ5u3yvdZygYo/jmSqyzxLkW6MqA5rl4XPR7Wp fBxSv6zw7Hpuh8CbFAcfIq+w069/vHFukFrpE7MQoTOJq7Gl/ZzKAelVpXWdUlirGARvBo KnF+wrghMzQgdfUkvgK6lP/dDoVf4+y/J/r0m8DgcW1jMzU7hvfPfU21puvyU+FT8jiqYC g9h9IypSVPLyz+nhWBnI04FubRlCUjVxHOlFheeh9r2yAPgZKWskW19Z0eOKhBhAR86N4P JKqSXEqHhBLt3VLVqZXdioujG7aWlzqSGZMe2flX02v6JMIrYO3WocNmVu0jhA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZYKMq0QZQz13Bh; Thu, 10 Apr 2025 12:47:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 53AClIb7014999; Thu, 10 Apr 2025 12:47:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 53AClItB014996; Thu, 10 Apr 2025 12:47:18 GMT (envelope-from git) Date: Thu, 10 Apr 2025 12:47:18 GMT Message-Id: <202504101247.53AClItB014996@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: d80ab37f9883 - main - test-includes: Make sure we test against in-tree headers List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d80ab37f9883cb981c9b359d50bbfe8f0d6f2884 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d80ab37f9883cb981c9b359d50bbfe8f0d6f2884 commit d80ab37f9883cb981c9b359d50bbfe8f0d6f2884 Author: Mark Johnston AuthorDate: 2025-04-10 12:42:42 +0000 Commit: Mark Johnston CommitDate: 2025-04-10 12:47:00 +0000 test-includes: Make sure we test against in-tree headers Regenerate badfiles.inc as well. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D49736 --- tools/build/test-includes/Makefile | 3 +++ tools/build/test-includes/badfiles.inc | 17 ----------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/tools/build/test-includes/Makefile b/tools/build/test-includes/Makefile index 2c25e0fb32ce..5c45fd7daa4f 100644 --- a/tools/build/test-includes/Makefile +++ b/tools/build/test-includes/Makefile @@ -26,6 +26,9 @@ CFLAGS.event.c= -D_WANT_KEVENT32 -D_WANT_FREEBSD11_KEVENT # details like __inline that the header files must follow to support C89. CFLAGS+=-ansi +# Make sure we're pulling in headers from the src tree. +CFLAGS+=-I${SRCTOP}/sys + .include "badfiles.inc" .for h c in ${HDRS:@x@$x ${x:S,/,_,g:R}.c@} diff --git a/tools/build/test-includes/badfiles.inc b/tools/build/test-includes/badfiles.inc index 1e5182e40911..2ed61c32aa4e 100644 --- a/tools/build/test-includes/badfiles.inc +++ b/tools/build/test-includes/badfiles.inc @@ -65,11 +65,8 @@ BADHDRS= \ sys/kobj.h \ sys/ksem.h \ sys/ktls.h \ - sys/ktrace.h \ sys/libkern.h \ sys/link_aout.h \ - sys/linker.h \ - sys/linker_set.h \ sys/lock.h \ sys/lock_profile.h \ sys/lockf.h \ @@ -77,7 +74,6 @@ BADHDRS= \ sys/loginclass.h \ sys/mbuf.h \ sys/md4.h \ - sys/md5.h \ sys/mdioctl.h \ sys/memdesc.h \ sys/memrange.h \ @@ -85,7 +81,6 @@ BADHDRS= \ sys/module_khelp.h \ sys/mpt_ioctl.h \ sys/msgbuf.h \ - sys/mutex.h \ sys/namei.h \ sys/osd.h \ sys/pciio.h \ @@ -106,7 +101,6 @@ BADHDRS= \ sys/runq.h \ sys/rwlock.h \ sys/sbuf.h \ - sys/sema.h \ sys/sf_buf.h \ sys/sglist.h \ sys/sigio.h \ @@ -117,10 +111,8 @@ BADHDRS= \ sys/sockopt.h \ sys/stack.h \ sys/stats.h \ - sys/sx.h \ sys/syscallsubr.h \ sys/syslimits.h \ - sys/systm.h \ sys/taskqueue.h \ sys/terminal.h \ sys/termios.h \ @@ -155,13 +147,11 @@ BADHDRS= \ net/if_llc.h \ net/if_media.h \ net/if_mib.h \ - net/if_pfsync.h \ net/if_tap.h \ net/if_tun.h \ net/if_var.h \ net/if_vlan_var.h \ net/iflib.h \ - net/iflib_private.h \ net/ifq.h \ net/mp_ring.h \ net/mppc.h \ @@ -172,9 +162,7 @@ BADHDRS= \ net/paravirt.h \ net/pfil.h \ net/pfkeyv2.h \ - net/pfvar.h \ net/radix.h \ - net/raw_cb.h \ net/rndis.h \ net/route.h \ net/rss_config.h \ @@ -258,7 +246,6 @@ BADHDRS= \ netinet/in_rss.h \ netinet/in_systm.h \ netinet/in_var.h \ - netinet/ip.h \ netinet/ip6.h \ netinet/ip_carp.h \ netinet/ip_dummynet.h \ @@ -275,13 +262,11 @@ BADHDRS= \ netinet/sctp_pcb.h \ netinet/sctp_structs.h \ netinet/sctp_sysctl.h \ - netinet/tcp_debug.h \ netinet/tcp_hpts.h \ netinet/tcp_log_buf.h \ netinet/tcp_lro.h \ netinet/tcp_offload.h \ netinet/tcp_ratelimit.h \ - netinet/tcp_var.h \ netinet/tcpip.h \ netinet/toecore.h \ netinet/udplite.h \ @@ -293,7 +278,6 @@ BADHDRS= \ netinet6/ip6.h \ netinet6/ip6_mroute.h \ netinet6/ip6_var.h \ - netinet6/ip6protosw.h \ netinet6/ip_fw_nat64.h \ netinet6/ip_fw_nptv6.h \ netinet6/mld6.h \ @@ -313,7 +297,6 @@ BADHDRS= \ netipsec/ipsec6.h \ netipsec/key_debug.h \ netipsec/keysock.h \ - netipsec/xform.h \ netsmb/netbios.h \ netsmb/smb.h \ netsmb/smb_conn.h \