From nobody Fri Jul 29 18:48:32 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 4Lvc3j240tz4Y1vV; Fri, 29 Jul 2022 18:48:33 +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 4Lvc3h1vmGz3stF; Fri, 29 Jul 2022 18:48:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120512; 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=vMiwpc1Uaf0ajQcCilMcFglSeeWm5rl0C+4TetWXTXw=; b=q3BzIsUrLwV5uIQxE9cOmsygQ77bSLCWzcalcR9f+ilgnlq2vXlElIHTDWzZs8AAwnOiQN j5p/Sq/6B5NRmUNWbzxH7MUuTTHL/2pd+dCVmDRci+gxp8s0MwBITQEnuOAvKVnk1gsuDs z9pxvj9yWLEkDw4e3mrEZrANsw76DcbX3vfgcYIx75b7AaRqLjfsxCIw123rBQUFIipDHV 6k6S636P1ynmQPC2fhijTs1++2ZZuc4T1Rs9tfssvEDm8uI1igEsHw7y+9B5dXHljX0nkX 513PIDxU220yRdhD25piEgU7zhAzoyMNaKicTEtREndO4IKuZr7+VTppT42xgA== 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 4Lvc3h11XGzlxv; Fri, 29 Jul 2022 18:48:32 +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 26TImWuE025502; Fri, 29 Jul 2022 18:48:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TImW9Z025501; Fri, 29 Jul 2022 18:48:32 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:48:32 GMT Message-Id: <202207291848.26TImW9Z025501@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: a250df8f4a2c - stable/12 - Adjust function definition in vfs_bio.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/12 X-Git-Reftype: branch X-Git-Commit: a250df8f4a2cfa500b0ddd503e11d46efc5097f8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120512; 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=vMiwpc1Uaf0ajQcCilMcFglSeeWm5rl0C+4TetWXTXw=; b=CWJiez7htqnAtK86qj2MDPwOWaP5bXiTBdfYmZoWyv/0YSbIlRm1v8S12qfuCzPbm1mg3V AE737ZVqj4Fh3OPpKY3GYnb4SkJEO5+fY8uGsdL6xkW+zv835KmE/SJpud+YuNSVtrGUng V7jekicURXrlLbo8+xNgalGYtv1IcczfzgHGoIxPljre9uiDDUVJyjgyAIGGW7qWlCVZKD BYlNoeKCKFvml6I6SYviYwCeEHjT0vHQx5C26nBkK0RSFFJLR1HIDOpjoQP5nJjiw50oIm UzB0+UlKfd/lUT0lbQ/VP/IGtNG+G7X9x2LbnILCP87kBMuYmj18t5/w0mqPbw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120512; a=rsa-sha256; cv=none; b=OtMg0UGPZugwZIAlH+ccmjT5rLzIq0isoMuljg/jN3wugeoK0xG8l2qJx66Hf0PTB0bN2f r+Eyt6wVnYpeCOoOvyDUWuWZyqP0IVdoDkZj5JMhvRYWqwMSIdA+t7OIH90lfd/4ajnT1I Ltyfy+mV94z78XmU2Oy7pEd1j2+ATDg5LdG5GZMiGtNjNxwDy00MGdmEQdi2GPIyBJhCVi ODFkSNVNb3amK+8Im3CZ++a5b2Or+Jd16JMeK/dsNuAqsgpF27+iwvswITKjqIa2N1mKLI H79QPDo0GNCMq+yAWgqUcHy1sOUNUJBYxNXJVAl3ynpkqIO8RCP8OzetuckXMg== 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=a250df8f4a2cfa500b0ddd503e11d46efc5097f8 commit a250df8f4a2cfa500b0ddd503e11d46efc5097f8 Author: Dimitry Andric AuthorDate: 2022-07-26 17:48:20 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:37:02 +0000 Adjust function definition in vfs_bio.c to avoid clang 15 warnings With clang 15, the following -Werror warning is produced: sys/kern/vfs_bio.c:3430:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] buf_daemon() ^ void This is because buf_daemon() 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 a387bd1b6a0e18d7abafcbb5ae1870be0604ff15) --- sys/kern/vfs_bio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index f2b8f0b0ba1d..b1cc595d2887 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -3322,7 +3322,7 @@ buf_flush(struct vnode *vp, struct bufdomain *bd, int target) } static void -buf_daemon() +buf_daemon(void) { struct bufdomain *bd; int speedupreq;