From nobody Mon Jul 04 08:38:59 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 844838A79DE; Mon, 4 Jul 2022 08:38: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 4Lbzjv3Fh8z4crs; Mon, 4 Jul 2022 08:38:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656923939; 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=JWPC9OlkGINsczXRRdYnLBkcLbeTUojaJZ0onpvaraY=; b=OPRRqplGgz84l45iprcQK8sQwBZX/ncYDvNLKOgso39Kq2L0v1iUbpNVQYyhU3aGXCAqxJ ZUR1QqbjiTNJ3xDbH7WFYYOQNO2LSfpfKNDkjeoeGWMCFbVLFV8QhqSqn9zILbCGLXoD7o UoVgPodYpyHoP/49J2SRHiKqv8454OMzXkvctHWmH/TCE+jD93YViSuUdKpamI+Et5euSj PyDjOQSIQor4D60UPlgVRUKAIDeK9+kcVPIga2SvVq5B4ahDLNbP/+DtiNRlrONMPfTeBV 2OxXKXt3feCVj2K4dgHi93IIprQWe+ijTFgINt1DpLHYJVa6n9A/SR41jmHuvQ== 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 4B0CF5A58; Mon, 4 Jul 2022 08:38:59 +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 2648cxFa090169; Mon, 4 Jul 2022 08:38:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2648cxaH090168; Mon, 4 Jul 2022 08:38:59 GMT (envelope-from git) Date: Mon, 4 Jul 2022 08:38:59 GMT Message-Id: <202207040838.2648cxaH090168@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: db4b40213a08 - main - routing: hide notify_add and notify_del behind ROUTE_MPATH 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: db4b40213a084809cc062605043f5e536ee3aa92 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656923939; 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=JWPC9OlkGINsczXRRdYnLBkcLbeTUojaJZ0onpvaraY=; b=vRwDNrLUpJeysu24c7ImJzKophgcd/LxpGOR/T46kCk0DPTZ7zH/1kNtmkjsVy5LqKBLVv 8z/dMZlDANXGNAsOlFhV2wNaKrErMgNF2xgMEY7m/anHaAIqjy4AQukpeGq1CIdSz98Ta1 +1r+88ApQkmjPfJEex0Hy3RqxfZTT0GTr8wZkL2kMPIejdsdtsh1StTDe0hTypCFK0TtxO 2ifvzq/FUvLLbEkBLW6yVja7gmw0LfUPNLx189UJ+JogYoFfYMepyUaM2hVZ4zIfGLzYJV Dh9FvfNo7j2flrTvIl60wd3feUB2aJuC7L4ETpD6TuIrGHUfOLW6GmvQCLMrfg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656923939; a=rsa-sha256; cv=none; b=t63Nl+5zgaq9VMheI82XBiEohk04uBNYYls0pUaxu2MDOnW4TUB1pIKU+X2aeVDWO55eXp ghbNPZ6dFO4osolYkLhC7B/LbH0kAFTqo3Guj/R1rGWulqk9bwtSf3nKMqBP/OAcgEm9AY 0nE/SCjP+Xvl5urpPgcpkWS0w4OL/LJ5oJ0TUSXWkprPJkOXQKcNl/UBxqX5trpL2LOWh8 1k77OpnWig+Wpt/+cYKYCDhUEkP8Fj/VvdG552JA2tSlMPUf1bm6mpRdF/B9xyO1kMUOwc XjFTUZ4fslTNeKmFh97eC0lJjlAnpFv5vy9qiYExs/OQW4LgZncfFo2jgwP+Tg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=db4b40213a084809cc062605043f5e536ee3aa92 commit db4b40213a084809cc062605043f5e536ee3aa92 Author: Mateusz Guzik AuthorDate: 2022-07-04 08:38:13 +0000 Commit: Mateusz Guzik CommitDate: 2022-07-04 08:38:13 +0000 routing: hide notify_add and notify_del behind ROUTE_MPATH Fixes a warn about unused routines without the option. Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/net/route/route_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/route/route_helpers.c b/sys/net/route/route_helpers.c index 1577df5513d3..ff6688a8434f 100644 --- a/sys/net/route/route_helpers.c +++ b/sys/net/route/route_helpers.c @@ -258,6 +258,7 @@ rib_lookup(uint32_t fibnum, const struct sockaddr *dst, uint32_t flags, return (nh); } +#ifdef ROUTE_MPATH static void notify_add(struct rib_cmd_info *rc, const struct weightened_nhop *wn_src, route_notification_t *cb, void *cbdata) { @@ -284,7 +285,6 @@ notify_del(struct rib_cmd_info *rc, const struct weightened_nhop *wn_src, cb(rc, cbdata); } -#ifdef ROUTE_MPATH static void decompose_change_notification(struct rib_cmd_info *rc, route_notification_t *cb, void *cbdata)