From nobody Tue Jul 26 20:10:00 2022 X-Original-To: dev-commits-src-main@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 4Lsp144j1Sz4X33g; Tue, 26 Jul 2022 20:10:00 +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 4Lsp141vt5z3KCv; Tue, 26 Jul 2022 20:10:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658866200; 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=meJwRehkk94mVTWHL0C8LDBL1zOYtxtfqz4dI8CSk+A=; b=E3yAK++uatSorfJiE3PNsUE3KUIGPt11Z0VNwIHNu36Tu9e9MGrlER+HzGk3ADQo6kkATV HJf+aUEqPV+geOoGdtYVZgLWsKq8aX5LhbipcG8I42n2HuethiT4TlyEam2GtgsXvnP1IH FeUPouIUDZ28/ESQBRKYbP9XKU793tRsUPoAYqh6Na3i39NzycYNXfJdiFaeNXBF9lUY6E M//SzLmAZfawE2SlqcSEFNxen1Lw3a8nfbiIihOY6BZ/LidKAl+ARovlSn6FdtRLLqUhCM p/rsJLaPTEwRD2oUdmqMpnQzhRBd9HivJjHfCnQk5G5L3WH4+fPhpkOdKS6Rlw== 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 4Lsp140mtBzq52; Tue, 26 Jul 2022 20:10:00 +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 26QKA0Dt076295; Tue, 26 Jul 2022 20:10:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QKA0HP076287; Tue, 26 Jul 2022 20:10:00 GMT (envelope-from git) Date: Tue, 26 Jul 2022 20:10:00 GMT Message-Id: <202207262010.26QKA0HP076287@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: ed1d5f95a599 - main - Adjust function definitions in ufs_dirhash.c to avoid clang 15 warnings List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: ed1d5f95a599635e2af4a78ce96bfcdf8a3b7a47 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658866200; 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=meJwRehkk94mVTWHL0C8LDBL1zOYtxtfqz4dI8CSk+A=; b=E8cyRhG1PE4aR4tUfgAhDlawpPwyIKE80SMQYpe0qie6+fj4wAARLmK63MRXxIykr/BPfA O/HAIZWyEkTik68O81kjOPE5lW/gYhFIluHlbgNQozI9qWtDNCcDVYB024Sfrav8Z22/xo 2HzSht62yCpDGL+CTmYk9dRzdAllN7YpVKgZvmiwXHrr3N/ML1clZOOMnEURRczCGsz8Ih wyvrHTMBtUwpiCmQ7ye0Vr3N3Nl+ex+JDm+muNA0EkWlKdzSNmnNZiect6EE8glYJjE1wG yv3SIWPqelob1uhHSG+xNMTHtoAfbhGfaRq4J2S64OtrhDWxELUXifKnAvZAUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658866200; a=rsa-sha256; cv=none; b=bPPV0bvQumNqjDeAcIby7WHLUIb8CTIOo4ce5emZfvvcEWjRtk4UC2LVlf7+6jW1kHeXTh gbT6ucGcck7bXfKR5sAxzBDKoCelkrakKzWjorhaHtxg17ImTF4CYbmJ7uICOc8JrTirXy eP/XNWF4Jo/MQXNQ92/Xr0uloFCTsHoEwgSGtcvAEH/Nq04Up//H7m9aRiFqqm2c1zJQ2R VSpntemmTvT6JMCNonaOVvtkLK7ublX71v+CgPqE3gasN8835dPK3jmZWE8h3L6i6slXbX jOionFJPNl87sePfD4fimBLUVVIl4ay16lwAQKDkA+mTBVln5eyVy4mDtmCr8Q== 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=ed1d5f95a599635e2af4a78ce96bfcdf8a3b7a47 commit ed1d5f95a599635e2af4a78ce96bfcdf8a3b7a47 Author: Dimitry Andric AuthorDate: 2022-07-26 19:32:20 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 19:32:55 +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 --- 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 e3b516b8fc8a..955ddf7fc8bb 100644 --- a/sys/ufs/ufs/ufs_dirhash.c +++ b/sys/ufs/ufs/ufs_dirhash.c @@ -1300,7 +1300,7 @@ ufsdirhash_set_reclaimpercent(SYSCTL_HANDLER_ARGS) } void -ufsdirhash_init() +ufsdirhash_init(void) { ufs_dirhashmaxmem = lmax(roundup(hibufspace / 64, PAGE_SIZE), 2 * 1024 * 1024); @@ -1316,7 +1316,7 @@ ufsdirhash_init() } void -ufsdirhash_uninit() +ufsdirhash_uninit(void) { KASSERT(TAILQ_EMPTY(&ufsdirhash_list), ("ufsdirhash_uninit")); uma_zdestroy(ufsdirhash_zone);