On 2016-07-26 4:28 AM, Zhenbo Gao wrote:
following warning msg is found when compiling the kernel for qemumips:
.../drivers/input/mousedev.c:749:15: warning: passing argument 1 of
'__cpu_to_le16p' from incompatible pointer type [-Wincompatible-pointer-types]
convert the function's parameter to (__u16 *) to fix this warning.
Thanks for the refresh.
merged.
Bruce
Signed-off-by: Zhenbo Gao <zhenbo....@windriver.com>
---
drivers/input/mousedev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c
index 0cc262b..2ad79ca 100644
--- a/drivers/input/mousedev.c
+++ b/drivers/input/mousedev.c
@@ -746,7 +746,7 @@ static ssize_t mousedev_read(struct file *file, char __user
*buffer,
#ifdef CONFIG_CPU_BIG_ENDIAN
/* Force mouse data LE in userspace as consumers
of the data expect it in this format */
- cpu_to_le16p(data);
+ cpu_to_le16p((__u16 *)data);
#endif
spin_unlock_irq(&client->packet_lock);
--
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto