From nobody Tue Jul 19 19:13:42 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 4LnT5L6WFBz4WptH; Tue, 19 Jul 2022 19:13:42 +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 4LnT5L5x84z4Fn1; Tue, 19 Jul 2022 19:13:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658258022; 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=GGEWPhTz3N2AriwNTJ/tGh5Q3k4pnmOv2tRa38+liFw=; b=sSIXskgbwcGmPcjTATtggU/SUZGziZNJjB84yIcSQiwP8YlyxSC9pFACveqnk6xVrRjJkO hR8Xe/3x0vpds9DoDYxiQBQ8isvUzWcnbHkMlFQzfJpMbqgFJWriyMSGZ2Gf1QVDHMlHw0 2NcS9JmWiTRpC49xTGsY5WgWGsKQ8cb99JNUjVuo02iYtYJpHYB4uTZPAm1DP424k1vpOW 8XzovMY8rnCmLiWZxwpTyyaouUZ9nsQMAMx+PG4nHA7mC9X5a2n/C4R+U3jLCFSt2nfC0f HR8cnLMjsYpbGdPMVqQpmbLpVbSeAvpqVp+1iCxgewWHbCituTFtaBSYVxbkNw== 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 4LnT5L4yTvzVLg; Tue, 19 Jul 2022 19:13:42 +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 26JJDgN2072274; Tue, 19 Jul 2022 19:13:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26JJDgCu072273; Tue, 19 Jul 2022 19:13:42 GMT (envelope-from git) Date: Tue, 19 Jul 2022 19:13:42 GMT Message-Id: <202207191913.26JJDgCu072273@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: 54e5efb2643e - main - 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/main X-Git-Reftype: branch X-Git-Commit: 54e5efb2643ec5f4bf40fef2a1937cd5449a58a0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658258022; 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=GGEWPhTz3N2AriwNTJ/tGh5Q3k4pnmOv2tRa38+liFw=; b=CDKwDyo5HNgMOtojqPjVZMCd5OGmyr01cEYwXB4t5bPoOeIh8jhFGDolHq1chisjxR+K/7 JL28htOLv79/NfD7Gt0hnq+VDOw8j+tVgmjIb+F5f9SHdGara7Mt90MzUptmU+J8/0wEMX G6uIf8Z0r2DxLPf2+6H0hxzNlkzYpDPED/n4lrPUp+hb4Pvmx7bwlTT9XWRK7t+GBHGG1x SLO9o6mLz6vi5t04WZmjVmnY7Ceyk67KPMNl2LdAFv1SaYNB9THseFCDCzY2fgueR8AtJa ldHjTnn5IuIkNDC+JFe8twUKKIvNjLuFLOU1Y3IYU/W2boRxM1FxOnhEs1U/VQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658258022; a=rsa-sha256; cv=none; b=UQ0l8Kd75TYiLqvqxY/OzlrkngGIdEcjuG+opGtgf1qjL71EM6kpLmkReCypflHelv6CGp AOfH+u2edrahYRp+NCXfb+jiKgqHnZDyOe2wKMOsaYUcNkVdk1a9mbCRSz37vFn/RNe5lC bgNfPTV2RV5fhfBpxmDH0cwY7wh89ylFqwvVWZbqGZ9Uk7dFGEHz/c+RuXFopZSNe0FGEb Wfco9ck1zhsL/qY2FuQGLc+JVJcVJ2xOKlWyIEIQrQo2I3TtrmITeGrNY79vbSZNrT2diq qNGZIEqkE5UFcoigCEveNq4Y/aGYEliYNw58Cq7MoMM1LHFztv6dW4djV8AoRw== 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=54e5efb2643ec5f4bf40fef2a1937cd5449a58a0 commit 54e5efb2643ec5f4bf40fef2a1937cd5449a58a0 Author: Dimitry Andric AuthorDate: 2022-07-19 18:20:21 +0000 Commit: Dimitry Andric CommitDate: 2022-07-19 18:37:02 +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 --- 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) {