From nobody Tue Jul 19 18:02:29 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 4LnRW95QPvz4WgQ0; Tue, 19 Jul 2022 18:02:29 +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 4LnRW94rJYz43s2; Tue, 19 Jul 2022 18:02:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658253749; 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=ngcJMejbx0k2OFo10xoeIB2CC1W9hqrSooNG9fus3NY=; b=TDTgGm1CrzBxeA5BqYYCzqb0Y6QSAN8o81FUHHw5PyFBMMyYJnefQK6+FoJLhIxhbrJevZ VJusVz17n1NqWsjc4okK90luL3SrAepAUL9JVGGb3NWqC25Oc9C0+DDwO2PL8UmF1nOWFu un47PoX0ahZ2hkD2xjTNyDaRTjCoOnxB9OX7c72vlm3iXE8AnFtv8KYAbHB5fvhqJaKa/L jCdlNxeuGpf9JTPdLdVGRXTy9ie7gvpCMbb+tRw2QPjLZbiRy8XrNHfxCiIsXB0l8L2Y/w QQzNftJWgzZI50Ox4zdSrcl1eTE2AVxPxEiSPqBejs1DA5l3oJW0YO+ENhccpw== 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 4LnRW93wppzSNF; Tue, 19 Jul 2022 18:02:29 +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 26JI2T8w077683; Tue, 19 Jul 2022 18:02:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26JI2TIM077682; Tue, 19 Jul 2022 18:02:29 GMT (envelope-from git) Date: Tue, 19 Jul 2022 18:02:29 GMT Message-Id: <202207191802.26JI2TIM077682@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: ac1daaa6f8ab - stable/13 - Adjust agp_find_device() definition in agp.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/stable/13 X-Git-Reftype: branch X-Git-Commit: ac1daaa6f8ab48d2a18e91ccdbadb4c4114500e2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658253749; 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=ngcJMejbx0k2OFo10xoeIB2CC1W9hqrSooNG9fus3NY=; b=PxLRksU5uGMrosWZI5RWt+wSieI9RSOp9yZhBhm25wmeQS8rtCWkvBwei+C6Js1iZ7ngJw OQ9h2Ix4fbUIDHNCn4/3htLRe5c79Pc56VKc1g1WU7jGoFyRUsmhfjN9V944aBoQIrfpz9 SHm5oYGdv0EOP4vNSJT3uQcwjxfN0mljqdPp/q5HTmUAKpKvX32/QlXKdutY88asRn22i4 izFXwB8zxK6EVkW7V/sJz+Jf5+iJG/QFWibeh5PFIKf1BwWPezy86aB6Yh3rFHmhAMlIS7 +fak5WCusW/N9Vzk+Yl/ADhJLWRU3uvOQpnnqCW7/kwJ3w00IUKsDuiWEQLM6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658253749; a=rsa-sha256; cv=none; b=nPE5KWCTMqQ8ljgQ+V/UlhLBP9RNLY6TcCFvjxv0A4NpiVzKqkDMtSGYI3S1P24Y9ncgsf mj49hw69e3u5ADRyG9pchoL+tzUyDiX5fRlvAxfBSGezTbOzdZlBhbvrMkFKyvXhI4P+QH CxKz/gkw0TCVT+pO+mbGxznhVthvNjhCfHg0O5cCscosdiGyhU0SYho2zO4zeId4iO515z OfIAnM5tYhVUNb8QHQPANQHScodrmQdf5GQG/nm9tE8QSolRcRDyLliJLOoGoIzf1+5iJm /NtwYe7yZ8KlvkBorp957VMVrkIKSQCh8VtAj0Dv9QaA6gri3iKI0PYD3AsLtw== 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=ac1daaa6f8ab48d2a18e91ccdbadb4c4114500e2 commit ac1daaa6f8ab48d2a18e91ccdbadb4c4114500e2 Author: Dimitry Andric AuthorDate: 2022-07-16 14:46:21 +0000 Commit: Dimitry Andric CommitDate: 2022-07-19 18:02:06 +0000 Adjust agp_find_device() definition in agp.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/dev/agp/agp.c:910:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] agp_find_device() ^ void This is because agp_find_device() is declared with a (void) argument list, and defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days (cherry picked from commit c0817e2aba26ceb683e9c649c22d7fcd9a921231) --- sys/dev/agp/agp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/agp/agp.c b/sys/dev/agp/agp.c index aaae2176f85a..84e8274ee49d 100644 --- a/sys/dev/agp/agp.c +++ b/sys/dev/agp/agp.c @@ -884,7 +884,7 @@ agp_mmap(struct cdev *kdev, vm_ooffset_t offset, vm_paddr_t *paddr, /* Implementation of the kernel api */ device_t -agp_find_device() +agp_find_device(void) { device_t *children, child; int i, count;