net: make struct request_sock_ops::obj_size unsigned
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 22 May 2017 21:21:39 +0000 (00:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 May 2017 15:13:19 +0000 (11:13 -0400)
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.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/request_sock.h

index a12a5d25b27e650166cdd1bd8513317874b714da..53ced67c4ae9d85e83ee6df37f84158c9fd9c4d1 100644 (file)
@@ -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,