Skip to content

Commit 645d359

Browse files
Samuel Ortizlinvjw
authored andcommitted
NFC: Fix LLCP related build failure
llcp_mac routines should be static and inlined or build will fail with NFC selected without LLCP. This patch fixes: LD [M] net/nfc/nfc.o net/nfc/netlink.o: In function `nfc_llcp_mac_is_down': netlink.c:(.text+0x0): multiple definition of `nfc_llcp_mac_is_down' net/nfc/core.o:(.text+0x0): first defined here net/nfc/netlink.o: In function `nfc_llcp_mac_is_up': netlink.c:(.text+0x10): multiple definition of `nfc_llcp_mac_is_up' net/nfc/core.o:(.text+0x10): first defined here net/nfc/af_nfc.o: In function `nfc_llcp_mac_is_down': (.text+0x0): multiple definition of `nfc_llcp_mac_is_down' net/nfc/core.o:(.text+0x0): first defined here net/nfc/af_nfc.o: In function `nfc_llcp_mac_is_up': (.text+0x10): multiple definition of `nfc_llcp_mac_is_up' net/nfc/core.o:(.text+0x10): first defined here net/nfc/rawsock.o: In function `nfc_llcp_mac_is_down': rawsock.c:(.text+0x0): multiple definition of `nfc_llcp_mac_is_down' net/nfc/core.o:(.text+0x0): first defined here net/nfc/rawsock.o: In function `nfc_llcp_mac_is_up': rawsock.c:(.text+0x10): multiple definition of `nfc_llcp_mac_is_up' net/nfc/core.o:(.text+0x10): first defined here Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 186630c commit 645d359

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/nfc/nfc.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ void nfc_llcp_exit(void);
6060

6161
#else
6262

63-
void nfc_llcp_mac_is_down(struct nfc_dev *dev)
63+
static inline void nfc_llcp_mac_is_down(struct nfc_dev *dev)
6464
{
6565
}
6666

67-
void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx,
67+
static inline void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx,
6868
u8 comm_mode, u8 rf_mode)
6969
{
7070
}

0 commit comments

Comments
 (0)