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

From: Adrian Bunk
Date: Wed May 14 2008 - 16:29:08 EST


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 <bunk@xxxxxxxxxx>
Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx>

---
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 <linux/seq_file.h>
+#include <asm/unaligned.h>

/*
* 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/