From nobody Tue Jul 26 18:00:42 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 4Lsl7t4hM1z4XgPV; Tue, 26 Jul 2022 18:00:42 +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 4Lsl7t401bz3kVr; Tue, 26 Jul 2022 18:00:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658858442; 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=oCcT/PdQKqvRGOUMcg5u7VF53SPt/cfP3/kGRza06sY=; b=kNBCrMDkqvP6k/KQAHVcIXzM5ggF7HqWN2O7yIY7Qtd+EQooBYz15yEiAb6tx5X6CUsARg IhzJ5Z1biVk6V1NLoi4vb+3O6IeTZiwBZ54NVQks6iU1pozVosqV0kZwuLxXH+r+q/sWnE eMLwfyHIzxlu6N8wx42LoO6i0ln+4o0BmwKTp+OJb/EGy80tbepD7lI8Sf/r2swQqACQpj eSc9SHRFrOdZNHD8L1EJw8vGuG1dq6NRCV4+wT4/waD39Q8OwTAN8Jc+mwzGL1BFsUbL/3 mQP6RGfgsEv8yvTBK2XaNp/XTVvtOaw0KVEca17CcCD011obDn53MrOa5CiXCA== 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 4Lsl7t32LczmJS; Tue, 26 Jul 2022 18:00:42 +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 26QI0gH4006074; Tue, 26 Jul 2022 18:00:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QI0gkZ006073; Tue, 26 Jul 2022 18:00:42 GMT (envelope-from git) Date: Tue, 26 Jul 2022 18:00:42 GMT Message-Id: <202207261800.26QI0gkZ006073@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: a387bd1b6a0e - main - 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/main X-Git-Reftype: branch X-Git-Commit: a387bd1b6a0e18d7abafcbb5ae1870be0604ff15 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658858442; 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=oCcT/PdQKqvRGOUMcg5u7VF53SPt/cfP3/kGRza06sY=; b=cX+SY3WOfdmmMEqUJPh5mO48jw48tsQMuVPmdgAIC1c5o1BHN5jy3M6+FaEf29rEHIdFKY gihbwsFcaLB6WSR8DY+U5Y2KM5g3hVDIKzgj2pTUjldQ8cQVMhXq0u86N+fkE8mU/RdTkJ imT7jS+l6dyCl03nIC8oVlJidw55+2wkfTYOqAcSB1Ck/KuWXMYf6xcBQw0IGu/CSyiax5 wA1P/PxPKcLAEwCLom4Uxx9UdTeMhmeo+fQeYbZHy5Mp9AeidaidyqpqjVyS8yBmH+k9Tx j/SXzErJxmt2PoTotbeubCkoCbME6eBl3Ip7h8qucSusyfhqix6dG2PdopqM8Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658858442; a=rsa-sha256; cv=none; b=DIKmoxkH9uE9//baaStIsiR8bfKTNziL4gvFB448cG3ET46EtuOTYkE6s4rp7SliXOWtFU F2JuGLm+IXPwqOOpVIt5LY006zfGEhECkAjs+nuJqnwPMLy4pTXrIPDhK1wFEeOJAiMcAp 6YN6g+BE8SPjkxaXZw6BSkoXIo0LPJmnNhvP0YYil9hzR2mK5QBKB5REtBloS57FBb7bH/ YgbB3Edm6xWEFQJKydlb0AUuUeVIcww9SCzGvayQJnJOO226WkvUcrjZeHoHcsBJ+wZVZb uhb0DVXLmWOg6luD93OmKYifPRDWxO3+p2kjMyE33UlgCUPXQsm7N1MZNxoe+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a387bd1b6a0e18d7abafcbb5ae1870be0604ff15 commit a387bd1b6a0e18d7abafcbb5ae1870be0604ff15 Author: Dimitry Andric AuthorDate: 2022-07-26 17:48:20 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 17:59:57 +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 --- 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 8da40824e217..aca79eb466b2 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -3427,7 +3427,7 @@ buf_daemon_shutdown(void *arg __unused, int howto __unused) } static void -buf_daemon() +buf_daemon(void) { struct bufdomain *bd; int speedupreq;