Re: [PATCH v3 1/4] Add support for LZO-compressed kernels

From: Albin Tonnerre
Date: Thu Nov 12 2009 - 17:43:51 EST


On Thu, 12 Nov 2009 14:33 -0800, Andrew Morton wrote :
> On Wed, 11 Nov 2009 13:27:55 +0100
> Albin Tonnerre <albin.tonnerre@xxxxxxxxxxxxxxxxxx> wrote:
>
> > +STATIC inline int INIT unlzo(u8 *input, int in_len,
>
> I assume the macro gunk is to support testing of the code in a
> userspace test haress?

> Where does INIT get defined?

STATIC and INIT are both defined in include/linux/decompress/mm.h. They're
needed to support using the decompression code both in the kernel bootstrap code
if the kernel image is compressed, and as part of the kernel code if it used to
extract an initrd/initramfs image.

Regards,
--
Albin Tonnerre, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
--
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/