From nobody Mon Aug 15 18:49:20 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 4M63Gm3G0hz4YXgv; Mon, 15 Aug 2022 18:49:20 +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 4M63Gm2jKcz4B3h; Mon, 15 Aug 2022 18:49:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660589360; 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=5hRDzzytf1XSrAur87gA9LHu9HG+7wLRsOauXwIq10I=; b=szSyy04jbsI6t9dKkMvGpFDB4mwPpRIq32SU3lA0VoJBJUiaZO5jZBUjUml9c91Dh28kdN mvwLeuBVQvXDeXvQbOqeVirDFVO4Dqafc0KeQTJ4sQPBrhUxbsbomra86MHgkNAL1GzIK4 ZXnsYEfW08H4BQ0/r0linw0Wt6cX+da6m/YhJgzFxI4/5CsLbNnTeu3GWrVubfS6+zc0D/ 1Pflc1Gba7gvSg4WLLwvb9zTcEKX8UDdvnqLjyfF08vcWXq5sDhDnBIEQ/oMGdLjVdkYEl KC/D8ENrZdY+UI2eOBpOzo+K/6dPCz9zSVpuf0hbHaOv7a4DxhC/NVJ/xYUBFA== 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 4M63Gm1BFzzgNq; Mon, 15 Aug 2022 18:49:20 +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 27FInKI0027701; Mon, 15 Aug 2022 18:49:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27FInKNr027700; Mon, 15 Aug 2022 18:49:20 GMT (envelope-from git) Date: Mon, 15 Aug 2022 18:49:20 GMT Message-Id: <202208151849.27FInKNr027700@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: db6b32867d6e - main - Adjust function definition in tcp_hpts.c to avoid clang 15 warning 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: db6b32867d6ed996f8a9aad41ca6ffbaa2088e59 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660589360; 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=5hRDzzytf1XSrAur87gA9LHu9HG+7wLRsOauXwIq10I=; b=D+TBOl1OZjp9QWFKCDMvgxSFnVKxwGAX8gAz7/izX4o7LcIRj8sgotZ3B3lJmmGQ88G9Xv ZcAMVk/Ff08shzESPwYvfBQGFy8Yn1UAs87xbhDLNHMa3a3+hyD4hBx4JYzq16FyFNxZkI qLmBriowjcdzgp574bN3+Gf5qx4uzeS4oDq1Ds/Q/W9oM26nBdnzgTxrF/wv71uP0GvHGt Fy+HyxDFDhAS/5QCUFk+sXZQrRJnOvXgTON8okVIiQq7zXbtBIL7OqpG9hxwKv48QI/QT6 ry8E6dVt5VKxKGesJIQ67shE/LdIy9c26wyZqhFIrmuIqwtMWr1c+HjOG4xqdg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660589360; a=rsa-sha256; cv=none; b=w9RymjeGrt/G/h2Du/8wotsKhUJcuSbXTMw4h/jdwoKvaMiAw+uNgO8nEL0wW4H0DfEbuS 4ruzLVVbTqJPT9rmRlPQ9A5s+DAWCXgz3TMvnjqOSCmsGcjsjkikGxQF7FmnMuBHYM5PZx /jWHIczK2XtFi5CRkXTA/IVgxtETrMEbG6GU3aLFZzfIg17Rnke4H+i/89rQJ6Z1779vwh tU5gz0c64cGllChod/WGXTJXXCLMwssKzA0NhCfLmwCjI88SEhim7DCtO4W4Mp42tBfiVa FgcEYfTmzm83y05I2672vmRnRDSQTbueLchqjXJZjymdaYP0w1sT2mIf0GrjIA== 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=db6b32867d6ed996f8a9aad41ca6ffbaa2088e59 commit db6b32867d6ed996f8a9aad41ca6ffbaa2088e59 Author: Dimitry Andric AuthorDate: 2022-08-15 18:05:34 +0000 Commit: Dimitry Andric CommitDate: 2022-08-15 18:48:33 +0000 Adjust function definition in tcp_hpts.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/netinet/tcp_hpts.c:1594:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] tcp_choose_hpts_to_run() ^ void This is because tcp_choose_hpts_to_run() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days --- sys/netinet/tcp_hpts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_hpts.c b/sys/netinet/tcp_hpts.c index 0f2d01940922..4df5a236dcce 100644 --- a/sys/netinet/tcp_hpts.c +++ b/sys/netinet/tcp_hpts.c @@ -1591,7 +1591,7 @@ out_with_mtx: } static struct tcp_hpts_entry * -tcp_choose_hpts_to_run() +tcp_choose_hpts_to_run(void) { int i, oldest_idx, start, end; uint32_t cts, time_since_ran, calc;