From nobody Sun Aug 21 11:29:10 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 4M9YD65F3fz4ZYff; Sun, 21 Aug 2022 11:29:10 +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 4M9YD64Vcvz3x33; Sun, 21 Aug 2022 11:29:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081350; 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=0pHhjVJj2qSjEC5GtLoN8dEaprO/wKxpLyHwRJHkTYY=; b=ZFvXo35zCGLTbDMiLEeVshnKAv1mrOTxvZlGFw35YNloXzwRcr3udGm1mLO7RpKMIobyTm CBkPVIXdczXPABTUxKxuGpM86hI3FF5QSt7GmVNN8MK+Rfao2MoAFZV60gnIVLtyXwvBq9 uOOhrOfX1D/Q0x1zcnGiV1NpiH8lhmcDXhEErq2m+Wf6OD2ahuMmg5ehtwd/nkvYPOh7WT n3JJRzxCg5qfqxUDUpiB/gQXHKbfL4S3htfAui71miz3K+6/9jWTVb5Unr1vJPh5h9eDSB yM0zfwNVG45tyIR82ATVCKHSfVnPx+f52gUv/0gZ5E+8vM8P3A6AQ6s+LeGspg== 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 4M9YD63c7rz18Ky; Sun, 21 Aug 2022 11:29:10 +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 27LBTAjI004438; Sun, 21 Aug 2022 11:29:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBTAXE004437; Sun, 21 Aug 2022 11:29:10 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:10 GMT Message-Id: <202208211129.27LBTAXE004437@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: 667ea86715cf - stable/13 - Adjust function definition in tcp_hpts.c to avoid clang 15 warning 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: 667ea86715cf27622281e36e9e81f42bebb63a76 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081350; 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=0pHhjVJj2qSjEC5GtLoN8dEaprO/wKxpLyHwRJHkTYY=; b=p0Y2VSYPNFPVxmiZirNHPoQ2OLs+ylkk0P3L7ft1zeKeTh4raOWhMip+EdDLMjVNEdw4hr RC0SVCoEXLdRQBuqLTdOtFUR5XJ9ECY6+l+8suySlj1Rkz6fGpvYcQr9lBW5Acf6gj4GUs +XRp/fMAp2kMemDYmtxFRJ+rItfcADGcqnxQKwzbg59T/5f4sO0wrDy2dG2TqbXwfOiQ9R yizrVsOo8uZXv5U6PZk1pRSEbikegcFEGtVJ4zYF+w1ZqWpBh0zU3d/ZBtSj0tRero8fW1 jFnY6ZjPkW49oJVZvHzUHCX4DHdAFXaltyVxpEhbSamHYYs02gJ6nA7rzehUKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081350; a=rsa-sha256; cv=none; b=RYghOW118kIBxS2Eq3HUlB11k4wPgpW4JklzqOMljvl4xkNL0zvDAJBgXPSvwJ2OnBUvT5 lRrTfMj6bzdAhv3xMjPOhaNxZSon+/5A+bT30UZB1DOx5juHIG4soDXmftpeDW2SusxDKi eD3Pg4UH6BNeY1sNfmDG6uVA4BzQx+e4nz42YvnnxD6+DyfqSNDcahMeUqiZBNrwUD+//6 Cb9poQ+LYtkaimqozjv0izErUYlX50yL1/+yml9aUeGXfJm4QRgXhsGc0oW46mUfSvd3S+ nJbFRvCXqoCCaS36QmwsyqchsWc2QY4gugNIokXuSQrQzJPU3GC3Q8pG8ZYXIA== 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=667ea86715cf27622281e36e9e81f42bebb63a76 commit 667ea86715cf27622281e36e9e81f42bebb63a76 Author: Dimitry Andric AuthorDate: 2022-08-15 18:05:34 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:13:31 +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 (cherry picked from commit db6b32867d6ed996f8a9aad41ca6ffbaa2088e59) --- 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 8a7ae29dbcaf..a744153d338d 100644 --- a/sys/netinet/tcp_hpts.c +++ b/sys/netinet/tcp_hpts.c @@ -1913,7 +1913,7 @@ out_with_mtx: } static struct tcp_hpts_entry * -tcp_choose_hpts_to_run() +tcp_choose_hpts_to_run(void) { int i, oldest_idx; uint32_t cts, time_since_ran, calc;