public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* building mtd: DECLARE_MUTEX?
@ 2000-10-27  2:38 Qiuyuan Liu
  2000-10-27  9:01 ` Nick Ivanter
  0 siblings, 1 reply; 4+ messages in thread
From: Qiuyuan Liu @ 2000-10-27  2:38 UTC (permalink / raw)
  To: mtd

I am trying to build mtd (checked out from the CVS version) on my Red
Hat Linux 6.2 box (2.2.14).

I can't find where DECLARE_MUTEX is defined, which referenced in
mtdcore.c (line 89).

Btw, there isn't a file named compatmac.h under /usr/include/linux,
except the one came with mtd package, which refers to it.

Thank you,
Qiuyuan


To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: building mtd: DECLARE_MUTEX?
  2000-10-27  2:38 building mtd: DECLARE_MUTEX? Qiuyuan Liu
@ 2000-10-27  9:01 ` Nick Ivanter
  2000-10-30 20:12   ` building mtd: put_module_symbol? Qiuyuan Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Ivanter @ 2000-10-27  9:01 UTC (permalink / raw)
  To: Qiuyuan Liu; +Cc: mtd

/include/linux/compatmac.h was introduced in 2.2.16
You shoud get it from there. Once have this done, you
find DECLARE_MUTEX defined.

Nick

Qiuyuan Liu wrote:

> I am trying to build mtd (checked out from the CVS version) on my Red
> Hat Linux 6.2 box (2.2.14).
>
> I can't find where DECLARE_MUTEX is defined, which referenced in
> mtdcore.c (line 89).
>
> Btw, there isn't a file named compatmac.h under /usr/include/linux,
> except the one came with mtd package, which refers to it.
>
> Thank you,
> Qiuyuan
>
> To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* building mtd: put_module_symbol?
  2000-10-27  9:01 ` Nick Ivanter
@ 2000-10-30 20:12   ` Qiuyuan Liu
  2000-10-30 20:38     ` David Woodhouse
  0 siblings, 1 reply; 4+ messages in thread
From: Qiuyuan Liu @ 2000-10-30 20:12 UTC (permalink / raw)
  To: mtd

Thank you, Nick.

I installed the linux-2.2.17.tar.gz directly on my box. 
Now I got the following 3 new errors:

1. where is put_module_symbol defined referred in mtd/map.h:
do_map_probe().


2. set_current_state redefinition

 * $Id: cfi_cmdset_0001.c,v 1.41 2000/10/19 14:26:34 nico Exp $

#if LINUX_VERSION_CODE < 0x20300
#define set_current_state(x) current->state = (x);	//line 36:
#endif

 * mtd/include/compatmac.h
 * $Id: compatmac.h,v 1.6 2000/10/23 16:56:28 sjhill Exp $

#if LINUX_VERSION_CODE < 0x20300
#define set_current_state(state_value)                        \		//line : 203 
        do { current->state = (state_value); } while (0)
#endif


3. physmap.c, line 65:
'CONFIG_MTD_PHYSMAP_BUSWIDTH' undeclared here (not in a function)
initializer elemennt for 'physmap_map.buswidth' is not constant

error exit.

struct map_info physmap_map = {
	name: "Physically mapped flash",
	size: WINDOW_SIZE,
	buswidth: BUSWIDTH,	// line 65
	read8: physmap_read8,
	read16: physmap_read16,
	read32: physmap_read32,
	copy_from: physmap_copy_from,
	write8: physmap_write8,
	write16: physmap_write16,
	write32: physmap_write32,
	copy_to: physmap_copy_to
};


Thank you,
Qiuyuan Liu



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: building mtd: put_module_symbol?
  2000-10-30 20:12   ` building mtd: put_module_symbol? Qiuyuan Liu
@ 2000-10-30 20:38     ` David Woodhouse
  0 siblings, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2000-10-30 20:38 UTC (permalink / raw)
  To: Qiuyuan Liu; +Cc: mtd

On Mon, 30 Oct 2000, Qiuyuan Liu wrote:

> 1. where is put_module_symbol defined referred in mtd/map.h:
> do_map_probe().

Apply put_module_symbol-2.2.18.patch to your kernel.

> 2. set_current_state redefinition

Fixed in cvs tree.

> 3. physmap.c, line 65:
> 'CONFIG_MTD_PHYSMAP_BUSWIDTH' undeclared here (not in a function)
> initializer elemennt for 'physmap_map.buswidth' is not constant

Likewise.

-- 
dwmw2




To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-10-30 20:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-27  2:38 building mtd: DECLARE_MUTEX? Qiuyuan Liu
2000-10-27  9:01 ` Nick Ivanter
2000-10-30 20:12   ` building mtd: put_module_symbol? Qiuyuan Liu
2000-10-30 20:38     ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox