Skip to content

Commit a0f3ac3

Browse files
ldv-altgregkh
authored andcommitted
uapi: fix linux/nfc.h userspace compilation errors
commit 7175f02 upstream. 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: <stable@vger.kernel.org> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 818c9e0 commit a0f3ac3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎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)