]> git.karo-electronics.de Git - karo-tx-linux.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 <amwang@redhat.com>
Wed, 7 Dec 2011 09:05:06 +0000 (17:05 +0800)
commitf1d6d1af7a283808e52bc430fb302bfb4042d246
treea3ffa300ef5604924b249d5773fa8b4b51745cc0
parentb835c0f47f725d864bf2545f10c733b754bb6d51
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