From nobody Fri Jul 29 18:47:18 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 4Lvc2G3bTkz4Y1kp; Fri, 29 Jul 2022 18:47:18 +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 4Lvc2G2zdPz3p8x; Fri, 29 Jul 2022 18:47:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120438; 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=lcAZh+N74cqwwYhw7sCTKnhrLQm0Q1uA9qBi4v7/9aE=; b=oQ7X69Ru1BOPhfvZhltlm3frQNM56p4g/+5CTALSEkCBKCsR/Jt0uXwuy13575t2oJbYo3 zoQgz04pg9JUdFB4xKmEzeT9UAN85GHiXXAm6/2bRJ0tK9OXkxsdjBihu/TYF0FmN72mfy dGPCJfK6EG5ZYbxsYnOA5M9xDv5dTxlgLNHy/0qJYtAuVuqBX4YI+eiIoCkCwFU8Wp29c4 5QUsSlyb8zLPX2qAo6ja2cDYHgPnBnjPSkG0rkiNKVHoM9SKCuMhP5okzIPCDsUWh50LFC wRmbwUGw7W0U6thNlNxjTU/PVIU2RQ9EJBejibhuGo8Iia+aITtoxkIh4/Ogag== 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 4Lvc2G24nxzm1c; Fri, 29 Jul 2022 18:47:18 +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 26TIlIvx023914; Fri, 29 Jul 2022 18:47:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlIwo023913; Fri, 29 Jul 2022 18:47:18 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:18 GMT Message-Id: <202207291847.26TIlIwo023913@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: bf1e753efebc - stable/13 - Adjust function definitions in geom_event.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: bf1e753efebc3e9ccf2ebd9b42a1dc2d6194a042 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120438; 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=lcAZh+N74cqwwYhw7sCTKnhrLQm0Q1uA9qBi4v7/9aE=; b=GLq3ARB4XnyunFCZLjKbrdQFp8WTAnnT+3WhgpRUETrPmzuPl62t7vuOhAScZSkHx3v+9F 5ongEfYwNii1ZQQvWQVQN1Ezs/WFQ8z4wL9hHyxB1CpdNBwnqN8l1AnwjH/sPzIWPb9TWR rzVR59CDdwErBtWRyeoYZPygnx0EWiTbNqr8cMdS6X38uDNrugjztAPcE0/RIFSs/SrZPc CvtQ3Lnq7qVA4d295oZoLJjJy7QcokzM4OYxIFF7unzyfuPGlPQfyD2O/mNUGMiiSU7eFc Fo9SIVRRIz/iVdJMcsm+7u5C386oWhBaG5/+bHnDpntTN96JzEZjy47Oucbriw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120438; a=rsa-sha256; cv=none; b=jtUhKCpXbv/wO2wUFNGWqJ6+OzZD1jpzqgxRH4k8pPKjUuO64mG0HYDwSZsM+qcHUagHbx 35Mb1K03Out0Yx6Fjo92AEWmo4GGtlpZfrdW0WIGTbu1tBVxyCWYtwalbKnMIF7ozDJhnc G8WUiFbRc3PxiNQl5COUXnq06qJ8We9yZxBPaKNRUUTjxtUqjkSoqECfuXbLtcWwrwxzEV 9Lm++7/c5lcdyzFpxxndwtikv8HopuKc+ookrgrjvfzvFJsHGLUypXB8ohqiJbEU65nRXU d7xhG5lQOheAP4FltmFXVNueGYtAh73sjfVdo8bPtttZFhDtGvuMxHjk//171w== 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=bf1e753efebc3e9ccf2ebd9b42a1dc2d6194a042 commit bf1e753efebc3e9ccf2ebd9b42a1dc2d6194a042 Author: Dimitry Andric AuthorDate: 2022-07-26 13:58:31 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:28:08 +0000 Adjust function definitions in geom_event.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/geom/geom_event.c:261:13: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] g_run_events() ^ void sys/geom/geom_event.c:405:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] g_do_wither() ^ void sys/geom/geom_event.c:449:13: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] g_event_init() ^ void This is because g_run_events(), g_do_wither(), and g_event_init() 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 ac3153434fcc3ddcbb47c7f397a1bc34fd0e0dcb) --- sys/geom/geom_event.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c index 359c7c984f07..cecd7fe349f6 100644 --- a/sys/geom/geom_event.c +++ b/sys/geom/geom_event.c @@ -258,7 +258,7 @@ one_event(void) } void -g_run_events() +g_run_events(void) { for (;;) { @@ -402,7 +402,7 @@ g_post_event(g_event_t *func, void *arg, int flag, ...) } void -g_do_wither() +g_do_wither(void) { mtx_lock(&g_eventlock); @@ -446,7 +446,7 @@ g_waitfor_event(g_event_t *func, void *arg, int flag, ...) } void -g_event_init() +g_event_init(void) { mtx_init(&g_eventlock, "GEOM orphanage", NULL, MTX_DEF);