From nobody Fri Jul 29 18:47:51 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 4Lvc2v41Wvz4Y1pP; Fri, 29 Jul 2022 18:47:51 +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 4Lvc2v3RrJz3qnF; Fri, 29 Jul 2022 18:47:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120471; 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=63wqUuEeIeUX+Y5pvCZG93FVWCIxS42i1lwrD1lZkW0=; b=tplKFsus1mJLyKKk21DIRNVm1zvEvdrsGv8qmWWK3VHcMrQc5fQOM3mA2TTRTjDxbDQQgK BxQ3VK3CZTGgQjo2HOI8p7h6AdVEDq7EF2Nm/Kzw57tglUzJoelahiVYUTIWVN9GeIkAZU CjZgpQUod7LA1AuVunS4JpktxzWbcb16aipnI3BM87Aw/Qk6/mT6Y75j5QBH+fNyLcOdbD Udmyzj+sGZ29SIDQCTiGom1tsBmoXR6hgAeCxwjj1A8U/aUYAanE5YZUSltuSIco12GXds 8t++VDKXYWPlkHq5TMpUBPRbSdmOA4U+M81GRSj2r4vKgw1MO7loi6MY4IplyQ== 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 4Lvc2v2Tlhzm1g; Fri, 29 Jul 2022 18:47:51 +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 26TIlpbQ024656; Fri, 29 Jul 2022 18:47:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlpgN024655; Fri, 29 Jul 2022 18:47:51 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:51 GMT Message-Id: <202207291847.26TIlpgN024655@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: 158071c51a1f - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 158071c51a1f3344f5160162e477ba42b0633267 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120471; 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=63wqUuEeIeUX+Y5pvCZG93FVWCIxS42i1lwrD1lZkW0=; b=gAu1rGsRMYqxAUmk//Z9TftsGVO3ww+6r0wrKZ69KwnUylONl5koFMzGrYmjKCw1VkzXIj IrxMRRkwoDhMY5l2h/tfTUECh9G0O+4uh5KiyGEae5jNbO8Ed/mjAgbnI4WubITtNSySDm gEYgZlS0cDFkAV3Z+mwPS+g7tcizz7fHRxAThJhmEXCTSqDpwN/AzA52PgFrq/HSD6su85 VH+jkewWsuXfkgmAvObpk1VAwPFYQLlKgYXVJeJ8YDE4o+0zZ2DxPYhXIYxva7/SpJoPCr ZqVdkgfcjjAa7TWeyWyB8uIFHKrBVRkqd8wV3dg5OqedZ3I5zlZQaHeinG9Aow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120471; a=rsa-sha256; cv=none; b=lT73nEKm8PvvMlluPWzwIZJlLmcbT35aKnoH3cVqhl6yu/xR3f1CpWJ1p7RMrzvbBk8c+m OwjN3R4yRzT6Am2I5fKftcam7Qf06Fnx5jlSrzZlu7nVtdTdtqP+cxJlNhlE40e+7llYTG SZ5Ts9nhEiEe4vlXIFB+EjZ9XkYh/JLLBbZYyvxcR84nLC0m1Bgal+8Jz8o8xADzLNc+E5 zl5BJcDQ6xbEekpOySclIDZglf5savjWfqeHnTc5AdbFYlNgyShiMYht1rnV9X73Btv5cF TlIncwuB1l2tOU183PYqYKgc9GsRIJ14sETgdj/373NprvKQ++BurI79RA3b6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=158071c51a1f3344f5160162e477ba42b0633267 commit 158071c51a1f3344f5160162e477ba42b0633267 Author: Dimitry Andric AuthorDate: 2022-07-26 12:11:09 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:33:06 +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 a2a50fec48a3..82a9adaab494 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; @@ -329,7 +329,7 @@ xctrl_suspend() } static void -xctrl_crash() +xctrl_crash(void) { panic("Xen directed crash"); }