]> git.baikalelectronics.ru Git - kernel.git/commit
nommu: fix two build breakages
authorHugh Dickins <hugh.dickins@tiscali.co.uk>
Wed, 23 Sep 2009 16:05:53 +0000 (17:05 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Sep 2009 16:22:10 +0000 (09:22 -0700)
commitaeed36aa0be7b266b87387e2367949285f5df482
tree35b7627d6f8d1e5b236d604d02aaee8215fbb5c0
parent219d3710d2430f39332ae955dc9bf421137e5343
nommu: fix two build breakages

My d645b6b43c3e4d6791d6a847b58f321a7e2e5d0c "mm: FOLL flags for GUP flags"
broke CONFIG_NOMMU build by forgetting to update nommu.c foll_flags type:

  mm/nommu.c:171: error: conflicting types for `__get_user_pages'
  mm/internal.h:254: error: previous declaration of `__get_user_pages' was here
  make[1]: *** [mm/nommu.o] Error 1

My 489ba362c677f2d8a4dfea17065d389f24510b33 "mm: move highest_memmap_pfn"
broke CONFIG_NOMMU build by forgetting to add a nommu.c highest_memmap_pfn:

  mm/built-in.o: In function `memmap_init_zone':
  (.meminit.text+0x326): undefined reference to `highest_memmap_pfn'
  mm/built-in.o: In function `memmap_init_zone':
  (.meminit.text+0x32d): undefined reference to `highest_memmap_pfn'

Fix both breakages, and give myself 30 lashes (ouch!)

Reported-by: Michal Simek <michal.simek@petalogix.com>
Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/nommu.c