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

NFC: hci: delete unused nfc_llc_get_rx_head_tail_room()

It used to be EXPORTed, but then EXPORT usage was cleaned up
(in 2012), without noticing that the function has no users at all
(and curiously, never had any users).

Delete it.

While at it, remove non-static "inline" hints on nearby functions:
these hints don't work across compilation units anyway,
and these functions are not used in their .c file, thus they are
never inlined. IOW: "inline" here does not help in any way.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
CC: Samuel Ortiz <sameo@linux.intel.com>
CC: Christophe Ricard <christophe.ricard@gmail.com>
CC: linux-wireless@vger.kernel.org
CC: linux-kernel@vger.kernel.org
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Denys Vlasenko and committed by
Samuel Ortiz
f86dec94 f36acc33

+5 -16
-4
include/net/nfc/llc.h
··· 37 37 int tx_tailroom, llc_failure_t llc_failure); 38 38 void nfc_llc_free(struct nfc_llc *llc); 39 39 40 - void nfc_llc_get_rx_head_tail_room(struct nfc_llc *llc, int *rx_headroom, 41 - int *rx_tailroom); 42 - 43 - 44 40 int nfc_llc_start(struct nfc_llc *llc); 45 41 int nfc_llc_stop(struct nfc_llc *llc); 46 42 void nfc_llc_rcv_from_drv(struct nfc_llc *llc, struct sk_buff *skb);
+5 -12
net/nfc/hci/llc.c
··· 133 133 kfree(llc); 134 134 } 135 135 136 - inline void nfc_llc_get_rx_head_tail_room(struct nfc_llc *llc, int *rx_headroom, 137 - int *rx_tailroom) 138 - { 139 - *rx_headroom = llc->rx_headroom; 140 - *rx_tailroom = llc->rx_tailroom; 141 - } 142 - 143 - inline int nfc_llc_start(struct nfc_llc *llc) 136 + int nfc_llc_start(struct nfc_llc *llc) 144 137 { 145 138 return llc->ops->start(llc); 146 139 } 147 140 EXPORT_SYMBOL(nfc_llc_start); 148 141 149 - inline int nfc_llc_stop(struct nfc_llc *llc) 142 + int nfc_llc_stop(struct nfc_llc *llc) 150 143 { 151 144 return llc->ops->stop(llc); 152 145 } 153 146 EXPORT_SYMBOL(nfc_llc_stop); 154 147 155 - inline void nfc_llc_rcv_from_drv(struct nfc_llc *llc, struct sk_buff *skb) 148 + void nfc_llc_rcv_from_drv(struct nfc_llc *llc, struct sk_buff *skb) 156 149 { 157 150 llc->ops->rcv_from_drv(llc, skb); 158 151 } 159 152 160 - inline int nfc_llc_xmit_from_hci(struct nfc_llc *llc, struct sk_buff *skb) 153 + int nfc_llc_xmit_from_hci(struct nfc_llc *llc, struct sk_buff *skb) 161 154 { 162 155 return llc->ops->xmit_from_hci(llc, skb); 163 156 } 164 157 165 - inline void *nfc_llc_get_data(struct nfc_llc *llc) 158 + void *nfc_llc_get_data(struct nfc_llc *llc) 166 159 { 167 160 return llc->data; 168 161 }