From nobody Mon Jul 25 18:02:54 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 4Ls7Dt4Sv6z43MvR; Mon, 25 Jul 2022 18:02:54 +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 4Ls7Dt2fbrz3bpb; Mon, 25 Jul 2022 18:02:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658772174; 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=aGPVm19hIMZ4rMOdeJEHjiAdVAB5YTz0WDrJgeg415s=; b=IbcCQL+ndy7twnkQs65icY3k9rETDVubNDfbmVJUk3VwTyI7rr59AetdJCpfU4cD5QogLa 0d8JMqKjaylYvw8t5xs5g9ImVecvUOS64NxXpNLPtRbRE6OVd9LIAVC0E8hiliXqD/KMlI bkol/AiE1Gvpd0KOWMBNUqTjsjq/HE4LJWLGubScJTrbrELP2Dar290JHl9YIocpa61riB tGJrePhkeeYUt/o3B7oyBdiimi3uha890eat0peTXs6vAk0hJcYCjMJj1I5s9bROFmtiYd RY1bAVYR1I25RRteXYHgI42ZxpkCnxzJdNiMEVmo73yPFjjyryuxYLr/+Akgyw== 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 4Ls7Dt1jsnz15pG; Mon, 25 Jul 2022 18:02:54 +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 26PI2saa059879; Mon, 25 Jul 2022 18:02:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26PI2sYl059878; Mon, 25 Jul 2022 18:02:54 GMT (envelope-from git) Date: Mon, 25 Jul 2022 18:02:54 GMT Message-Id: <202207251802.26PI2sYl059878@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: dba7f4aa0909 - main - Adjust ng_{name,ID}_rehash() definitions 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: dba7f4aa0909d8c31a0ca0ad0d1208fabfaa9352 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658772174; 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=aGPVm19hIMZ4rMOdeJEHjiAdVAB5YTz0WDrJgeg415s=; b=Fpi7Pm1IjwDUJFArGdizaQwNmRgloJAfhpZhY5iV901i01Ywy/VhgP/xevbeSV9H390S/s GfAtVUr+Rf80pWu7v9a+tniLChAkaw/rCwx5kHdIk3baqctwmqrnPzp8o29Tm3YFOUOx6x bUDEqYJU6262AzRqUn0NwRIaI2R5JQBJ/zJnJ3aRDJZsFS5NLhVAgax/swhfhxLaCUFrxr crdNOkg+ZHmvc0x/aio1szAHBG1tM8V+AHbhBGqap3rsq0kiiZ0K3eIJb8jirKj430ZeOV cs9EaqgUdOb0TYkIfUgfo8t+4hn3HbZqx7ToHy3kma3PprIq+f/aS+czrlW2DQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658772174; a=rsa-sha256; cv=none; b=QS5HzoaWMSXwpTQonjcJjT4g2vtXKOuB/8/Azdi/ecqdcwQoWu94vTIMJePIESIWfIXp9j 82DiGpW0w15XF3/e4OqlE9Q1L/AiW+ScSb42TLhYKleiq7w6ZJs015XOzzK9JaOJDPxg7d zYW2IgsNuii/rYoiO2Vn1ri8rxgzF4kXtjSiS8ojxiWzOgdqlsX8AMtevpDrVmVGNVuRf1 2anFXL5zzX/qf5k0rpNVKXeWZf86O7mT4UQbaDLJTD2uEVOlwpitklGey9aTMJlhf5Dxf6 ycxs39Xc32DbluaYfDfvbRbWv+XTXVuGrPmLwl1mtjFhuFLfZdf7JFKjncj3fw== 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=dba7f4aa0909d8c31a0ca0ad0d1208fabfaa9352 commit dba7f4aa0909d8c31a0ca0ad0d1208fabfaa9352 Author: Dimitry Andric AuthorDate: 2022-07-25 11:04:29 +0000 Commit: Dimitry Andric CommitDate: 2022-07-25 18:02:31 +0000 Adjust ng_{name,ID}_rehash() definitions to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/netgraph/ng_base.c:981:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] ng_name_rehash() ^ void sys/netgraph/ng_base.c:1012:13: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] ng_ID_rehash() ^ void This is because ng_name_rehash() and ng_ID_rehash() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days --- sys/netgraph/ng_base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index f9e679de33bb..ac9d55a6f703 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -978,7 +978,7 @@ ng_unname(node_p node) * Allocate a bigger name hash. */ static void -ng_name_rehash() +ng_name_rehash(void) { struct nodehash *new; uint32_t hash; @@ -1009,7 +1009,7 @@ ng_name_rehash() * Allocate a bigger ID hash. */ static void -ng_ID_rehash() +ng_ID_rehash(void) { struct nodehash *new; uint32_t hash;