From nobody Tue May 09 15:27:05 2023 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 4QG2892KlFz4BK7K; Tue, 9 May 2023 15:27:05 +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 4QG2891pJFz3qGf; Tue, 9 May 2023 15:27:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683646025; 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=oE08hTHCtnR6Tr7ZHxmq6YceXHb0IzHxQci7Pclvr/c=; b=e6L0jS5Th/ZIIGECPo5xuAXSsnbvJ1YFjOUhRXJFaF4G4EJUIUMPxZyiLD3L30pj7V+Y6T 7ij5Ij2jGIukdgevJogwjhxsV8gC3MdzRn4IfY5x/jOo8s/1oSmoNkGsB6MxOesNuyNlgr G7XM0hEQ9Mp6NPkWUcrD/BwFAjRgqreqEcz5/G4SfLF0S8Dvfx8q1278PA5lIkYIO1ahhw sa99IYqRSqMJV0cq8aTycTOECV3zN3Ik18nZsbdVJ9xqhs/4u/64BInashjwc5nWQNw9t/ gqv8L8/RddeY0vjQYNPRxzu7NulUOw25WL5845t017ezXYV/vhtSEVbl6myr6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683646025; 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=oE08hTHCtnR6Tr7ZHxmq6YceXHb0IzHxQci7Pclvr/c=; b=AqN7v0BYOpLjY9XZBqb3wfr0HehlrcLftafk1v8+emmnIj20puGbFS0HeHt/ukhDzbJkPg bpLuJjz1dmoo6jyBsXrCTZ2AYd7oJg9rB8i6SSRdToYg2tGfM2rkWt5l5MNcFpycurVp6H 0HXhRnBqUDKe4IF1zvmi9FQ/zpd5FfQD05PhWLqaHEMS/AfRY91rx4a/t39Rm2P8vZRPub zOpCmTTP6K3A5TSMR/e/BcI90XNkQxjE/6QL7S++1PohhEgaocsID26DUcWQ3F+Q4YDkV9 BQd9O5aiyYMsXJzC7IXX1ycdUJKvAY45xv3xufYhFIQVFMgB2yRTOMvI3jwbyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683646025; a=rsa-sha256; cv=none; b=rrWEKn49JhkudXXyvaFRzmhh5SFx0SRLDqGcFdtVMRitMQ54aNIgJHkbdCVNELsMZs7ulB VQgDNjLxDVDiUAHTrhH1230gsmjOUezO7/YosyDXOpUZsOPVEcKhpPzV8uXLn81lnrqy+l qdGa6HDID5C1xN6PrxGTL0E8nkAf5OWgVLBsU9gT1rPznKmICX9d2uim4QR9ZKSDou9Q/u tHRvVjoz0NLmobnBaib2iKWWtN+pov4P60MapyVtaYnih+Hb9pA4CC7ukWwWOfSEuuR1LS E5z1kPYoCk3Lp+SU8NdLA1mSVWoGuo2u6AZ3ACXCod/ZaqCCwOSxGcCB+hgJpQ== 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 4QG2890vgyzXwf; Tue, 9 May 2023 15:27:05 +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 349FR5lw014868; Tue, 9 May 2023 15:27:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 349FR5xV014867; Tue, 9 May 2023 15:27:05 GMT (envelope-from git) Date: Tue, 9 May 2023 15:27:05 GMT Message-Id: <202305091527.349FR5xV014867@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: e8e7e1462e0c - main - netlink: fix compiler warnings 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: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e8e7e1462e0cf9021b1e5656b9414955b5799860 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=e8e7e1462e0cf9021b1e5656b9414955b5799860 commit e8e7e1462e0cf9021b1e5656b9414955b5799860 Author: Alexander V. Chernikov AuthorDate: 2023-05-09 15:26:16 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-05-09 15:26:16 +0000 netlink: fix compiler warnings --- sys/netlink/netlink_snl_route_parsers.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/netlink/netlink_snl_route_parsers.h b/sys/netlink/netlink_snl_route_parsers.h index 6332f9f9e0d9..504b9c8737df 100644 --- a/sys/netlink/netlink_snl_route_parsers.h +++ b/sys/netlink/netlink_snl_route_parsers.h @@ -37,7 +37,7 @@ static inline void finalize_sockaddr(struct sockaddr *sa, uint32_t ifindex) { if (sa != NULL && sa->sa_family == AF_INET6) { - struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; + struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)(void *)sa; if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) sin6->sin6_scope_id = ifindex; @@ -76,7 +76,7 @@ static const struct snl_field_parser _fp_p_mp_nh[] = { }; static inline bool -_cb_p_mp_nh(struct snl_state *ss, void *_target) +_cb_p_mp_nh(struct snl_state *ss __unused, void *_target) { struct rta_mpath_nh *target = _target; @@ -175,7 +175,7 @@ static const struct snl_field_parser _fp_p_route[] = { }; static inline bool -_cb_p_route(struct snl_state *ss, void *_target) +_cb_p_route(struct snl_state *ss __unused, void *_target) { struct snl_parsed_route *target = _target; @@ -283,7 +283,7 @@ static struct snl_field_parser _fp_p_neigh_s[] = { }; static inline bool -_cb_p_neigh(struct snl_state *ss, void *_target) +_cb_p_neigh(struct snl_state *ss __unused, void *_target) { struct snl_parsed_neigh *target = _target; @@ -319,7 +319,7 @@ static const struct snl_field_parser _fp_p_addr_s[] = { }; static inline bool -_cb_p_addr(struct snl_state *ss, void *_target) +_cb_p_addr(struct snl_state *ss __unused, void *_target) { struct snl_parsed_addr *target = _target; @@ -370,7 +370,7 @@ static const struct snl_attr_parser _nla_p_nh[] = { }; static inline bool -_cb_p_nh(struct snl_state *ss, void *_target) +_cb_p_nh(struct snl_state *ss __unused, void *_target) { struct snl_parsed_nhop *target = _target;