The bluetooth code needs this function. It was introduced in upstream commit b4772ef87. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- backport/backport-include/net/sock.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backport/backport-include/net/sock.h b/backport/backport-include/net/sock.h index ec67b9e..1a0a415 100644 --- a/backport/backport-include/net/sock.h +++ b/backport/backport-include/net/sock.h @@ -38,4 +38,9 @@ #define SOCK_SELECT_ERR_QUEUE (SOCK_QUEUE_SHRUNK + 14) #endif +#ifndef sock_skb_cb_check_size +#define sock_skb_cb_check_size(size) \ + BUILD_BUG_ON((size) > FIELD_SIZEOF(struct sk_buff, cb)) +#endif + #endif /* __BACKPORT_NET_SOCK_H */ -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html