From nobody Sat Jul 23 08:59:01 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 4LqgGF5Gwsz4X75P; Sat, 23 Jul 2022 08:59:01 +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 4LqgGF4Y7Nz3h1t; Sat, 23 Jul 2022 08:59:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566741; 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=yChI9gakcInj9Uxvuyj+oPUOC3TuLfq5c04arMdioGY=; b=PT3vgLr5CMwz6aZcM/UG1wCSziFTAAF6knsIidLIYPCqOdnOxpxPC9afT13IkEZldZhYVG 5b7BvJfZ4T0DsPvLaA0NeYLMcohwo34YiSzIADNGegjHaW13ydjrDeHOMqDVRddCfOq7of pNnawtMHRDdn15ioaSl9WXGNBJ1fd/NXk0i6Frh7ZIix+DIa5SKx49sVM+5Y9ENNcC/qy5 jcLT4SkW2XBrDHoMYgXzus6SWr1IwdfkFUzWSM+lYPTOGJFcfdZyk2j8YuBPy/BRB6P1g4 5Fn1a9bTQFFOYs5wMGai0wOBaE1R+XIYp1KBZ1u7YHKmLZJzvU6mgU7/WpaLaQ== 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 4LqgGF366czZDX; Sat, 23 Jul 2022 08:59:01 +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 26N8x1kH013342; Sat, 23 Jul 2022 08:59:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8x1sq013341; Sat, 23 Jul 2022 08:59:01 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:59:01 GMT Message-Id: <202207230859.26N8x1sq013341@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: e5793e6e7fd9 - stable/12 - Adjust t4_tracer_mod{load,unload}() 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/12 X-Git-Reftype: branch X-Git-Commit: e5793e6e7fd9736662d0f073a0ca108bc3e4c751 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566741; 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=yChI9gakcInj9Uxvuyj+oPUOC3TuLfq5c04arMdioGY=; b=XX83qsS07GAdRrdUPwjXKYjAWDZ5XV/wt4zoAgCBNVv5UMwwRs4csEQ5Khd1zDDPLr8P25 D07NakusIkQiJF6kU3aI2gp0w2eiNn/VKd7tQGF432s7UsJvzRnywu4ka1NoHvn+AM79C0 6uR/KEMzaxAKbjTKD6a3o5XpDQihgbLj/9aqndXgGpBEWRtUVLakPmTj7C0LwdcFf/NwrR OsLDdAtrcTLdswG5+a+lA6vVJRYw323JPILaKbAdgA16SbsYgwg85xXa6QzPNkQd64b8a8 3J6Q9aPFRlrKssnu61Di8Ark+l20dL5So8j37ZuwSoGiEIp3q6Bt7J9saOhsHQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566741; a=rsa-sha256; cv=none; b=LsJMuTNfDKvYdVe2wKNQkHtMUX3M6laKNC0uYz6Dde3biakxQHE+Ye0hYonUjw2w0V3grU uZxdv1J3PITspeORpSxYUsSCCFdP9N3L3K/Wx9C7wNyn9sb97CvvbH/z5A4lOUZoWS1Kj1 Zy0X/vFga2vd4yZKRIgyrdGgwEAeagoOzG98Io8WukipQx9X0UDgA+2WMvHzvemqlOY7ho DvHwGjFBLlBbyBdTMk4BxrIrXp3nsjcbmgprbP0yrELdmyMtKUn5NDmsQg71qJcsmAX+RC UIFJNsX7kou6OQevk/KX0lUQuhuxLzWJ1srfTHMtN+ADsGKFy/5Tro9Ig+CnTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=e5793e6e7fd9736662d0f073a0ca108bc3e4c751 commit e5793e6e7fd9736662d0f073a0ca108bc3e4c751 Author: Dimitry Andric AuthorDate: 2022-07-19 18:20:21 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:57:43 +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 035c7b029d8f..ac85e6c4f653 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) {