From nobody Mon Dec 05 00:30:35 2022 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 4NQPbJ0474z4k1sy; Mon, 5 Dec 2022 00:30:36 +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 4NQPbH6WlTz4Npx; Mon, 5 Dec 2022 00:30:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670200235; 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=qbVfq2UHjO4s1hKH4OGtCBKVrRYZZfgoh/sCbvWNGLc=; b=sE0g3mj/gu5r/+R/ROgHBMuQUqt91PCunI6VL9ADOuuhi0Vra3MAX6pTEdSYgV4KYfXuQM /orft00MNTJFywsDoJrglSDwMcd3udI9VOJ4azn6v8hTBjUaoQTNiPBzZNQv6T1biU2W0m UhD4fjz1H8wDRfmtERue1hNPI1U8KMXWJAkt52huEdrBBoqBXr0zl7RxjwvCG+VTqUtMrU TaL7in27SqkkpWXjcTijoz6j97DgRG/JQqzIicPxLEaGbZ/WpG57reSMwPqAZl1r6yzJz8 5RfzQdxGg907AiHYJuBDdeJKq3RMweLSL5eZA8ErZeiK+VZGgSqGgOyesZbJYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670200235; 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=qbVfq2UHjO4s1hKH4OGtCBKVrRYZZfgoh/sCbvWNGLc=; b=krWvWDvY5lodIRq0fE3j/Lhlp/Dbj5+vgavgMTCd7R21gdILJCXGMngqXpODDL2vSvT9Qc t24ETUq2HTSpueYipTEC0PV3GOnxUp4g8Muk8mum+oQDvzdxSy0iI5fvEI0dVdLtnwCjCc ekWSt+ACP4Fce7PJ4Y7H8Vh+BHumH+muecVBhMBecPfDoshv4SmMJqqAdpp03+ilMjq+Fd 5qexkOyaDokE6ZWZ5ZsLKKcI7pF06etpXnc8ktVadiLRnbabpa9S85ZopKnGrHUfPizo5y ScKlSJplfABo/ik3pX2t3eoKf57zfnl3JsMvIFu+ny2zU656Celxp7E0zQyF8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670200235; a=rsa-sha256; cv=none; b=etCSnzDu14adh6P99K1OQ5qhvfFkr6T86tTvXZpSjtCetqM7GcFcu25oaL6xzTj69M7Jwr NWpggII+soda0buZntpwi03LCk0C/kYnNoEYw1KfuUv0s6BlySoS0tkpMLpFC0EJSTfEEl WojxMeogPmELbEanRMzqRlOowTlGCB6TelbQ22HMVKdyxG08KUF0M1U3MMXo1KqR3ReTfD 5wYV1/JCbeW4xyWj/yAWN+YPsmKLo4JcHStf7ZiMMz3tCejsQwUqoC4/jNjTMeNpx96t0w fPgQaEhM+EwNHKvrjjRX+60ftIsSPL5vFF2/lfkxSDnQlL+Au4A9Zq+fu41R2g== 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 4NQPbH5TcPzdPy; Mon, 5 Dec 2022 00:30:35 +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 2B50UZtw069636; Mon, 5 Dec 2022 00:30:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B50UZNM069635; Mon, 5 Dec 2022 00:30:35 GMT (envelope-from git) Date: Mon, 5 Dec 2022 00:30:35 GMT Message-Id: <202212050030.2B50UZNM069635@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: f4432625edd6 - main - acpica: Quiet a -Wdangling-pointer warning in AcpiUtInitStackPtrTrace. 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: f4432625edd64df94ce7c2a085f256dbc4d2b215 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=f4432625edd64df94ce7c2a085f256dbc4d2b215 commit f4432625edd64df94ce7c2a085f256dbc4d2b215 Author: John Baldwin AuthorDate: 2022-12-05 00:28:59 +0000 Commit: John Baldwin CommitDate: 2022-12-05 00:28:59 +0000 acpica: Quiet a -Wdangling-pointer warning in AcpiUtInitStackPtrTrace. This function intentionally saves a pointer to an on-stack variable in a global as a dubious way of reading the stack pointer. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37535 --- usr.sbin/acpi/acpidb/Makefile | 4 ++++ usr.sbin/acpi/iasl/Makefile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/usr.sbin/acpi/acpidb/Makefile b/usr.sbin/acpi/acpidb/Makefile index 892f1e8c0cdb..ca9c90f26469 100644 --- a/usr.sbin/acpi/acpidb/Makefile +++ b/usr.sbin/acpi/acpidb/Makefile @@ -90,3 +90,7 @@ LIBADD= pthread .if ${COMPILER_TYPE} == "clang" CWARNFLAGS+= -Wno-null-pointer-arithmetic .endif + +# AcpiUtInitStackPtrTrace intentionally leaks a pointer to an +# on-stack variable. +CWARNFLAGS.utdebug.c+= ${NO_WDANGLING_POINTER} diff --git a/usr.sbin/acpi/iasl/Makefile b/usr.sbin/acpi/iasl/Makefile index 15b6d7a03c3d..6b95cc1d7457 100644 --- a/usr.sbin/acpi/iasl/Makefile +++ b/usr.sbin/acpi/iasl/Makefile @@ -147,4 +147,8 @@ prparserparse.c prparserparse.h: prparser.y prparser.y.h: prparserparse.h .NOMETA ln -f ${.ALLSRC} ${.TARGET} +# AcpiUtInitStackPtrTrace intentionally leaks a pointer to an +# on-stack variable. +CWARNFLAGS.utdebug.c+= ${NO_WDANGLING_POINTER} + .include