From nobody Sun Jul 24 11:02:17 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 4LrKy20dyQz4XXKc; Sun, 24 Jul 2022 11:02:18 +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 4LrKy13r4fz3cf6; Sun, 24 Jul 2022 11:02:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660537; 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=oqHMm8PM9HT+Sr5bXZF8eW4sOftWc57paSKvwtl0JpA=; b=n4lPuGOZU/28vyL0yg/EKUgvVK1wm1M1Pz3c8le2N79WrTHmTtVxW8iOMrL8rjTtmu9zQh ylo74tkLAW/MGQiEEAwkg2Pjw4MPD86o92sTVarek5bQbnpWDYHO/GJK+5CGMSkhEAEagu JUeFFVjmERmE9hWw9Efkocq/eZQusb1kLsFKht1i9XfULumakWsGI2HUdWKpMzuB4UBFkB JqmgyoPrWMMF+G0pNt9+htknFZQeHF2JDEpUWQRmr/WCPcQjIi7GmPS1nhGyddhn+/5WzD ANtKiQF/QGxlHJdUyKfuzYFBONnLcQYK9PVijFBDPI6QaBtjI1gs/cYrBCFAtA== 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 4LrKy12wx9zGC2; Sun, 24 Jul 2022 11:02:17 +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 26OB2Hn9041338; Sun, 24 Jul 2022 11:02:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OB2HQ6041337; Sun, 24 Jul 2022 11:02:17 GMT (envelope-from git) Date: Sun, 24 Jul 2022 11:02:17 GMT Message-Id: <202207241102.26OB2HQ6041337@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: ec8cb457937b - stable/12 - Adjust pcmlog_{initialize,shutdown}() definitions 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: ec8cb457937be63a998106695de5b7e4e0bead56 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660537; 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=oqHMm8PM9HT+Sr5bXZF8eW4sOftWc57paSKvwtl0JpA=; b=MYw8eCX1CoKx5laJblvJv+zwTprsQeAq84CXvYXLUSyhjgrdSs28ZLzHOiaUTsceR0Ggxq +ajsN1Qn+HvW1urxds7xenQA93W0KSb+ri+H5t+MXZsuUEy4N0EdYHJ0TcPuZ1Q7W5Gq/C u5nWTELKOWBOoU6LFFN3I4qH8FeErYasoO0vgihkWehTeYAiAUBz2s8LQ78qx5CeIbASEJ jLbPERnZMDkPQbwni/EDEDGVde4/vvjhaU23APnwOgChkSj7IhdijyK1LSxbUSAaZs0Rrs mByizN/zVK+XBa/CJbMYGIc1V5MebAb/gsPXYoEw4wealUtz5HTMemlBX7/7oQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658660537; a=rsa-sha256; cv=none; b=OrX7Tm8+vPA6EQnzZG2Wg2Hz0y/ab/Hm+KsJaGSOkRj3+Qlv0yHejN1/MYVmk8HaCDgxuE XOBBnbqU4fbWxWBbxIDfmn9AnLzOVbtV3XfIT/jdc9ijMYC9/wJ9nfJsjcg4LLwxlsTi8L ypeRMuIctnXfkaybkmn1VmanmOZfMUtZ9MZ3ESxJYnKMoXviMZp28pN1G2Oieem5WHwiUo x6D32nMKZ5Bc9g/WyQKbhqIDvvbsGjnPpGdAkCk3uk5HVLjEX2UvGDWsmz3VaTdTf2/uK4 Ug9h9a0IokeiwIXpiBeeS6dr4mH41cUIqQNbmV8KWKefPmci3YAG2Xxn6JycNQ== 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=ec8cb457937be63a998106695de5b7e4e0bead56 commit ec8cb457937be63a998106695de5b7e4e0bead56 Author: Dimitry Andric AuthorDate: 2022-07-21 18:20:56 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 11:01:18 +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 (cherry picked from commit ba95c556029357800d18a5bc5abd02a2b7d0c9de) --- 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 e76aa9b710eb..7640ed809fb6 100644 --- a/sys/dev/hwpmc/hwpmc_logging.c +++ b/sys/dev/hwpmc/hwpmc_logging.c @@ -1230,7 +1230,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; @@ -1279,7 +1279,7 @@ pmclog_initialize() */ void -pmclog_shutdown() +pmclog_shutdown(void) { struct pmclog_buffer *plb; int domain;