From nobody Sat Jul 23 08:58:19 2022 X-Original-To: dev-commits-src-all@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 4LqgFR5mGTz4X6pW; Sat, 23 Jul 2022 08:58:19 +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 4LqgFR58wWz3dLg; Sat, 23 Jul 2022 08:58:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566699; 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=S4gBe/jasScgXJEi0M+ICx/FhzmNZoZJ8fI9laejUy0=; b=dLsCQJW13qAIpyzMr/3LsZWbRHgBdgiR5kroyLo/ZtUZ0pywConEy5qDzYHDZDI36qL6ki scKKYlccIC8DYTuW0xrOV+0HpazGc2xgv0zvhr4emNCe32kyYrY3W9/jaX2xK/enWm/vNA hJCQBaq8Rnc6JwFWXQWabKuC0Mlp08AX1cPbNaELYil06T2jQx8Cas2EK1fgyjERshAeud UhU3KQGNPFZWolSBrJ2Ocku1+BG6UYHvwQr7RJXExfhf4NRVKXivbJtnC0jus4BOE6YXcg sahKSI8/GMeTNTESWi2Luxen2C48oyaI4Jjzkme8hqt481q8jvLgcWKNObNlRQ== 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 4LqgFR3wQ3zZDR; Sat, 23 Jul 2022 08:58:19 +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 26N8wJ9v012657; Sat, 23 Jul 2022 08:58:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8wJ2K012656; Sat, 23 Jul 2022 08:58:19 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:58:19 GMT Message-Id: <202207230858.26N8wJ2K012656@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: 1538007bb57b - stable/13 - Adjust t4_tracer_mod{load,unload}() definitions to avoid clang 15 warnings List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 1538007bb57b2dee2dbf9d2ff70cd928cc6f6be3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566699; 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=S4gBe/jasScgXJEi0M+ICx/FhzmNZoZJ8fI9laejUy0=; b=v0TEgwZ2XWehLI3oCIIu1Z4G6M4nZiKVsFdUbSzKzhm7rP3gTNIiWCBiVTSwkzAOgNAvO8 ZW5XwiI40UQdRe87xP9Aecx2EwSF/IIwDziP9OGsoN7swUGP1Y6TW/0AaRivIB6Y8xCqf+ CpItKML0G4TEDIZ2Vu/6KZosW9tnsLsAuNCxlOBtS6aFSFx2E3gvrU06YhzFm3pdY74xj3 lTRiyXMzKVmp6w9ArKUsh62i5XWuk9W2B3ose1zQg2Jtt3qQJrl+iBNlxWK8qmrIvjk2dx /tEgm1/WES/3MJ1j80yeJyk2wHuDg97U0wRBw4oqUwLBBgk8ZheG/W9lo+TLQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566699; a=rsa-sha256; cv=none; b=MLHnhiNq2FuKjOIHikD7NwWOmM+PKxjI1FlaaQ77p7ZAgtjqSnKWNT2bONWX8X71LXC9O0 LZlUasFEgmiTHKHXlIhrdqZAEWyqmiGJ1OeTNFFY9z97D5jS7kTyNoDKSgoL4hlQjwrVc/ NM4zqNFjTKQur5C4Y59ud9NGgOAlazzBxpsDKUEYJ1D3xsJZfT1NI9Y7Zj2QoAe09NRtVA 8+kdmomFhbfJyDHpEnKD1t5t1hu22J0h3spsxzow644HfMm5x18D3/dN6fsJzgilXRSlfd AdxYeCweOpKZjRq1ZrFjVyZQDzoMVhANM9cuoqyIjvb6uAiaISaQHojISdBRkA== 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=1538007bb57b2dee2dbf9d2ff70cd928cc6f6be3 commit 1538007bb57b2dee2dbf9d2ff70cd928cc6f6be3 Author: Dimitry Andric AuthorDate: 2022-07-19 18:20:21 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:56:44 +0000 Adjust t4_tracer_mod{load,unload}() definitions to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/dev/cxgbe/t4_tracer.c:234:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] t4_tracer_modload() ^ void sys/dev/cxgbe/t4_tracer.c:243:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] t4_tracer_modunload() ^ void This is because t4_tracer_modload() and t4_tracer_modunload() are declared with a (void) argument list, but defined with an empty argument list. Make the definitions match the declarations. MFC after: 3 days (cherry picked from commit 54e5efb2643ec5f4bf40fef2a1937cd5449a58a0) --- sys/dev/cxgbe/t4_tracer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/cxgbe/t4_tracer.c b/sys/dev/cxgbe/t4_tracer.c index f6c85b15c75a..c4d6f9d48fbc 100644 --- a/sys/dev/cxgbe/t4_tracer.c +++ b/sys/dev/cxgbe/t4_tracer.c @@ -231,7 +231,7 @@ t4_cloner_destroy(struct if_clone *ifc, struct ifnet *ifp) } void -t4_tracer_modload() +t4_tracer_modload(void) { sx_init(&t4_trace_lock, "T4/T5 tracer lock"); @@ -240,7 +240,7 @@ t4_tracer_modload() } void -t4_tracer_modunload() +t4_tracer_modunload(void) { if (t4_cloner != NULL) {