A fix for this is already submitted to Linus, but thanks for sending this.

-corey

On 01/06/2015 04:15 PM, Mikulas Patocka wrote:
> Fix warning:
> drivers/char/ipmi/ipmi_ssif.c: In function 'sender':
> drivers/char/ipmi/ipmi_ssif.c:971:3: warning: format '%ld' expects argument 
> of type 'long int', but argument 5 has type '__kernel_suseconds_t' [-Wformat]
>
> On some architectures, tv_usec may have type int, so we must cast it to 
> long because there is "ld" in the format string.
>
> Signed-off-by: Mikulas Patocka <[email protected]>
>
> ---
>  drivers/char/ipmi/ipmi_ssif.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: linux-3.19-rc3/drivers/char/ipmi/ipmi_ssif.c
> ===================================================================
> --- linux-3.19-rc3.orig/drivers/char/ipmi/ipmi_ssif.c 2015-01-06 
> 21:42:10.000000000 +0100
> +++ linux-3.19-rc3/drivers/char/ipmi/ipmi_ssif.c      2015-01-06 
> 21:43:09.000000000 +0100
> @@ -969,7 +969,7 @@ static void sender(void                *
>  
>               do_gettimeofday(&t);
>               pr_info("**Enqueue %02x %02x: %ld.%6.6ld\n",
> -                    msg->data[0], msg->data[1], t.tv_sec, t.tv_usec);
> +                    msg->data[0], msg->data[1], t.tv_sec, (long)t.tv_usec);
>       }
>  }
>  


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to