Skip to content

Commit 79b69a8

Browse files
krzkdavem330
authored andcommitted
nfc: uapi: use kernel size_t to fix user-space builds
Fix user-space builds if it includes /usr/include/linux/nfc.h before some of other headers: /usr/include/linux/nfc.h:281:9: error: unknown type name ‘size_t’ 281 | size_t service_name_len; | ^~~~~~ Fixes: d646960 ("NFC: Initial LLCP support") Cc: <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7175f02 commit 79b69a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/linux/nfc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ struct sockaddr_nfc_llcp {
278278
__u8 dsap; /* Destination SAP, if known */
279279
__u8 ssap; /* Source SAP to be bound to */
280280
char service_name[NFC_LLCP_MAX_SERVICE_NAME]; /* Service name URI */;
281-
size_t service_name_len;
281+
__kernel_size_t service_name_len;
282282
};
283283

284284
/* NFC socket protocols */

0 commit comments

Comments
 (0)