Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp616335ybz; Wed, 29 Apr 2020 06:27:13 -0700 (PDT) X-Google-Smtp-Source: APiQypKsXyDDDGy4m/tkXegb+BfSutm2bKXMeYrkasQsYzxZ8PA8axuJmYRPF46iGI5Uv1LZ2DkF X-Received: by 2002:a17:906:3d69:: with SMTP id r9mr2656094ejf.20.1588166833446; Wed, 29 Apr 2020 06:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588166833; cv=none; d=google.com; s=arc-20160816; b=SAlUdshWZh+sb9klHQt24LvK1tPHUCZahHHb4WtIj60nsn4AwWjDberH3AT0H/q6mE 6OmN4J6BTpVkeBfwGjY1PtvnnJ37Ks87Rb7yprDE/QNn35wJWg9HXuJ+AW9Td6pHfPNp 4u1p0K3JT7FetTIrSWUC6CsZYqGBCrlVJ46blSsAPCp/hLL8mKGx5f/80q2Vh96AwhKY hjQXyRtryJ/KJxQbWwZ6Wfm2za1EjHXk/S1NohGyhqOUoA60MPMwomBrx2rAq3jmB8II xdGdvSdzshZNhpY0P4qwVPrkQJozP43YjhSSZpzRw0eZNhsoy6qc9/i4dCxmT0gU3MSy bgnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=4mz07HBfiHEwlymU/aQ6JBg5qCCeqw2cmh1vsCicu1Q=; b=jq0ym2hcV/wOg07WhB5tJcWXGafuqR+lFO9baLtRiSSZwf46G4lOmqXj+VYY1Q2bJ3 sUrIrzyZ9S0DP3VArD7CY4NypDy3ZWVnIOqAececu275+Q4Q+q2zUM31T/2BKtfrSAq1 7xsHGqbJblyOh9UwJcNaVLWJ7TaF657iHUhYBG6oP1uxm3v+F2LtYDteVe9AA1Utf88C nGOu2Nt7oPpRGuwBfm7/ylfJ+5aQYlZh/vh5M7CMYV6sf/490c9981rL4Hn4HVhB3hXK 9ef4Etg/k5a9Qs6W6qFUaWh0i6tOpSSSYb1XGPxYyBd8pkRbklFkik64XFU6OZJX5Vbe OvzQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si3353898edr.91.2020.04.29.06.26.50; Wed, 29 Apr 2020 06:27:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726973AbgD2NZP (ORCPT + 99 others); Wed, 29 Apr 2020 09:25:15 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:48836 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726654AbgD2NZP (ORCPT ); Wed, 29 Apr 2020 09:25:15 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id EDD7B31A2BEF9D52F325; Wed, 29 Apr 2020 21:24:56 +0800 (CST) Received: from localhost (10.166.215.154) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Wed, 29 Apr 2020 21:24:46 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH net-next] net: hsr: remove unused inline functions Date: Wed, 29 Apr 2020 21:24:30 +0800 Message-ID: <20200429132430.29948-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.166.215.154] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's no callers in-tree anymore. Signed-off-by: YueHaibing --- net/hsr/hsr_main.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/net/hsr/hsr_main.h b/net/hsr/hsr_main.h index 7321cf8d6d2c..f74193465bf5 100644 --- a/net/hsr/hsr_main.h +++ b/net/hsr/hsr_main.h @@ -62,15 +62,6 @@ struct hsr_tag { * with the path field in-between, which seems strange. I'm guessing the MAC * address definition is in error. */ -static inline u16 get_hsr_tag_path(struct hsr_tag *ht) -{ - return ntohs(ht->path_and_LSDU_size) >> 12; -} - -static inline u16 get_hsr_tag_LSDU_size(struct hsr_tag *ht) -{ - return ntohs(ht->path_and_LSDU_size) & 0x0FFF; -} static inline void set_hsr_tag_path(struct hsr_tag *ht, u16 path) { @@ -103,16 +94,6 @@ struct hsr_sup_payload { unsigned char macaddress_A[ETH_ALEN]; } __packed; -static inline u16 get_hsr_stag_path(struct hsr_sup_tag *hst) -{ - return get_hsr_tag_path((struct hsr_tag *)hst); -} - -static inline u16 get_hsr_stag_HSR_ver(struct hsr_sup_tag *hst) -{ - return get_hsr_tag_LSDU_size((struct hsr_tag *)hst); -} - static inline void set_hsr_stag_path(struct hsr_sup_tag *hst, u16 path) { set_hsr_tag_path((struct hsr_tag *)hst, path); -- 2.17.1