Skip to content
Commit f42647ac authored by Hugh Dickins's avatar Hugh Dickins Committed by Linus Torvalds
Browse files

fix ksm.h breakage of nommu build

Commit 5ad64688

 "ksm: let shared pages
be swappable" breaks the build on m68knommu and I suspect on any nommu:

  In file included from kernel/fork.c:52:
  include/linux/ksm.h:129: warning: 'enum ttu_flags' declared inside parameter list
  include/linux/ksm.h:129: warning: its scope is only this definition or declaration, which is probably not what you want
  include/linux/ksm.h:129: error: parameter 2 ('flags') has incomplete type
  make[1]: *** [kernel/fork.o] Error 1
  make[1]: *** Waiting for unfinished jobs....

Let's fix that with CONFIG_MMU around most of the !CONFIG_KSM declarations.

Reported-by: default avatarSteven King <sfking@fdwdc.com>
Signed-off-by: default avatarHugh Dickins <hugh.dickins@tiscali.co.uk>
Tested-by: default avatarSteven King <sfking@fdwdc.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8bea8672
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment