LKML Archive mirror
 help / color / mirror / Atom feed
* [PATCH] nfc: uapi: use kernel size_t to fix user-space builds
@ 2021-12-26 12:03 Krzysztof Kozlowski
  2021-12-27 15:10 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2021-12-26 12:03 UTC (permalink / raw
  To: Krzysztof Kozlowski, linux-nfc, netdev, linux-kernel
  Cc: Dmitry V . Levin, Arnd Bergmann, stable

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: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 include/uapi/linux/nfc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/nfc.h b/include/uapi/linux/nfc.h
index f6e3c8c9c744..bb94aac5636c 100644
--- a/include/uapi/linux/nfc.h
+++ b/include/uapi/linux/nfc.h
@@ -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 */
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] nfc: uapi: use kernel size_t to fix user-space builds
  2021-12-26 12:03 [PATCH] nfc: uapi: use kernel size_t to fix user-space builds Krzysztof Kozlowski
@ 2021-12-27 15:10 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-12-27 15:10 UTC (permalink / raw
  To: Krzysztof Kozlowski; +Cc: linux-nfc, netdev, linux-kernel, ldv, arnd, stable

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@davemloft.net>:

On Sun, 26 Dec 2021 13:03:47 +0100 you wrote:
> 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;
>         |         ^~~~~~
> 
> [...]

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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-27 15:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-26 12:03 [PATCH] nfc: uapi: use kernel size_t to fix user-space builds Krzysztof Kozlowski
2021-12-27 15:10 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).