lkml.org 
[lkml]   [2008]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[2.6 patch] fs/buffer.c:init_buffer() mustn't be inline
    This patch fixes the following build error with UML and gcc 4.3:

    <-- snip -->

    ...
    CC fs/buffer.o
    /home/bunk/linux/kernel-2.6/git/linux-2.6/fs/buffer.c: In function ‘init_page_buffers’:
    /home/bunk/linux/kernel-2.6/git/linux-2.6/fs/buffer.c:51: sorry, unimplemented: inlining failed in call to ‘init_buffer’: function body not available
    /home/bunk/linux/kernel-2.6/git/linux-2.6/fs/buffer.c:1007: sorry, unimplemented: called from here
    make[2]: *** [fs/buffer.o] Error 1

    <-- snip -->

    Signed-off-by: Adrian Bunk <bunk@kernel.org>

    ---
    922267dbec9ea632537ab61ef9cb2d0d5f9d8f9e diff --git a/fs/buffer.c b/fs/buffer.c
    index 39ff144..d74743d 100644
    --- a/fs/buffer.c
    +++ b/fs/buffer.c
    @@ -46,8 +46,7 @@ static int fsync_buffers_list(spinlock_t *lock, struct list_head *list);

    #define BH_ENTRY(list) list_entry((list), struct buffer_head, b_assoc_buffers)

    -inline void
    -init_buffer(struct buffer_head *bh, bh_end_io_t *handler, void *private)
    +void init_buffer(struct buffer_head *bh, bh_end_io_t *handler, void *private)
    {
    bh->b_end_io = handler;
    bh->b_private = private;
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2008-04-28 17:43    [W:3.229 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site