From nobody Mon Aug 22 09:12:17 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 4MB67j6vQqz4Z5Xj; Mon, 22 Aug 2022 09:12:17 +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 4MB67j6Hfnz3fVK; Mon, 22 Aug 2022 09:12:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661159537; 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=Pr51bm2AGCZvsfEfozhCg2PYo2xWOB/xqdsCOmKTSVA=; b=fmNjEm90sHRfr8NxBBXkjM3sv3ZVUgPf4iTHlyf7NuopBo8yv44HSklzoz70lgWy2LTdDJ oYSy6yOSZFbHcYUY08Z4Ep3aFrqQ9Ruce/3Fb2HJ+DtvO4lhL2/RLp0sduZg83C9I5tq22 HUzQmHEwh7BtsRtmi43vhVcbvS40GTeNRUrX8x97sLETpIlwlBJsBSLMdSk7uSwTXVZFBx zNR/5GwUZyW6jv4b8cEJ/xHC53BnjIwIxxlZxo4fI6jYxGN15PLuYA/azdDeuvQDpa0YX+ WUGjlHLrDDwoKMY2UhoYYFpkTriEe5s7hEOVhM1jxJc6Cx4JZoORrg/KXIF8fA== 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 4MB67j5LBSzkty; Mon, 22 Aug 2022 09:12:17 +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 27M9CHxW046955; Mon, 22 Aug 2022 09:12:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27M9CHad046954; Mon, 22 Aug 2022 09:12:17 GMT (envelope-from git) Date: Mon, 22 Aug 2022 09:12:17 GMT Message-Id: <202208220912.27M9CHad046954@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: 36e31c79cea1 - stable/13 - Adjust function definition in ofw 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: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 36e31c79cea1684198706b9222ebe78346f39b2b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661159537; 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=Pr51bm2AGCZvsfEfozhCg2PYo2xWOB/xqdsCOmKTSVA=; b=ph8DsUqa0jS/h2cSMSJcGlVak/p7m3vc/VXQ9bBR0XIMXnV2hkjleEeqesnrGlEOjrCL6q zCInAn5gxImxJA02im952Ju45X3LaK+KWbcDPGJQCFQaJUKsZzf0po0dKT+QS0uiq9Fhk5 6aNalaJu4axadBx3V7svPJu0xTp7WQ0iLKYaLP3SIJU38vUZ1hhUq6FUctWYTpoDEPqUFt bVXtvLq+KhlsCYQ6eXauO003leqXEIQlkIfWTc1lAxbeEYT9wG4GURG1QGiGS9UKBkwGkw D5jWNU6oHJTsbVe1jx96k9g4sXIF7MhLHvJ4l5GQT68qctovSZ7TXGK8wfVPsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661159537; a=rsa-sha256; cv=none; b=POwadxBNH5XzuWpkbFzdi4RSA7L5U7/Avd7t7FqziPiF9mT+MRweJZeg1UUoTAYBw+hS2g icPtyLb14zXpYeSWxjje2apNLdiHankBNw7daEXumhVNkny6RJjlgt49saZi4mXFgKkiCC BohaFquBAVBXyTUNmvzCBEysF5gyagNQoxjDF7hQwDIqYIULBZYswO37alhZLHfB7gTLC9 6AQtFYC2z20BkoWkWlLxQfplqOfrOLc466NN/Bq01grqg15OpTi7cm5PTGK/EUUNY1hE+C 8Q0eNJFiFkdnFqxtaNkpAnjEqpBuow1iRLBiYaUOZlkbP2eaWg6qeRaiUvgW7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=36e31c79cea1684198706b9222ebe78346f39b2b commit 36e31c79cea1684198706b9222ebe78346f39b2b Author: Andrew Turner AuthorDate: 2022-08-11 12:02:50 +0000 Commit: Andrew Turner CommitDate: 2022-08-22 09:11:29 +0000 Adjust function definition in ofw to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/dev/ofw/openfirm.c:826:9: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] OF_enter() ^ void This is because OF_enter() and OF_exit are declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. Sponsored by: The FreeBSD Foundation (cherry picked from commit ec666d187d0dc44d105a95b5b25b47607236a051) --- sys/dev/ofw/openfirm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ofw/openfirm.c b/sys/dev/ofw/openfirm.c index 56754eede8d0..788a76d17a47 100644 --- a/sys/dev/ofw/openfirm.c +++ b/sys/dev/ofw/openfirm.c @@ -823,7 +823,7 @@ OF_release(void *virt, size_t size) /* Suspend and drop back to the Open Firmware interface. */ void -OF_enter() +OF_enter(void) { if (ofw_def_impl == NULL) @@ -834,7 +834,7 @@ OF_enter() /* Shut down and drop back to the Open Firmware interface. */ void -OF_exit() +OF_exit(void) { if (ofw_def_impl == NULL)