summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-04-29 09:49:06 +0200
committerJens Axboe <jens.axboe@oracle.com>2008-04-29 14:48:54 +0200
commit6f6a036e6e061563efecb61505fc4cc3ca415f80 (patch)
tree6bbb13cb230ef0a5fd465f47970641febb7125ea /block
parent72ed0bf60ade8d2cc1f58276cb16add0af2c3e25 (diff)
downloadlinux-3.10-6f6a036e6e061563efecb61505fc4cc3ca415f80.tar.gz
linux-3.10-6f6a036e6e061563efecb61505fc4cc3ca415f80.tar.bz2
linux-3.10-6f6a036e6e061563efecb61505fc4cc3ca415f80.zip
block/blk-barrier.c:blk_ordered_cur_seq() mustn't be inline
This patch fixes the following build error with UML and gcc 4.3: <-- snip --> ... CC block/blk-barrier.o /home/bunk/linux/kernel-2.6/git/linux-2.6/block/blk-barrier.c: In function ‘blk_do_ordered’: /home/bunk/linux/kernel-2.6/git/linux-2.6/block/blk-barrier.c:57: sorry, unimplemented: inlining failed in call to ‘blk_ordered_cur_seq’: function body not available /home/bunk/linux/kernel-2.6/git/linux-2.6/block/blk-barrier.c:252: sorry, unimplemented: called from here /home/bunk/linux/kernel-2.6/git/linux-2.6/block/blk-barrier.c:57: sorry, unimplemented: inlining failed in call to ‘blk_ordered_cur_seq’: function body not available /home/bunk/linux/kernel-2.6/git/linux-2.6/block/blk-barrier.c:253: sorry, unimplemented: called from here make[2]: *** [block/blk-barrier.o] Error 1 <-- snip --> Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-barrier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-barrier.c b/block/blk-barrier.c
index 722140ac175..47127ba09e4 100644
--- a/block/blk-barrier.c
+++ b/block/blk-barrier.c
@@ -53,7 +53,7 @@ EXPORT_SYMBOL(blk_queue_ordered);
/*
* Cache flushing for ordered writes handling
*/
-inline unsigned blk_ordered_cur_seq(struct request_queue *q)
+unsigned blk_ordered_cur_seq(struct request_queue *q)
{
if (!q->ordseq)
return 0;