Re: 2.6.7-rc3-mm2

William Lee Irwin III
2004-06-14T11:15:45Z

On Mon, Jun 14, 2004 at 02:10:18AM -0700, Andrew Morton wrote:
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.7-rc3/2.6.7-rc3-mm2/
> - Mainly lots of little fixes.
> - Added the ext3 online-resize patch. See
> http://sourceforge.net/projects/ext2resize/ for some details. Needs a bit
> of work, and documentation.

The arrangement of the #include <linux/kernel.h> in list.h breaks the
build of documentation. The following patch moves the include to where
it no longer interferes with kerneldoc's operation.

-- wli

Index: debian-2.6.7-rc3/include/linux/list.h
===================================================================
--- debian-2.6.7-rc3.orig/include/linux/list.h 2004-06-14 03:18:03.000000000 -0700
+++ debian-2.6.7-rc3/include/linux/list.h 2004-06-14 04:06:36.000000000 -0700
@@ -5,6 +5,7 @@

#include <linux/stddef.h>
#include <linux/prefetch.h>
+#include <linux/kernel.h> /* BUG_ON */
#include <asm/system.h>

/*
@@ -158,7 +159,6 @@
* Note: list_empty on entry does not return true after this, the entry is
* in an undefined state.
*/
-#include <linux/kernel.h> /* BUG_ON */
static inline void list_del(struct list_head *entry)
{
BUG_ON(entry->prev->next != entry);