From nobody Fri Jul 29 18:47:25 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 4Lvc2P4MdMz4Y1jP; Fri, 29 Jul 2022 18:47:25 +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 4Lvc2P1h4kz3p8g; Fri, 29 Jul 2022 18:47:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120445; 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=ZJABsqmlQm+4Mi33biQy79nhwLH3+B3HbtR+aHz8gX0=; b=mhIMV/OUOd8ceHRryH/sykjmidy7V0RNA7kEDPGSQsQjdOY9UvZko/6oA1dHEIp4ibKl5W 9tGiZ3wG/hi76IyiqkDCEHRXiEtVk3p2fWMPQM8T61WLf7ENUyMv1GDBDW37YV7JZSnKBd 3RVajgU3gwljYxEd2TGLIkVjmyTsJ2oGZapTcpYBw9X0roj9t1WrgC8UomB8o5QyuZBw1U Lne3ceKE45suZCzMtJ/CECvgKDH94GDcu0HHG6ZbICBleQyzqHWrJQZCrH3hqfoP1N9xgm zy1zGZYe7SnzYXX0/ewqz8xRW0dPxMSYpZ57oMrG6hvI268Nczn4SrfPzF1vdA== 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 4Lvc2P0p99zlkD; Fri, 29 Jul 2022 18:47:25 +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 26TIlPC2024065; Fri, 29 Jul 2022 18:47:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlPjh024064; Fri, 29 Jul 2022 18:47:25 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:25 GMT Message-Id: <202207291847.26TIlPjh024064@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: 8f8c0b93d190 - stable/13 - Adjust function definition in vfs_bio.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: 8f8c0b93d1902aa16baf78bf36a41a6402b7e216 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120445; 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=ZJABsqmlQm+4Mi33biQy79nhwLH3+B3HbtR+aHz8gX0=; b=n8UYp/U+Ic/Lrv1TVz05U9eAc5xt3zumRyEck2OezRJ1cMVvlJPSEsQsRI45RrxZEgdxz6 75rCcR409iqEWUrJpSOBC9LX6i3Q2moYf7PAMbC163P7Mgpl8+URnK0ZiJvW1w7dJ/7pP2 TWPbx2r0aseIB/jj3yUPSOH5VA6I6xHyUVyJE6JIQ+mn1XkNF1UNanV2a0SFPD2Uxd6Qv1 uOoAlkpUHEvM5Eba1LoWUuTSYqRQyutsSse1z8bdTESz/W/LsWksteLy/vaI+h7Ql2QFew qFGwR7e0kEmTOjCOcnke0iqDyRWLCU2IO67dyuDP/dxQGd3RLTLUg3kLuMnMmQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120445; a=rsa-sha256; cv=none; b=h8yC9RU/4CL+zy5dqM0rZ+M7khUSH9i/m9MXzqy41Lq2j3uBFqy9S93Wo1dCKdx+PPY2Y2 SULRJq0Ihy/qFR0CV4NP+y3hhMaSK1Dmr+9yFYBPMAJ0PZJC7eJNn8akzZWtX7N/2Hn24M zBamKliBIkDGE24MjattJasutt1kgH9YoAUyWgdynXNy1ihRbEY6buRGsD9AYtrfhdzIG+ kjt7/zUCRCmBkWSEHr3wbWOu4JHONiMmoONCXnu2fYL2BJEERsVcruTa8/WW59u3PsdiMr EGP2Cy3SLwFe+3fpi+JyPXskiAVd9bO3vvN+ny3hOm/i4XwekQmUD8ySJXk76w== 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=8f8c0b93d1902aa16baf78bf36a41a6402b7e216 commit 8f8c0b93d1902aa16baf78bf36a41a6402b7e216 Author: Dimitry Andric AuthorDate: 2022-07-26 17:48:20 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:29:09 +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 c23f6c35e136..abb9ebc7281b 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -3414,7 +3414,7 @@ buf_daemon_shutdown(void *arg __unused, int howto __unused) } static void -buf_daemon() +buf_daemon(void) { struct bufdomain *bd; int speedupreq;