netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: make struct inet_frags::qsize unsigned
@ 2017-05-22 21:20 Alexey Dobriyan
  2017-05-23 15:13 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2017-05-22 21:20 UTC (permalink / raw)
  To: davem; +Cc: netdev

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

Prepare for 32-bit kmem_cache_create().

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 include/net/inet_frag.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/include/net/inet_frag.h
+++ b/include/net/inet_frag.h
@@ -92,7 +92,7 @@ struct inet_frags {
 	 */
 	u32			rnd;
 	seqlock_t		rnd_seqlock;
-	int			qsize;
+	unsigned int		qsize;
 
 	unsigned int		(*hashfn)(const struct inet_frag_queue *);
 	bool			(*match)(const struct inet_frag_queue *q,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] net: make struct inet_frags::qsize unsigned
  2017-05-22 21:20 [PATCH net-next] net: make struct inet_frags::qsize 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:20:26 +0300

> This field is sizeof of corresponding kmem_cache so it can't be negative.
> 
> Prepare for 32-bit kmem_cache_create().
> 
> 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:20 [PATCH net-next] net: make struct inet_frags::qsize unsigned Alexey Dobriyan
2017-05-23 15:13 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).