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

net: tipc: remove unused static inlines

IIUC the TIPC msg helpers are not meant to provide
and exhaustive API, so remove the unused ones.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jakub Kicinski and committed by
David S. Miller
5e4eca5d a459bc9a

-23
-23
net/tipc/msg.h
··· 226 226 m->hdr[w] |= htonl(val); 227 227 } 228 228 229 - static inline void msg_swap_words(struct tipc_msg *msg, u32 a, u32 b) 230 - { 231 - u32 temp = msg->hdr[a]; 232 - 233 - msg->hdr[a] = msg->hdr[b]; 234 - msg->hdr[b] = temp; 235 - } 236 - 237 229 /* 238 230 * Word 0 239 231 */ ··· 470 478 static inline void msg_incr_reroute_cnt(struct tipc_msg *m) 471 479 { 472 480 msg_set_bits(m, 1, 21, 0xf, msg_reroute_cnt(m) + 1); 473 - } 474 - 475 - static inline void msg_reset_reroute_cnt(struct tipc_msg *m) 476 - { 477 - msg_set_bits(m, 1, 21, 0xf, 0); 478 481 } 479 482 480 483 static inline u32 msg_lookup_scope(struct tipc_msg *m) ··· 787 800 msg_set_word(m, 2, n); 788 801 } 789 802 790 - static inline u32 msg_bcgap_after(struct tipc_msg *m) 791 - { 792 - return msg_bits(m, 2, 16, 0xffff); 793 - } 794 - 795 803 static inline void msg_set_bcgap_after(struct tipc_msg *m, u32 n) 796 804 { 797 805 msg_set_bits(m, 2, 16, 0xffff, n); ··· 846 864 } 847 865 848 866 static inline void msg_set_next_sent(struct tipc_msg *m, u16 n) 849 - { 850 - msg_set_bits(m, 4, 0, 0xffff, n); 851 - } 852 - 853 - static inline void msg_set_long_msgno(struct tipc_msg *m, u32 n) 854 867 { 855 868 msg_set_bits(m, 4, 0, 0xffff, n); 856 869 }