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

aio.c: move EXPORT* macros to line after function

As mentioned in Documentation/CodingStyle, move EXPORT* macro's
to the line immediately after the closing function brace line.

Also, move the __initcall() similarly.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Zach Brown <zach.brown@oracle.com>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

H Hartley Sweeten and committed by
Linus Torvalds
385773e0 8c87df45

+4 -6
+4 -6
fs/aio.c
··· 78 78 79 79 return 0; 80 80 } 81 + __initcall(aio_setup); 81 82 82 83 static void aio_free_ring(struct kioctx *ctx) 83 84 { ··· 381 380 __set_current_state(TASK_RUNNING); 382 381 return iocb->ki_user_data; 383 382 } 383 + EXPORT_SYMBOL(wait_on_sync_kiocb); 384 384 385 385 /* exit_aio: called when the last user of mm goes away. At this point, 386 386 * there is no way for any new requests to be submited or any of the ··· 575 573 spin_unlock_irq(&ctx->ctx_lock); 576 574 return ret; 577 575 } 576 + EXPORT_SYMBOL(aio_put_req); 578 577 579 578 static struct kioctx *lookup_ioctx(unsigned long ctx_id) 580 579 { ··· 995 992 spin_unlock_irqrestore(&ctx->ctx_lock, flags); 996 993 return ret; 997 994 } 995 + EXPORT_SYMBOL(aio_complete); 998 996 999 997 /* aio_read_evt 1000 998 * Pull an event off of the ioctx's event ring. Returns the number of ··· 1784 1780 asmlinkage_protect(5, ret, ctx_id, min_nr, nr, events, timeout); 1785 1781 return ret; 1786 1782 } 1787 - 1788 - __initcall(aio_setup); 1789 - 1790 - EXPORT_SYMBOL(aio_complete); 1791 - EXPORT_SYMBOL(aio_put_req); 1792 - EXPORT_SYMBOL(wait_on_sync_kiocb);