Skip to content

Commit

Permalink
[PATCH] Fix broken kernel headers preventing ARM build
Browse files Browse the repository at this point in the history
As a result of 894673e, the ARM
architecture is more or less unbuildable - only one defconfig appears
to build, with all others erroring out with:

	  CC      arch/arm/kernel/setup.o
	In file included from /home/rmk/git/linux-2.6-rmk/arch/arm/kernel/setup.c:22:
	/home/rmk/git/linux-2.6-rmk/include/linux/root_dev.h:7: warning: implicit declaration of function `MKDEV'
	...

Essentially, root_dev.h uses MKDEV and dev_t, but does not include any
headers which provide either of these definitions.  The reason it worked
previously is that linux/tty.h just happened to include the required
headers for linux/root_dev.h.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Russell King authored and Linus Torvalds committed Jul 13, 2006
1 parent f1aaee5 commit 3e705f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/root_dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#define _ROOT_DEV_H_

#include <linux/major.h>
#include <linux/types.h>
#include <linux/kdev_t.h>

enum {
Root_NFS = MKDEV(UNNAMED_MAJOR, 255),
Expand Down

0 comments on commit 3e705f2

Please sign in to comment.