From nobody Sun Jul 24 11:01:49 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 4LrKxT55hsz4XXHX; Sun, 24 Jul 2022 11:01:49 +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 4LrKxT4RcNz3ZmH; Sun, 24 Jul 2022 11:01:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660509; 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=EMJx9CyNVOCNTNgYpahyEtGgc+Ns/vzCmP7QzV0Jdo0=; b=UA9E3QA/N9upUIMT5pXQiI9wFc22R60cwxSKxV/3wA4KA1csMqWHSJLLHlPYDZd2+veCsd ecu6WwjCB1Ou4Kq97rVX5T8t+jClvlkf7r4PwRSeyzqJ70Y5uWxCn4GVxsVMP1jzmRAM9j wwmQMixQfXV890xwsKim30QxaJtV8B3hxTOlRCfqwPM5eyps13b08+p6emRMvzj3x/M23A EIkuGqQ1qZgw6BB1u3CMG4leJ/D+Of1xlLuLirSOi5JCLMxS0SKSNvVbpcDKPU+fIza/Ng YHupzYSdqIksQksXKyRSyoJmA4EVcvk+//xAIMgOZbFjJTWNCNs8vaLG/W3Kjg== 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 4LrKxT3MBJzGH8; Sun, 24 Jul 2022 11:01:49 +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 26OB1nTJ040800; Sun, 24 Jul 2022 11:01:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OB1nfm040799; Sun, 24 Jul 2022 11:01:49 GMT (envelope-from git) Date: Sun, 24 Jul 2022 11:01:49 GMT Message-Id: <202207241101.26OB1nfm040799@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: 249cb0b4c390 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 249cb0b4c390eb06dce649329de77c9d71050fce Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660509; 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=EMJx9CyNVOCNTNgYpahyEtGgc+Ns/vzCmP7QzV0Jdo0=; b=iB3x0nXY8mVkqQNUmVg0HuHIuH8nkqHkvM0Ccd6ecHLXSS7YAslQUKAP+nOm7vtpf23La1 t7TrHofSsrwTjgsYcC+1lg+QmOD53eNyoTYf5ChmGtbKzuL1YaqGYYEeFau9YJ6/31V1BX uWWbAVJiPI5g1FKzuzaFUtXSuihut15aTAaqYHoeOnmTyeLQzzz9OlDhePGmZi+R1PIHFd A7jyrgeLarfKkg02ybr5GazZ7QhhJ6S4o7lfyfmQIFdce+EzE7Gu9pJmLYLy4giobwdH2S QZsVfLGnsStjKqNFT8DL9kMaiGH9DqmF7Nwyf6+nytqJvEW0fywxHMLw+tjOHQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658660509; a=rsa-sha256; cv=none; b=uF4S7P24YC90N1JShPAkUvK6ap52xD6OdiQlCOS/S7ppOA6m90a+sc3TGh7sker7dwNlod VJEaioAv13JVeNnusaCFmjKYPaMYVMa/PwWvLtK0zJeA2lQvQo207vj0Jx/PTUcSSUlGVK O6TmzbIRU2syUEHy3JfMfYZyWWz32s1nMABgwGnoRvKz9ANW7TzNzwIcKgTiCFQ/nQulIo EQX4HP6up9TfDOuSJPSK+7NCukrDAMUE2FQR1nLKML+46dbagY6iGdtDH3Xtzq2+/sHvr0 zaP2w3IzqFq4ErzhWte9qrPyZsgWStO0MsMX7K3wMLvx5jSkS0cOt4lyX8FjVg== 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=249cb0b4c390eb06dce649329de77c9d71050fce commit 249cb0b4c390eb06dce649329de77c9d71050fce Author: Dimitry Andric AuthorDate: 2022-07-21 18:31:56 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 11:00:08 +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 (cherry picked from commit 555d2c9394fa673241fd26a95152adfb9d20952e) --- 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 47d0add3a383..7434fbf15d0d 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;