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. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
4c0ebd6fed
commit
417ccf6b5b
@@ -29,7 +29,7 @@ struct proto;
|
|||||||
|
|
||||||
struct request_sock_ops {
|
struct request_sock_ops {
|
||||||
int family;
|
int family;
|
||||||
int obj_size;
|
unsigned int obj_size;
|
||||||
struct kmem_cache *slab;
|
struct kmem_cache *slab;
|
||||||
char *slab_name;
|
char *slab_name;
|
||||||
int (*rtx_syn_ack)(const struct sock *sk,
|
int (*rtx_syn_ack)(const struct sock *sk,
|
||||||
|
|||||||
Reference in New Issue
Block a user