drivers/edac/edac_mc.h must #include <linux/platform_device.h>
PATCH 1/1 drivers/edac/edac_mc.h must #include <linux/platform_device.h>
This patch fixes the following compile error with CONFIG_PCI=n:
<-- snip -->
...
CC drivers/edac/edac_mc.odrivers/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 <[email protected]>
---
This patch was already sent on:
- 8 Jul 2006
drivers/edac/edac_mc.h renamed from drivers/edac/edac_mc.h.old +1 -0
@@ -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