From nobody Fri Jan 13 21:24:49 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 4NtvZV2jhmz2qkYH; Fri, 13 Jan 2023 21:24:50 +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 4NtvZV0V46z40pM; Fri, 13 Jan 2023 21:24:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673645090; 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=AK+X+qLU1+NV3xUhG0zw+FkU8wKDJ5BArXb7DYusSVk=; b=rVVSVzKFmAly7ktGpaU8g4nCF/RNqog6aTT9CT7bgenwpwQQP8So5QNI8KBUu4dCPgWygq /kbgoluYkO++e9UlWGs+I0NOpCEwhxiJxwrWyvbO4GEEo+YZ2ch2LToczsvlPR9icQLkyi CL1m7eT+ckOhTmUlFuG6BSpFjfx3ScZHWt9eedEb549BmpGrqtAim7XT4A1D0DfmIkdlEm 8lYAQSJnGCSpTeCe8JQPHyyBuV4V2xdOUQb966ERHDymc1YUw1OWVsr1t8aXX+gKbVt2qV sYHBVE+Pe37kG9vIpT6daLXUGwearlLEmtV/YWyA5zXntBpUMxEJB7LqKEhhWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673645090; 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=AK+X+qLU1+NV3xUhG0zw+FkU8wKDJ5BArXb7DYusSVk=; b=aRNtaltiiOVN/vVSGbfneAk3HluymRdsIXyPRd7LHrS9fijzsOCACF6AcxkCSZwwN9CvNs Xr4iXwRJ7jTI+JtPH8+k3YqSrD6yHdnhJGlMJXKlxGL87xhiATB41b6SnQ7BOVYAYPeZc+ RaKZ+nZG3KLY9XD3wKRgMARkz6unJ/ksLSYa705bSJplvZSdC78QZnJQrCqChB4KUKZqwU ThlyfjR9yhQ7Vr7NsnCLkv5PoBLZxjgisisOVj7IJCoh15qv5bpsZVzS1bEolaTIVWxCTC RcTwHsiHxxEDAS4rpQuj10FTu0nQDXjUYm6ecW3NmDf1WpCga86KAjl4uIOuTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673645090; a=rsa-sha256; cv=none; b=npiZVjF3cP7iy+S0IQxYoAsQyq2XWZXZQz8p6cuI2DnMttXqt+l9dRLJwE3fBNFzWt87Bi /QOeP3zVY2YBawhE9pO2MO+PA037hT/kNgd0TqUseNnOncP53R+GGPrCKgE81rY13c8+D7 sdCoB4MJiuAlifCQLdmffdyJaPIQq2yHNFrJ766re8vyjG0C3ZjdDjLiuaB7Dp0r3jFu4o bkd3tEdDQUXIU6Tg7g9NBWqCDoxkfoXcA6+r97p6ihMCct+xvLe4xx+1A6pHpwofnvUq2I aAm6H9Io4aDc5eDGbr/s6q1GolfYrt8C3YmA/hdbEQBLCmQP9NJBQl341UYiGQ== 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 4NtvZT6N7yzND9; Fri, 13 Jan 2023 21:24: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 30DLOnEF040803; Fri, 13 Jan 2023 21:24:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30DLOnvN040802; Fri, 13 Jan 2023 21:24:49 GMT (envelope-from git) Date: Fri, 13 Jan 2023 21:24:49 GMT Message-Id: <202301132124.30DLOnvN040802@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: 50998292d197 - stable/13 - 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: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 50998292d197d0011ad2815b462bd32640651f55 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=50998292d197d0011ad2815b462bd32640651f55 commit 50998292d197d0011ad2815b462bd32640651f55 Author: Mateusz Guzik AuthorDate: 2022-07-04 08:38:13 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-01-13 21:18:25 +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") (cherry picked from commit db4b40213a084809cc062605043f5e536ee3aa92) --- 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)