Skip to content

Commit

Permalink
[PATCH] drivers/edac/edac_mc.h must #include <linux/platform_device.h>
Browse files Browse the repository at this point in the history
With CONFIG_PCI=n:

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

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Aug 6, 2006
1 parent a7ef787 commit 927cbe8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/edac/edac_mc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 927cbe8

Please sign in to comment.