From nobody Fri Jul 29 18:47:48 2022 X-Original-To: dev-commits-src-branches@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 4Lvc2s5NQnz4Y1pL; Fri, 29 Jul 2022 18:47:49 +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 4Lvc2s1b45z3qWC; Fri, 29 Jul 2022 18:47:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120469; 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=Oy3c228nXYTUyFc+3ZS1VxCewZdPYuH0V1nCV9T1qU4=; b=OYto0H1PUCbAMQC6jCm5mARyMODT4loT7b/gq2e4Z8/r51FtcVd0cWhtIHfa+zcerS4RBS Frqb729F61/v64zkKIIcBWWSlMbaqOvQdO7dI9wO0fnwQjQ4f6l//N4P/azUC3HJG6u57d 5l6iY9OHeNjjJ54iJxP3FFP4M4NSD5K6yar9ZmsczspYfmSuWCIyV4B+1kcAeRk2xr8Sl4 uyyoTIZLYqkamRuGa7XUoite/3jLcSd8TrgQ15dgXHfyLucmBWW7xGcLOjsnp3JhielF12 8AdGcdiaDmtGLzhXOXEuAhFGq/SOW0QO9wiX9+Hk+3plDZhUNkk7mciDLn6E3w== 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 4Lvc2s0gNtzm1f; Fri, 29 Jul 2022 18:47:49 +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 26TIlmrw024601; Fri, 29 Jul 2022 18:47:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlmCN024600; Fri, 29 Jul 2022 18:47:48 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:48 GMT Message-Id: <202207291847.26TIlmCN024600@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: 834113bbf281 - stable/13 - Adjust function definition in geom_subr.c to avoid clang 15 warnings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: 834113bbf28189ac68782e8079d4af1db9c74f67 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120469; 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=Oy3c228nXYTUyFc+3ZS1VxCewZdPYuH0V1nCV9T1qU4=; b=HW7BxDtQt0Wslk4NNwMQpLVfJKEsLAWz5gUOQO09q82R86T+5SwnaC6PAxoEvDEYTxc1h8 ty2z1o9JGmxLRlv0BepX7RGjkoOIIaYROnBJWCkviqCktgvkqUoiNIX2UmpMoHwLxswl02 yMEyNPU0dcZJubVK/NJ/fWsatJMTStGdMsipCbtBBqEqbP1U9G+nebTcatJigfKuja6cbU DqlMZBhsRDjpdyxX1fsM78mam8KTqADqzqZmmwRXAxkuHGyDbs9K46td2+pg1a1es6ryZw eczixuQmUu448AESQ2CO1Y5F7nzYogVKlxJGhtA/LOUI2oIk2Ax6IiS2/73RmA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120469; a=rsa-sha256; cv=none; b=ot4hJBf1pucYq5rhNwnxW5gBhilTFGtR53yRNopI/zmq8wMCJc43yOBt8VzqNbmuEBxvcD hp3YB4kr1DxNF/n8VNfehUQ3tHgLv65e61YmCbchO7nh0HK50ZynzazBwZVaCMZQkP7r4w 0FuIBNj1KTFNqfJf9DPBhXG8i/leMnPILYD9h8WcG4VS5F8OlBzScmp30551C77MajqSWg WP5r9zupTfmj7v5JO2yYsSTZRYmBIoaLcyl31xO6Q2buGJiBPQL7/25rxtxs60n/JOfGSB AxtONrhVtfxEivUDkngyVXaAxBFYgl8pl2P+XYUtvjwGmTsvu0I8NJnJcJm/DA== 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=834113bbf28189ac68782e8079d4af1db9c74f67 commit 834113bbf28189ac68782e8079d4af1db9c74f67 Author: Dimitry Andric AuthorDate: 2022-07-26 14:01:04 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:31:13 +0000 Adjust function definition in geom_subr.c to avoid clang 15 warnings With clang 15, the following -Werror warning is produced: sys/geom/geom_subr.c:484:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] g_wither_washer() ^ void This is because g_wither_washer() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days (cherry picked from commit bfa9298765167bde0eacc538cc5a5bae4cdd7ed3) --- sys/geom/geom_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index 2f7ea7754f7b..ecd1bc243f8b 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -482,7 +482,7 @@ g_wither_geom_close(struct g_geom *gp, int error) * withered bits at present. */ void -g_wither_washer() +g_wither_washer(void) { struct g_class *mp; struct g_geom *gp, *gp2;