From nobody Fri Jul 29 18:47:47 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 4Lvc2r2mP0z4Y1Zd; Fri, 29 Jul 2022 18:47:48 +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 4Lvc2r0RTbz3qXk; Fri, 29 Jul 2022 18:47:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120468; 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=heIaKn9LTvFyFDZateDd3ajYibGtptasAfno7OnEzq0=; b=QY1T8G6skFMxRAtjLu7TkM79ZWSgWjJqIYnEo+OH++tQgw+bKu/9oO5ev23EL7hkalC8Bg SqeIjfNKTDOx01tBw95zqTDP1hAv/WCZR1ivg8DQJvPnntWQ9u4pg9lPvimmhALRC/11FX ZZkf4vz1iVPkBxSyZWp0btqvd/+u6lI4CHPfOYynNdcsEghEoWIOC9+UAfqnfcdVz40Xxx 8JwWKURfIF7h2LD7SjgfpQMTcQZzKczy+dQiIq3Su70JLYHaNOfop6gUpOlb103BKEhq63 AF0CRxnwqrS2ILt9eYzMbFmUWPhA/6wMPfl7s4+qM4Q9y9og4/zt/EtsibwLvQ== 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 4Lvc2q6f12zm1d; Fri, 29 Jul 2022 18:47:47 +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 26TIll3W024576; Fri, 29 Jul 2022 18:47:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIllkH024575; Fri, 29 Jul 2022 18:47:47 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:47 GMT Message-Id: <202207291847.26TIllkH024575@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: 105f9406c955 - stable/13 - Adjust check_struct_sizes() definition to avoid clang 15 warning 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: 105f9406c95593f0c887932f4087fac490ddefe6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120468; 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=heIaKn9LTvFyFDZateDd3ajYibGtptasAfno7OnEzq0=; b=GLVy5UcC3pZaLSkIO3Q+3t5ZmxeJyYbsWrZbdXUX7hhJpirXZmzCTFnZmbxj8UroIIYre3 fQ4+McE1Zv5QeRSp/bKH2BC3ahlAc6tdKkqmghpsBzxS55gbtuUpm3JZXFBvzE0wJ+bRqN 9iy/39aVugFK6rNCkmJliKgkxqKy50ny76L7dbITZdDsehx+E0kpt/l+2TX5Ieq0fH37Ul t1n7UFDmwcPfrkCmPJ4hy60beXOsW22i97rh9iu22qIIYK4J+Bp+o3XqUBS5qaAQD6i8oT hOaPslw2FIvr0OTZrFZOQKUt5KzsOjy56+nD9e+cZhIhTVve4GeyywprfbpHUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120468; a=rsa-sha256; cv=none; b=p1XThzO2hs1I/azEfcwt5H7ZA4tqV3Nz46NuW+sqFBmUNrTdyTUEK310I7vfjEBATEJaWy P8TfJ4OZqEYg46VTxVW2jVbvtFl0AXN0rahPEgiZNmQ5t8jZQkKsS7O5zXo6DM3galVvrc JsJbduz4CXgnJgFCRAzYAIMDUTXIYKgDteC2J4qo9ujHXrgkXZQzZMqtBtxRz1hgrZHYP2 acvkSrtX/zifARq1CIDng+vZzaIeWNxzJWTdmEbSNhUS5oEfceVVMeaOgDKoxmzslSGFGb 9hovcUCbr114WB+N+2hniwzXHRxjsYANE+8yPwmkK1QszR/EpEMyfvVFw+Lzwg== 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=105f9406c95593f0c887932f4087fac490ddefe6 commit 105f9406c95593f0c887932f4087fac490ddefe6 Author: Dimitry Andric AuthorDate: 2022-07-26 11:20:58 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:31:13 +0000 Adjust check_struct_sizes() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/dev/smartpqi/smartpqi_helper.c:374:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] check_struct_sizes() ^ void This is because check_struct_sizes() 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 fb1c21688c5702d0bc50d67359dee4af12d0c693) --- sys/dev/smartpqi/smartpqi_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/smartpqi/smartpqi_helper.c b/sys/dev/smartpqi/smartpqi_helper.c index 45d9fca071d3..e6a5f6876b64 100644 --- a/sys/dev/smartpqi/smartpqi_helper.c +++ b/sys/dev/smartpqi/smartpqi_helper.c @@ -371,7 +371,7 @@ void pqisrc_display_device_info(pqisrc_softstate_t *softs, /* validate the structure sizes */ void -check_struct_sizes() +check_struct_sizes(void) { ASSERT(sizeof(SCSI3Addr_struct)== 2);