Skip to content

Commit

Permalink
[PATCH] uml problems with linux/io.h
Browse files Browse the repository at this point in the history
Remove useless includes of linux/io.h, don't even try to build iomap_copy
on uml (it doesn't have readb() et.al., so...)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Dec 13, 2006
1 parent 62fb2ba commit ee36c2b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion crypto/blkcipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <linux/crypto.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/scatterlist.h>
#include <linux/seq_file.h>
Expand Down
5 changes: 5 additions & 0 deletions lib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,9 @@ config TEXTSEARCH_FSM
config PLIST
boolean

config IOMAP_COPY
boolean
depends on !UML
default y

endmenu
3 changes: 2 additions & 1 deletion lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ lib-$(CONFIG_SMP) += cpumask.o

lib-y += kobject.o kref.o kobject_uevent.o klist.o

obj-y += sort.o parser.o halfmd4.o iomap_copy.o debug_locks.o random32.o
obj-y += sort.o parser.o halfmd4.o debug_locks.o random32.o

ifeq ($(CONFIG_DEBUG_KOBJECT),y)
CFLAGS_kobject.o += -DDEBUG
CFLAGS_kobject_uevent.o += -DDEBUG
endif

obj-$(CONFIG_IOMAP_COPY) += iomap_copy.o
obj-$(CONFIG_DEBUG_LOCKING_API_SELFTESTS) += locking-selftest.o
obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
lib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
Expand Down
1 change: 0 additions & 1 deletion lib/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*
* (C) Copyright 1995 1996 Linus Torvalds
*/
#include <linux/io.h>
#include <linux/vmalloc.h>
#include <linux/mm.h>

Expand Down

0 comments on commit ee36c2b

Please sign in to comment.