]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
highmem: mark k[un]map_atomic() with two arguments as deprecated
authorCong Wang <amwang@redhat.com>
Fri, 25 Nov 2011 14:08:45 +0000 (22:08 +0800)
committerCong Wang <xiyou.wangcong@gmail.com>
Tue, 20 Mar 2012 13:48:13 +0000 (21:48 +0800)
commit980c19e3f8ca1d5d43cce588059ea78cac27062a
tree35e9bea10a21ba78ba6fa58650c4ee6d18877f41
parentc16fa4f2ad19908a47c63d8fa436a1178438c7e7
highmem: mark k[un]map_atomic() with two arguments as deprecated

For backward compatibility, we still keep the deprecated form,
and will warn the users if they still use the deprecated one, like this:

drivers/block/drbd/drbd_bitmap.c: In function ‘bm_page_io_async’:
drivers/block/drbd/drbd_bitmap.c:973:3: warning: ‘kmap_atomic_deprecated’ is deprecated (declared at /home/wangcong/linux-2.6/include/linux/highmem.h:124)
drivers/block/drbd/drbd_bitmap.c:977:3: warning: ‘kunmap_atomic_deprecated’ is deprecated (declared at /home/wangcong/linux-2.6/include/linux/highmem.h:144)

Thanks to Nick Bowler for the cpp trick!

Cc: Cesar Eduardo Barros <cesarb@cesarb.net>
Cc: Nick Bowler <nbowler@elliptictech.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Cong Wang <amwang@redhat.com>
include/linux/highmem.h