Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

"extern inline" doesn't make much sense.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Adrian Bunk and committed by
Linus Torvalds
c2d08dad 9adeb1b4

+3 -4
+3 -4
include/linux/bio.h
··· 314 314 * bvec_kmap_irq and bvec_kunmap_irq!! 315 315 * 316 316 * This function MUST be inlined - it plays with the CPU interrupt flags. 317 - * Hence the `extern inline'. 318 317 */ 319 - extern inline char *bvec_kmap_irq(struct bio_vec *bvec, unsigned long *flags) 318 + static inline char *bvec_kmap_irq(struct bio_vec *bvec, unsigned long *flags) 320 319 { 321 320 unsigned long addr; 322 321 ··· 331 332 return (char *) addr + bvec->bv_offset; 332 333 } 333 334 334 - extern inline void bvec_kunmap_irq(char *buffer, unsigned long *flags) 335 + static inline void bvec_kunmap_irq(char *buffer, unsigned long *flags) 335 336 { 336 337 unsigned long ptr = (unsigned long) buffer & PAGE_MASK; 337 338 ··· 344 345 #define bvec_kunmap_irq(buf, flags) do { *(flags) = 0; } while (0) 345 346 #endif 346 347 347 - extern inline char *__bio_kmap_irq(struct bio *bio, unsigned short idx, 348 + static inline char *__bio_kmap_irq(struct bio *bio, unsigned short idx, 348 349 unsigned long *flags) 349 350 { 350 351 return bvec_kmap_irq(bio_iovec_idx(bio, idx), flags);