2020-01-15 20:15:11

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH v3 3/3] i2c: highlander: Use proper printk format for size_t

On Wed, Jan 15, 2020 at 09:02:50PM +0100, Krzysztof Kozlowski wrote:
> size_t should be printed with its own format to be 64-bit friendly and
> fix warning when compiling on 64-bit platform (e.g. with COMPILE_TEST):
>
> drivers/i2c/busses/i2c-highlander.c: In function ‘highlander_i2c_smbus_xfer’:
> drivers/i2c/busses/i2c-highlander.c:325:22: warning:
> format ‘%d’ expects argument of type ‘int’,
> but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>
>

Applied to for-next, thanks!


Attachments:
(No filename) (617.00 B)
signature.asc (849.00 B)
Download all attachments