[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bluesmoke-devel
Subject:    [2.6 patch] drivers/edac/edac_mc.h must #include
From:       Adrian Bunk <bunk () stusta ! de>
Date:       2006-07-30 9:41:43
Message-ID: 20060730094143.GI26963 () stusta ! de
[Download RAW message or body]

This patch fixes the following compile error with CONFIG_PCI=n:

<--  snip  -->

...
  CC      drivers/edac/edac_mc.o
drivers/edac/edac_mc.c: In function ‘add_mc_to_global_list':
drivers/edac/edac_mc.c:1362: error: implicit declaration of function ‘to_platform_device'
drivers/edac/edac_mc.c:1362: error: invalid type argument of ‘->'
drivers/edac/edac_mc.c: In function ‘edac_mc_add_mc':
drivers/edac/edac_mc.c:1467: error: invalid type argument of ‘->'
drivers/edac/edac_mc.c: In function ‘edac_mc_del_mc':
drivers/edac/edac_mc.c:1504: error: invalid type argument of ‘->'
make[2]: *** [drivers/edac/edac_mc.o] Error 1

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

This patch was already sent on:
- 8 Jul 2006

--- linux-2.6.17-mm6-full/drivers/edac/edac_mc.h.old	2006-07-08 18:06:48.000000000 +0200
+++ linux-2.6.17-mm6-full/drivers/edac/edac_mc.h	2006-07-08 18:07:04.000000000 +0200
@@ -29,6 +29,7 @@
 #include <linux/rcupdate.h>
 #include <linux/completion.h>
 #include <linux/kobject.h>
+#include <linux/platform_device.h>
 
 #define EDAC_MC_LABEL_LEN	31
 #define MC_PROC_NAME_MAX_LEN 7


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
bluesmoke-devel mailing list
bluesmoke-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluesmoke-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic