netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] asm/unaligned.h doesn't work well as the very first include
@ 2008-04-27  5:19 Al Viro
  2008-04-27  5:21 ` David Miller
  2008-04-27  6:09 ` Sam Ravnborg
  0 siblings, 2 replies; 5+ messages in thread
From: Al Viro @ 2008-04-27  5:19 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, linux-kernel, Linus Torvalds

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 net/mac80211/mesh.h      |    1 +
 net/mac80211/mesh_hwmp.c |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/mesh.h b/net/mac80211/mesh.h
index 742003d..9ee3aff 100644
--- a/net/mac80211/mesh.h
+++ b/net/mac80211/mesh.h
@@ -13,6 +13,7 @@
 
 #include <linux/types.h>
 #include <linux/jhash.h>
+#include <asm/unaligned.h>
 #include "ieee80211_i.h"
 
 
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c
index 02de8f1..3df8092 100644
--- a/net/mac80211/mesh_hwmp.c
+++ b/net/mac80211/mesh_hwmp.c
@@ -7,7 +7,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <asm/unaligned.h>
 #include "mesh.h"
 
 #define TEST_FRAME_LEN	8192
-- 
1.5.3.GIT


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

* Re: [PATCH] asm/unaligned.h doesn't work well as the very first include
  2008-04-27  5:19 [PATCH] asm/unaligned.h doesn't work well as the very first include Al Viro
@ 2008-04-27  5:21 ` David Miller
  2008-04-27  6:09 ` Sam Ravnborg
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2008-04-27  5:21 UTC (permalink / raw)
  To: viro; +Cc: netdev, linux-kernel, torvalds

From: Al Viro <viro@ZenIV.linux.org.uk>
Date: Sun, 27 Apr 2008 06:19:18 +0100

> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Patch applied, thanks a lot Al.

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

* Re: [PATCH] asm/unaligned.h doesn't work well as the very first include
  2008-04-27  5:19 [PATCH] asm/unaligned.h doesn't work well as the very first include Al Viro
  2008-04-27  5:21 ` David Miller
@ 2008-04-27  6:09 ` Sam Ravnborg
  2008-04-27  6:12   ` Al Viro
  1 sibling, 1 reply; 5+ messages in thread
From: Sam Ravnborg @ 2008-04-27  6:09 UTC (permalink / raw)
  To: Al Viro; +Cc: David Miller, netdev, linux-kernel, Linus Torvalds

On Sun, Apr 27, 2008 at 06:19:18AM +0100, Al Viro wrote:
> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
> ---
>  net/mac80211/mesh.h      |    1 +
>  net/mac80211/mesh_hwmp.c |    1 -
>  2 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/net/mac80211/mesh.h b/net/mac80211/mesh.h
> index 742003d..9ee3aff 100644
> --- a/net/mac80211/mesh.h
> +++ b/net/mac80211/mesh.h
> @@ -13,6 +13,7 @@
>  
>  #include <linux/types.h>
>  #include <linux/jhash.h>
> +#include <asm/unaligned.h>
>  #include "ieee80211_i.h"
>  
>  
> diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c
> index 02de8f1..3df8092 100644
> --- a/net/mac80211/mesh_hwmp.c
> +++ b/net/mac80211/mesh_hwmp.c
> @@ -7,7 +7,6 @@
>   * published by the Free Software Foundation.
>   */
>  
> -#include <asm/unaligned.h>
>  #include "mesh.h"

It has been discussed that any .h file should pull
in what it needs so the other of includes does not matter.
Some do them alphabetically.

Why not fix asm-*/unaligned.h so all users now and future
are fixed in one shot?

	Sam

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

* Re: [PATCH] asm/unaligned.h doesn't work well as the very first include
  2008-04-27  6:09 ` Sam Ravnborg
@ 2008-04-27  6:12   ` Al Viro
  2008-04-27  6:31     ` Harvey Harrison
  0 siblings, 1 reply; 5+ messages in thread
From: Al Viro @ 2008-04-27  6:12 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: David Miller, netdev, linux-kernel, Linus Torvalds

On Sun, Apr 27, 2008 at 08:09:44AM +0200, Sam Ravnborg wrote:

> It has been discussed that any .h file should pull
> in what it needs so the other of includes does not matter.
> Some do them alphabetically.

It has been discussed or it has been agreed?  IMO it's a bullshit - especially
for low-level stuff like that.

As for the way some do includes...  It's not exactly a family-friendly list,
but still I'd rather not comment in details on the existing practices...

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

* Re: [PATCH] asm/unaligned.h doesn't work well as the very first include
  2008-04-27  6:12   ` Al Viro
@ 2008-04-27  6:31     ` Harvey Harrison
  0 siblings, 0 replies; 5+ messages in thread
From: Harvey Harrison @ 2008-04-27  6:31 UTC (permalink / raw)
  To: Al Viro; +Cc: Sam Ravnborg, David Miller, netdev, linux-kernel, Linus Torvalds

On Sun, 2008-04-27 at 07:12 +0100, Al Viro wrote:
> On Sun, Apr 27, 2008 at 08:09:44AM +0200, Sam Ravnborg wrote:
> 
> > It has been discussed that any .h file should pull
> > in what it needs so the other of includes does not matter.
> > Some do them alphabetically.
> 
> It has been discussed or it has been agreed?  IMO it's a bullshit - especially
> for low-level stuff like that.
> 
> As for the way some do includes...  It's not exactly a family-friendly list,
> but still I'd rather not comment in details on the existing practices...

I'm redoing the unaligned handling in -mm at the moment, and it avoids
this problem.

Harvey


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

end of thread, other threads:[~2008-04-27  6:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-27  5:19 [PATCH] asm/unaligned.h doesn't work well as the very first include Al Viro
2008-04-27  5:21 ` David Miller
2008-04-27  6:09 ` Sam Ravnborg
2008-04-27  6:12   ` Al Viro
2008-04-27  6:31     ` Harvey Harrison

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).