From nobody Fri Jul 29 18:47:17 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 4Lvc2G1V9rz4Y1Wq; Fri, 29 Jul 2022 18:47: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 4Lvc2F1wmNz3nlf; Fri, 29 Jul 2022 18:47:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120437; 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=06ONIAFtHVcCV1/db9JawXrYaPhis6FXGDWQ+BiT9ps=; b=GIEvx+p8AYQWmpUqfgoUgPXWkWETNTRRy2MpALXfeNNq82mXp32wMKcJUaVH4L/NZwi4Y0 wT4S2YQMUuSi1yEYIJe+jynaxkt8/WIL/WwNj8/E2fgaqBWmAQrxitm6dmwuFdFXIzxAPO 04B5hCJeYJsVzWA1LCKBuQ1rdqWwcMbGGvQ3b0kcA7IZLkbHkqpFS7q8LOpZrVwud0Vsiz h/lxw6tIa6eQNEtroPrwLWkPfxkF+nfXhcoyomjpcm6KHbGjVKQlMCtYxUvi5MtVDXy8Rq mjod7OUxkENKTaDTBezQggj0J+LiSA5K+2uvutlTKY3/w4FM4vev0mYSrb4xVA== 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 4Lvc2F11P1zm9x; Fri, 29 Jul 2022 18:47: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 26TIlHp5023890; Fri, 29 Jul 2022 18:47:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlHpK023889; Fri, 29 Jul 2022 18:47:17 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:17 GMT Message-Id: <202207291847.26TIlHpK023889@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: 54b2a65d4733 - stable/13 - Adjust function definitions in kern_dtrace.c to avoid clang 15 warnings 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: 54b2a65d47337265db22695c685dbf7d0a4e087a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120437; 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=06ONIAFtHVcCV1/db9JawXrYaPhis6FXGDWQ+BiT9ps=; b=DMvL0iow6cvIic0YOmxcHQK8rZ0iHq6LcGyu5shWgRm86FCr6p4S8L/YqMdhYeTUStjPhe 3GvU+Bo+bgKhXx+VY6Pvs5bEcTXaS97ZKM8HZqDeN9HnCTkU3AQBzNh5UT6H556hGAEBVn PkU7mKuaGxcIp+42eK7C17oowA8b0FlfP9Z322RQZQvvSkg+mx9rr91W336rg9TC/VpgC0 yQfnriLmW3AECDStLBmznR4zlJMSKvXp4F8hGM/o7OgjBgQbcox9KhMH9R0ZmivLUwPL9y qYJiH0vfw45cZya1CFjOuekz32lS+ErUyDDuONr4lS+kM1Ma57qA6yFQUt1Tlg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120437; a=rsa-sha256; cv=none; b=V/3Q9qhm+/TU8IKZCYOEGLCODW6DeE6QGY/w4zCJfjONpy1CY/OSi7iRJthPKrEOWZ0kU2 URHHHzipEN78n1Dh8JQXhnrAbe8Lphq2dn0ODnMTYZo56nxAEfYhx/Z4IPPBMAwhEbSJQN n99G9TdjJZ/fEniDQS9hBrDZwCS7jSG466adS0+HK1h0XWOQjZI4Qf8s7fOKimCdYmkUT8 /dy8zkAlTvYlda/G/4dIce0xp2oO3FaEgBDV7qNDzczS3tOATJMg4Y2wGIkh2hbzY4VUgw BQ7Q6WQK+4kR1O3QxDu66v38shc3IQoSsZpwGFQA8pFVfVTYqXSS5dLiJwoXgA== 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=54b2a65d47337265db22695c685dbf7d0a4e087a commit 54b2a65d47337265db22695c685dbf7d0a4e087a Author: Dimitry Andric AuthorDate: 2022-07-26 14:11:05 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:28:08 +0000 Adjust function definitions in kern_dtrace.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/kern/kern_dtrace.c:64:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] kdtrace_proc_size() ^ void sys/kern/kern_dtrace.c:87:20: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] kdtrace_thread_size() ^ void This is because kdtrace_proc_size() and kdtrace_thread_size() 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 db8ea61ae261cc060f423dea050bf943bcad6793) --- sys/kern/kern_dtrace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_dtrace.c b/sys/kern/kern_dtrace.c index f1d291caadac..a57ca9d93568 100644 --- a/sys/kern/kern_dtrace.c +++ b/sys/kern/kern_dtrace.c @@ -61,7 +61,7 @@ systrace_probe_func_t systrace_probe_func; /* Return the DTrace process data size compiled in the kernel hooks. */ size_t -kdtrace_proc_size() +kdtrace_proc_size(void) { return (KDTRACE_PROC_SIZE); @@ -84,7 +84,7 @@ kdtrace_proc_dtor(struct proc *p) /* Return the DTrace thread data size compiled in the kernel hooks. */ size_t -kdtrace_thread_size() +kdtrace_thread_size(void) { return (KDTRACE_THREAD_SIZE);