[2.6 patch] irnet_irda.c must #include <asm/unaligned.h> - Kernel

This is a discussion on [2.6 patch] irnet_irda.c must #include <asm/unaligned.h> - Kernel ; This patch fixes the following compile error caused by commit 332223831e86b2e17b48b4afafad07d8e3b73861 (irda: Fix a misalign access issue. (v2)): .... CC net/irda/irnet/irnet_irda.o /home/bunk/linux/kernel-2.6/git/linux-2.6/net/irda/irnet/irnet_irda.c: In function ‘irnet_discovery_indication’: /home/bunk/linux/kernel-2.6/git/linux-2.6/net/irda/irnet/irnet_irda.c:1676: error: implicit declaration of function ‘get_unaligned’ make[4]: *** [net/irda/irnet/irnet_irda.o] Error 1 Reported-by: Adrian Bunk ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [2.6 patch] irnet_irda.c must #include <asm/unaligned.h>

  1. [2.6 patch] irnet_irda.c must #include <asm/unaligned.h>

    This patch fixes the following compile error caused by
    commit 332223831e86b2e17b48b4afafad07d8e3b73861
    (irda: Fix a misalign access issue. (v2)):

    <-- snip -->

    ....
    CC net/irda/irnet/irnet_irda.o
    /home/bunk/linux/kernel-2.6/git/linux-2.6/net/irda/irnet/irnet_irda.c: In function ‘irnet_discovery_indication’:
    /home/bunk/linux/kernel-2.6/git/linux-2.6/net/irda/irnet/irnet_irda.c:1676: error: implicit declaration of function ‘get_unaligned’
    make[4]: *** [net/irda/irnet/irnet_irda.o] Error 1

    <-- snip -->

    Reported-by: Adrian Bunk
    Signed-off-by: Adrian Bunk

    ---
    41881ccc5581fe2e27ca15b942c9f79e28b45276 diff --git a/net/irda/irnet/irnet_irda.c b/net/irda/irnet/irnet_irda.c
    index a3ec002..cf9a4b5 100644
    --- a/net/irda/irnet/irnet_irda.c
    +++ b/net/irda/irnet/irnet_irda.c
    @@ -10,6 +10,7 @@

    #include "irnet_irda.h" /* Private header */
    #include
    +#include

    /*
    * PPP disconnect work: we need to make sure we're in

    --
    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/

  2. Re: [2.6 patch] irnet_irda.c must #include <asm/unaligned.h>

    From: Adrian Bunk
    Date: Wed, 14 May 2008 23:27:09 +0300


    > This patch fixes the following compile error caused by
    > commit 332223831e86b2e17b48b4afafad07d8e3b73861
    > (irda: Fix a misalign access issue. (v2)):
    >
    > <-- snip -->
    >
    > ...
    > CC net/irda/irnet/irnet_irda.o
    > /home/bunk/linux/kernel-2.6/git/linux-2.6/net/irda/irnet/irnet_irda.c: In function ‘irnet_discovery_indication’:
    > /home/bunk/linux/kernel-2.6/git/linux-2.6/net/irda/irnet/irnet_irda.c:1676: error: implicit declaration of function ‘get_unaligned’
    > make[4]: *** [net/irda/irnet/irnet_irda.o] Error 1
    >
    > <-- snip -->
    >
    > Reported-by: Adrian Bunk
    > Signed-off-by: Adrian Bunk


    Applied, thanks a lot Adrian.

+ Reply to Thread