You need to sign in or sign up before continuing.
提交 c2d08dad 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

[PATCH] include/linux/bio.h: "extern inline" -> "static inline"

"extern inline" doesn't make much sense.
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Acked-by: NJens Axboe <axboe@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 9adeb1b4
...@@ -314,9 +314,8 @@ void zero_fill_bio(struct bio *bio); ...@@ -314,9 +314,8 @@ void zero_fill_bio(struct bio *bio);
* bvec_kmap_irq and bvec_kunmap_irq!! * bvec_kmap_irq and bvec_kunmap_irq!!
* *
* This function MUST be inlined - it plays with the CPU interrupt flags. * This function MUST be inlined - it plays with the CPU interrupt flags.
* Hence the `extern inline'.
*/ */
extern inline char *bvec_kmap_irq(struct bio_vec *bvec, unsigned long *flags) static inline char *bvec_kmap_irq(struct bio_vec *bvec, unsigned long *flags)
{ {
unsigned long addr; unsigned long addr;
...@@ -332,7 +331,7 @@ extern inline char *bvec_kmap_irq(struct bio_vec *bvec, unsigned long *flags) ...@@ -332,7 +331,7 @@ extern inline char *bvec_kmap_irq(struct bio_vec *bvec, unsigned long *flags)
return (char *) addr + bvec->bv_offset; return (char *) addr + bvec->bv_offset;
} }
extern inline void bvec_kunmap_irq(char *buffer, unsigned long *flags) static inline void bvec_kunmap_irq(char *buffer, unsigned long *flags)
{ {
unsigned long ptr = (unsigned long) buffer & PAGE_MASK; unsigned long ptr = (unsigned long) buffer & PAGE_MASK;
...@@ -345,7 +344,7 @@ extern inline void bvec_kunmap_irq(char *buffer, unsigned long *flags) ...@@ -345,7 +344,7 @@ extern inline void bvec_kunmap_irq(char *buffer, unsigned long *flags)
#define bvec_kunmap_irq(buf, flags) do { *(flags) = 0; } while (0) #define bvec_kunmap_irq(buf, flags) do { *(flags) = 0; } while (0)
#endif #endif
extern inline char *__bio_kmap_irq(struct bio *bio, unsigned short idx, static inline char *__bio_kmap_irq(struct bio *bio, unsigned short idx,
unsigned long *flags) unsigned long *flags)
{ {
return bvec_kmap_irq(bio_iovec_idx(bio, idx), flags); return bvec_kmap_irq(bio_iovec_idx(bio, idx), flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册