From nobody Thu Aug 11 13:51:41 2022 X-Original-To: dev-commits-src-main@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 4M3Ss94DXXz4Z3Hf; Thu, 11 Aug 2022 13:51:41 +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 4M3Ss925CJz3DcP; Thu, 11 Aug 2022 13:51:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660225901; 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=vFyLGoG1le4YMls065hEwVa+nRcrDgwbN1Mh+3+aXv8=; b=kBLjcav/YcxvmvBJ6kD3z1bNL4rJB2+7DHpRJhEiKfMFeSZ7PKKHgYQxXYwjgQmKhzESig uKdjGONxHK/vOMzF2brf8nxeAZcxs2qLqALjd7laxqFXuGYXx7tYeEo3KVbltqd09Bdjbb yW3H48DIZNzCViQcGrgIiryJz/DPj9Z0hIBqv6IDSxsjWD90vtN/dE8ASApP9l/uBe5/EN 8oK4oIwOgkEHgAp8wlbQDlZezkP4f5CUTIrNnUHNaHXUg2Ed9YFfj0GNG0sZsRUckAo/kK +mosLFBzjXr7G3DXnZqov002hV2SkHaxNyb3nQb2atVo/6xFMT47scxPFWZOhg== 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 4M3Ss9113Gzt04; Thu, 11 Aug 2022 13:51:41 +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 27BDpfJM048698; Thu, 11 Aug 2022 13:51:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27BDpfTl048697; Thu, 11 Aug 2022 13:51:41 GMT (envelope-from git) Date: Thu, 11 Aug 2022 13:51:41 GMT Message-Id: <202208111351.27BDpfTl048697@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: ec666d187d0d - main - Adjust function definition in ofw to avoid clang 15 warning List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: ec666d187d0dc44d105a95b5b25b47607236a051 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660225901; 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=vFyLGoG1le4YMls065hEwVa+nRcrDgwbN1Mh+3+aXv8=; b=aJAJCGXBudkrLmI4zNFiNVSzmKrPiu+KlBuOO/2JgQdkyFwnuiugIgjpTrGWUMiug0B9rI nkA0a48I0qhAapBqBiGlxNxVxQLnsBCRsX+TdQNJgB867qu/7miPxwPBBeXfQc0LBarxnH 2N+gr5e24oojsxnMks+a8OGlQUjAbbb8oroUZztfuIQrTn56uZr/ThoswCvzzCHrgVQm6G Oj406Ox3O6WIrMBNMxiqfEP2j0+CcOGJRRcR2GuJM4FM7/LvjAFHkKvOQ/Yt+rCMMAJGjO QsiRfEKPcTJibiZEIAQdonAj4t9OAeWVHGrbHcwFgK6vCGU6wVYu6+GVEsUZ6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660225901; a=rsa-sha256; cv=none; b=p/cD0sLUEZKfWDTumHqWNowkBaCJm07b+nIvXAXFkSrwB1ejvCeiVSTeSLnh+UYAZogyrW NwnoiTkOsI5/E2uUcXZrFslLg7Zp5lQbrb3Z2kxEcsKTLaSwoDq3FdPtCDPkIo38eZZYHr BQ2WubPYSruOJr+J038uSCNuUhuCV5+E5atXESmH7dAeguDulJ6/eXzTu6gSap2VH2jNYb hoJGyBIK0bnTGBLXMrZ/2uy4FRYczcetGN07mvcC8u1dzbD/aBXEymz9fdo5CGLRBSkR6G DF5kGhvPdE813+dbKxhALZ6I5eIr96KEYjrc+eaGSRgnt4V8PY8zNK456mVwOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=ec666d187d0dc44d105a95b5b25b47607236a051 commit ec666d187d0dc44d105a95b5b25b47607236a051 Author: Andrew Turner AuthorDate: 2022-08-11 12:02:50 +0000 Commit: Andrew Turner CommitDate: 2022-08-11 13:30:32 +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 --- 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)