* [PATCH] fix include order in mthca_memfree.c
@ 2005-04-25 2:31 Roland Dreier
2005-04-25 4:04 ` Al Viro
0 siblings, 1 reply; 2+ messages in thread
From: Roland Dreier @ 2005-04-25 2:31 UTC (permalink / raw)
To: viro, torvalds; +Cc: linux-kernel
About commit fdca124a1bcc7e624f6b887c6f26153f40ee43ee ("missing
include in mthca"):
- Out of curiousity, what arch and/or config requires <linux/mm.h>?
I regularly cross-compile drivers/infiniband for i386, x86_64, ppc64,
ia64, sparc64 and ppc, and I haven't needed <linux/mm.h> in mthca_memfree.c.
- When making changes to drivers/infiniband, can you please cc the
maintainers or at least a public mailing list? As far as I can
tell, the patch went directly to Linus with no public review, which
doesn't seem appropriate, no matter how trivial the change.
- When adding includes, please match the existing style and put
<linux/xxx.h> includes before any local "yyy.h" includes.
Linus, please apply the patch below to move the include where it belongs.
Thanks,
Roland
Fix order of #include lines in mthca_memfree.c
Signed-off-by: Roland Dreier <roland@topspin.com>
--- linux.orig/drivers/infiniband/hw/mthca/mthca_memfree.c 2005-04-24 19:18:29.000000000 -0700
+++ linux/drivers/infiniband/hw/mthca/mthca_memfree.c 2005-04-24 19:20:10.000000000 -0700
@@ -32,10 +32,11 @@
* $Id$
*/
+#include <linux/mm.h>
+
#include "mthca_memfree.h"
#include "mthca_dev.h"
#include "mthca_cmd.h"
-#include <linux/mm.h>
/*
* We allocate in as big chunks as we can, up to a maximum of 256 KB
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] fix include order in mthca_memfree.c
2005-04-25 2:31 [PATCH] fix include order in mthca_memfree.c Roland Dreier
@ 2005-04-25 4:04 ` Al Viro
0 siblings, 0 replies; 2+ messages in thread
From: Al Viro @ 2005-04-25 4:04 UTC (permalink / raw)
To: Roland Dreier; +Cc: torvalds, linux-kernel
On Sun, Apr 24, 2005 at 07:31:18PM -0700, Roland Dreier wrote:
> - Out of curiousity, what arch and/or config requires <linux/mm.h>?
> I regularly cross-compile drivers/infiniband for i386, x86_64, ppc64,
> ia64, sparc64 and ppc, and I haven't needed <linux/mm.h> in mthca_memfree.c.
alpha, for instance. You are using lowmem_page_address(). That's
from linux/mm.h and that's an inline function, so missing include
is fatal.
FWIW, the chain of includes that leads to mm.h on i386 is mthca_memfree.h ->
linux/pci.h -> asm-i386/pci.h -> linux/mm.h. Other platforms differ...
> - When making changes to drivers/infiniband, can you please cc the
> maintainers or at least a public mailing list? As far as I can
> tell, the patch went directly to Linus with no public review, which
> doesn't seem appropriate, no matter how trivial the change.
>
> - When adding includes, please match the existing style and put
> <linux/xxx.h> includes before any local "yyy.h" includes.
Sure, no problem.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-25 4:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-25 2:31 [PATCH] fix include order in mthca_memfree.c Roland Dreier
2005-04-25 4:04 ` Al Viro
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.