From nobody Sat Jul 23 08:58:27 2022 X-Original-To: dev-commits-src-branches@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 4LqgFb5PtKz4X6xL; Sat, 23 Jul 2022 08:58:27 +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 4LqgFb4YlHz3drc; Sat, 23 Jul 2022 08:58:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566707; 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=kB9w/wxoizRZi/CKUJMzz3SvkW3JzNg54SA2jOcBBWo=; b=aj4XsWFx4VzGm8ymPnBwvbcqMpyBc4C3jdv+bZn7zcyqbzCkPo5mN12jyfB+ySqHA1m8AT Q00fwO8vgcBxEhoo+IeczX95NcHtK/zAlHzDbu1BVSNb9Ddmn4BrQQVDU4lsKrfgPg8U81 C77BsI3Usn6MVpSauq0VThFjsSuMxRcMXriO83izbTcbGth1DwQplwopdH0BcoDuyEiMa8 dsvuNlqs8rg65yqQkYw2JN2paoPK97phFPsBUVIZzzXx/IJqVryLVC5ICtgPfJRQm0gARl Bg6ibmPm/u7imLlBqupUJXGtTnmxh9M5k6Lc7OTYEWpS2Gv5HbRko9h80urDeg== 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 4LqgFb3h2vzZGF; Sat, 23 Jul 2022 08:58:27 +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 26N8wRQN012835; Sat, 23 Jul 2022 08:58:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8wRpH012834; Sat, 23 Jul 2022 08:58:27 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:58:27 GMT Message-Id: <202207230858.26N8wRpH012834@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: 6204a90c0b8b - stable/13 - Adjust nvd_{load,unload}() definitions to avoid clang 15 warnings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: 6204a90c0b8b4728ac453cf0ed10b0fa75e18fa1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566707; 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=kB9w/wxoizRZi/CKUJMzz3SvkW3JzNg54SA2jOcBBWo=; b=GJOJ7drK8Do7VXArdFt1UblBRuMZEXmiBRwm0nmW0tq+OHOVkIgDK84UkJFoxqBXOV6cNf M6BR8H69uhbGxe1KYw7CsKG8exrwaSV3a9JRMaZWXp/usm8+UGEy+yQ6GrGXdSZSQWJISg pLtCWJE27wZFMY9gpmGRbtBtX2TxvloP4zYmndZ54PFv2VeXatCjQlWluD3Ql/BifDGhAm PsirRQ6rU5FTJ0vgh/1BBmhlUHryRGV0QHHzo1Zy2N20LyLGPsThLJMv6tL/6BQzrwI6I8 ocP8ZcOilaQ/vNnw3ZRxYcHo1hOvEh5hQuPfKk/HVsrPgp7DPByEGq+WnItXVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566707; a=rsa-sha256; cv=none; b=PHIgLyGE7+oTvQ2rBAp5N7agTaqnX+bsMZgLPEPHWF5qUfcTZ+wFdWmmpX58c3cPp8+WZI hW+pt/gZraMBtW/j1QIYfUVoixt3hjBxMiA2K0Dc6RPkDlqW1WvnZPHzJ7dgKVQwmjEAjh GoPoXxhGuwWswDZRS1QvglQ1QRMq09sGZwMnTeHfbIETFsmLkv5t2mbHQOZvDypoJ+pTwT 40Pyg/ov3l2ufVf+mjEXxlPLKpIQH+gsQNuuowdJVvZx551lBoPX0YCO6DS5j5pN0xThZb QIJt4RGs3xuJr+eBJ2fnRmLgl6exxRW7Vg2OHUGjDBD4TCK54BVdeo2bhwUi2A== 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=6204a90c0b8b4728ac453cf0ed10b0fa75e18fa1 commit 6204a90c0b8b4728ac453cf0ed10b0fa75e18fa1 Author: Dimitry Andric AuthorDate: 2022-07-19 20:05:42 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:56:46 +0000 Adjust nvd_{load,unload}() definitions to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/dev/nvd/nvd.c:150:9: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] nvd_load() ^ void sys/dev/nvd/nvd.c:166:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] nvd_unload() ^ void This is because nvd_load() and nvd_unload() are declared with a (void) argument list, but defined with an empty argument list. Make the definitions match the declarations. MFC after: 3 days (cherry picked from commit c46c9b3f5f1eb5575a5e42f52872dbea9cf7516f) --- sys/dev/nvd/nvd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/nvd/nvd.c b/sys/dev/nvd/nvd.c index e8fd115ec834..879f30e6135f 100644 --- a/sys/dev/nvd/nvd.c +++ b/sys/dev/nvd/nvd.c @@ -147,7 +147,7 @@ MODULE_VERSION(nvd, 1); MODULE_DEPEND(nvd, nvme, 1, 1, 1); static int -nvd_load() +nvd_load(void) { if (!nvme_use_nvd) return 0; @@ -163,7 +163,7 @@ nvd_load() } static void -nvd_unload() +nvd_unload(void) { struct nvd_controller *ctrlr; struct nvd_disk *ndisk;