diff options
author | Ulf Carlsson <md1ulfc@mdstud.chalmers.se> | 2000-07-04 05:50:21 +0000 |
---|---|---|
committer | Ulf Carlsson <md1ulfc@mdstud.chalmers.se> | 2000-07-04 05:50:21 +0000 |
commit | 6400754b0366904624afafbd10306198ff0c3836 (patch) | |
tree | 0d9498d6d8443fd38c802c7b04fdf6a593eed6cf /include/linux | |
parent | 3e414096429d55fbc8116171bba3487647bbe638 (diff) |
kmap() has to be a function since page_address(page) may do nothing
else than return the page->virtual.
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/highmem.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/highmem.h b/include/linux/highmem.h index 3049ad259..1f59c2926 100644 --- a/include/linux/highmem.h +++ b/include/linux/highmem.h @@ -23,7 +23,11 @@ extern struct buffer_head * create_bounce(int rw, struct buffer_head * bh_orig); extern inline unsigned int nr_free_highpages(void) { return 0; } #define prepare_highmem_swapout(page) page #define replace_with_highmem(page) page -#define kmap(page) page_address(page) + +static __inline__ unsigned long kmap(struct page * page) { + return page_address(page); +} + #define kunmap(page) do { } while (0) #endif /* CONFIG_HIGHMEM */ |