From nobody Mon Feb 23 10:05:23 2026 X-Original-To: dev-commits-src-all@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 4fKGgl4ZKMz6T2Z6 for ; Mon, 23 Feb 2026 10:05:23 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fKGgl3k1zz3xtr for ; Mon, 23 Feb 2026 10:05:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771841123; 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=+njbO6gaymjezJTfocKgXyF84ZP/SyfQ+D1bT4V18YM=; b=j190LRvFGt8Db/apDzuDWxFmD7wbpndGuAdtn0GxNEPc6anzGXYK2W9HYtTh2vmApYd/Bj BYHSZhj/1eNf/b8VInPHKno7o2eEGTbZjoDgMm0fGeGiiPFDaX/TQKpMkf88qSlFl6Pbex YlclTBro4lG7nGHQSszTlwGbFkH0K2Xx5dg1+DJYtN8ILOQ7QGtn72v+r0X+IyrD4srJP9 E+hgSa8SJmYs0jSrXI/DMldLfkqP5x9Hizuls0zNpuhPx/MAkVOEisunxCU9HGkJnJjwN7 9HKkSE5rmqSOHgLCl9/3b17liZsjBkq7LVxjalXVASa1Es8wO8NStDeq8GJCrw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771841123; a=rsa-sha256; cv=none; b=ohXqzq4buJ6faR/Q/yK1Rto2SRpXWhQWYFQ6hIQ6QsywJzWgdXTV6jt2q6OMCASfM4231x B24fw8yvVyRZ/ZemgL5NA9Ch9qBh7h0o+Gk2NxE3yNf48HehqMroDjSHThXphF+j8UNU9t bkLZyJZNQ+/f9bWu30wKHhm7gNxo7v/GY3bTkX1neVzp49HW/wTkxsZxfBxvQc/s19jdzu DTb82nJMBtOkjbQ3A6GrCzJWqsi0Yp8KY/vgMXr8/jdp2cIEv/B2KoLQ9xfLOcmBrLKLFR 3nyvjT3SP866iqyLjgitwVawGAUOxH/Ne7gegMHzCJM5qFF6tYfCt/fPGcIoWg== 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=1771841123; 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=+njbO6gaymjezJTfocKgXyF84ZP/SyfQ+D1bT4V18YM=; b=FQfTrmlyB+rps/QIgKJOk1pY8lqFllyEoZkXpDqoSjpolvymPWFF9Kyb0ek2QyarpAxghx MJtw4bD3iBuN+JLqSNuOslWj81QaAlfpJuS4l7B7xFBUf3qNv6eUVG81iUeFR+COB2XfOi E5w3tRxIQ+LYmreDXUfRZG0BZrZOKymg2owGfS5NdjAWCQuZFYiI2a/34+uySmFesPzQjs 0QxrPNsGxuZOdTNMWQrw8bIGnvAqw8Ix82SceAa26ccA6B0V+4LLHBCXkk5s/o0PM0pHlJ vxoZINroUQ4aRXJBP1fP+c/TmVRjXQ/sTvz7DZX9lllMvA2zHunB5qhImKvnHA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fKGgl3HSZz9CK for ; Mon, 23 Feb 2026 10:05:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 32317 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 23 Feb 2026 10:05:23 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 0076f6d1ad05 - main - sys/_offsetof.h: pacify GCC 12's macro redefinition check List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0076f6d1ad05e80d372bef1caf15615cd639fb5c Auto-Submitted: auto-generated Date: Mon, 23 Feb 2026 10:05:23 +0000 Message-Id: <699c2663.32317.683ad64d@gitrepo.freebsd.org> The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=0076f6d1ad05e80d372bef1caf15615cd639fb5c commit 0076f6d1ad05e80d372bef1caf15615cd639fb5c Author: Brooks Davis AuthorDate: 2026-02-23 09:45:58 +0000 Commit: Brooks Davis CommitDate: 2026-02-23 10:05:06 +0000 sys/_offsetof.h: pacify GCC 12's macro redefinition check GCC 12 has a strict definition of identity (all characters including whitespace must be identical) when comparing "redefined" macros. Make our definition exactly match the stddef.h that comes with GCC to fix test-includes of netlink/netlink_snl.h. (Note: later versions of GCC are a bit more flexible and don't have this problem.) Reported by: des Sponsored by: DARPA, AFRL Fixes: 2adc3f0db187 ("stddef.h: centralize definition of offsetof()") --- sys/sys/_offsetof.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/_offsetof.h b/sys/sys/_offsetof.h index 25982fad774a..7a38914818a0 100644 --- a/sys/sys/_offsetof.h +++ b/sys/sys/_offsetof.h @@ -13,7 +13,7 @@ #define _SYS__OFFSETOF_H_ #ifndef offsetof -#define offsetof(type, field) __builtin_offsetof(type, field) +#define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER) #endif #endif /* _SYS__OFFSETOF_H_ */