From nobody Thu Jul 21 19:06:06 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 4Lphqg0CBQz4XJl2; Thu, 21 Jul 2022 19:06:07 +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 4Lphqf6nrFz3Vjh; Thu, 21 Jul 2022 19:06:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658430366; 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=rAB9MYUEk53w300mfbtMvx589ZPLyUv51T8pKqaMhnM=; b=dh07kQIyn3BediKwdwZynhjv6gkNAl/OvlTVrQjqoFMkuYh15VRJgIYyTDKynrCOEl0Wxm Ux0bIwDgfyBfJmAYDtrInV4PDykpGrE1B2bVcvO6eATMd4rvE2TvcYD8iePrKCaw4tuP9W 7Eh95PRkQwW126aJr/XdSAjDq2UY0I0DuiYhRsPV9/XvRxSidKc9XUCrXSbKYn/z1H2IoC thEV8JLfzUvUIu4d8j9iEGOIIY4ytzjcM4cYU4guWQr1E/kshSP4LrdQzDmMqS0pyzUc7e /2lNM+TePwD2ieOBNjNxThpnsT0xd+0Dhfy5wfAj+Agd2a0HJHB+D0VxUz8oZA== 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 4Lphqf5sCwzYMY; Thu, 21 Jul 2022 19:06:06 +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 26LJ66Ws038088; Thu, 21 Jul 2022 19:06:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26LJ66Iw038087; Thu, 21 Jul 2022 19:06:06 GMT (envelope-from git) Date: Thu, 21 Jul 2022 19:06:06 GMT Message-Id: <202207211906.26LJ66Iw038087@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: 555d2c9394fa - main - Adjust pmc_thread_descriptor_pool_drain() 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/main X-Git-Reftype: branch X-Git-Commit: 555d2c9394fa673241fd26a95152adfb9d20952e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658430366; 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=rAB9MYUEk53w300mfbtMvx589ZPLyUv51T8pKqaMhnM=; b=cw8S1b4IDQcyD+LDxf8ZHVwd0gtm79gIRns1TRnu72dDlpG0S+AlNmdSXIJST35QApw6Ve hltPk3UNm5KftM2kSqFUyA4YJiqerHmNsedHRxvndNS/pNE+yJqqq3JgEvT2hjEEXo5iVp oIxtZKR9qcGcPQ0vQp0KLA3cHRgkYML3TFlH+b+hPD15HweKjCCNG9KInuHWsjeGBqyaGJ Lf7o5ifYtWeB/1XZMWPlcS9SdUoE6atievQe4iAo+bpMJ3t/l4kYbbd6mvMrr33T23IfWD wBInANOwF57np3C0R/UhSejD522KTkUMPgAm/238M3sir+RJp8yq1FXmEJuXOg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658430366; a=rsa-sha256; cv=none; b=g1/7n3XGlarpz8FcEH7PzrV/EzByIetWP5JnQQWHGW5A/gYYv5fDyWI8QxNTbvO4aufhC6 fr9/QbF9zSze/1oZGUrJ65bZQbcUHsgqr5qZgu3cSmVWNTWJGN0ESw+zIA/XP+zsGw0+/P RMpedWzaT/w7b3I7T5DTyRMaqogRa9PSnFiQmuMNNh0oyxHwjmBW9ciVSF/Q2sTXhQct/B rNSG+m6Wm56L2Kb+0ESiWYN7cMKc8XiD6oALJw6+VC0w4xRzCgs6JrgHvuGBWKFHq04ens G++fv5OlQt/ibdPsK3iOjnh0cPtFKfjINNkSM1k70ulfSMy6tBOmbVzpGDubcw== 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=555d2c9394fa673241fd26a95152adfb9d20952e commit 555d2c9394fa673241fd26a95152adfb9d20952e Author: Dimitry Andric AuthorDate: 2022-07-21 18:31:56 +0000 Commit: Dimitry Andric CommitDate: 2022-07-21 19:05:50 +0000 Adjust pmc_thread_descriptor_pool_drain() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/dev/hwpmc/hwpmc_mod.c:2462:33: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] pmc_thread_descriptor_pool_drain() ^ void This is because pmc_thread_descriptor_pool_drain() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days --- sys/dev/hwpmc/hwpmc_mod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c index 1a7f2869d9b9..308b0bdff1bb 100644 --- a/sys/dev/hwpmc/hwpmc_mod.c +++ b/sys/dev/hwpmc/hwpmc_mod.c @@ -2459,7 +2459,7 @@ pmc_thread_descriptor_pool_free_task(void *arg __unused, int pending __unused) * Drain the thread free pool, freeing all allocations. */ static void -pmc_thread_descriptor_pool_drain() +pmc_thread_descriptor_pool_drain(void) { struct pmc_thread *pt, *next;