nfc: uapi: use kernel size_t to fix user-space builds
Subsystems (4)
PATCH 1/1 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 d646960f7986 ("NFC: Initial LLCP support")
Cc <[email protected]>
Signed-off-by Krzysztof Kozlowski <[email protected]>
--- include/uapi/linux/nfc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/nfc.h +1 -1
@@ -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 */
Signature · 1 line
2.32.0
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:
Quoted 8 lines · On Sun, 26 Dec 2021 13:03:47 +0100 you wrote:
Fix user-space builds if it includes
/usr/include/linux/nfc.hbefore some of other headers:
/usr/include/linux/nfc.h:281:9: error: unknown type name ‘size_t’281 | size_t service_name_len; | ^~~~~~[...]
Here is the summary with links:
- nfc: uapi: use kernel size_t to fix user-space builds
https://git.kernel.org/netdev/net/c/79b69a83705e
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html