From nobody Sun Jul 24 11:01:58 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 4LrKxg05sgz4XXKP; Sun, 24 Jul 2022 11:01:59 +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 4LrKxf59Jjz3bgH; Sun, 24 Jul 2022 11:01:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660518; 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=dVm0cpj9A1XCqwea46kDiF+ssTocJ8fw8c8cWvdchPA=; b=Z4esFQJnTnNHXxO/aUl+EGiGI17i5fTMHIHsYZMf/IGFwBIsj+qKbjLuJeQ6LcJs/B++tw SEL+tETd7iHJ/CmxXn/w/bpDTS0hwhO1PQaZi9OIxr4M6BE5oFxt45v6MaDpzkzbcPmj45 Qghp+ImA4D3A9h0PCv9gMFIMoCNLHrsXFgoAtB7aBD5JuU9QCBqU3MgM/ObylV9C+6dyvK FhtqWhI9316pmBYi6cjUDMyIEl2D5UIpS7gw2I1LF1adcuWyZ/Fq4OxiPa5ZFW+EvAbsnp DEOGXHmSA0M6ClghGcjNrH/yqPbrl3HWlQqkSz4PHYVv1z5hBC57CY6ejUUFTg== 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 4LrKxf4HLxzGj6; Sun, 24 Jul 2022 11:01:58 +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 26OB1wWc040998; Sun, 24 Jul 2022 11:01:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OB1wwZ040997; Sun, 24 Jul 2022 11:01:58 GMT (envelope-from git) Date: Sun, 24 Jul 2022 11:01:58 GMT Message-Id: <202207241101.26OB1wwZ040997@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: fa872a4bf719 - stable/13 - Adjust iface_khandler_register() 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: fa872a4bf7196f72b87ba3e305949f6607116991 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660518; 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=dVm0cpj9A1XCqwea46kDiF+ssTocJ8fw8c8cWvdchPA=; b=ij/M6C4oqlOhIYJOOAOiK2U6AiQ56FvhVHU3g2p/yzfhjMpGBsFg51DK2pXwX8nXQMUhZf Rboo2VkqvTPApTwNlcUiNKJTTeEhXJhNUQ/nFDX5L5kPYMVWB5h7xElIv9lvduxECJx6iF +pwlzefZuXFxV6kniPtkQZEI1dQ+yklU9uG8MVP3fADsK521wxj2DBTjVAt4Nr60MgEYWX kbjOHQIuRFPT1NwVippI9VpcnSVE38121PHx0kD9QV9r9bEQaca76q/5UhCxGpcUIqkGyZ P67HPPMzCafD3/gPV00G8KyOvnjeGCRQn5Bhv5r48ewewx3gGgoIeUZvUeflzw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658660518; a=rsa-sha256; cv=none; b=R+2+tocH4dDGhlIkq9bsDO6ik7zLOEQHEg4iax7hPthtuMwZyvROKByrTlxkkSjVw81OTk n/Z/fnyaLfBggus6p5s2Faz1RYDTBbyYRlNLk6KRhi4qqGJAwdmpMC4v9Saif9dKGquTy6 IMtXpC8S2lytCi+2AACz9NMO4wrOv22zv1tFjfpyL87LThQv+N+i+0JsJGU8rZpOhr+OFF PW1axjnb4+hXjsofiSuAn9kkjZYfXKePoIX9yfsR/NSZzKcIjtP3kyWKKAixHN6luEvCL/ nv86flh6fvEZ2DoN24JjacuysRfrvWNNLzPpAOslZJxvtlvQ9Qd2qlXKAsq2LA== 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=fa872a4bf7196f72b87ba3e305949f6607116991 commit fa872a4bf7196f72b87ba3e305949f6607116991 Author: Dimitry Andric AuthorDate: 2022-07-21 19:28:03 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 11:00:10 +0000 Adjust iface_khandler_register() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/netpfil/ipfw/ip_fw_iface.c:128:24: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] iface_khandler_register() ^ void This is because iface_khandler_register() 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 edf1e1f78da8c2a19bcee90fe0f72cac2eb18e30) --- sys/netpfil/ipfw/ip_fw_iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netpfil/ipfw/ip_fw_iface.c b/sys/netpfil/ipfw/ip_fw_iface.c index 4abcc766f6ca..3e366db3af9a 100644 --- a/sys/netpfil/ipfw/ip_fw_iface.c +++ b/sys/netpfil/ipfw/ip_fw_iface.c @@ -125,7 +125,7 @@ ipfw_kifhandler(void *arg, struct ifnet *ifp) * Registers interface tracking handlers for first VNET. */ static void -iface_khandler_register() +iface_khandler_register(void) { int create;