From nobody Sun Aug 21 11:29:39 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 4M9YDg70nqz4ZZ1y; Sun, 21 Aug 2022 11:29:39 +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 4M9YDg6RNKz40YK; Sun, 21 Aug 2022 11:29:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081379; 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=ZN/npnYhLiIXk3f6wF1hNkcXilFo8bcC6rbZd6RUzGE=; b=bhGYdfowP20G/mvvBWT7t1NsD5IYbFaPysibdhabZmfdhKlbmUePWGRfxCJQkypWea5Esc 654IrIGHfIlxYkFklDiIJ34eK75CbKS6IVpAE5PhquOfx1CHWfCOyqA6WJp04tN3NPak40 w8n0IQV2KETPQStg/xYk8y90g1oDFfVxcWwn/V0FFs6b75E9Ero9pm9AT6v4fOtHhbNzvu 8JeC8cNR8TVqXEOrNWdrVHAp2FDP9xR1hWW4lcM5ebhH8UYSQGlSru0Butw5ZiPsLpaaxM wpzTTMBRFRG4gfbq2+mDpnflWhUiIFvXIX6MQyxF/fNIaSethD0LuOAq266nuQ== 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 4M9YDg5VwHz17s3; Sun, 21 Aug 2022 11:29:39 +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 27LBTdgq005197; Sun, 21 Aug 2022 11:29:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBTd26005196; Sun, 21 Aug 2022 11:29:39 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:39 GMT Message-Id: <202208211129.27LBTd26005196@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: a1d2106afbf6 - stable/12 - Adjust function definition in arm's mv_common.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: a1d2106afbf6128420a43e5756a240f466f92b5e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081379; 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=ZN/npnYhLiIXk3f6wF1hNkcXilFo8bcC6rbZd6RUzGE=; b=WBCsUbqiGEdjVNlcU1+xWbVSeMCL8b/vTBxqAzS+gu/8DtvqJYBZ4ioGTw1j/xk1ntP8RF hgzgk+x3+iHLXaY/RPYeMDfLw8LiKVtauwAcyeOVs8CgAaeWtF5A9pNvgGug8gp9RAh/5B BtUM1x7EfD8zUtPwGXA5YJlhW5kcl64OaBPAbWEqg/aP6zUFE5p4HZsCIcI2AJ1L30grH4 vY4gwnE3FEiCyW6F2h5ArMKb3B9VpzO4PX7ReZXq1NEv1B7chydcbL2Z/HKUUqeJDyXwZB rCFyc5fjhGwyPb4uH9oZ/nYVafScR8KEdvMmsMKQRsdWasnFoDQYsm2+++96xw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081379; a=rsa-sha256; cv=none; b=mRsKo4a5Q5Pklc2AqAuaERaF1dKbBFYeOdqJwpmKvTt7Ie4kOGrXhQCASpnanMBHqgaVWZ 5WmrRjzCiUyG9ZO1Vzl06sEzT2BLL/TQ8vdiR6q7XTFJpnlpIaDMiqpLCUBmcD2Tdz8hUO e28Clpu1mKSKjZPpNpttZZex8UGySN44L7Cig59z1If/XVD5zre89Oj4iyfdA8WyYpv0Ij P1ZZIxWQ3WD0JCbiiIhsYgz23I0oi9nz15O72FXcKtySU3VmxaHzQbqiYtakwFiedqj2vt k5pxdeGV3W4qEx748+d5TBAHGz3UWp+SG9E/VDY9VIYZL3oySqyS5DvuTbHddQ== 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=a1d2106afbf6128420a43e5756a240f466f92b5e commit a1d2106afbf6128420a43e5756a240f466f92b5e Author: Dimitry Andric AuthorDate: 2022-08-15 18:02:13 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:20:41 +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 31d0711ad0a8..2f1d0cd5f7ce 100644 --- a/sys/arm/mv/mv_common.c +++ b/sys/arm/mv/mv_common.c @@ -432,7 +432,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;