Skip to contentSkip to conversation

net: make struct request_sock_ops::obj_size unsigned

PATCH Applied Alexey Dobriyan 2 participants 2 messages May 22, 2017 – May 23, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: make struct request_sock_ops::obj_size unsigned

This field is sizeof of corresponding kmem_cache so it can't be negative.

Space will be saved after 32-bit kmem_cache_create() patch.

---

 include/net/request_sock.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/request_sock.h +1 -1
@@ -29,7 +29,7 @@ struct proto;
 
 struct request_sock_ops {
 	int		family;
-	int		obj_size;
+	unsigned int	obj_size;
 	struct kmem_cache	*slab;
 	char		*slab_name;
 	int		(*rtx_syn_ack)(const struct sock *sk,