From nobody Fri Jul 29 18:48:44 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 4Lvc3x08JBz4Y1sq; Fri, 29 Jul 2022 18:48:45 +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 4Lvc3w6qwFz3tqR; Fri, 29 Jul 2022 18:48:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120525; 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=XC7snaqkgZjbufudtMgHIV9kKJWWvGWVdKeh0UO28/I=; b=GlSovybCVfG2Nwoz5isYtaVlK1X5q1xOpq+A0NmsOZOf2Q/TOn9UrhBvE4e1i4H+FAZc6s WJ2YUiDP/rAmoRZ6o/FnWkrRuoYB2awiFcUh5DYHbZ9ZC+lIXrhJG6aFyYxDvbLC+Cri8I PGJ3Ilt/sBKdqYlvTfXVbTguZp2pLem4SsvKVJm2Zsh20Wf145YFxl6gNLrX2feveqY0kr 5vijWimeaHA8zOja43myZQ/9QTF38s7xGclQA7oZm/u6IJMbjlAmpinig0yWkUPR8QNn5R x12INfRKiCRwD5spf8iY1LQFI+sNreCkBjlesdur6OtbDhdGS5jfQmbftG6exg== 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 4Lvc3w5y6bzm1l; Fri, 29 Jul 2022 18:48:44 +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 26TImiZG025778; Fri, 29 Jul 2022 18:48:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TImi14025777; Fri, 29 Jul 2022 18:48:44 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:48:44 GMT Message-Id: <202207291848.26TImi14025777@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: af9cad92d698 - stable/12 - Adjust function definitions in ufs_dirhash.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: af9cad92d6982ff749afa9b6ddf66befaf5fd436 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120525; 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=XC7snaqkgZjbufudtMgHIV9kKJWWvGWVdKeh0UO28/I=; b=eotZwB55/NPn5JktPAgqQrSdSJyt9sRl4zttvxEV+2JWXCkUESYtQxUw8C9k7I5px4W75P rBDulkeZmOeNn0cM0J/Rlu8Eg67XsGKQrozTsXY21ddIhcFOgQkwTWcQbvmnRoc2uUeX36 FNwqnYGZ3hbQR2CTux48HaF6/MSw9RAVcU/2jwnfIoJ+gL5vcZ7B//VIrY4k0vox3bcrCx 7ePZ7KwkKirrkFkFV03yjq5wtH4k4H4Jngs0uWHp3p+AIu8r4040B5M9ansGO+b45oFb7/ C2Wsh3W/Y3vTnT9q6rKGWjtFOVpuvpvKHBd6nSXffaWWwu+BDJoquJcUS8wSsQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120525; a=rsa-sha256; cv=none; b=f0OLM5j7GI7DsHp+8oMjFtB6OPhIx4WmyZNIeXkcz8a45ceJmjhVf5t/EMHm/MaegmifbB PMOxzHXhMbu7OHrsBzMPNMor+RKup0ujMBrgkwcaFhEt96z+fSaSFHPjN5krkR9MMv2Z/N 3nIGYGk5lABMjMnjR8iyY24uPjm15+GF7MmGAWc/8w+mymJxKaUAC4sRpKqeBytEr+oxar CwTElLRzZgT/7JN70EUczFzVZdrWuFO0NQIl2yY8YxmFlW5OV9uJ0/z0rdTLXjk3RmsSJL 4QPHibSg/enkg8aAiTPGlLSprE3Swp1EPjx5xVLCFU5V7PniP/nD2DYnjBpWeg== 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=af9cad92d6982ff749afa9b6ddf66befaf5fd436 commit af9cad92d6982ff749afa9b6ddf66befaf5fd436 Author: Dimitry Andric AuthorDate: 2022-07-26 19:32:20 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:44:39 +0000 Adjust function definitions in ufs_dirhash.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/ufs/ufs/ufs_dirhash.c:1303:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] ufsdirhash_init() ^ void sys/ufs/ufs/ufs_dirhash.c:1319:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] ufsdirhash_uninit() ^ void This is because ufsdirhash_init() and ufsdirhash_uninit() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days (cherry picked from commit ed1d5f95a599635e2af4a78ce96bfcdf8a3b7a47) --- sys/ufs/ufs/ufs_dirhash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/ufs/ufs/ufs_dirhash.c b/sys/ufs/ufs/ufs_dirhash.c index a428e038d396..83be9faf1f00 100644 --- a/sys/ufs/ufs/ufs_dirhash.c +++ b/sys/ufs/ufs/ufs_dirhash.c @@ -1301,7 +1301,7 @@ ufsdirhash_set_reclaimpercent(SYSCTL_HANDLER_ARGS) } void -ufsdirhash_init() +ufsdirhash_init(void) { ufs_dirhashmaxmem = lmax(roundup(hibufspace / 64, PAGE_SIZE), 2 * 1024 * 1024); @@ -1317,7 +1317,7 @@ ufsdirhash_init() } void -ufsdirhash_uninit() +ufsdirhash_uninit(void) { KASSERT(TAILQ_EMPTY(&ufsdirhash_list), ("ufsdirhash_uninit")); uma_zdestroy(ufsdirhash_zone);