[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1379364632-19197-1-git-send-email-vincent.stehle@laposte.net>
Date: Mon, 16 Sep 2013 22:50:32 +0200
From: Vincent Stehlé <vincent.stehle@...oste.net>
To: linux-kernel@...r.kernel.org, linux-next@...r.kernel.org
Cc: Vincent Stehlé <vincent.stehle@...oste.net>,
Linus Walleij <linus.walleij@...aro.org>
Subject: [PATCH linux-next] pinctrl: fix pinconf_dbg_config_write return type
Have pinconf_dbg_config_write() return a ssize_t. This fixes the following
compilation warning:
drivers/pinctrl/pinconf.c:617:2: warning: initialization from incompatible pointer type [enabled by default]
drivers/pinctrl/pinconf.c:617:2: warning: (near initialization for ‘pinconf_dbg_pinconfig_fops.write’) [enabled by default]
Signed-off-by: Vincent Stehlé <vincent.stehle@...oste.net>
Cc: Linus Walleij <linus.walleij@...aro.org>
---
Hi,
This can be seen with e.g. next-20130916 with x86 allmodconfig.
Best regards,
V.
drivers/pinctrl/pinconf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c
index a138965..1664e78 100644
--- a/drivers/pinctrl/pinconf.c
+++ b/drivers/pinctrl/pinconf.c
@@ -490,7 +490,7 @@ exit:
* <devicename> <state> <pinname> are values that should match the pinctrl-maps
* <newvalue> reflects the new config and is driver dependant
*/
-static int pinconf_dbg_config_write(struct file *file,
+static ssize_t pinconf_dbg_config_write(struct file *file,
const char __user *user_buf, size_t count, loff_t *ppos)
{
struct pinctrl_maps *maps_node;
--
1.8.4.rc3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists