|
@@ -346,8 +346,15 @@ static inline void bvec_kunmap_irq(char *buffer, unsigned long *flags)
|
|
|
}
|
|
|
|
|
|
#else
|
|
|
-#define bvec_kmap_irq(bvec, flags) (page_address((bvec)->bv_page) + (bvec)->bv_offset)
|
|
|
-#define bvec_kunmap_irq(buf, flags) do { *(flags) = 0; } while (0)
|
|
|
+static inline char *bvec_kmap_irq(struct bio_vec *bvec, unsigned long *flags)
|
|
|
+{
|
|
|
+ return page_address(bvec->bv_page) + bvec->bv_offset;
|
|
|
+}
|
|
|
+
|
|
|
+static inline void bvec_kunmap_irq(char *buffer, unsigned long *flags)
|
|
|
+{
|
|
|
+ *flags = 0;
|
|
|
+}
|
|
|
#endif
|
|
|
|
|
|
static inline char *__bio_kmap_irq(struct bio *bio, unsigned short idx,
|