[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150314024954.GA10525@gondor.apana.org.au>
Date: Sat, 14 Mar 2015 13:49:54 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Thomas Graf <tgraf@...g.ch>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 5/6] rhashtable: Add rehash counter to bucket_table
On Fri, Mar 13, 2015 at 01:51:31PM +0000, Thomas Graf wrote:
> On 03/13/15 at 08:57pm, Herbert Xu wrote:
> > @@ -58,7 +59,8 @@ struct rhash_head {
> > * @buckets: size * hash buckets
> > */
> > struct bucket_table {
> > - size_t size;
> > + unsigned int size;
> > + unsigned int rehash;
> > u32 hash_rnd;
> > u32 shift;
> > unsigned int locks_mask;
>
> This changes causes a minor warning:
> lib/test_rhashtable.c: In function ‘test_bucket_stats’:
> lib/test_rhashtable.c:83:4: warning: format ‘%zu’ expects argument of
> type ‘size_t’, but argument 3 has type ‘unsigned int’ [-Wformat=]
> pr_info(" [%#4x/%zu]", i, tbl->size)
Thanks. I have now enabled test_rhashtable in my config so I
should be able to catch it next time.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists