From nobody Fri Jul 29 18:47:30 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 4Lvc2W1VhGz4Y1jf; Fri, 29 Jul 2022 18:47:31 +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 4Lvc2V62tXz3phm; Fri, 29 Jul 2022 18:47:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120450; 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=AmD4IxO1qJSdRhvXIeVfegHN2r/Ut7rL4LKttBT2xb0=; b=lq7bkRCE6JMI0kFM8hIbaKj/x/cVJJeMdavAPMcABvrClRwPitZ8+TL4dSCl3tuVX9PAlo m6LoNkzvpKT6kavZhl1D9GLXMlAz0BWskCFGHR2APNmqnEBsd5ateeyqjHAbqK98fVzt3e LffBDHelUSdTK6gJVwoNIi1VBzPUhCkaDYJ7+eBrl3esk2n2BHW/u6vjuaVwW3wlIdY9oh e5pkSoivAlZAHu5sNNp/0UhViW7iz3xADU9M7Qt622SmHNyTmArUCUhXqFAbl5fWJVmlZl 1QLC9elN565Jqozm3g5x2aTXoXDkTinXMZrnx+WmIWSdIpa112X/mv4OvYS81A== 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 4Lvc2V58W3zlh1; Fri, 29 Jul 2022 18:47:30 +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 26TIlU6H024194; Fri, 29 Jul 2022 18:47:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlUT1024193; Fri, 29 Jul 2022 18:47:30 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:30 GMT Message-Id: <202207291847.26TIlUT1024193@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: a98fa7905e52 - stable/13 - Adjust function definitions in route_ctl.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/13 X-Git-Reftype: branch X-Git-Commit: a98fa7905e52e58671f6af1b93688a724b4ead07 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120450; 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=AmD4IxO1qJSdRhvXIeVfegHN2r/Ut7rL4LKttBT2xb0=; b=jZKd+oRex8tlwuemE+5T+KYMpvwHj8BjTFG1/+Gdc5NqhUjEYmdStvhEHVdQKkwZkGutSn KnG+tgTvVO+dAqLOaM3XZmapGktletzJ5YtZ744sZFqmw9Mcn+lMveK6TL2WzwvCPtLcf/ zqTgj9x99TIfsGu0+03EZwG3mvbiWAS8US2a9d/EQacYt+seC8RNk3Csfq26suHxeu9yCJ 0M6h1Q7Xq9gBfyGeY4qkXvXhbFML4BzlPQw4QM1XnCAgsAoSGy3gNIZhEpAwkbf1XXRnjM jS9oDhSKyLffHMWGQcDLN4XiRTotap9bp34+vEMbySZoItHuGbhCVlO3V0nyHQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120450; a=rsa-sha256; cv=none; b=g/HabWbkr31k2qK+TeluwATGFDatiixY8miBSPQtBcVxon9RPKjITKg+YSgdo+CcdLuvIy nUjzr0XWhY7OSa5PdbIe9crisYW24XRpCAvhZBr0z0bBJfdCEkUAa0GLPj0jIhWEsyUAEQ +eOI12qVZ6PjVYF6Ky9U/gIO2NfyMD28v5f4WfFG6X7zAKNJrlIH32Fq4SK8LpdmH//JXk s8uaVSs5DsY5qR0GMJjme0WSgnDId3SUNU59fPimTMOP7oSQMiYxgRw3v+RGz6l4ENLXEr NNGDeNTqHwLVSymv9u64UQAF7bE7hGBbehyFynQuq5kRcDvbyjilDhrEJ0aD/g== 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=a98fa7905e52e58671f6af1b93688a724b4ead07 commit a98fa7905e52e58671f6af1b93688a724b4ead07 Author: Dimitry Andric AuthorDate: 2022-07-26 18:28:25 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:29:59 +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 (cherry picked from commit 5e1097f83cbe353839888c0aad8e31bb62b8e9a4) --- 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 123939fd31c9..292233541406 100644 --- a/sys/net/route/route_ctl.c +++ b/sys/net/route/route_ctl.c @@ -122,7 +122,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), @@ -131,7 +131,7 @@ vnet_rtzone_init() #ifdef VIMAGE void -vnet_rtzone_destroy() +vnet_rtzone_destroy(void) { uma_zdestroy(V_rtzone);