From nobody Sun Aug 21 11:29:08 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 4M9YD42yCdz4ZYmW; Sun, 21 Aug 2022 11:29:08 +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 4M9YD42HBZz3x8T; Sun, 21 Aug 2022 11:29:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081348; 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=TSlC++A6paF3+qfxWicPGtNhVAueFkDQncfOYx7pfho=; b=Dn2UbYYT6E3ddFwhGf2+jxAaVPrXEnQuP3H79G0t98KLxphwaz3nF6Y24KRGB6U+HrlfXN Ncb44LNbXBls/QQccfiIw91N/1iVXFVdLkijWA2veA6TkLmdG8NC0rIRKFEyq8PovDCJJb dDsl0SdeU+rrZokNluzjEVNKfgdWWKJONI8yb7ITQSK+Mtv2nxR3azkCo9QntK6SzK5Get u0Ii6v4yWqGVvGfBXPm0EHSpLK0DnCj3rUwzJbsCl8pOouK1IOBbvLAJlbti5eMSQDEvjJ fLjxRY30Vn/Ng3YVLr8RXoGvumlZNmJuim0200Unm8vcAdjqv9nRKQZ3XHUTDg== 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 4M9YD41Nlrz1893; Sun, 21 Aug 2022 11:29:08 +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 27LBT8jI004390; Sun, 21 Aug 2022 11:29:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBT8hH004389; Sun, 21 Aug 2022 11:29:08 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:08 GMT Message-Id: <202208211129.27LBT8hH004389@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: dfab304ceeb5 - stable/13 - Adjust function definition in arm's mv_common.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: dfab304ceeb53b6dac7e1bcfe1ed165aebb19fe5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081348; 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=TSlC++A6paF3+qfxWicPGtNhVAueFkDQncfOYx7pfho=; b=qee7gH68VWw93cvYkR0/fLpqKPZV2z9EP3JCilZVIMeZMZhtBZF/xZ20wpcB6kJZ9u/7NB oNPoqBOYHo3p1WVrbYZ0W/hGiw2WlGpOr18ssLyBSprwHsFfKbd9isCqs/9IBh7YFezzJ0 XoPRuiDDJvimGPX6XEgClxTArAV0XheC32dWY6LLI+BeeIdLCh/IgNTzV4oI5fNpchNeuU HvTnKf/nXFceY4APDoXXR0j3dgxVkuFLh8+e6y/c5TG6VYmNMYqDzACzj4LCyrH8mTg9EY WjntlIDwaPY4lhggsy00iscjvtqz5lnyWjBzQDseg5GsKVPUbxW82PgS8bwfkg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081348; a=rsa-sha256; cv=none; b=rnExd/ZaTzryEYU4ZwPJCWM79SGiH9JAug2FOcyKpCralbZ+uA/DX6NUBpmVeONSYsURix baoixIhlMwd0+RL/b7dXiulqrGQTgxnDYf87Vfjp6gYH4GXF8twRBI6E+qit03afQ9XE5+ eV/n91rupuZnIrj5rxSMTKld4MZ5GtzF7p+GRdQb6y8GDgvP9ZrxKTJLeANxoZZx37x9ZW HpWlN0epGV3HJxBzn/cDpJ4HGaIoCNb2UZwigKOafYWmjl/y8yJOHsZJLPAwBJdMDtjwtv GLGTkII7fymVqmMY6YAkZUwNstZ3pgGnC0mjhtdIoMohvQ2E6otOW3WmZsTXpw== 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=dfab304ceeb53b6dac7e1bcfe1ed165aebb19fe5 commit dfab304ceeb53b6dac7e1bcfe1ed165aebb19fe5 Author: Dimitry Andric AuthorDate: 2022-08-15 18:02:13 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:13:31 +0000 Adjust function definition in arm's mv_common.c to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/arm/mv/mv_common.c:414:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] mv_check_soc_family() ^ void This is because mv_check_soc_family() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days (cherry picked from commit 402dbdd98acc7fa94d1d4cd01903e987d2409336) --- sys/arm/mv/mv_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/mv/mv_common.c b/sys/arm/mv/mv_common.c index 9d2bb17cf309..6aa63cc5a90e 100644 --- a/sys/arm/mv/mv_common.c +++ b/sys/arm/mv/mv_common.c @@ -411,7 +411,7 @@ static int mv_win_cesa_attr_armadaxp(int eng_sel) } enum soc_family -mv_check_soc_family() +mv_check_soc_family(void) { uint32_t dev, rev;