From nobody Thu Jul 21 19:53:32 2022 X-Original-To: dev-commits-src-all@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 4LpjtP3xqHz4XPMb; Thu, 21 Jul 2022 19:53:33 +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 4LpjtP14y7z3bq1; Thu, 21 Jul 2022 19:53:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658433213; 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=dejt38d5X4fRBT7Nr1njJSOrV+dbitRaIeyEVq2Z6QY=; b=HZnPAY+t7oM9MgtfGKJeLZ1SUpkyPRLfAHe2ZEjdaiqiYKY43FICNgxXdbpw1jBX34BtN5 wJthsLx7Bwdv52sUXMGZbSWo4N/eZiRv6AcmiqL7vCCgH5kh/jCsX2vIMfx9mD+WpJ9i7E nl9dknlbwKS6JIfNyZNkl6coFlibHqI4f74Yw39q3wPf75K4iP/QMt6Cbdqf/KMsft6DmL 7wXfg2kdq4WUZuPVR0Rj991GryffyzR4PEc2bm9y+UB6yzZBjSJNcI4SilyNrIf7fivFQ1 BhIQOMRkLqRZIdYbJppZ4ryYsoewcHaEWWePydrWUSIB3MASeREw8FNVTip2NA== 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 4LpjtP08vNzZXt; Thu, 21 Jul 2022 19:53:33 +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 26LJrWca006320; Thu, 21 Jul 2022 19:53:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26LJrWBY006319; Thu, 21 Jul 2022 19:53:32 GMT (envelope-from git) Date: Thu, 21 Jul 2022 19:53:32 GMT Message-Id: <202207211953.26LJrWBY006319@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: edf1e1f78da8 - main - Adjust iface_khandler_register() definition to avoid clang 15 warning List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: edf1e1f78da8c2a19bcee90fe0f72cac2eb18e30 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658433213; 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=dejt38d5X4fRBT7Nr1njJSOrV+dbitRaIeyEVq2Z6QY=; b=w+PfhR6m3ohp/XPKHn77Fc+3A6+Fbje66rpsF4moSAJ957pGb31K2baXuVPlJ4VrM+C+8f y340dWeIrTAqVUJYaSJzE9JUUURAsv9hu/4ctBQVKWVZJ/5Rqdj4VkwxaOiWem90Ilaf4I 6JPbEB72KzaI0pZmSvQxbBsGA7Jv6hd9Cy0dRvmZ60pXDftRsPoDDf9+BmnJiJnIcj1EN/ PD/4X9o8TgKuHt9hruASBV4Q38qzdo5BeIbSXyPJHuNNI1YTxCpwDunbS9J3UXFR1m0FXU BI8mGkuLiGtooEwGMD+aA3N40ivYTOSS93NuYgNBu7qdyJqytoNgnXzieFnrUA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658433213; a=rsa-sha256; cv=none; b=tT/UXUcfsXxc1evUWg+V8GTn5mzZyXGJ0MtKe1JCsebLvQT0wdJVFi9iRaDx3MVVZkyj0y vTbvXgWDTwICBwXb1BJV9MCG8D6ttBpAawTP4N+68rVtOGbgOj5r61/oEpuAccK3dzlIQ2 r6Q2Uh1j05AZQ5zkFAirMnYtUDeRncVl7lLiE365qcG7+30GEOCh2YFc8J8NyctniCjozf zl+ufbx/7Jjl1SQGTG5e2jkGtPk/i2IUsb1kM50FJuxak7AtrBNSPK/DzOUBp8VJch47Cl KK1aOREl13muCuJjzs7zjcqTgix2o5EXd2K1lcIs9JyJVyi7jM5jqRZG9PPPcw== 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=edf1e1f78da8c2a19bcee90fe0f72cac2eb18e30 commit edf1e1f78da8c2a19bcee90fe0f72cac2eb18e30 Author: Dimitry Andric AuthorDate: 2022-07-21 19:28:03 +0000 Commit: Dimitry Andric CommitDate: 2022-07-21 19:30:35 +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 --- 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 8e384105ce14..0e3daeecfe60 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;