mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] fix: console: expose consoles in devfs
@ 2017-03-10 14:41 Jean-Christophe PLAGNIOL-VILLARD
  2017-03-13  7:19 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2017-03-10 14:41 UTC (permalink / raw)
  To: barebox

on 64bit ssize_t is not an int but a long

so use the protype for fops_write ssize_t

common/console.c: In function ‘console_register’:
common/console.c:373:22: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
  newcdev->fops.write = fops_write;

in commit b4f55fcf355a4d0ac456445a5f42f259f2812b57
By Bastian Stender <bst@pengutronix.de>

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 common/console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/console.c b/common/console.c
index 668c870ab..4127e7617 100644
--- a/common/console.c
+++ b/common/console.c
@@ -296,7 +296,7 @@ static int fops_flush(struct cdev *dev)
 	return 0;
 }
 
-static int fops_write(struct cdev* dev, const void* buf, size_t count,
+static ssize_t fops_write(struct cdev* dev, const void* buf, size_t count,
 		      loff_t offset, ulong flags)
 {
 	struct console_device *priv = dev->priv;
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] fix: console: expose consoles in devfs
  2017-03-10 14:41 [PATCH 1/1] fix: console: expose consoles in devfs Jean-Christophe PLAGNIOL-VILLARD
@ 2017-03-13  7:19 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2017-03-13  7:19 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox

On Fri, Mar 10, 2017 at 03:41:16PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> on 64bit ssize_t is not an int but a long
> 
> so use the protype for fops_write ssize_t
> 
> common/console.c: In function ‘console_register’:
> common/console.c:373:22: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
>   newcdev->fops.write = fops_write;
> 
> in commit b4f55fcf355a4d0ac456445a5f42f259f2812b57
> By Bastian Stender <bst@pengutronix.de>
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ---
>  common/console.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/common/console.c b/common/console.c
> index 668c870ab..4127e7617 100644
> --- a/common/console.c
> +++ b/common/console.c
> @@ -296,7 +296,7 @@ static int fops_flush(struct cdev *dev)
>  	return 0;
>  }
>  
> -static int fops_write(struct cdev* dev, const void* buf, size_t count,
> +static ssize_t fops_write(struct cdev* dev, const void* buf, size_t count,
>  		      loff_t offset, ulong flags)
>  {
>  	struct console_device *priv = dev->priv;
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-13  7:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-10 14:41 [PATCH 1/1] fix: console: expose consoles in devfs Jean-Christophe PLAGNIOL-VILLARD
2017-03-13  7:19 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox