Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp988950pxt; Fri, 6 Aug 2021 20:32:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcEadotBQtGomtHnTSL/SuW7+NXmHXabWCwMFsk+jBMVMLgX4cvJYgYDQXqaC28Q7EJtEC X-Received: by 2002:a05:6e02:1c23:: with SMTP id m3mr131978ilh.294.1628307135658; Fri, 06 Aug 2021 20:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628307135; cv=none; d=google.com; s=arc-20160816; b=q5Ag8SXy4SUHHqETmXemPMrnra/MLLV4ma/SUUP0n+ZnN7e3XNA6nctoRMHLg+aRJP QpJxlz+KOy8G7gkYyUxa0ZvmPL1NU9DhLaQlmMOJD74aVf8FPQHNxpJVIwfj0MEOKq3c THqcMT16Mb7jjC11Cr4Vlxq97mJW3C+FhVauxIeFWntF/AiK5d9ROPhLXDDjuPJdgf4p 9H7RgoCjd7yTgIESGVqrFbmlJiPe8/8W1OMSlsqxatwop0Te12tevZAzgJ2kP/EGyuk2 rgz/FPacXaPC9BfC0bg+TMzicmMLNCGk2IjsqK+hk4++j9eqDclBiGwC1XiD78Slxo2o Y79g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1GPVvs1yoqBSBjZUGINHsGdiiToWdyqKwx+nEq67PUs=; b=mbW2iq04RnUp15OZvp+/orjbLvarM4Sml08nIDijwqt57lbgFpNSBwapt49qPBoO8Z 8YwYuPBtFQhwXRDib330VT0fHygbkRTTk6G89L7cmKFwUpPC/CO8nhtkoUOf13o4xPAb vo96lDfjTfsTUS5Hye5gKKWcAop2SCkJehbNWOtLeMFx19MMdIkEwbpQcSwz5wwitWnn PohHkEdrcxzm+sxuMVUxuK20CRzAwNSBRFnyHmsLdWpugnshrBxbz0I5jB5QXCGTIOeU CMg95nm2MTjDvD4Bnjj8qIOAPM5Zzb2w/I+uDJeniNwjXnVPcoENZ1bj3rKcJvuMIfcC Df9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dsY11X+y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t16si11142143ilm.159.2021.08.06.20.32.03; Fri, 06 Aug 2021 20:32:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dsY11X+y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230445AbhHGDbb (ORCPT + 99 others); Fri, 6 Aug 2021 23:31:31 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:60497 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230420AbhHGDba (ORCPT ); Fri, 6 Aug 2021 23:31:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628307073; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1GPVvs1yoqBSBjZUGINHsGdiiToWdyqKwx+nEq67PUs=; b=dsY11X+yh3OWE7awz4TD89Oznr+Gx3UYoIvjXOe3nb46FmEvWsfCOyohFWiNv3vfkdPMSL GmsPQZnqNdyBzOqN2c5jVp1+k4nCjruepOi0zSyWBSnk7jbYXVwKwfKuD7aMKDTZ5l6ReC P5QM8Njivy5H96rP9xje92bDmuIzQNw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-292-Y7fME_fQNbepwMSLLhtWyw-1; Fri, 06 Aug 2021 23:31:10 -0400 X-MC-Unique: Y7fME_fQNbepwMSLLhtWyw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 101A7180FCC5; Sat, 7 Aug 2021 03:31:09 +0000 (UTC) Received: from jtoppins.rdu.csb (unknown [10.22.8.31]) by smtp.corp.redhat.com (Postfix) with ESMTP id E17F119C59; Sat, 7 Aug 2021 03:31:07 +0000 (UTC) From: Jonathan Toppins To: netdev@vger.kernel.org Cc: Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , "David S. Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/2] bonding: remove extraneous definitions from bonding.h Date: Fri, 6 Aug 2021 23:30:54 -0400 Message-Id: <88916c847e85e726f8fa93ff60dccadcf02b3d6e.1628306392.git.jtoppins@redhat.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All of the symbols either only exist in bond_options.c or nowhere at all. These symbols were verified to not exist in the code base by using `git grep` and their removal was verified by compiling bonding.ko. Signed-off-by: Jonathan Toppins --- include/net/bonding.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/net/bonding.h b/include/net/bonding.h index 46df47004803..2ff4ac65bbe3 100644 --- a/include/net/bonding.h +++ b/include/net/bonding.h @@ -150,11 +150,6 @@ struct bond_params { u8 ad_actor_system[ETH_ALEN + 2]; }; -struct bond_parm_tbl { - char *modename; - int mode; -}; - struct slave { struct net_device *dev; /* first - useful for panic debug */ struct bonding *bond; /* our master */ @@ -754,13 +749,6 @@ static inline int bond_get_targets_ip(__be32 *targets, __be32 ip) /* exported from bond_main.c */ extern unsigned int bond_net_id; -extern const struct bond_parm_tbl bond_lacp_tbl[]; -extern const struct bond_parm_tbl xmit_hashtype_tbl[]; -extern const struct bond_parm_tbl arp_validate_tbl[]; -extern const struct bond_parm_tbl arp_all_targets_tbl[]; -extern const struct bond_parm_tbl fail_over_mac_tbl[]; -extern const struct bond_parm_tbl pri_reselect_tbl[]; -extern struct bond_parm_tbl ad_select_tbl[]; /* exported from bond_netlink.c */ extern struct rtnl_link_ops bond_link_ops; -- 2.27.0