From nobody Tue Jul 19 18:03:00 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 4LnRWn1QDlz4WgWn; Tue, 19 Jul 2022 18:03:01 +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 4LnRWn0qChz454h; Tue, 19 Jul 2022 18:03:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658253781; 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=fdeo6rl1HBh+YVYazgz/ETptdbG6/Z3FyGd+24nZYZQ=; b=d6Y6t1BI7jyXPVIdfrNG83VauyVOV40Hy3qdB8N3NPd7XaMOHWZbM3OmJst4rnpOzl7q7+ DqAr+/TTY3jE8bi4PHob8xm9D5GfyDXDR9DhMpagjXs1jq0Z4ULLAB6WItMCLPbBjVRuNe ljTWC01dC3/XiWBzNfxnBzngBQB84b6b+2n9kqQAYlSbMJ+IdpRfI/AFYkjYdBEW8zj0WP 43nHVtPiw2+J7EBKjrQYalE7N0IdS95MZ0+9xtciXZLJgX864fV+Qx1m6W0tS685eeVMzQ u25XMmOuQpbj8fusTrt1DFKSOxrM2Z2ScJrk4XtXEnkHb9WJitFN8TxGyLRt2Q== 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 4LnRWm6rMFzSKv; Tue, 19 Jul 2022 18:03:00 +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 26JI30CD077966; Tue, 19 Jul 2022 18:03:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26JI30hA077965; Tue, 19 Jul 2022 18:03:00 GMT (envelope-from git) Date: Tue, 19 Jul 2022 18:03:00 GMT Message-Id: <202207191803.26JI30hA077965@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: 381951ce6dc8 - stable/12 - Adjust agp_find_device() definition in agp.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: 381951ce6dc8ab3b13f39757ecbce41b1fea5e53 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658253781; 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=fdeo6rl1HBh+YVYazgz/ETptdbG6/Z3FyGd+24nZYZQ=; b=IyrWV35oCfpE1JVWvvuvEIvj7+SOntMX57/R3pEFqYplWNOeiRXyS8HTxm1fhSwahAStnv b9ggofltssy6DKpFNGGMh9YF8qWI6d98RVE09j3vWTBg6phFCa7wE7PFFOYan13QMhQzPD aeVmEPK4xBfG+USwyyhgqFO1Qsh3OnzQ3UlhYrFyhnCRsA8gs24htGUV7PrxTzN3YTJfhs EBe2oWPoMVtCXN8TsScKPWQMpdXW8uva0m+lOD8xlYvIFJb+f95HcKO7PmpxNH4+/i0Izt lxXtVlkcMPRUWG0LZEl5cKcMXx1LOJmvr36cf+SFCiD3hNxG9BgIyXtvpuAGSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658253781; a=rsa-sha256; cv=none; b=xl6BeMhZv1u/JX5YK6eG6FW8EPTn9DPL6Jtxf1kFjOsPAE/1lwtT1RUrSygJdBkqzjtNcu GB2osIoJmhPK4fiSY7hSBlnZSd1i8hpGsIvHYUoYhiUMDQAHwWOJxO3P60NwHfDADbo+Yr q0+FaiOjAVt9C8RQSMM8R6hx8vlqrSGg/m7YBAilAG7pAOnpn0E4EBCQv6JaeZ/teszQDn 38vMlFU1LcFMqB2LFfehfvcjVYeu9R76SyTWI3zFVUPzdHHQdeCxcHyhJeY4jfrQsnre+o hmH94wW4DRJBFK88X8s0s77Ujx2yP53j3TVwalicLwSGMhAcy0+sYuozGt41hA== 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=381951ce6dc8ab3b13f39757ecbce41b1fea5e53 commit 381951ce6dc8ab3b13f39757ecbce41b1fea5e53 Author: Dimitry Andric AuthorDate: 2022-07-16 14:46:21 +0000 Commit: Dimitry Andric CommitDate: 2022-07-19 18:02:00 +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 011c89afeb37..ca24662d4a0d 100644 --- a/sys/dev/agp/agp.c +++ b/sys/dev/agp/agp.c @@ -890,7 +890,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;