Skip to content

Commit

Permalink
net: make struct request_sock_ops::obj_size unsigned
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed May 23, 2017
1 parent 4c0ebd6 commit 417ccf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/request_sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 417ccf6

Please sign in to comment.