Re: MTD/mtdblock.c uclinux 2.0.38?

David Woodhouse
2001-07-11T22:23:33Z

skranz@ridgerun.com said:
> MTD depends on these headers which don't exist within the uclinux
> tree.

Touch them. We can sort out the missing stuff later. You might want slab.h
to include malloc.h instead of just being empty.

> include/linux/mtd/map.h line 65, generates error: "field `list' has
> incomplete type"

Copy include/linux/list.h from a later kernel.

skranz@ridgerun.com said:
> statements __MOD_INC_USE_COUNT() and __MOD_DEC_USE_COUNT() found in
> various locations with the MTD tree generate these compile errors:
> "structure has no member named `uc'" "structure has no member named
> `flags'"

Fix the definitions in include/linux/mtd/compatmac.h to match the kernel
you're using.

--
dwmw2