From nobody Tue Jul 26 19:25:21 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 4Lsn1Y3NNSz4Ww3S; Tue, 26 Jul 2022 19:25:21 +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 4Lsn1Y2kJTz3y1n; Tue, 26 Jul 2022 19:25:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863521; 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=/gYh1Ju0T8OzslkgMlYExOQFv8q4D0WbL6vychf/NBw=; b=C6ej7kP9IdMz3wVrqEyfHMG0PwOqidS6T7hCHCnqHcoh7nXSYU4/DtC5fJembBkgs7plTQ 66+/zLhlS49YWArYd7JN5E+ReDzIrukubnQEavphCLApnTyF6XB0rqv++aYYb6Qn5O/8u8 duibFfvhyeaGQmXEutFOlorFnVk/9PtrixJQwoRdYH3B50ugjhZ6k4DBDAXDZlla2JoNkj P2qGnz0Rc7J5xNKe6H1nvVKGgmOPss8DrnLTe6c7COIh+ppiZwLcQzXAc+hygTUP8v2lxO TGCatHMGS4RZoiUMOtesVZ0A/irs2OCGiCC9sGejmxTXXHHi5Kcz1b7tAQfnzQ== 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 4Lsn1Y1YvWznrM; Tue, 26 Jul 2022 19:25:21 +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 26QJPLe5019635; Tue, 26 Jul 2022 19:25:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QJPLMA019634; Tue, 26 Jul 2022 19:25:21 GMT (envelope-from git) Date: Tue, 26 Jul 2022 19:25:21 GMT Message-Id: <202207261925.26QJPLMA019634@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: 5e1097f83cbe - main - Adjust function definitions in route_ctl.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: 5e1097f83cbe353839888c0aad8e31bb62b8e9a4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863521; 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=/gYh1Ju0T8OzslkgMlYExOQFv8q4D0WbL6vychf/NBw=; b=MLfkRKznmeO6rIHGXp7eOUesNP6l7Yq9G/l/JBs3T2GfUVdu/VlQZDjAGhZ4xrYbgboTie oIcY8k0K70gOQHdSBKn2vXqS6/vioyXl04ME+6FbE9WdouaunmFS3BZ8hdMhimov98U8mU pGiAB8dgg5MaUUcEmC/XejBB6RTPQDwxcCCoHyeYn11JJ6d8zT84AtGi90amICAH5pjSxK 3W52G8EHZuczFqh/KlNHNM9fBljg2ULMUXatXoLhuP9YiX9Z9D1m+mdeUhteUrA0vxA9Dd /ou10+Y9JrlWWXsAk4WiPW8ngbsrhyi46+wxQWRwpuHcjNSbXaBYoVspiWJ6NQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658863521; a=rsa-sha256; cv=none; b=hxFxso1LVHZtVN4wwh3rlkpWpuxGTHN3VpymNR2njDOBQXjAZAfKu+9CjIXEpk/TfamT/i pZFfdGxCPiHxrdBdkZyNu4+7EMENSDTXWNQ8nPcEDjbyZWDGCJAaXJZqeo0nj0U9Il+EM+ +XRjB/LIkY6XDvp2zycJBzUV9i7/7JXHt0jzlHBvCIybnOEWzrs7MXyqTT1hbW9JCjZdub h0ZxuHSg6li2cLsPc7W0NDc+kie9Ic33lyGxpxJa0Bv19dS/2KXZfebDxBLg67EkhR+WLa 39Rj7e2CqzXpGQUPdisbp6tXmafh4C+JNgwofPjwNkQYKVLTjbbBiBa8Pl+Fog== 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=5e1097f83cbe353839888c0aad8e31bb62b8e9a4 commit 5e1097f83cbe353839888c0aad8e31bb62b8e9a4 Author: Dimitry Andric AuthorDate: 2022-07-26 18:28:25 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 19:25:09 +0000 Adjust function definitions in route_ctl.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/net/route/route_ctl.c:130:17: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] vnet_rtzone_init() ^ void sys/net/route/route_ctl.c:139:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] vnet_rtzone_destroy() ^ void This is because vnet_rtzone_init() and vnet_rtzone_destroy() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days --- sys/net/route/route_ctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/route/route_ctl.c b/sys/net/route/route_ctl.c index fa0242f5bf7f..f8b6a6eb4cd0 100644 --- a/sys/net/route/route_ctl.c +++ b/sys/net/route/route_ctl.c @@ -127,7 +127,7 @@ VNET_DEFINE_STATIC(uma_zone_t, rtzone); SYSCTL_NODE(_net_route, OID_AUTO, debug, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, ""); void -vnet_rtzone_init() +vnet_rtzone_init(void) { V_rtzone = uma_zcreate("rtentry", sizeof(struct rtentry), @@ -136,7 +136,7 @@ vnet_rtzone_init() #ifdef VIMAGE void -vnet_rtzone_destroy() +vnet_rtzone_destroy(void) { uma_zdestroy(V_rtzone);