Date:2013-04-23 02:23:50 (9 years 5 months ago)
Author:John David Anglin
Commit:87be2f88b24ad1f206a5c87529ff406e96c95a12
Message:parisc: Change kunmap macro to static inline function

Change kunmap macro to static inline function to fix build error
compiling drivers/base/dma-buf.c.

Without the change, the following error can occur:

CC drivers/base/dma-buf.o
drivers/base/dma-buf.c: In function 'dma_buf_kunmap':
drivers/base/dma-buf.c:427:46:
error: macro "kunmap" passed 3 arguments, but takes just 1

I believe parisc is the only arch to implement kunmap using a macro.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Cc: Helge Deller <deller@gmx.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Files: arch/parisc/include/asm/cacheflush.h (1 diff)

Change Details

arch/parisc/include/asm/cacheflush.h
140140    return page_address(page);
141141}
142142
143#define kunmap(page) kunmap_parisc(page_address(page))
143static inline void kunmap(struct page *page)
144{
145    kunmap_parisc(page_address(page));
146}
144147
145148static inline void *kmap_atomic(struct page *page)
146149{

Archive Download the corresponding diff file



interactive