Skip to contentSkip to conversation

highmem: fix missed kmap_atomic update in arch/arm/include/asm/highmem.h

PATCH In review Axel Lin 3 participants 3 messages Dec 7, 2011 Arm (32-bit)

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 highmem: fix missed kmap_atomic update in arch/arm/include/asm/highmem.h

commit 37bfbb "highmem: kill all __kmap_atomic()" missed the update to arch/arm/include/asm/highmem.h.

This patch fixes below build error:
CC init/main.o
In file included from include/linux/pagemap.h:10,

                 from include/linux/mempolicy.h:70,
                 from init/main.c:49:

include/linux/highmem.h: In function 'kmap_atomic_deprecated':
include/linux/highmem.h:127: error: implicit declaration of function 'kmap_atomic' include/linux/highmem.h:127: warning: return makes pointer from integer without a cast include/linux/highmem.h: In function 'clear_highpage':
include/linux/highmem.h:218: warning: initialization makes pointer from integer without a cast include/linux/highmem.h: In function 'zero_user_segments':
include/linux/highmem.h:227: warning: initialization makes pointer from integer without a cast include/linux/highmem.h: In function 'copy_highpage':
include/linux/highmem.h:279: warning: assignment makes pointer from integer without a cast include/linux/highmem.h:280: warning: assignment makes pointer from integer without a cast make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2

---
I got the build error by "make tegra_defconfig;make" on linux-next 20111207. Thus this patch is against linux-next tree.

BTW, why commit 37bfbb "highmem: kill all __kmap_atomic()" does not have any Signed-off-by?

Axel

 arch/arm/include/asm/highmem.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/include/asm/highmem.h +1 -1
index a4edd19..8c5e828 100644
@@ -57,7 +57,7 @@ static inline void *kmap_high_get(struct page *page)
 #ifdef CONFIG_HIGHMEM
 extern void *kmap(struct page *page);
 extern void kunmap(struct page *page);
-extern void *__kmap_atomic(struct page *page);
+extern void *kmap_atomic(struct page *page);
 extern void __kunmap_atomic(void *kvaddr);
 extern void *kmap_atomic_pfn(unsigned long pfn);
 extern struct page *kmap_atomic_to_page(const void *ptr);
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 8 lines · Axel Lin

commit 37bfbb "highmem: kill all __kmap_atomic()" missed the update to arch/arm/include/asm/highmem.h.

This patch fixes below build error:
CC init/main.o
In file included from include/linux/pagemap.h:10,

                 from include/linux/mempolicy.h:70,
                 from init/main.c:49:
Quoted 12 lines

include/linux/highmem.h: In function 'kmap_atomic_deprecated':
include/linux/highmem.h:127: error: implicit declaration of function 'kmap_atomic' include/linux/highmem.h:127: warning: return makes pointer from integer without a cast include/linux/highmem.h: In function 'clear_highpage':
include/linux/highmem.h:218: warning: initialization makes pointer from integer without a cast include/linux/highmem.h: In function 'zero_user_segments':
include/linux/highmem.h:227: warning: initialization makes pointer from integer without a cast include/linux/highmem.h: In function 'copy_highpage':
include/linux/highmem.h:279: warning: assignment makes pointer from integer without a cast include/linux/highmem.h:280: warning: assignment makes pointer from integer without a cast make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2

Already reported and fixed, see

	http://thread.gmane.org/gmane.linux.kernel/1225278

Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#2 lore raw

? 2011?12?07? 17:35, Uwe Kleine-K?nig ??:

Quoted 21 lines · Axel Lin
Quoted 8 lines

commit 37bfbb "highmem: kill all __kmap_atomic()" missed the update to arch/arm/include/asm/highmem.h.

This patch fixes below build error:
CC init/main.o
In file included from include/linux/pagemap.h:10,

                  from include/linux/mempolicy.h:70,
                  from init/main.c:49:
Quoted 12 lines

include/linux/highmem.h: In function 'kmap_atomic_deprecated':
include/linux/highmem.h:127: error: implicit declaration of function 'kmap_atomic' include/linux/highmem.h:127: warning: return makes pointer from integer without a cast include/linux/highmem.h: In function 'clear_highpage':
include/linux/highmem.h:218: warning: initialization makes pointer from integer without a cast include/linux/highmem.h: In function 'zero_user_segments':
include/linux/highmem.h:227: warning: initialization makes pointer from integer without a cast include/linux/highmem.h: In function 'copy_highpage':
include/linux/highmem.h:279: warning: assignment makes pointer from integer without a cast include/linux/highmem.h:280: warning: assignment makes pointer from integer without a cast make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2

Quoted 4 lines

Already reported and fixed, see

	http://thread.gmane.org/gmane.linux.kernel/1225278

Yeah, sorry for this.

I have squashed Stephen's patch into my tree. Thanks for your patch anyway, Axel!