From nobody Sat May 20 16:28:32 2023 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 4QNq011Jhxz4CFjn; Sat, 20 May 2023 16:28: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 4QNq010ndwz3Dlw; Sat, 20 May 2023 16:28:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684600113; 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=m6avASgE97BppA8kkDnmjH87Bfa4monbqKwUHR7Hlww=; b=Nzjn5R5lhUXLJEiFhZp1FYqd/LUHykSvmXCgy1AUBaV40Z9oIALO0yt4MfP8s3J5uvgEJz rCKFIuaOYQKG+oOPbFPiJ04tb+cdH+dfCJVDCqoRhPVLX8LC+r/jCIO9Npi71TJhtnh3pQ zOhKbKj13dRNYegOVOa75LJ6oT4EGUexOR+dVRXnLnyOOtRoKaJjmb+c+qSf0tKaft6Yws 1xgfj9vRq7osj4+cvkL/OXBafrNK0/5VM5boaSCuhRPMbYedz2ZiXU8PAuspyhDfRA+6id +WbPoVj3rKjBAWfRZwYfx7QF3i8uJKkFr6XjicyGV09JvTbixVAvxYQNF0X8hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684600113; 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=m6avASgE97BppA8kkDnmjH87Bfa4monbqKwUHR7Hlww=; b=GoT+6P/xTfCL/yiGnRm66Ath06QojMe+aOl0Y16CMQXwxdwCZsurrEw6u31I+XU8Ec8b8F hzszfI1dMYTvWbx956pKWQJ6fFVITlgD4+AbsUtAVaOc3oZyJU4MXwt6gGPt0C/Pp6Rf/o ldAksY3SEeCU0idcAwBqT8E+wB3fIYuE/cj/ErCKlL9fwRdoTBPAsw7lWp1411cYLnfkNc cdguaO7wtTXmKIu1575/m/iuRXWGmADGgQVEyNCD/t/DUbQHfWtfH/EwA5983Hwfc1cKqw 8JV1QonwkvJMu6I988nnOR0E/BJ9hpwGA9bNe3v+BvdfshTLXMerol/6zytPIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684600113; a=rsa-sha256; cv=none; b=toqZn6uND8meRIiX7mHQY+MPkc9lP6u1KTiPFUosUGVwzCY1lO7thCqpsOkaRNKZsMFUrz fehlJD2G47JsEpTpDiu9JME4jCz+0Ztlv8f5gg/atUwhfZngZtIj+Hecx+rpjX2luWZboi fX3ib0DD1dJ4b8FOl/dI1SUSBMLxynWdQDlfhcoDKmhK5hnxRpTRRFQzUrZQc/dAqhA6B6 mnY+tsT8kOzH3NRwUUjkyOUAqq1+Ni1Tda/QD7QW4EMk1EklEdMcy31K97UZHDDVqHhjxu bnHuJKKnCW8+KGbWpsWj0JlvsZUM/E+2yBH4uk12GqtHw2m3+89qrZTWEZ0wKw== 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 4QNq006z1RzH4C; Sat, 20 May 2023 16:28:32 +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 34KGSWEv095600; Sat, 20 May 2023 16:28:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34KGSWF2095599; Sat, 20 May 2023 16:28:32 GMT (envelope-from git) Date: Sat, 20 May 2023 16:28:32 GMT Message-Id: <202305201628.34KGSWF2095599@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: ac6dd012590e - main - netlink: Move an INET-only variable under #if. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ac6dd012590e01f6a5fef490d52ffb4a6ca97798 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ac6dd012590e01f6a5fef490d52ffb4a6ca97798 commit ac6dd012590e01f6a5fef490d52ffb4a6ca97798 Author: John Baldwin AuthorDate: 2023-05-20 16:26:46 +0000 Commit: John Baldwin CommitDate: 2023-05-20 16:26:46 +0000 netlink: Move an INET-only variable under #if. This fixes the LINT-NOIP build. --- sys/netlink/route/iface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netlink/route/iface.c b/sys/netlink/route/iface.c index 33a5dbfec3a3..84392aa5d7f7 100644 --- a/sys/netlink/route/iface.c +++ b/sys/netlink/route/iface.c @@ -1258,7 +1258,9 @@ rtnl_handle_addr(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt) return (ENOENT); } +#if defined(INET) || defined(INET6) bool new = hdr->nlmsg_type == NL_RTM_NEWADDR; +#endif /* * TODO: Properly handle NLM_F_CREATE / NLM_F_EXCL.