diff options
author | Robert Dolca <robert.dolca@intel.com> | 2015-10-26 07:58:54 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-10-28 01:44:45 -0400 |
commit | f11631748ee6973f85238109a3fa8ab8e760e5a4 (patch) | |
tree | b95898200f6a7c40dda4f954847dd098af75b081 /include/net/nfc | |
parent | d8e018c0b3211902af1bfb5d5b280f955a4633b7 (diff) |
NFC: nci: non-static functions can not be inline
This fixes a build error that seems to be toochain
dependent (Not seen with gcc v5.1):
In file included from net/nfc/nci/rsp.c:36:0:
net/nfc/nci/rsp.c: In function ‘nci_rsp_packet’:
include/net/nfc/nci_core.h:355:12: error: inlining failed in call to
always_inline ‘nci_prop_rsp_packet’: function body not available
inline int nci_prop_rsp_packet(struct nci_dev *ndev, __u16 opcode,
Signed-off-by: Robert Dolca <robert.dolca@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/net/nfc')
-rw-r--r-- | include/net/nfc/nci_core.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/nfc/nci_core.h b/include/net/nfc/nci_core.h index 5a1572a34c49..57ce24fb0047 100644 --- a/include/net/nfc/nci_core.h +++ b/include/net/nfc/nci_core.h | |||
@@ -352,13 +352,13 @@ static inline int nci_set_vendor_cmds(struct nci_dev *ndev, | |||
352 | 352 | ||
353 | void nci_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb); | 353 | void nci_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb); |
354 | void nci_ntf_packet(struct nci_dev *ndev, struct sk_buff *skb); | 354 | void nci_ntf_packet(struct nci_dev *ndev, struct sk_buff *skb); |
355 | inline int nci_prop_rsp_packet(struct nci_dev *ndev, __u16 opcode, | 355 | int nci_prop_rsp_packet(struct nci_dev *ndev, __u16 opcode, |
356 | struct sk_buff *skb); | 356 | struct sk_buff *skb); |
357 | inline int nci_prop_ntf_packet(struct nci_dev *ndev, __u16 opcode, | 357 | int nci_prop_ntf_packet(struct nci_dev *ndev, __u16 opcode, |
358 | struct sk_buff *skb); | 358 | struct sk_buff *skb); |
359 | inline int nci_core_rsp_packet(struct nci_dev *ndev, __u16 opcode, | 359 | int nci_core_rsp_packet(struct nci_dev *ndev, __u16 opcode, |
360 | struct sk_buff *skb); | 360 | struct sk_buff *skb); |
361 | inline int nci_core_ntf_packet(struct nci_dev *ndev, __u16 opcode, | 361 | int nci_core_ntf_packet(struct nci_dev *ndev, __u16 opcode, |
362 | struct sk_buff *skb); | 362 | struct sk_buff *skb); |
363 | void nci_rx_data_packet(struct nci_dev *ndev, struct sk_buff *skb); | 363 | void nci_rx_data_packet(struct nci_dev *ndev, struct sk_buff *skb); |
364 | int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, void *payload); | 364 | int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, void *payload); |