From nobody Sat Jul 23 08:58:52 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 4LqgG5136sz4X73D; Sat, 23 Jul 2022 08:58:53 +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 4LqgG43CV6z3gGM; Sat, 23 Jul 2022 08:58:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566732; 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=Yzy+VKyMOaGSrVF1hwxg80mE2rI/s6Zp1dXfciJt8UI=; b=WatoAqxkAIwG7uqNeRaM4lbvmBIIiHClPWQaqCipCQuzCrq5hpTS7zfo9U+WqA0tFOI0Nu jBvF3HEG0eGpTVY/Ot+NjxsWQZCfo9qcXF2reWUmsDM1WD5WWOyBZcHhkL9hfz0WIAfHe2 yUZPgj84hgttOoY50R30FzsbQKm40aKopzo2xOx0Z/GeLh0/HAtXAbc7ELBEh3qGUnaKta o0O49G14qEVbaFe8NNvnx9oHUdYCAbrLurHsqx+7r2oR41ssp48RFOupXyqK9S6S92jevV 5TVhIoWQ3hHjGPKKbxoGOj75oUI8DCTMNTPm/QFcWEi6AuWdUI4kH267jxuCgw== 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 4LqgG42H3nzYw3; Sat, 23 Jul 2022 08:58:52 +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 26N8wqxj013143; Sat, 23 Jul 2022 08:58:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8wqHt013142; Sat, 23 Jul 2022 08:58:52 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:58:52 GMT Message-Id: <202207230858.26N8wqHt013142@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: 9729067ef8ae - stable/12 - Adjust dtrace_unload() 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/12 X-Git-Reftype: branch X-Git-Commit: 9729067ef8ae8da5389f0e7b579f775f79c1267c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566732; 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=Yzy+VKyMOaGSrVF1hwxg80mE2rI/s6Zp1dXfciJt8UI=; b=deTb5DWT9Cko5V1Dmd02MKCAxUR2nUo3As7z0nPesQ9LU5uYeFW0VsSpo6xEjSsdXtlezh rVzOeGfenuZZ3KWnbsubu6VqKRlPO1gKOa7TdIu1XnjZl/OLfowF5Z/UlWfLnHnAwc+3FM ZBrkyzM2T/fx4CHgl9946fSGmUzzmLLzjZ2e5mmG47LUPsgS6L86S+gZkMbyUy9qSqUDNq DorZS6KyxH9Gin6vJP/6/rX87mBgZtaBvzqgjL6hX6Ycg4p6bhhzs6kZxK6O/IA2W9J0dj oAROTP5JOdn+sVBoqbHx4xAbyAtMgTxit8ZgYgs1QP0Nl36W1f+bTyG1SMDSFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566732; a=rsa-sha256; cv=none; b=Oh8MCxjm1ZqHPwz6dnVDqpGMjbG9yW0bxLvuWPGTgOpMJvkrEYDSN4EEJlFqu7mcbaFwRC g0Dy1/Qxyrp3aZFLgTSzyAyoayjUDOaC1wx3ynHQiI5xcoD07gG+vRAZ3UeDR+CRcjitkH P5s+FkZa+HoUm6g/7PRqflSE+pwbWBOj6PksFnp9605c1YDTAx8S5Wel1QJiSvaNTb7Fvr hf8t1sQGXpDb60EFxHwtYcCuHLEYJnncSFRYz+nn4WLj/SDPgP+m0AfAD1wKb/6UGb5zOm VBc9rUZZbiOWnK3rqRO3uWFTV3mrMmytZK/4E2l2Lyjh9PuWH1qu6XYaDhGdTA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=9729067ef8ae8da5389f0e7b579f775f79c1267c commit 9729067ef8ae8da5389f0e7b579f775f79c1267c Author: Dimitry Andric AuthorDate: 2022-07-19 18:48:47 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:57:41 +0000 Adjust dtrace_unload() definition to avoid clang 15 warning With clang 15, the following -Werror warnings is produced: In file included from sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c:18440: sys/cddl/dev/dtrace/dtrace_unload.c:26:14: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] dtrace_unload() ^ void This is because dtrace_unload() 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 6f5f44562a72e739a39057a4661a56498e4c79b5) --- sys/cddl/dev/dtrace/dtrace_unload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/dev/dtrace/dtrace_unload.c b/sys/cddl/dev/dtrace/dtrace_unload.c index b0d22e6527f3..1dfaa774e99f 100644 --- a/sys/cddl/dev/dtrace/dtrace_unload.c +++ b/sys/cddl/dev/dtrace/dtrace_unload.c @@ -23,7 +23,7 @@ */ static int -dtrace_unload() +dtrace_unload(void) { dtrace_state_t *state; int error = 0;