From nobody Sun Jul 24 11:01:41 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 4LrKxK4zwVz4XX2D; Sun, 24 Jul 2022 11:01:41 +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 4LrKxK4Crrz3ZDS; Sun, 24 Jul 2022 11:01:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660501; 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=Ae38FOokObCu2LmgYM1WJDkRCwuEWvULO3vVjwjhGno=; b=iPx1zn5J+kqnJA4WKw0l09SoiledfIb5NSCHQCkzluGDeIvRscauaqlNAgCsMDbbE9srvX y3tyuwMwHLGUHPASzht1PJQQ6Qk2ybsIag2Awyg+DiIZJTdJ2YpiBRpgMjF4IHBOQx0+Wc ji+FKdxXxjFxPM3XDjE7x/A21GCPzzNfzKj9HhYWmjIRhQIWZwBRgk8giwYTrt75JWq7uR WkLeioL17NcIPoCgNZE+TOlnT+EY750BLJNF/NO0hLWH60UrUZ+8UifoIZXAslJZYWHvbG /wX7k1jE5Xoacyv4D9ZIZSHGhsPM3b1JSCx9FOibc2urleXXXkMErTZeVcoezw== 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 4LrKxK3HZFzGcD; Sun, 24 Jul 2022 11:01:41 +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 26OB1fqe040620; Sun, 24 Jul 2022 11:01:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OB1fUg040619; Sun, 24 Jul 2022 11:01:41 GMT (envelope-from git) Date: Sun, 24 Jul 2022 11:01:41 GMT Message-Id: <202207241101.26OB1fUg040619@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: 8d98688e8b59 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 8d98688e8b5953f9d568669c53893fe02166292f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660501; 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=Ae38FOokObCu2LmgYM1WJDkRCwuEWvULO3vVjwjhGno=; b=JVzknQTZeqNJEzCn61zD0+oMvvfbS843eOYJsebvgeBgxN4zsINH8j5eLu3t33F8moeoYn Brg84N3M9/KkAvJ1zWa5IkUH7ZuniNootDcvccaVHyWOWSUCK3ogMIWhEbXXFZcgjMa3O1 WR5wDUl+tF/3nBQ2S3KV1jjtrNQxo32bilGHF89IDz698fjq1i7IdT+CQXIi+pVdLHV03k F24OX1+wWjeRGVDx8Y6kt4ZgZCvSxV61WcyE0iXbonH6nlfJrTlAPeCKVZFG9bjoluDzG6 isexinVQ9bNmTHssN4vjnK9MT/ZY04COlHHYAqR18hDviI1mkq61M6A59OLOOA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658660501; a=rsa-sha256; cv=none; b=sQIkWMfxBzKRbBTnVBiqaOsuL/mBOU5BGG7rwKLU9Enamn6CyBLljnJqa7YK2YCydC48nd pe8eljaW/JAQ8JAGb2u6N2PXgwAmAKDYEYjWOdtWTQOqPkbTWJAApJ9Y42rRuZSbcniyiU raSqzctMo9Zm616ZHNP49Jjd94+lEnpAUCDBH+WF8y0lmVXVnJb0WPuA7FxY5srHNrhBQy 0EGrl2neFal9SV3RZ0Oh/0WDeeQ0wFiZlNeMpMtbMrs70y24VKQtYM1O/zLkvgA5osrYe2 Kn7z+xHyM+xl70+eMso3/ygczUR8qbeK5Mt15gT48ei4yGpbj3kt2cApyFMrig== 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=8d98688e8b5953f9d568669c53893fe02166292f commit 8d98688e8b5953f9d568669c53893fe02166292f Author: Dimitry Andric AuthorDate: 2022-07-21 18:20:56 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 11:00:07 +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 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;