From nobody Tue Jul 26 18:00:36 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 4Lsl7n0WXHz4XgQt; Tue, 26 Jul 2022 18:00:37 +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 4Lsl7m5gLcz3kCN; Tue, 26 Jul 2022 18:00:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658858436; 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=mdyVuEYbd35KVCwXgKGVq1t3jB4wO6wbFyTq/HrpIpg=; b=OsaK6o3eYrlz+/jlXZGJoIxijqEM47ey5h7x6ycv4lMkW0hUdlglNIltLHwFcR1rGMGZch L0PiUs7Gw2uYS4d6tAVwJK0ktAtsg0iXZAPdtI8I8IUjij8hCXZhQ6JqywY8vA5SBP/CIw V45pBzRDsn/cT7B+Diq+/uQhdggbzEBDZ5IH6evCYwlVjHYdDFea/PM7uq1fHA2z2zi0HE Q52GMHeVbnokf/pQAV9hDQqD9O0veGNkDW06c0/G0e5prs4cK/GkF6b9didp9B8WgR9t3k hfJOGf02ikpoYHXPkptWbgET3e2KRswrCeuN1oqE+aOg1vAQSpiUSDfEuhrtjQ== 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 4Lsl7m4mRlzmJR; Tue, 26 Jul 2022 18:00:36 +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 26QI0aLY005948; Tue, 26 Jul 2022 18:00:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QI0aV8005947; Tue, 26 Jul 2022 18:00:36 GMT (envelope-from git) Date: Tue, 26 Jul 2022 18:00:36 GMT Message-Id: <202207261800.26QI0aV8005947@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: db8ea61ae261 - main - 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/main X-Git-Reftype: branch X-Git-Commit: db8ea61ae261cc060f423dea050bf943bcad6793 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658858436; 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=mdyVuEYbd35KVCwXgKGVq1t3jB4wO6wbFyTq/HrpIpg=; b=TE+KM9v5b+BflT62y/Ur6t6Hq0lOPPHFx/q5Ti7Bu9vWh08rF+QLS+bAQuyfjf7mlQlgiF rAyrcWV/ihyacblsbPnawh7F/QU2oxNaqAYR1ZuD36BXKCQH0H+ZFVVo8p3nwwDvb5t17M CY8LbrLKRlu3V4L/s7bd/TNXyYnfxZj6WZVm+JlTrHKor0yjSWqJPtoh2G2L6ZCAPBX+CL ZwD5oLgeaKDX8miex/9+5cvp8nDF873PNxBzY1k5LAsDJ1lNgXAgm3q9z5Camm39qQDtm2 KVf2RTfHblevZpJMOq3O7rzLXg/9viPA6MVPzcT1dR4aexq5Y9x5QfOeSha+mw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658858436; a=rsa-sha256; cv=none; b=vWWK1LQGCmnYJovtIZfiapMEJAqIaiUUEzRloV83QlOJP8pS3H63r0r1JqwHFVb/7V3DS8 n67X7t7sTHIUOnERAUoQs3VWFmi+QNsImc0FtnNaxSgGlxfybs4Hk4E20zKoOg1MR/bg3n 7pwMIy5knNH8w2dE3YfbsI/kM0WEvbW+7KGEz9ABAwZHy75VsHpEsb1QLTF7b08SeVm7b0 eoaKPZM0sGcAJs1mURyxEVplCbfJ/Wy+lhZ7ormwGuS3E5ohQKYha/1QH3p/Ze+l0bXZZj 5FMMVWM9h+9cgNhoufEDR+EH5Z68HgbNb2nfp01EgmOwZubV0mearvP9uix1GA== 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=db8ea61ae261cc060f423dea050bf943bcad6793 commit db8ea61ae261cc060f423dea050bf943bcad6793 Author: Dimitry Andric AuthorDate: 2022-07-26 14:11:05 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 17:59:57 +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 --- 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);