From nobody Sun Aug 14 19:27:55 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 4M5S9m03Mdz4YvQm; Sun, 14 Aug 2022 19:27:56 +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 4M5S9l4J6bz3M2L; Sun, 14 Aug 2022 19:27:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505275; 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=k8f+IwSmlTbwdkNKTvCnrCYfqtEVQ56Hcv/wn1wPesw=; b=hK8LGBzpZFtVMif0p0gJYBgcS1GTBLLCK0XMFeY2a+wHwT0QfPz73BGAcpP6FVfC4gq9cb plXvWog7TyGbjQfLLULJBrzMaLDF1f8dTZAtpPcm2taWsPRkUVuwEoLZmBKeOTgqnuV2T5 oBFVEoZ5eZO03xsK3fD6jb1NGyR0/pIcZ07DrqlqrUnLbDmllvuvbQSnrBBR5Uas8/VAuh mBVpiqF+YM/pptiqk1c7FkL/uU4SqzRPerJwuZw1PMKWukyo0QjqqiQrdF1F5IAebJq+g6 u7vOLSMzROrR5CUzWhTQ7ahkwo9OowWB1KFfZjN3SqX6wWvra9EUfd9R1QeLnA== 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 4M5S9l3Jk2z12cq; Sun, 14 Aug 2022 19:27:55 +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 27EJRtF8044310; Sun, 14 Aug 2022 19:27:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27EJRtPQ044309; Sun, 14 Aug 2022 19:27:55 GMT (envelope-from git) Date: Sun, 14 Aug 2022 19:27:55 GMT Message-Id: <202208141927.27EJRtPQ044309@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: 9762d48b7f12 - main - Adjust function definition in kern_poll.c to avoid clang 15 warning 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: 9762d48b7f12f7085d3f6ad83b3ca5ebd226b697 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505275; 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=k8f+IwSmlTbwdkNKTvCnrCYfqtEVQ56Hcv/wn1wPesw=; b=TvdDaVGx3C12+SQc9KRvO5UYg1xjn5X1JEhQALU3yZU76NdDZty30Rc3izE6NtkVmXs/jE LyB9PjLN3l5jIZwG1ct05LO8gvOgL5A5yv5EoGOUGa89oLnh+ZwXq5iykUL/Fn2U5JtpSm uI2vxgo/8MOKL8nwNR6YRp4XXp9rszeF94jT30QRdcYFYwGD84I+yXFsb3ZR7zwOYR/p7B jd5HTkpKERFjufeyMT0rdnxJ5yYJcmXQtZl3nY9+Lw0E2z3bJKRKN7Knm12wNGCbZgPQU6 lmp82KcXt+QYBL+iwQddmW+iUkfRGC3057fgzJuBvbbET+IKaqPR+kBsid/Lmg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660505275; a=rsa-sha256; cv=none; b=e+93H/8F2KbRyIhpzou6Kq+dkaJIj3retJA2lPz0XheVfnVo5viPvWXaX8dUME8FloL/l3 n4YBUx84Wx8u4cqbLYZ1fhIQutSDU2/7BwlY0xsfVv/95B81kFWp8Ld05qzK3cjcP/nMO9 yrSNzwZqUU+ii+qTwssT5fMgeQCHmVn3UL9whkSO24ZegvZzGZMih8/0WjisWi7AMaCkKp 5EMpD3Krrzkjx9zQn0ZCMctULDl+vsB248EWn92NrcHBDG8f/3ixjFajZ0RAUElH2A9gPH c+DbcavhPtjSvjRF4U5BExZBEuA8Z0ahTc+OjJe+vyiLW7E4jDhMe9gKZZdBow== 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=9762d48b7f12f7085d3f6ad83b3ca5ebd226b697 commit 9762d48b7f12f7085d3f6ad83b3ca5ebd226b697 Author: Dimitry Andric AuthorDate: 2022-08-14 19:03:39 +0000 Commit: Dimitry Andric CommitDate: 2022-08-14 19:27:34 +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 --- 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 f3e84ad0afa7..fd1a30f0851f 100644 --- a/sys/kern/kern_poll.c +++ b/sys/kern/kern_poll.c @@ -371,7 +371,7 @@ ether_poll(int count) static struct timeval poll_start_t; void -netisr_pollmore() +netisr_pollmore(void) { struct timeval t; int kern_load;