netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] rhashtable: fix missing header
@ 2015-01-04  7:25 Ying Xue
  2015-01-04  9:19 ` Thomas Graf
  0 siblings, 1 reply; 5+ messages in thread
From: Ying Xue @ 2015-01-04  7:25 UTC (permalink / raw)
  To: tgraf; +Cc: davem, netdev

Fixup below build error:

include/linux/rhashtable.h: At top level:
include/linux/rhashtable.h:118:34: error: field ‘mutex’ has incomplete type

Signed-off-by: Ying Xue <ying.xue@windriver.com>
---
 include/linux/rhashtable.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h
index de7cac7..de1459c7 100644
--- a/include/linux/rhashtable.h
+++ b/include/linux/rhashtable.h
@@ -20,6 +20,7 @@
 
 #include <linux/list_nulls.h>
 #include <linux/workqueue.h>
+#include <linux/mutex.h>
 
 /*
  * The end of the chain is marked with a special nulls marks which has
-- 
1.7.9.5

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

* Re: [PATCH net-next] rhashtable: fix missing header
  2015-01-04  7:25 [PATCH net-next] rhashtable: fix missing header Ying Xue
@ 2015-01-04  9:19 ` Thomas Graf
  2015-01-04  9:24   ` Ying Xue
  2015-01-05  4:12   ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Graf @ 2015-01-04  9:19 UTC (permalink / raw)
  To: Ying Xue; +Cc: davem, netdev

On 01/04/15 at 03:25pm, Ying Xue wrote:
> Fixup below build error:
> 
> include/linux/rhashtable.h: At top level:
> include/linux/rhashtable.h:118:34: error: field ???mutex??? has incomplete type

Just wondering, is this your new code that didn't compile? The code
compiled fine for me for the existing users.

> Signed-off-by: Ying Xue <ying.xue@windriver.com>

Fixes: 97defe1e ("rhashtable: Per bucket locks & deferred expansion/shrinking")
Acked-by: Thomas Graf <tgraf@suug.ch>

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

* Re: [PATCH net-next] rhashtable: fix missing header
  2015-01-04  9:19 ` Thomas Graf
@ 2015-01-04  9:24   ` Ying Xue
  2015-01-04  9:57     ` Thomas Graf
  2015-01-05  4:12   ` David Miller
  1 sibling, 1 reply; 5+ messages in thread
From: Ying Xue @ 2015-01-04  9:24 UTC (permalink / raw)
  To: Thomas Graf; +Cc: davem, netdev

On 01/04/2015 05:19 PM, Thomas Graf wrote:
> On 01/04/15 at 03:25pm, Ying Xue wrote:
>> Fixup below build error:
>>
>> include/linux/rhashtable.h: At top level:
>> include/linux/rhashtable.h:118:34: error: field ???mutex??? has incomplete type
> 
> Just wondering, is this your new code that didn't compile? The code
> compiled fine for me for the existing users.
> 

When I did below patch, I met the build error.

http://patchwork.ozlabs.org/patch/425149/

By the way, please help to review the patch if you have time :)

Thanks!

Regards,
Ying

>> Signed-off-by: Ying Xue <ying.xue@windriver.com>
> 
> Fixes: 97defe1e ("rhashtable: Per bucket locks & deferred expansion/shrinking")
> Acked-by: Thomas Graf <tgraf@suug.ch>
> 
> 
> 

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

* Re: [PATCH net-next] rhashtable: fix missing header
  2015-01-04  9:24   ` Ying Xue
@ 2015-01-04  9:57     ` Thomas Graf
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Graf @ 2015-01-04  9:57 UTC (permalink / raw)
  To: Ying Xue; +Cc: davem, netdev

On 01/04/15 at 05:24pm, Ying Xue wrote:
> On 01/04/2015 05:19 PM, Thomas Graf wrote:
> > On 01/04/15 at 03:25pm, Ying Xue wrote:
> >> Fixup below build error:
> >>
> >> include/linux/rhashtable.h: At top level:
> >> include/linux/rhashtable.h:118:34: error: field ???mutex??? has incomplete type
> > 
> > Just wondering, is this your new code that didn't compile? The code
> > compiled fine for me for the existing users.
> > 
> 
> When I did below patch, I met the build error.

OK, personally I would squash it with that patch then as it's only
needed in combination with the new code.

> http://patchwork.ozlabs.org/patch/425149/
> 
> By the way, please help to review the patch if you have time :)

The convertion looks straight forward although I'm not fully familiar
with the TIPC code. I left a comment with a further optimization idea.

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

* Re: [PATCH net-next] rhashtable: fix missing header
  2015-01-04  9:19 ` Thomas Graf
  2015-01-04  9:24   ` Ying Xue
@ 2015-01-05  4:12   ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2015-01-05  4:12 UTC (permalink / raw)
  To: tgraf; +Cc: ying.xue, netdev

From: Thomas Graf <tgraf@suug.ch>
Date: Sun, 4 Jan 2015 09:19:08 +0000

> On 01/04/15 at 03:25pm, Ying Xue wrote:
>> Fixup below build error:
>> 
>> include/linux/rhashtable.h: At top level:
>> include/linux/rhashtable.h:118:34: error: field ???mutex??? has incomplete type
> 
> Just wondering, is this your new code that didn't compile? The code
> compiled fine for me for the existing users.
> 
>> Signed-off-by: Ying Xue <ying.xue@windriver.com>
> 
> Fixes: 97defe1e ("rhashtable: Per bucket locks & deferred expansion/shrinking")
> Acked-by: Thomas Graf <tgraf@suug.ch>

I'm applying this now as rhashtable.h really needs to include mutex.h
as it does use it's interfaces, regardless of whether it does actually
introduce a build error currently or not.

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

end of thread, other threads:[~2015-01-05  4:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-04  7:25 [PATCH net-next] rhashtable: fix missing header Ying Xue
2015-01-04  9:19 ` Thomas Graf
2015-01-04  9:24   ` Ying Xue
2015-01-04  9:57     ` Thomas Graf
2015-01-05  4:12   ` 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).