[Patch] drivers/base/core.c: fix a compile error

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeremy Fitzhardinge <jeremy@...>
Cc: Greg KH <gregkh@...>, Randy Dunlap <rdunlap@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Saturday, January 26, 2008 - 5:14 am

On Fri, Jan 25, 2008 at 03:24:13PM -0800, Jeremy Fitzhardinge wrote:

Here's one possible fix. Please review.

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>

---

Index: linux-2.6/include/linux/genhd.h
===================================================================
--- linux-2.6.orig/include/linux/genhd.h
+++ linux-2.6/include/linux/genhd.h
@@ -12,6 +12,8 @@
 #include <linux/types.h>
 #include <linux/kdev_t.h>
 
+extern struct device_type part_type;
+
 #ifdef CONFIG_BLOCK
 
 #define kobj_to_dev(k) container_of(k, struct device, kobj)
@@ -19,7 +21,6 @@
 #define dev_to_part(device) container_of(device, struct hd_struct, dev)
 
 extern struct device_type disk_type;
-extern struct device_type part_type;
 extern struct kobject *block_depr;
 extern struct class block_class;
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
compile error in current git, Jeremy Fitzhardinge, (Fri Jan 25, 4:36 pm)
Re: compile error in current git, Greg KH, (Fri Jan 25, 6:17 pm)
Re: compile error in current git, Randy Dunlap, (Fri Jan 25, 7:00 pm)
Re: compile error in current git, Greg KH, (Fri Jan 25, 7:11 pm)
Re: compile error in current git, Jeremy Fitzhardinge, (Fri Jan 25, 7:24 pm)
[Patch] drivers/base/core.c: fix a compile error, WANG Cong, (Sat Jan 26, 5:14 am)