From nobody Fri Jul 29 18:48:55 2022 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 4Lvc484m78z4Y1wV; Fri, 29 Jul 2022 18:48:56 +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 4Lvc471jFrz3v71; Fri, 29 Jul 2022 18:48:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120535; 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=RYj2t9O7fHZFTq5NMOsfu1ReYkVJbuHCxqlDXbUqovw=; b=XeiTj656hDw+KTRVYk/WCzSojD08br7gfgqO/nchdDWBu33kErPH9TqX2imOAPTxul540X 1o/ix77D1WrGBlHxAOJjVWIHI//RjMAC16ojvC+MfAYua21/EslMhUB+pA45kpf+lw9LVw YVuZ40SFnMDEHamc5KK9XikOeJ3RL1gNhdJdW3RUhHeRF29pFiftyxPxrKGi8j4JPyBylf EWsVdg0YjxANAUFRcxYuhfHgrA9iHU/SIctxqaMaFNYEsJy4JXPrh8voeF0DZX0kSYOJar qpNiIN6bQkI0eFeGNBA8uiovwK7tmq5askkPZxx1MgzmbPPMrC7ilNJ1iJOyfw== 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 4Lvc470nVLzlkN; Fri, 29 Jul 2022 18:48:55 +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 26TImtO0026006; Fri, 29 Jul 2022 18:48:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TImtjY026005; Fri, 29 Jul 2022 18:48:55 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:48:55 GMT Message-Id: <202207291848.26TImtjY026005@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 5bb62be305ea - stable/12 - Adjust function definitions in xen's control.c to avoid clang 15 warnings 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 5bb62be305ea4e14542ac6b233147de1d90bb954 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120535; 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=RYj2t9O7fHZFTq5NMOsfu1ReYkVJbuHCxqlDXbUqovw=; b=k8+/FOj1aMXLp/oJD4Apd+DW9iYKoI+FPA/Px59b4rlDHfJ2d81doMBk8nvtUt7ptD7k+R cvR6MHWZc2QJLC+AVUcvjhVd3yrtKuJgsQx9jTUmoyt/a5W4SV5rJ7ubshTBSLn6n8YWVk +NkGIrplCsnrYc3O1j578iWWdKwdXLAGmizef0NgS1NKWQyqdnIe/YTBwLslmfmc6shkJQ +ZuSNqavvyQI5J8/eyJikXELzk0qUpZ8/IQui4f4iHkRMFZRJE9fHa5mz2vXYmVeoJYU26 zeoHPZmrTnijdfZSOpsD48UfSp7kDFLc6nSqNg1LgZpIsFPR7b9XRrnn2GjpcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120535; a=rsa-sha256; cv=none; b=wjPngUsve4/4RTKohaLTZ72SugfVeDSbGIGmR4j6Rfnrz6XLyecYq9lFf7TfowZCOK11F9 2cKsx1gxJW5bRSzFUIvEW7Uv4TF+GmqgAkwGqeIxl2GABKzKQdPd2SbOixzL+610/Yw/Xw Nsps3r3fCjeTzHLy0S7kqUMS35QkN+L3GnTIQG+OuHzLaWvUcEQvybXrQhc7oSkscZ7CF+ cZo4d30AAiF0VCoumbQTswKv0YO9m0QlrvJsBVUgZSIls0HCgUuYhjfdsPsfU6AewLKyTK v1XHf8kLA9zKcUFNspIf/4A1NZox71EVL0OWA1/kQ6eDvcnjtw5VwQvaV/MhmQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=5bb62be305ea4e14542ac6b233147de1d90bb954 commit 5bb62be305ea4e14542ac6b233147de1d90bb954 Author: Dimitry Andric AuthorDate: 2022-07-26 12:11:09 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:46:02 +0000 Adjust function definitions in xen's control.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/dev/xen/control/control.c:188:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] xctrl_poweroff() ^ void sys/dev/xen/control/control.c:194:13: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] xctrl_reboot() ^ void sys/dev/xen/control/control.c:207:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] xctrl_suspend() ^ void sys/dev/xen/control/control.c:344:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] xctrl_crash() ^ void This is because xctrl_poweroff(), xctrl_reboot(), xctrl_suspend(), and xctrl_crash() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days (cherry picked from commit a6c803048fd8d4209fb1d52cd3c455a6752109b7) --- sys/dev/xen/control/control.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/xen/control/control.c b/sys/dev/xen/control/control.c index a21ccecd7373..7d99e9d6f4fe 100644 --- a/sys/dev/xen/control/control.c +++ b/sys/dev/xen/control/control.c @@ -183,19 +183,19 @@ struct xctrl_softc { /*------------------------------ Event Handlers ------------------------------*/ static void -xctrl_poweroff() +xctrl_poweroff(void) { shutdown_nice(RB_POWEROFF|RB_HALT); } static void -xctrl_reboot() +xctrl_reboot(void) { shutdown_nice(0); } static void -xctrl_suspend() +xctrl_suspend(void) { #ifdef SMP cpuset_t cpu_suspend_map; @@ -330,7 +330,7 @@ xctrl_suspend() } static void -xctrl_crash() +xctrl_crash(void) { panic("Xen directed crash"); }