[PATCH 1/6] jffs2: make lzo optional at build time
Mike Frysinger
vapier at gentoo.org
Tue Jun 7 11:16:46 EDT 2011
On Tue, Jun 7, 2011 at 03:16, Artem Bityutskiy wrote:
> On Tue, 2011-06-07 at 02:19 -0400, Mike Frysinger wrote:
>> +int jffs2_lzo_init(void)
>> +{
>> + return 0;
>> +}
>
> This function should return -1, I think, so that mkfs.jffs2 would fail
> if lzo was not compiled-in.
i didnt do that because the func is always called and i was afraid
that it'd prevent normal execution. the runtime code should already
fail when lzo is requested because the compression routines are looked
up on the fly and when the requested compressor isnt found, it fails
at that time. (at least that's my understanding of things)
-mike
More information about the linux-mtd
mailing list