login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Graf Yang <graf.yang@...>, Bryan Wu <cooloney@...>, David S. Miller <davem@...>, Linus Torvalds <torvalds@...>
Cc: <linux-kernel@...>, <netdev@...>
Date: Wednesday, May 14, 2008 - 4:27 pm

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

---
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 netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] irnet_irda.c must #include <asm/unaligned.h>, Adrian Bunk, (Wed May 14, 4:27 pm)
speck-geostationary