Re: [next:master 182/217] include/linux/compiler.h:109:18: warning: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'long unsigned int'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 20 Jun 2014 18:13:07 +0800 kbuild test robot <fengguang.wu@xxxxxxxxx> wrote:

> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   633594bb2d3890711a887897f2003f41735f0dfa
> commit: 8d9dfa4b0125b04eb215909a388cf83fcdeee719 [182/217] initramfs: support initramfs that is more than 2G
> config: i386-randconfig-j1-06201406 (attached as .config)
> 
> All warnings:
> 
>    In file included from include/linux/init.h:4:0,
>                     from crypto/zlib.c:25:
>    crypto/zlib.c: In function 'zlib_compress_update':
>    include/linux/compiler.h:109:18: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'uLong' [-Wformat=]
>        static struct ftrace_branch_data  \

Simple fix is below.

But things still aren't very good. 
initramfs-support-initramfs-that-is-more-than-2g.patch switches
avail_in and avail_out from uint to ulong but failed to fix up a whole
bunch of code which expects to handle 32-bit quantities.

eg:

static int zlib_compress_update(struct crypto_pcomp *tfm,
				struct comp_request *req)
{
	int ret;

	...

	ret = req->avail_out - stream->avail_out;

This is at least sloppy and is quite possibly buggy.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]