When compiling current git with CONFIG_BLOCK disabled, I'm seeing this
compile error:CC drivers/base/core.o
/home/jeremy/hg/xen/paravirt/linux/drivers/base/core.c: In function ‘device_add_class_symlinks’:
/home/jeremy/hg/xen/paravirt/linux/drivers/base/core.c:655: error: ‘part_type’ undeclared (first use in this function)
/home/jeremy/hg/xen/paravirt/linux/drivers/base/core.c:655: error: (Each undeclared identifier is reported only once
/home/jeremy/hg/xen/paravirt/linux/drivers/base/core.c:655: error: for each function it appears in.)
/home/jeremy/hg/xen/paravirt/linux/drivers/base/core.c: In function ‘device_remove_class_symlinks’:
/home/jeremy/hg/xen/paravirt/linux/drivers/base/core.c:728: error: ‘part_type’ undeclared (first use in this function)
make[4]: *** [drivers/base/core.o] Error 1J
--
Hm, I thought we fixed the CONFIG_BLOCK disabled issues with Randy's
older patch. Randy, wasn't this already addressed somehow?Jeremy, do you have a .config I can use to try to duplicate and fix
this?thanks,
greg k-h
--
My earlier email fixed one problem but noted that there were
yes, please...
---
~Randy
--
Ah, sorry, I missed that "note" :(
thanks,
greg 'time to get that make randconfig system up and working' k-h
--
Here's a config that fails.
J
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;--
No, that will fix the build error, but die when linking :(
I'll work on a real fix for this now...
thanks,
greg k-h
--
Sorry.
I just compiled it since the building process was stopped
by another error.--
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| James Bottomley | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| David Woodhouse | Re: [PATCH 2/3] firmware: convert korg1212 driver to use firmware loader exclusively |
| Kamalesh Babulal | Re: 2.6.24-rc8-mm1 Build Failure on S390x |
git: | |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
