From nobody Tue Jul 26 19:25:24 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 4Lsn1c6RZVz4Wvpq; Tue, 26 Jul 2022 19:25:24 +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 4Lsn1c5jqdz3ySq; Tue, 26 Jul 2022 19:25:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863524; 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=CZM2+EB8sDN0HTQy4FhO+xldAqrE6tTYC+7JHVfD5yw=; b=MDhwwr7lNGNVCLHnhkqmVS3u1O+4bQMEAElZ7wMs1tlzHW4/Mh2Puc0xj8o7qiRp9j9Zc3 I2yoGLgtyEQ7+fnGddzD4of+kPP6IAnJgho9DL1Qwi/VK1xU9QjQnsbGfpimOXl6NXstYv o7bSqBob7dfdYDSbiZKeRajl038MtHsEXhb/OidWngCwrG0pHHEQ6aDqSMFS4ShSdibQ8M RDaPeqtovJQhIvwiTrdfYdvQO1wky4gtTEmi7cJYGOnew7sCHPMK9ipqFl2wTG1BffYgox xDLv85T3mWKaveCRuT9rB+y0l+Nw6F1iG6TjkroVYvZHKiDOS6d24NBkLDF/Qg== 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 4Lsn1c4n1RzpYP; Tue, 26 Jul 2022 19:25:24 +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 26QJPO5N019709; Tue, 26 Jul 2022 19:25:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QJPOJE019708; Tue, 26 Jul 2022 19:25:24 GMT (envelope-from git) Date: Tue, 26 Jul 2022 19:25:24 GMT Message-Id: <202207261925.26QJPOJE019708@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: 8bd2887be510 - main - Adjust function definitions in netipsec's key.c 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: 8bd2887be5105010e73fc35ddd25021e186811b8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863524; 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=CZM2+EB8sDN0HTQy4FhO+xldAqrE6tTYC+7JHVfD5yw=; b=jiEI8fMCO0jiPmKjQ58QKa97moBcQ9JciPueG5Q2FORg6dccU22dO5jGw9ZEJRHUczZ9Ta 4c/YcsIQqfb0FO5F4/BCvCqHTidwkQTqNj39dGX1o9rgHVW2DOywySXhT1OjAvXYeOukJL RouKGLfv7tz73GGXHAfV5V8XBa4njUAy4RM673t83sD1nUr8rVu3VNN7XdBVif3X93aZ1L YdmiyUUANvFX2LkNTuTEdipIdtPjO97TyhNPTnJ/j27TXyuAei64XKIPHDd58suG2180wO FbBqVx82I03KRlu8lWx5KBv/PyI3kyuYckCLix91MJEp9nV7fit/F3M9QJI4MQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658863524; a=rsa-sha256; cv=none; b=Coqv3mmRPeZ0lW/Fsxm7vXL093XLUcSWZavcmeA+MTQ7TouSlgfzLjH8/34r8tnZSrWatI fGRPhiXvZHeqwg711sKhx2pLTL7/yJtE9FUkKXEqFjfa9RZyyaBw5BDjjlAORLM/NkZvNU M9/AfO6jJfraKb5DJl3rn+ax6E2z3TP1A5itxqByBazw+cHsCmHaPbgvxPzTaBdCeXpRlq A678kBGj7eyTj7i9i5tqNIsyXGhVMqqlBU0QYPYThQRRDL+btlV0Dg1NBYqmD7mKR2T4PC oUgYhW262b1mLBFvvzw9yLMjBFHX2EAsx8f0vXHD7GnZE5jljv0mpQI8sRyy0g== 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=8bd2887be5105010e73fc35ddd25021e186811b8 commit 8bd2887be5105010e73fc35ddd25021e186811b8 Author: Dimitry Andric AuthorDate: 2022-07-26 19:15:37 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 19:25:09 +0000 Adjust function definitions in netipsec's key.c to avoid clang 15 warnings With clang 15, the following -Werror warnings are produced: sys/netipsec/key.c:6432:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] key_getcomb_ah() ^ void sys/netipsec/key.c:6489:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] key_getcomb_ipcomp() ^ void This is because key_getcomb_ah() and key_getcomb_ipcomp() are declared with (void) argument lists, but defined with empty argument lists. Make the definitions match the declarations. MFC after: 3 days --- sys/netipsec/key.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c index 419f0e517b14..b1a99cfbb261 100644 --- a/sys/netipsec/key.c +++ b/sys/netipsec/key.c @@ -6429,7 +6429,7 @@ key_getsizes_ah(const struct auth_hash *ah, int alg, u_int16_t* min, * XXX reorder combinations by preference */ static struct mbuf * -key_getcomb_ah() +key_getcomb_ah(void) { const struct auth_hash *algo; struct sadb_comb *comb; @@ -6486,7 +6486,7 @@ key_getcomb_ah() * XXX reorder combinations by preference */ static struct mbuf * -key_getcomb_ipcomp() +key_getcomb_ipcomp(void) { const struct comp_algo *algo; struct sadb_comb *comb;