From nobody Thu Jul 21 19:06:04 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 4Lphqc64M4z4XJnJ; Thu, 21 Jul 2022 19:06:04 +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 4Lphqc4lftz3Vbs; Thu, 21 Jul 2022 19:06:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658430364; 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=nNaaNSn99Lu4Sn9UpqRsb1AlIjVlDQC6Q7c+o2ETQvo=; b=ZbZ/eLIc3XiB2VlDPw/cCG8uGB9uRUdOrcS249pbhtNXsvYPtYDqNQZTJkaCXk8vIc5vgu EeRSgywI2+YnIR95i0U8CnJh2mgNSUxapMytYsTx7ymqmePtNH/JYjcbauPq0YZCBc35dF gLc1eQDiwpKvX9Bl6165sTFF+6oUUwhDUt2uxfRfAhIP7CzQGqIl1YhT0yPvFOjpcaDygM 50d59Pfs/JBViVi4VvDtFDoYVpnY+xzL3yQe8bYju/I5L+vhcmm108UF1JujMj2VkcOBuW +W9HbM6CYwVNnUZl5vO7lQEFKCnTs9GRHMA2qqd6ax7cURGxjikMoKCgvyDJPQ== 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 4Lphqc3pjzzYPy; Thu, 21 Jul 2022 19:06:04 +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 26LJ64Ym038040; Thu, 21 Jul 2022 19:06:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26LJ64L5038039; Thu, 21 Jul 2022 19:06:04 GMT (envelope-from git) Date: Thu, 21 Jul 2022 19:06:04 GMT Message-Id: <202207211906.26LJ64L5038039@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: ba95c5560293 - main - Adjust pcmlog_{initialize,shutdown}() definitions 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ba95c556029357800d18a5bc5abd02a2b7d0c9de Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658430364; 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=nNaaNSn99Lu4Sn9UpqRsb1AlIjVlDQC6Q7c+o2ETQvo=; b=ip4HGpXL3gQzC4XDUOJjp4R1f7yt41sYwafPosw6sX+gWQ28tLKvGd2V/B6VtJT4/Xfi2Z yQ71s+2WIasHM3R6Xt64vxJR630xWa/JgLiwPCxT+WhSTlYzQVGp/1i1iFrZK2vRueI1Rl yNlRVDyeARFg/kSGqFaRXS4lyUffI5gzdM4aaFHqedoL03WAhikN5vxxtM13HsqyoVHE3y 2PaeNYUiu8cPZP1MkZrQOTUA7VFX7u1zYby05lqLwBta32qqb5w5xDl4GgB6TObuWfF6xo Ko4Mz+y2F69SC5T2lAbqGskgFAp8jI3h4J2bh9Bb8fV96GZvW0CHPFv+14Es+A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658430364; a=rsa-sha256; cv=none; b=daPFAlsUTLY/v2Bf65Wvs5Lr+sgloHzAqBOL1S2pPYYA62cBBfUVi/aenhpmTUETrMEo75 SD/WEdK0V5hvca36ETyURP25ZqAkAxEuiRKZ2kcencPSBNPjpUy6q4NptodoPN4MA8TqRF 8uVQLOOIxuEU1JlLQShTx4/2SdQsXqt4EAfYbLFRzmkfWezokap2XdJHYpjoszzADcZZJ3 kj2wZI3bcH5bWOqRz89gJDb7czTuQ3bkerTvFLjHefyzY/WFRoiuAoy01YVQwtcMxEViJV GL/4KAJ7SGLFikhGoTe7A+Sx+YhhBCANcUpYdWERR1FfGhwr41aKd2CMN8vXxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=ba95c556029357800d18a5bc5abd02a2b7d0c9de commit ba95c556029357800d18a5bc5abd02a2b7d0c9de Author: Dimitry Andric AuthorDate: 2022-07-21 18:20:56 +0000 Commit: Dimitry Andric CommitDate: 2022-07-21 19:05:50 +0000 Adjust pcmlog_{initialize,shutdown}() definitions to avoid clang 15 warning With clang 15, the following -Werror warnings are produced: sys/dev/hwpmc/hwpmc_logging.c:1228:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] pmclog_initialize() ^ void sys/dev/hwpmc/hwpmc_logging.c:1277:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] pmclog_shutdown() ^ void This is because pcmlog_{initialize,shutdown}() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days --- sys/dev/hwpmc/hwpmc_logging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/hwpmc/hwpmc_logging.c b/sys/dev/hwpmc/hwpmc_logging.c index 8d9015af78e9..5b6744ab752c 100644 --- a/sys/dev/hwpmc/hwpmc_logging.c +++ b/sys/dev/hwpmc/hwpmc_logging.c @@ -1225,7 +1225,7 @@ pmclog_process_userlog(struct pmc_owner *po, struct pmc_op_writelog *wl) */ void -pmclog_initialize() +pmclog_initialize(void) { struct pmclog_buffer *plb; int domain, ncpus, total; @@ -1274,7 +1274,7 @@ pmclog_initialize() */ void -pmclog_shutdown() +pmclog_shutdown(void) { struct pmclog_buffer *plb; int domain;