From nobody Sat Jul 23 08:59:09 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 4LqgGP3f1zz4X6yR; Sat, 23 Jul 2022 08:59:09 +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 4LqgGP2vVcz3hks; Sat, 23 Jul 2022 08:59:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566749; 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=cP+koWRnu9qpd+HiJiZT5ZWIxN9v9g1Z9V8eciAGtnw=; b=yiaj8dVE7KX7VPbJNLj6nj9kKznE0Ky3pAs/x1TCKywSOM8ztwwuk1LcIEmxKn3rjBHqjZ FF3uXOHCa54VUKRtguZC7ySTf8Bof4vKoBrOgh6hj+FZ3SCHXcwNrvbLOyIpLC0xhgL77G niVRjybhAE3UKvkZVvcSWq8fGKDide+twNH1CBvRBE86mItZyENm8IOxA++/E+ZPejSS5J BenJ+2afZ1Tf2Nxa0rXjQbfQ+anHyTI+i5HZOVz619m0ttz31nxCWhOkVwSmcpoxggwO45 5AgHa2KB2qzwKzUjlb6ca1gs3ndkAtUGef6efDsSUj6xj+axouugpJS5895uAA== 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 4LqgGP21TKzZ43; Sat, 23 Jul 2022 08:59:09 +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 26N8x9pk013522; Sat, 23 Jul 2022 08:59:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26N8x9Vu013521; Sat, 23 Jul 2022 08:59:09 GMT (envelope-from git) Date: Sat, 23 Jul 2022 08:59:09 GMT Message-Id: <202207230859.26N8x9Vu013521@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: a6a9c025eefa - stable/12 - 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/12 X-Git-Reftype: branch X-Git-Commit: a6a9c025eefa133a0fffdb25647f075e62291345 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658566749; 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=cP+koWRnu9qpd+HiJiZT5ZWIxN9v9g1Z9V8eciAGtnw=; b=ugKwXVmSKEduURZ5u4mcXXFkISryG/dSL1181yQAlPWsvBS8myEsoVzPzshE68pBoEKTxx kya9TO4Yec8r5b7fZZ+yMMbxG148SBAKEH8+NVdGRxpQb8DiE2nY5GZWvD0Ujo3FQSRoqF o8SIxFiXgW+5GxvZjh4qVzgMuVgV3q7fzh8AF3DrfgZMWsB++hnkDjmPx62tJ2snJ8oe7Q TmXhadNCgO+wiUqhXDhoswvzXnzpaF/AMZTb9ydTMEZMaYcwYhU3qnIebi9EmvLyxzFhqY XwYwJoCARDJKTFJ1u55m+60xkLS6a7XIh+rfetCJPbVcpWwHb1DlSEcQ+RLTlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658566749; a=rsa-sha256; cv=none; b=JLsNvrTtjUI2GLllXIMKe7rsVN/RCEARG4uT9Ah6RRhnIr2jGw07qJkZE/Xbh7TLzG3XvU bgm8Yi0K8HQSezl92jtZtd3iJOFEt7DCLUCOK/ILeCAd645le9qP2IKfk5KKwpn/C0HREy BBAD+wOkHYMCmDrSN3LU5sXnmtFDwht/Q3OVffU7qefc5X615oFQXITD0wX59Px3lGpw7/ XCvG3Z3r9lnLgQ2Ix0YfdpV11whXlPpJ7lpppfPsJcp8ez1uxd67/aQK6bJ5PzyeVkRwGd 8ZHtu3ldW0TH2e0xSfumVsiDAJ80tRRLdVe83R9G708cn+USnheoD398hlzidQ== 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=a6a9c025eefa133a0fffdb25647f075e62291345 commit a6a9c025eefa133a0fffdb25647f075e62291345 Author: Dimitry Andric AuthorDate: 2022-07-19 20:05:42 +0000 Commit: Dimitry Andric CommitDate: 2022-07-23 08:57:44 +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 a5cfdf080798..33251525aa23 100644 --- a/sys/dev/nvd/nvd.c +++ b/sys/dev/nvd/nvd.c @@ -143,7 +143,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; @@ -159,7 +159,7 @@ nvd_load() } static void -nvd_unload() +nvd_unload(void) { struct nvd_controller *ctrlr; struct nvd_disk *ndisk;