From nobody Sun Jul 24 11:01:47 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 4LrKxR5Y5kz4XWwR; Sun, 24 Jul 2022 11:01:47 +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 4LrKxR2C7fz3ZgY; Sun, 24 Jul 2022 11:01:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660507; 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=FBNhxCcbP+OgBP9g4BmiRJhWJsl3Mqg4hFfoanpecA0=; b=VjeCfuAmwHDI/Nl/SSravw57f801WBVXl5oThY7burIvJ6qB/0pQlmNiuUbakAgdNcAs+/ +KgCRm1zco8GHlOif2ZhLeAxOTDdTIVvJ2bJBtOw+FQgdMtRwrMN4xxJtlN/vdFlJ5B+Fm 6FHag/bUm72ShgNHC8JbZ1s662UnPkFl3AF/x7NGtExnrdlbVvHNmmD4yFAcWvcmozfRzR 4aCIiqaJqEnZxdz7c04Fc1fsZMzmNXmH1ZCUUmH2TkVjCFCgbcC+juB678eGahfamyrDRQ 4+CrRKPb0bm39hsTUB0VhgAG1rphlpjWGUCIb1eFBZ9e21yrJ78ZlbJ9y/vkRg== 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 4LrKxR1JRqzGcF; Sun, 24 Jul 2022 11:01:47 +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 26OB1lbf040746; Sun, 24 Jul 2022 11:01:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OB1lEF040745; Sun, 24 Jul 2022 11:01:47 GMT (envelope-from git) Date: Sun, 24 Jul 2022 11:01:47 GMT Message-Id: <202207241101.26OB1lEF040745@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: ad86a79043a0 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: ad86a79043a07c33de594c5fd28ce03ccef94055 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660507; 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=FBNhxCcbP+OgBP9g4BmiRJhWJsl3Mqg4hFfoanpecA0=; b=Ty1AniVG7kgdvy21U2m88x+SfrnCJO4Shk1IVn5SUTf8oFK2OcPizSkVv9a5IN/jvIPNvh eEOkClytt+PROVUjyh2NBYfKNr7LpyRR7HK/t0gGtc3OVkzRTQjeNPghcIUUycePb3tAy4 2U6dI4D4J2wQAisOvIi54looKnhWq2NlV9p65XVkrCoLacxRGdRewIqA3n748AQENKTkjR V6kpMbQq+BLoFxU6H/iO7lhxN3Fz+F6Wf5clH0c2ooOsLBLYlXAE3M9spmU6dFY0+UdOdL JYPktBlzKfHVSSzyz/wW3xyC7lhlV1Mhl4aE62axakKq2O2dMgiDf4IPvQ714Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658660507; a=rsa-sha256; cv=none; b=Dy7nAJ92gW7jBxltzzjV7N6ZhtBQrD5WA9MFIhFBN8aW3W6Io7Bl9qdBfhLsqtwjDeQN3b o/U3BC82UgQo1woMIpn3uwr/tBUGlov+3MMFIidUpm2Z4SfGB/dUbeOyP2rqWQ9D568WIY jakoYG5ZbeXOBlvdePyHShSo/zfkZalpla963qQanCm4siPvaCeh+01rMqiS/tA5fGnp1g wyMUYa5AW4Z8vJacb+2QAjCFfZzMDOEebPvx/0U6mE7OKnim2Gpv09IP3gdRmppwXfrGuL TFpipJ0+QRV+hVz8w1fZvZ1WAo0zZn1ux2+fTz+arB4qD1LS2owLd6TyZ/Icnw== 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=ad86a79043a07c33de594c5fd28ce03ccef94055 commit ad86a79043a07c33de594c5fd28ce03ccef94055 Author: Dimitry Andric AuthorDate: 2022-07-21 18:23:19 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 11:00:08 +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 db6ed6fb1145..935ffefcf980 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;