Re: [PATCH] staging: ccree: fix type mismatch warning
From: Greg Kroah-Hartman
Date: Thu Dec 21 2017 - 12:14:11 EST
On Thu, Dec 21, 2017 at 02:31:20PM +0100, Arnd Bergmann wrote:
> __dump_byte_array used to be hidden, but is now visible to the compiler
> and causes a harmless warning:
>
> drivers/staging/ccree/ssi_driver.c:82:6: error: conflicting types for '__dump_byte_array'
> drivers/staging/ccree/ssi_driver.c: In function '__dump_byte_array':
> drivers/staging/ccree/ssi_driver.c:89:41: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}' [-Werror=format=]
>
> This changes the prototype in the header to match that of the actual
> function on all architectures, and the format string to match the
> argument.
>
> Fixes: 3f268f5d6669 ("staging: ccree: turn compile time debug log to params")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> ---
> drivers/staging/ccree/ssi_driver.c | 2 +-
> drivers/staging/ccree/ssi_driver.h | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
Should already be fixed, sorry.
greg k-h