]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: fix size_t compile warning
authorJohn Hurley <john.hurley@netronome.com>
Thu, 18 Apr 2019 00:05:39 +0000 (01:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2019 18:56:40 +0000 (11:56 -0700)
commit659b683dc012e4f6cc8628089e09289033bb8779
treea9cb2a827e1573cf50303a170af06c9611b5f959
parent84fc86e85734552b1690be85ec3980865ffb39f1
nfp: flower: fix size_t compile warning

A recent addition to NFP introduced a function that formats a string with
a size_t variable. This is formatted with %ld which is fine on 64-bit
architectures but produces a compile warning on 32-bit architectures.

Fix this by using the z length modifier.

Fixes: a6156a6ab0f9 ("nfp: flower: handle merge hint messages")
Signed-off-by: John Hurley <john.hurley@netronome.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/cmsg.c