From nobody Tue Jul 26 19:25:26 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 4Lsn1g2ssCz4Wvpx; Tue, 26 Jul 2022 19:25:27 +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 4Lsn1f75Cmz3yb6; Tue, 26 Jul 2022 19:25:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863527; 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=DvNWOQzJSV+NCzt41zT9W6kjkKyvWWs1Wie4QNTH9mE=; b=j63iAci1u6I8MoBCoWHZr8w6svZIMyKetQFSkkP/r27KLXMqNcR5CIO6vdTLthhfxcylnY NecpTtsmFafSUWFg3TsPqR/2COqCmECXuZdgRGJtkW4E9wXiyJpKRlmQlQs+sALftkGdnc at7FWPD9XL3qhguxNE6YCogzF96VAsE8xwpMcbwtIlJ3mbbNJ0T9urxkF+JW70JePKLHct ALcJ5TcI8mmDWAPzBUAOJ7sq8++ch5PHFZup2FhTn7D3c3WnW54IEaXzj8opRulfcH2G2k YB61yc2SQ6mw6fI1Qkw6+dA7mC82R64UXZqW7ZZqGUrPtZkXNOBdF7eIxTLJfA== 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 4Lsn1f69Dvzp3M; Tue, 26 Jul 2022 19:25:26 +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 26QJPQUX019758; Tue, 26 Jul 2022 19:25:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QJPQF0019757; Tue, 26 Jul 2022 19:25:26 GMT (envelope-from git) Date: Tue, 26 Jul 2022 19:25:26 GMT Message-Id: <202207261925.26QJPQF0019757@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: 08c16dd4bf6e - main - Adjust function definition in ufs_dirhash.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: 08c16dd4bf6ee5649a86fa472104f89b3fbfe71a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863527; 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=DvNWOQzJSV+NCzt41zT9W6kjkKyvWWs1Wie4QNTH9mE=; b=Ci6e6xHUL2l94yfjiW1biaLA2C2ZQbeKKFnJx7gJQElMMiio0wSltJWJQLVIK06cMIJ6AV EeeN637fi+QB14NfArD75kJMjrJdpciejw+tHLjgLJvaAodT6hIS1B2lUOYN+bLtcfwfF6 hPshUqP8MR3HFto72DBBxCMBPe3zNcDIQHf5bGPIdTNNFif91JLy9fYSxyNJjLgM749BeH 0JAZ+cuS2ZCTDr2duUpjC2Kq3U4dHnj+xdSMkg1WKOhU50QxaGPfP9RlegrO31znfEXaAf 3bCiEXmIGAvajl3EmvYpRFwwT08ZWnnnnYaqthGEG7jHdX0B1SxHiP2KYMkknw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658863527; a=rsa-sha256; cv=none; b=QB/bI1HpCB2QD1epyTCCc7Hay9D/Hd9ulat/AnM2YPzHyUXYlJFdeVVj9TsJaG7p0yVdAO bkXGEkJZpm+qcDzoFC8c0WWy8BVEv5e7hUELN1lVOgRc2F9ifIuzwKMb7WnTJH1se/XHzB j+2qI+dMtn2Txqmqwykd/FNIV0bDwHZwpOEYGm6T91qwafipHs6Uuf3HyJSk8KSQ46mt1j nXSRKUIWjF/WwifIviWQQUTfxBV5eYOFicrzYF5Ehaq9H4dV2hJXvk3gc9wOd5+D29bDwp sWrxkATOGJMkWlTXfqW5Skk/dCApy53JetYhxHCi35sxNpHrM66fmeBE6F7xUQ== 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=08c16dd4bf6ee5649a86fa472104f89b3fbfe71a commit 08c16dd4bf6ee5649a86fa472104f89b3fbfe71a Author: Dimitry Andric AuthorDate: 2022-07-26 19:22:58 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 19:25:09 +0000 Adjust function definition in ufs_dirhash.c to avoid clang 15 warnings With clang 15, the following -Werror warning is produced: sys/ufs/ufs/ufs_dirhash.c:1252:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] ufsdirhash_lowmem() ^ void This is ufsdirhash_lowmem() 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/ufs/ufs/ufs_dirhash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ufs/ufs/ufs_dirhash.c b/sys/ufs/ufs/ufs_dirhash.c index 8981ffdfc269..e3b516b8fc8a 100644 --- a/sys/ufs/ufs/ufs_dirhash.c +++ b/sys/ufs/ufs/ufs_dirhash.c @@ -1249,7 +1249,7 @@ ufsdirhash_recycle(int wanted) * Callback that frees some dirhashes when the system is low on virtual memory. */ static void -ufsdirhash_lowmem() +ufsdirhash_lowmem(void) { struct dirhash *dh, *dh_temp; int memfreed, memwanted;