Skip to content

Commit

Permalink
nfc: uapi: use kernel size_t to fix user-space builds
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
krzk authored and davem330 committed Dec 27, 2021
1 parent 7175f02 commit 79b69a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/linux/nfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ struct sockaddr_nfc_llcp {
__u8 dsap; /* Destination SAP, if known */
__u8 ssap; /* Source SAP to be bound to */
char service_name[NFC_LLCP_MAX_SERVICE_NAME]; /* Service name URI */;
size_t service_name_len;
__kernel_size_t service_name_len;
};

/* NFC socket protocols */
Expand Down

0 comments on commit 79b69a8

Please sign in to comment.