Re: [PATCH] tc: fix warning and coding style

From: Maciej W. Rozycki
Date: Tue Sep 30 2014 - 12:28:16 EST


On Tue, 30 Sep 2014, Thibaut Robert wrote:

> Fix checkpatch warnings:
> WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
> WARNING: Possible unnecessary 'out of memory' message
> WARNING: quoted string split across lines
> WARNING: Use #include <linux/io.h> instead of <asm/io.h>
>
> Fix gcc warning:
> warning: format ʽ%dʼ expects argument of type ʽintʼ, but argument 4 has type ʽresource_size_tʼ [-Wformat=]
>
> As resource_size_t can be 32 or 64 bits (depending on CONFIG_RESOURCES_64BIT), this patch uses "%lld" format along with a cast to u64 for printing resource_size_t values
>
> Signed-off-by: Thibaut Robert <thibaut.robert@xxxxxxxxx>
> ---

NAK. These issues have already been taken care of via the LMO tree; the
original change has been archived here:

http://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=alpine.LFD.2.11.1404062030280.15266%40eddie.linux-mips.org

and is on the way to Linus's tree (IIUC; Ralf, please acknowledge).

If you think there's anything wrong still left afterwards, except from
the message wrapping (as I'm not going to approve any modification to go
beyond 79 columns; this is nonsense), then please send an incremental
change on top of that.

Thanks for your contribution anyway.

Maciej
--
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/