ANDROID: add flags variable back to struct proto_ops

In commit a3025359ff ("net: remove cmsg restriction from io_uring
based send/recvmsg calls") the flags variable was removed from struct
proto_ops as it is no longer needed.

But the ABI signatures break, so put it back to preserve this, there's
no functional change here.

Bug: 161946584
Fixes: a3025359ff ("net: remove cmsg restriction from io_uring based send/recvmsg calls")
Change-Id: Ic6a868f038701a61c993e18b44cdd8ec8b0a4d58
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2023-01-09 12:14:31 +00:00
parent 8596b99884
commit 332c489d8b

View File

@@ -137,6 +137,8 @@ typedef int (*sk_read_actor_t)(read_descriptor_t *, struct sk_buff *,
struct proto_ops {
int family;
unsigned int flags; // ANDROID - removed in 5.10.162, but remains to
// preserve ABI. It is not used anywhere.
struct module *owner;
int (*release) (struct socket *sock);
int (*bind) (struct socket *sock,