From: Dmitry V. Levin <hidden> Date: 2021-12-25 23:42:34
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;
Link: https://lore.kernel.org/lkml/20170220181613.GB11185@altlinux.org/
Signed-off-by: Dmitry V. Levin <redacted>
---
The patch was submitted almost 5 years ago, and I was under impression
that it was applied among others of this kind, but, apparently,
it's still relevant.
include/uapi/linux/nfc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Krzysztof Kozlowski <hidden> Date: 2021-12-26 11:42:10
On 26/12/2021 00:42, Dmitry V. Levin wrote:
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;
Link: https://lore.kernel.org/lkml/20170220181613.GB11185@altlinux.org/
Please skip the link. There will be link added for current patch which
leads to this discussion. There was no discussion in 2017.
quoted hunk
Signed-off-by: Dmitry V. Levin <redacted>
---
The patch was submitted almost 5 years ago, and I was under impression
that it was applied among others of this kind, but, apparently,
it's still relevant.
include/uapi/linux/nfc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
include/uapi/linux/nfc.h includes linux/socket.h which defines typedef:
__kernel_sa_family_t sa_family_t;
so how exactly the build is being fixed? How to reproduce it?
Best regards,
Krzysztof
From: Krzysztof Kozlowski <hidden> Date: 2021-12-26 11:58:17
On 26/12/2021 12:42, Krzysztof Kozlowski wrote:
On 26/12/2021 00:42, Dmitry V. Levin wrote:
quoted
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;
Link: https://lore.kernel.org/lkml/20170220181613.GB11185@altlinux.org/
Please skip the link. There will be link added for current patch which
leads to this discussion. There was no discussion in 2017.
quoted
Signed-off-by: Dmitry V. Levin <redacted>
---
The patch was submitted almost 5 years ago, and I was under impression
that it was applied among others of this kind, but, apparently,
it's still relevant.
include/uapi/linux/nfc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
include/uapi/linux/nfc.h includes linux/socket.h which defines typedef:
__kernel_sa_family_t sa_family_t;
so how exactly the build is being fixed? How to reproduce it?
Ok, I see the error - when user-space does not include sys/socket.h.
Makes sense, can you resend with removed Link and with:
Fixes: 23b7869c0fd0 ("NFC: add the NFC socket raw protocol")
Fixes: d646960f7986 ("NFC: Initial LLCP support")
Best regards,
Krzysztof
From: Jakub Kicinski <kuba@kernel.org> Date: 2021-12-28 02:08:25
On Sun, 26 Dec 2021 16:01:27 +0300 Dmitry V. Levin wrote:
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: 23b7869c0fd0 ("NFC: add the NFC socket raw protocol")
Fixes: d646960f7986 ("NFC: Initial LLCP support")
Cc: <redacted>
Signed-off-by: Dmitry V. Levin <redacted>