Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: hsr: remove unused inline functions

There's no callers in-tree anymore.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

YueHaibing and committed by
David S. Miller
ad566231 a54776f2

-19
-19
net/hsr/hsr_main.h
··· 62 62 * with the path field in-between, which seems strange. I'm guessing the MAC 63 63 * address definition is in error. 64 64 */ 65 - static inline u16 get_hsr_tag_path(struct hsr_tag *ht) 66 - { 67 - return ntohs(ht->path_and_LSDU_size) >> 12; 68 - } 69 - 70 - static inline u16 get_hsr_tag_LSDU_size(struct hsr_tag *ht) 71 - { 72 - return ntohs(ht->path_and_LSDU_size) & 0x0FFF; 73 - } 74 65 75 66 static inline void set_hsr_tag_path(struct hsr_tag *ht, u16 path) 76 67 { ··· 93 102 struct hsr_sup_payload { 94 103 unsigned char macaddress_A[ETH_ALEN]; 95 104 } __packed; 96 - 97 - static inline u16 get_hsr_stag_path(struct hsr_sup_tag *hst) 98 - { 99 - return get_hsr_tag_path((struct hsr_tag *)hst); 100 - } 101 - 102 - static inline u16 get_hsr_stag_HSR_ver(struct hsr_sup_tag *hst) 103 - { 104 - return get_hsr_tag_LSDU_size((struct hsr_tag *)hst); 105 - } 106 105 107 106 static inline void set_hsr_stag_path(struct hsr_sup_tag *hst, u16 path) 108 107 {