From nobody Tue Dec 20 20:22:48 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 4Nc7L12DrWz1Gtlj; Tue, 20 Dec 2022 20:22:49 +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 4Nc7L11ZVnz4JBf; Tue, 20 Dec 2022 20:22:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671567769; 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=wq7MEW+4aYEGWbYyB5MUTWYrzTDIOxSXpDuEM27v3J4=; b=pXWovhA9VYbP73/Kvt84q03FTgWIVSTGSsEUvCGQdkimuKf4f4cuZnRYkGe4LqgLirmKAM GYwC1qHTEyWRVRKiigrZ6jh3WpyAJdEUZahhLZkBnGhQG/W4xrO80ruu1j9oI5ebEYWTXr svYJkz+tCL8/vj+Fjt2TSmA9klKc7FZ4oJfcbYmK9UOnxWLLJFQj8ts2Vn1uO7pIUXDLlY PiY5+VvmW8fmXcqv5xNxA0XH4MRdo/d8E2wQUyaDvQsppyiwH0cb7VD9HEq9/StexsI60r 5GYoVrTKkJYRs7tywpLrKuvLFb1YfS1wWJ0YZH0rmzascGDi22FOblM48O3YMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671567769; 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=wq7MEW+4aYEGWbYyB5MUTWYrzTDIOxSXpDuEM27v3J4=; b=yX7TxXyGBEOJEkdIpCMyLuGuTWsT44SPsTtXICxc4hTuST/7Jxvf/awkPmhjw2sl29+PIl jY/9lVkEQ2+Vvh0p4FRl+wOkT85NwQ3Dw+TVNktcLrwY0C+UsII69mJKi4hgPiynWQb3Qd +NBb61EAdfUBL4GF4bABz/sg1cZjUcnr9Gi1uC+NtYcEXSwH8fpjh3uOxPUkd6s7v0edpS MibxuAEKSJST2ZJcsEXsphqM6btdShhtXli+QFWKk2Hs8YjcgNiyaeDMGRZPRLTjZwyc/8 UXqzeNzu8k7KgOz2Ua47394y2p7X76uuRicHu1hP49tqvyNujD+NYDsNwPH6FA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671567769; a=rsa-sha256; cv=none; b=VkGw+6owfXd5dG27xnVIaSVZkoNsKqhPF42u95SMqQnNN8GSEpauRJKQGeRlCxfICAHaZT M0s0V4CpaPIAvB0KoTyJEiDi/+pu/JTvAoac0MCBN9SEJ/71hmnbIfq43aIFnYfn1eq6rr EwWwnGK+quYMZAOk/Ot5mPHaL+9yGqXn8AmaF3NDK5PDUaFmk+G54oB9Im2uR7cT3S1c8F KAHPIjqyMlmqt70xgsv6NZQzfSwXVg0mjvcFqzoFBeRDEfeY0QOdNUf6IXtNDhRd4BFqkM l04Ubk4BErX0liIWvXUj52URQG6HAgRCTQC8tz0q+WjWAndoJLZIrVReXmMtvQ== 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 4Nc7L10d8Lzp9r; Tue, 20 Dec 2022 20:22:49 +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 2BKKMmk8065884; Tue, 20 Dec 2022 20:22:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BKKMmq2065883; Tue, 20 Dec 2022 20:22:48 GMT (envelope-from git) Date: Tue, 20 Dec 2022 20:22:48 GMT Message-Id: <202212202022.2BKKMmq2065883@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: 56748381595d - main - inet6: Fix LINT build 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: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 56748381595d245c91d15da3b4a1f771e078f939 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=56748381595d245c91d15da3b4a1f771e078f939 commit 56748381595d245c91d15da3b4a1f771e078f939 Author: Justin Hibbits AuthorDate: 2022-12-20 20:08:34 +0000 Commit: Justin Hibbits CommitDate: 2022-12-20 20:23:49 +0000 inet6: Fix LINT build mli_delete_locked() is the only function that takes a const ifnet. Since it's a static function there's no advantage to keeping it const. Since `if_t` is not a const struct (currently) the compiler throws an error passing the ifp around to ifnet functions. Fixes: eb1da3e5258238e1c0555c6a006a341df0821d8e Sponsored by: Juniper Networks, Inc. --- sys/netinet6/mld6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c index 60dc3a59eb4f..f20348f653ef 100644 --- a/sys/netinet6/mld6.c +++ b/sys/netinet6/mld6.c @@ -103,7 +103,7 @@ __FBSDID("$FreeBSD$"); #define KTR_MLD KTR_INET6 #endif -static void mli_delete_locked(const struct ifnet *); +static void mli_delete_locked(struct ifnet *); static void mld_dispatch_packet(struct mbuf *); static void mld_dispatch_queue(struct mbufq *, int); static void mld_final_leave(struct in6_multi *, struct mld_ifsoftc *); @@ -569,7 +569,7 @@ mld_domifdetach(struct ifnet *ifp) } static void -mli_delete_locked(const struct ifnet *ifp) +mli_delete_locked(struct ifnet *ifp) { struct mld_ifsoftc *mli, *tmli;