This is used by net/bluetooth/l2cap_sock.c

Signed-off-by: Hauke Mehrtens <[email protected]>
---
 backport/backport-include/linux/net.h |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/backport/backport-include/linux/net.h 
b/backport/backport-include/linux/net.h
index 9d7cbf5..07981da 100644
--- a/backport/backport-include/linux/net.h
+++ b/backport/backport-include/linux/net.h
@@ -41,4 +41,9 @@ do {                                                          
\
        net_ratelimited_function(pr_debug, fmt, ##__VA_ARGS__)
 #endif
 
+#ifndef DECLARE_SOCKADDR
+#define DECLARE_SOCKADDR(type, dst, src)       \
+       type dst = ({ __sockaddr_check_size(sizeof(*dst)); (type) src; })
+#endif
+
 #endif /* __BACKPORT_LINUX_NET_H */
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to