pinctrl: nomadik: fix build warning (-Wformat)
authorThéo Lebrun <theo.lebrun@bootlin.com>
Wed, 28 Feb 2024 11:28:06 +0000 (12:28 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 29 Feb 2024 09:24:51 +0000 (10:24 +0100)
Fix compiler warning found in the pinctrl-nomadik platform driver. GCC
message is as such:

drivers/pinctrl/nomadik/pinctrl-nomadik.c:855:21: warning:
format ‘%u’ expects argument of type ‘unsigned int’, but argument 5
has type ‘size_t {aka const long unsigned int}’ [-Wformat=]

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://lore.kernel.org/r/20240228-mbly-gpio-v2-8-3ba757474006@bootlin.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nomadik/pinctrl-nomadik.c

index 16d836157f749a734613587a798230c0f9cf0499..1be0c48712b70aa847bbc86a5173af14ba36f807 100644 (file)
@@ -871,7 +871,7 @@ static int nmk_pmx_set(struct pinctrl_dev *pctldev, unsigned function,
        if (g->altsetting < 0)
                return -EINVAL;
 
-       dev_dbg(npct->dev, "enable group %s, %u pins\n", g->grp.name, g->grp.npins);
+       dev_dbg(npct->dev, "enable group %s, %zu pins\n", g->grp.name, g->grp.npins);
 
        /*
         * If we're setting altfunc C by setting both AFSLA and AFSLB to 1,