* [PATCH] net: make struct request_sock_ops::obj_size unsigned
@ 2017-05-22 21:21 Alexey Dobriyan
2017-05-23 15:13 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2017-05-22 21:21 UTC (permalink / raw)
To: davem; +Cc: netdev
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>
---
include/net/request_sock.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/include/net/request_sock.h
+++ b/include/net/request_sock.h
@@ -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,
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] net: make struct request_sock_ops::obj_size unsigned
2017-05-22 21:21 [PATCH] net: make struct request_sock_ops::obj_size unsigned Alexey Dobriyan
@ 2017-05-23 15:13 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-05-23 15:13 UTC (permalink / raw)
To: adobriyan; +Cc: netdev
From: Alexey Dobriyan <adobriyan@gmail.com>
Date: Tue, 23 May 2017 00:21:39 +0300
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-23 15:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-22 21:21 [PATCH] net: make struct request_sock_ops::obj_size unsigned Alexey Dobriyan
2017-05-23 15:13 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.