From nobody Sun Jul 24 11:02:23 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 4LrKy74XH0z4XXKj; Sun, 24 Jul 2022 11:02:23 +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 4LrKy71l2hz3dRh; Sun, 24 Jul 2022 11:02:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660543; 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=+j2vCpA4iFLsEHkVwOn+cufF8mpggj3akgzHosXiOMI=; b=Gm8b7mVSPB82dxtMJD//pxJN8CrTDinjMueCgtL1CbABdVJHGxPh37sfKmG6ohR+gla1Xj u0HdRRO25wRXBEjPn492yREGPxqhYME0N8GAZ8iqUDLPX1OTOQahpkcvINCjbGAdAAt1+f ytUxmmU4QKJ226ML4dibDp8pla1dT3+82pby3JmRfuzPD6wCcunJGIr76OOyvc6mwFjjeE Go4cWxtUEiIYmY3c+7/7z366vrxBnG6ILOi0nhox080P9vkYiiX/Mrg66jn6B484bcxhRR 9U09oQx9oLhHKwVcDE9F5Qy8nNTc9S0U91TkMy0WxfGJ4qgEdgIneYKL/Qfk+w== 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 4LrKy70rbzzGJJ; Sun, 24 Jul 2022 11:02:23 +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 26OB2N7l041464; Sun, 24 Jul 2022 11:02:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OB2N5h041463; Sun, 24 Jul 2022 11:02:23 GMT (envelope-from git) Date: Sun, 24 Jul 2022 11:02:23 GMT Message-Id: <202207241102.26OB2N5h041463@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: 89029f10c35c - stable/12 - Adjust pcm_md_initialize() definition 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/12 X-Git-Reftype: branch X-Git-Commit: 89029f10c35ccf9a35a009323d2bb237c4070b78 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660543; 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=+j2vCpA4iFLsEHkVwOn+cufF8mpggj3akgzHosXiOMI=; b=DzZRjjK810J8Tfv4C1ACUrxqTmBpD9DD0ZX5UFJHS8K8zhgda8O5soKHLk8XmvvueBWDx9 ad3B9WlsMzGS0NxnPhKjGMJIsSZnG/9EmTvxjdbnNI92KDd3j6bFlKFb/PwhKJeleMk2m5 s7vLiaa41XSiT2Qat/TjZ1MNf0HzoR7C/vXwGrJLwZHfXY5eMfiM7l5FrboWIaklYIS/QZ xY+n2EGvS8zLWZmO4bdEeKyLylXHr4LWYeIQFMvEGju+tPQEwmlgVd+H+6h0mWarNVQcxG yTwdhZ10dZlCknF+EfqDwPF2lGX+me10TwX43Jq+gfOMLveIKysB10b+Nc/5mA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658660543; a=rsa-sha256; cv=none; b=J8RAQJ/DWgfjPfCOM8iLzT6Ah4trO2kbAwOWCzHQ8OYcqStpQ9QM/9Ooz/iUytrmlAt9Ob C9dP2uvHLXHHtRZFNdzTZeLYBRevPSmnXCmu4zn1iEThyLzxuryOWwQjpCRh56lHv6fOlu TTxv56P79ZS8g+taUcoPQicPXUQgalHjcR7B35FGZFwl6tKoTB3noAnCbth6yfMJ/sDAJr fK6Lpz1NupeHdFmbcLcsDo3Qt6G8bITaofmtztsUXuF0i7Eb9N/AHXYSJZy8tz1CroREyr OrTft8qJTwC0JBOIUTT3Q5Yd7wB2ntZTYoBrwGsmzvIdPN8FRKydIGwYWzGWuA== 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=89029f10c35ccf9a35a009323d2bb237c4070b78 commit 89029f10c35ccf9a35a009323d2bb237c4070b78 Author: Dimitry Andric AuthorDate: 2022-07-21 18:23:19 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 11:01:20 +0000 Adjust pcm_md_initialize() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/dev/hwpmc/hwpmc_x86.c:245:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] pcm_md_initialize() ^ void This is because pcm_md_initialize() 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 dc0cde7a21a6aab0a5e876d8f890764e32718932) --- sys/dev/hwpmc/hwpmc_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/hwpmc/hwpmc_x86.c b/sys/dev/hwpmc/hwpmc_x86.c index 2b2596328ec0..eb6105e7136e 100644 --- a/sys/dev/hwpmc/hwpmc_x86.c +++ b/sys/dev/hwpmc/hwpmc_x86.c @@ -242,7 +242,7 @@ pmc_save_kernel_callchain(uintptr_t *cc, int nframes, struct trapframe *tf) */ struct pmc_mdep * -pmc_md_initialize() +pmc_md_initialize(void) { int i; struct pmc_mdep *md;