Skip to content

Commit 7175f02

Browse files
ldv-altdavem330
authored andcommitted
uapi: fix linux/nfc.h userspace compilation errors
Replace sa_family_t with __kernel_sa_family_t to fix the following linux/nfc.h userspace compilation errors: /usr/include/linux/nfc.h:266:2: error: unknown type name 'sa_family_t' sa_family_t sa_family; /usr/include/linux/nfc.h:274:2: error: unknown type name 'sa_family_t' sa_family_t sa_family; Fixes: 23b7869 ("NFC: add the NFC socket raw protocol") Fixes: d646960 ("NFC: Initial LLCP support") Cc: <[email protected]> Signed-off-by: Dmitry V. Levin <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ca506fc commit 7175f02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/uapi/linux/nfc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,15 +263,15 @@ enum nfc_sdp_attr {
263263
#define NFC_SE_ENABLED 0x1
264264

265265
struct sockaddr_nfc {
266-
sa_family_t sa_family;
266+
__kernel_sa_family_t sa_family;
267267
__u32 dev_idx;
268268
__u32 target_idx;
269269
__u32 nfc_protocol;
270270
};
271271

272272
#define NFC_LLCP_MAX_SERVICE_NAME 63
273273
struct sockaddr_nfc_llcp {
274-
sa_family_t sa_family;
274+
__kernel_sa_family_t sa_family;
275275
__u32 dev_idx;
276276
__u32 target_idx;
277277
__u32 nfc_protocol;

0 commit comments

Comments
 (0)