From nobody Wed Mar 22 22:28:43 2023 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 4Phjmq2mfKz41NnH; Wed, 22 Mar 2023 22:28:43 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Phjmq20Kwz3jXZ; Wed, 22 Mar 2023 22:28:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679524123; 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=1fm12FjmJOWm3WEujI321qVJ1ivPiIigRlBZ8gMhfG0=; b=TUpDCg0XLcgwOPAJiiXS/gW6eK0SMPM9oAsAmiO+23JSDyyo45alecb0kYllEbCwyLDxd2 gmu2Q47NQuqkCwsX2xz506knq0VyxI+nbufXtDariKS60MXWXgtdBeOus+A8hDuSNsdvoL K0DY0Hkb9uuovrKLdeu5yjzp+/PerzFmVotTgLcz3CYMHmSHqlrTXPdwS2AMZhpRT6uU/H hA4Mscoces7rM3JeTBtJ2m+OJyOWXkMLNBNcqv0NeunZskmlbXF8pne/7e8XdGw5/ED9LK MpUPGxVQj6Zievl7R6BXM6xAREI6GYbSqJEVlVrye8jtnWHkXV6x7xYgYT6UMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679524123; 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=1fm12FjmJOWm3WEujI321qVJ1ivPiIigRlBZ8gMhfG0=; b=WSpdfyze74mSN80HLhX+VITWpQacdiDDHY/JHoJL46etjfh+/s8sm+y1jH39xwPrJMNr93 phJgNIm7BRIS2NoFm5h2np9XsAjecKrn5HyI/DR9BXuXDNdO4WO0H7f/xaCttZObZTq9kD 3GenDJvHlEeK4928Jq5X141Xxal91DOFO7ki2tMqOZPtNXMhRcKJr0zL+TB2G43U4/PD75 pG6Locy0/2x15H6j3ACb8dv6ZkqKpCUWSA7422YUGwj/fFB6CwyxeQGAb8WtWPYVMgezDy d/c4iqr48ci6pneoMkxvvvIWL6KzkAQD8UxbOXhn9xKcb5iNHzDBaqWEXqCyPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679524123; a=rsa-sha256; cv=none; b=flln2lOXman+j0EulLvhMFpYF9PR8MptF5Zj5+68WzNym8YEovmbmsBU2eDv8r6lE5HTlc WoWh5niBWU694g70VCw8nDTFifaHKE0bmyzEQk7xveCDXAO0u4Vk0ruY4kWngLIcY8PpRz q/4ObJLkCnoIX2ive1hN6UqTw588uP1fDx8tCk/EeDwL9RTteZ3yE+6YPDDn2NIcqGBFed O/EPQWhFGIAftE4blXAVNM2KTYbezwe2J5bnSwGbCONLfLDMOYUQ+Qw37rQVN2iUrXG32G QygzQaPmcVLlMMmVchWiLf0NphE7LJf9JEFwdlifCKbSlWTRzFRZj2AgOawvdg== 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 4Phjmq14llz1BRk; Wed, 22 Mar 2023 22:28:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32MMSh18001917; Wed, 22 Mar 2023 22:28:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32MMShJm001916; Wed, 22 Mar 2023 22:28:43 GMT (envelope-from git) Date: Wed, 22 Mar 2023 22:28:43 GMT Message-Id: <202303222228.32MMShJm001916@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 2c91d5899a90 - stable/12 - gcc9: quiet Waddress-of-packed-member for kernel build 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 2c91d5899a9004bc281063dc6439cd17b05f71b2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=2c91d5899a9004bc281063dc6439cd17b05f71b2 commit 2c91d5899a9004bc281063dc6439cd17b05f71b2 Author: Ryan Libby AuthorDate: 2019-12-21 02:43:37 +0000 Commit: John Baldwin CommitDate: 2023-03-22 22:21:11 +0000 gcc9: quiet Waddress-of-packed-member for kernel build This is lame, but it's what we already do for the clang build. We take misaligned pointers into network header structures in many places. Reviewed by: ian Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D22876 (cherry picked from commit 77acc3cfbcfbb2f66c683706e3b9e39d56c000fa) --- sys/conf/kern.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 243419103b22..4a36aae4db94 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -82,6 +82,9 @@ CWARNEXTRA+= -Wno-error=memset-elt-size .if ${COMPILER_VERSION} >= 80000 CWARNEXTRA+= -Wno-error=packed-not-aligned .endif +.if ${COMPILER_VERSION} >= 90100 +CWARNEXTRA+= -Wno-address-of-packed-member +.endif .else # For gcc 4.2, eliminate the too-often-wrong warnings about uninitialized vars. CWARNEXTRA?= -Wno-uninitialized