xtensa: remove the second argument of __bio_kmap_atomic()
authorZhao Hongjiang <zhaohongjiang@huawei.com>
Mon, 8 Jul 2013 07:22:50 +0000 (15:22 +0800)
committerChris Zankel <chris@zankel.net>
Mon, 8 Jul 2013 08:23:15 +0000 (01:23 -0700)
kmap_atomic allows only one argument now, just remove the unused 'kmtype'.

Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/platforms/iss/simdisk.c
include/linux/bio.h

index c0edb35424cea9ed8a077b25d682202f9d50e533..8c6e819cd8edcc26049348a9ca2e4a6d59c677b3 100644 (file)
@@ -108,13 +108,13 @@ static int simdisk_xfer_bio(struct simdisk *dev, struct bio *bio)
        sector_t sector = bio->bi_sector;
 
        bio_for_each_segment(bvec, bio, i) {
-               char *buffer = __bio_kmap_atomic(bio, i, KM_USER0);
+               char *buffer = __bio_kmap_atomic(bio, i);
                unsigned len = bvec->bv_len >> SECTOR_SHIFT;
 
                simdisk_transfer(dev, sector, len, buffer,
                                bio_data_dir(bio) == WRITE);
                sector += len;
-               __bio_kunmap_atomic(bio, KM_USER0);
+               __bio_kunmap_atomic(bio);
        }
        return 0;
 }
index ef24466d8f82516a76029577df9c8f1ec530cf20..ec48bac5b039d25cd74829b1ba4c6a1506412dec 100644 (file)
@@ -97,11 +97,11 @@ static inline void *bio_data(struct bio *bio)
  * permanent PIO fall back, user is probably better off disabling highmem
  * I/O completely on that queue (see ide-dma for example)
  */
-#define __bio_kmap_atomic(bio, idx, kmtype)                            \
+#define __bio_kmap_atomic(bio, idx)                            \
        (kmap_atomic(bio_iovec_idx((bio), (idx))->bv_page) +    \
                bio_iovec_idx((bio), (idx))->bv_offset)
 
-#define __bio_kunmap_atomic(addr, kmtype) kunmap_atomic(addr)
+#define __bio_kunmap_atomic(addr) kunmap_atomic(addr)
 
 /*
  * merge helpers etc