From nobody Fri Jul 29 18:47:15 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 4Lvc2D36R4z4Y1Nr; Fri, 29 Jul 2022 18:47:16 +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 4Lvc2D15q5z3nj6; Fri, 29 Jul 2022 18:47:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120436; 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=cKijAHPLlhnVYidCtT6DR2ToSHCH1vQUekawLOsKbdc=; b=G7jRlbLcrCsQlCIDZQUKwneBwfSHVOi3AVA0lgAtipZSaHkXs1Mr0Z3dTf6sQ9nXCNMckG xaQCWsJWx6O1jvGreSpjYJyK8Q9fM1uBBzy7TWO6o6KFWeB/aMXoWELQdgzfZoPgGOjTbI Ey3/US356CYF0KX5xo93bSLEdPr5JC/BCEM7Uw4V1YhLbodQczuwOOzjryEtKyIYBeE2G1 ibH9YtvUA3rvujmNU5mJ5ir+kkbLTV3OnxfAcomy2xugucReyvx8bzCbT1gEtGrOpvy39Q tO/5VHp95nsbEi7HvoSqNrwv47q057G0xHxgJzooyUQb5rhTAQRkq4VpviBF2w== 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 4Lvc2D0D65zlk9; Fri, 29 Jul 2022 18:47:16 +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 26TIlFXs023866; Fri, 29 Jul 2022 18:47:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlFBC023865; Fri, 29 Jul 2022 18:47:15 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:15 GMT Message-Id: <202207291847.26TIlFBC023865@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: 29534af72577 - stable/13 - Adjust ng_{name,ID}_rehash() definitions 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/13 X-Git-Reftype: branch X-Git-Commit: 29534af72577bd75ed3fcba96d3cf5c5786dc7d7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120436; 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=cKijAHPLlhnVYidCtT6DR2ToSHCH1vQUekawLOsKbdc=; b=SOetI+pz7nvuLRyhQLGPOvEOMs5Ajh13077MWms58p3jdnTWYdCM6kW/mQm88EFVfgk/aH XZCO0kkGldBj9MmKgQQkLfxzfSZz+qTvcGLyMiAaeSV4myjx6WfLt89ydcUhTiZLZMSrju nZ9w0qpuL4e7KSM0jX4C+obQAtf/AsqUK9q9BfmZAzLSuXt1Yvwn4/tKlp+Gb9a6CFuaHq irm7vs4O7CKv41CvAawuFHMxc1PW2GOS6O/RcP6IJ+Z6v1ybSY6U0OwM0y2MqLaaXWIh5R 1s4zVAk1z7fUocbSTo5Hwy0En2UiAGsaPEXizraqSe4rqZjOp99tM473tnTX9A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120436; a=rsa-sha256; cv=none; b=H4ExdYZDDKu0PYs1Rm3k8DMPsftBBkGVvuTbYo5v3Qu58cu/3XowfV46E8Hv6+0LJ3RugT nE8Q6lfkqGpgFcxE/GZL30puHbez0KQz1lDMHhKySMFTQXo1xPQLBOb17XkODluKZxHiiy 41+srkvwUl8vBy7X+mql77neeukeqecnSOHeUJOj+5SYTCjorwNLqkgjG6BsgChqgvN9Oo EUyKquKQkQrE9QlAqvd9boxGKF9qtoAbpAYLwDCEb/A7qvaR0HyJ3+I1Wm//fHYi8n4MJ5 ma2Bfutnb9arQAz2xNoQaPA51aV2nGoGbSW/jMekldUdp4ZvdBfcF2s619Ptog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=29534af72577bd75ed3fcba96d3cf5c5786dc7d7 commit 29534af72577bd75ed3fcba96d3cf5c5786dc7d7 Author: Dimitry Andric AuthorDate: 2022-07-25 11:04:29 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:28:08 +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 (cherry picked from commit dba7f4aa0909d8c31a0ca0ad0d1208fabfaa9352) --- 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 ddf7de410212..1b8b26f38f34 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;