From nobody Sat Jul 16 14:52:44 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 4LlWRc5hQ0z4Wkkd; Sat, 16 Jul 2022 14:52:44 +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 4LlWRc4nWYz3XBn; Sat, 16 Jul 2022 14:52:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657983164; 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=wHyTigcFfXUFgRezoPtufbC9DgsX1PG4q2K3RRF89/4=; b=TGpDYY2zOhDbKBYwG3qPBRdU80VtMg94xKsyTyhUo41nMttDOBK0x/WWkA7UH95UTV6fQN c63u/Taw66hROfeGOHw3R4r51o78Cr/qrMHZts1eax67LMBcOG+6aZbRN2MxWiMNYMOHyy mNPufUL/Zk+FQG9kng03wcOUVVVqXwEW84TvjblocjlafdoJLipXnIiR/4DSsY87U8+eRQ 0a8kzfWjuEWsCoiZP2JeyArvUJ92CLK8CxmHZEKrEMUsg55nz+X3LOWrjxn0A91BfZu5uW UiEqJABpSUEXdCPRsRFWTU1GzWHsREy/nE4/5z8zsdgTm63iPJal2fXT7VbJwQ== 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 4LlWRc3nZxzQNZ; Sat, 16 Jul 2022 14:52:44 +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 26GEqiuk051772; Sat, 16 Jul 2022 14:52:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26GEqiak051771; Sat, 16 Jul 2022 14:52:44 GMT (envelope-from git) Date: Sat, 16 Jul 2022 14:52:44 GMT Message-Id: <202207161452.26GEqiak051771@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: c0817e2aba26 - main - 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/main X-Git-Reftype: branch X-Git-Commit: c0817e2aba26ceb683e9c649c22d7fcd9a921231 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657983164; 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=wHyTigcFfXUFgRezoPtufbC9DgsX1PG4q2K3RRF89/4=; b=ksHALGQeREQwzRb1QF8IYDgUYURYSWD/DlXHALRTGrDpCNBPBUBEyDqZaDJHdKmY+StLX6 V+oOtYu7ud5PJgjio9lZ6//RpGGIqywJPfwL6RrRQxncrpiuHRADjXTWTq2GMk11jo66vV +WOJjliKlZCW7KM1qwWara0WN6MVyLHX2LVGBykJ2+V+DsaSaLYOseOCsS1bJSEqNt6biJ /DWnxC0o1ZdsM8QXXPKjGK7JDjCDR6ogZAKa4ixNPoA3UQg9qn7KkPOwnmpn3LGYo/2W4e raVtDjgW/Nriv2ZKFBm31oB1Meg5pHlm5ZZNel+jdWUvoStCNjs5iyjT1Ej3ww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657983164; a=rsa-sha256; cv=none; b=hCBPKnDKChqsmE1uI1PVCS6KUi1r4vxOv5BmdFNoBEg+6O4zzda/F0g8Hf3vE9y/Q90TxY dc9vvF4XH16IE9XYvzpn7a4BHvXNH2xKOYr3p1u1WGK9eCSW8Q0noyQNMeYv47OIUXE8ah Ywh3xt+Jm4j2RJEa0/jhaFD2ChMNW+2Hngr1PhpjitlJHwP8oBV5inhYCoDG4ak10iFZ4S iwjWtCR+YY/is6T9FPWJPsT9DJvbyU9GR3m/dJjoWI8wBhrT6YA4FHdYZxRxoZUrKiaMRB e6BM8nk7KzU+jsjjwlxuvp/tsRfTaKvKOX7iei1ougnVb1s3oV9QU7U/dlpi2g== 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=c0817e2aba26ceb683e9c649c22d7fcd9a921231 commit c0817e2aba26ceb683e9c649c22d7fcd9a921231 Author: Dimitry Andric AuthorDate: 2022-07-16 14:46:21 +0000 Commit: Dimitry Andric CommitDate: 2022-07-16 14:46:21 +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 --- 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 d61ae11f998f..b973b3d7ce3f 100644 --- a/sys/dev/agp/agp.c +++ b/sys/dev/agp/agp.c @@ -907,7 +907,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;