From nobody Sun Aug 21 11:29:37 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 4M9YDf0kF5z4ZYcn; Sun, 21 Aug 2022 11:29:38 +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 4M9YDd4WfSz40Gx; Sun, 21 Aug 2022 11:29:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081377; 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=2JlpgI++sXBLsQST5gayigSwo3r5Q9EctIUWeRYTrws=; b=fk5dX0rXJXDOTRQlZCqU+mWx6RRiMrvrpbKjsdiXOb53OXfiBcPZ4pbpwm2s5gwDAT8IrA S7MreHZ92chVI4Cr0JJaGaTjetNy6CAw3adWhjRw0DdacasB8ZUmljvr4HOb10KJo+pPTX Bjpgkzii+KdvNfy+6a++Z8RokwoubkxaEblhLxggzsRONL2IIXc3Tp5VxAmABwFPckfHLz gjuEXDMteR5Q4zMOP/CEGS7at3jBVwYLgpoh3Ub04N17H5gZM2S8KVxgOJrQg7mjElI3xZ NPqeURrThAfo/saLjHWNR4mnSrRwYxMBJrG36pH/Feglx0znUTOUHv+os3wTig== 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 4M9YDd3Txrz18C0; Sun, 21 Aug 2022 11:29:37 +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 27LBTbHQ005136; Sun, 21 Aug 2022 11:29:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBTbLU005135; Sun, 21 Aug 2022 11:29:37 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:37 GMT Message-Id: <202208211129.27LBTbLU005135@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: e82f6f47d5d6 - stable/12 - Adjust function definition in kern_poll.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/12 X-Git-Reftype: branch X-Git-Commit: e82f6f47d5d6cd91a667a7403f1166800adf4c38 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081377; 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=2JlpgI++sXBLsQST5gayigSwo3r5Q9EctIUWeRYTrws=; b=HiKjIguh8CXyqFiJpSRjqonSrHxb7PTFGVpsfzqwMpry/KgjVlSTN3fMdJ4ayo3CQJEuSH ZUJIWIEY8YhJ3sCWJHa/gTwMu96jdHWgLj+U3sV9ahH3x+x+IsDdsxN6HfZknnwn6dX0Da XjYHGlQKGwA+aH5tMj90bQyyySYpHGXqiSZEuCF5z5/yfcx5zDFzNhzQlWbAyQ1wU/0pO3 vlMngBH+AQ9CnyaKnvwM5gGpqawu8m957JfdxiNAFmo8J64wZZSyzqK8bxxLDbCrw8WGCF 0ntzCBaGscvM3OR3Zn+EYMFj85u0uJtIZFv5RKSApnLekvEvYFPU8bva/cdsag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081377; a=rsa-sha256; cv=none; b=TEF5URb0dG4Iobf+UtnrA0llzpnkxaJt+yRPWy5U49794eW04/NBRKjy3bkbjGHQ89CJEj k6eKq8tDbmW7z1FGJ6vuitzLDiD0UK8yYNamMn0JmTxAxgxxwbCe4a/xgrDjSyAU3dgnYE IRfC5qT/cwX6XkxRCWsjkjj8UaLbouhUwcASSHGsdAVeojma0hNivh9SMXmSsh11HkJN9n ORG9kHJU3FJw0++A1LcQ7bI93sdt8q82Qlns1jz/ok5kpb+dSh6tEX7W7+IKN4quyNzTaa EiZrCkwSTSqrxQqzFvKHEbWW1SxvSDCrvzu0J5hFIkfkzD+Rt5ByTM906hMUbQ== 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=e82f6f47d5d6cd91a667a7403f1166800adf4c38 commit e82f6f47d5d6cd91a667a7403f1166800adf4c38 Author: Dimitry Andric AuthorDate: 2022-08-14 19:03:39 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:18:40 +0000 Adjust function definition in kern_poll.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/kern/kern_poll.c:374:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] netisr_pollmore() ^ void This is because netisr_pollmore() 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 9762d48b7f12f7085d3f6ad83b3ca5ebd226b697) --- sys/kern/kern_poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_poll.c b/sys/kern/kern_poll.c index f7ff32663464..4b3193e27e8e 100644 --- a/sys/kern/kern_poll.c +++ b/sys/kern/kern_poll.c @@ -364,7 +364,7 @@ ether_poll(int count) static struct timeval poll_start_t; void -netisr_pollmore() +netisr_pollmore(void) { struct timeval t; int kern_load;