From nobody Wed Jul 20 16:50:53 2022 X-Original-To: dev-commits-src-main@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 4Lp1t56M1fz4XQLh; Wed, 20 Jul 2022 16:50: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 4Lp1t55wSHz415S; Wed, 20 Jul 2022 16:50:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658335853; 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=bBq8b6qk5MD00hSja6v1THJrPtv3G9RsyRm9RkTaN5Y=; b=htzbmD8tOXTbI+Orl7FHbgc6cdiQd6RoZCyzjsPULBPWSHTFKOJpyP4M0ieNKONJyo1QG+ yD4dFtC8Jsx7RV0Oz/3hqtqFsyFgq/zVjidER8SKSTy3hlZn9RjRqyuHwHfo/eXcxyA3BM Ic5S2FJPLcjpK6CkCvH+biqMzH903yyk/HkxNWiDvk3QVwRSJN5DDLuCgLqsrxsHViWIZb 7vZ04Pu6QC85hFPWOT0EOzwW7hkThYShy8tAe6HKm9tBGIWfdK2e1tyLQ5NEqGrkYg5M20 YlN8vwFun6fJLaTcAlMnEdsLKahK+y5qlclxV8FhEemL23lwaEGXCbyOHE3PGQ== 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 4Lp1t5518jz14gX; Wed, 20 Jul 2022 16:50:53 +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 26KGor8t002933; Wed, 20 Jul 2022 16:50:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26KGorjP002932; Wed, 20 Jul 2022 16:50:53 GMT (envelope-from git) Date: Wed, 20 Jul 2022 16:50:53 GMT Message-Id: <202207201650.26KGorjP002932@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: c46c9b3f5f1e - main - Adjust nvd_{load,unload}() definitions to avoid clang 15 warnings List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: c46c9b3f5f1eb5575a5e42f52872dbea9cf7516f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658335853; 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=bBq8b6qk5MD00hSja6v1THJrPtv3G9RsyRm9RkTaN5Y=; b=jS/KFluzWwiqOkGv+lDd4I+WPzSItDTknqYSrUMOqzDsp0bJas9M9U4UEJ+hzwpVA4PgaA ZBGnmwUN4zpqav1mIXm0JqUpM6DuFFM/6m0bh/JSYyHohI1KL0r2Im/6pW7SKJ3r0PU5pr g2oLM+Uwo1n7h3jWaCP3awWLWK83aM5haaPBuLRKIyvHDe7Ql9lLUeW5yQijT/gkMXxDIQ 8hgKcxQ5nFjCjuwnKFJHqDyhii2lQGuVnllsbYFcazLFun70719VAgobyPJfqcFPg2ah6O ObeaXPzBTxpSYatM2NWQobAOlsu3z9EkToNO5IIwFT0mb2SZ0pxv2jwG0gggVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658335853; a=rsa-sha256; cv=none; b=aGKV8XmW5xaMhgBoIsPaeh/O2cqbIReM5PNwTHZl2e1UXPuE0EvuXhh6PMUgLYVR0ROjNf +6AidtUD+jWaVoWNjDX+4A4NgvdVZLbocrti3yE/uUjCqdBGW6DXHqaYdyNya/Zz2PPCxh b693TdX5gNTzk4kiGgnEDJG0WBkIOg+GkcRXnUxn6TO7Al64tgND5Se1+kbdGrgo3aHDM7 i3eqYqMbzoIJSleqGr8Hc23kAEvKvRnnT2wwNi2NpDahvm7CU+pAe45yUsofxvvDn1O7Lu vOE8zaMfhq25GdFFTktqLVAy7kq9NRpdwENTSLvZInd+zDqWz6M9A1MOHOWIAQ== 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=c46c9b3f5f1eb5575a5e42f52872dbea9cf7516f commit c46c9b3f5f1eb5575a5e42f52872dbea9cf7516f Author: Dimitry Andric AuthorDate: 2022-07-19 20:05:42 +0000 Commit: Dimitry Andric CommitDate: 2022-07-20 15:13:49 +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 --- 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;