Re: Incompatibilities of kmem_cache_create

From: Paul Mundt
Date: Sat Jul 21 2007 - 02:21:11 EST


On Sat, Jul 21, 2007 at 02:50:01AM -0300, werner wrote:
> Of the kernel 2.6.22-git15 of this night, kmem_cache_create is not
> compatible and causes compiling errors of some fundamental programs.
> Before, this error didnt occur.
>
Slab destructors haven't been supported in the kernel for ages, anything
that's relying on them to work out-of-tree is fundamentally broken.

> At least this happened on compiling the externel modules for btrfs and
> ndiskwrapper. Principally the compatibility of the Kernel with older
> and new versions of the file systems have to be observed very good, for
> the reliability to can read dates.
>
> Thus this should be checked, and corrected
>
Indeed it should. You can correct this by removing the extraneous NULL
parameter for the slab dtor from the kmem_cache_create() callsite in the
out-of-tree code. All of the in-tree users were already converted.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/