diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2017-03-10 15:41:16 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-13 08:19:30 +0100 |
commit | 27f3f993b842b75518d81e83485166909f0af54c (patch) | |
tree | fcf359b7d6871da2bac204ddaaad547e859e5dff /common | |
parent | 97d2da3d980ccdad1d8069cdefeeb445bf046475 (diff) | |
download | barebox-27f3f993b842b75518d81e83485166909f0af54c.tar.gz barebox-27f3f993b842b75518d81e83485166909f0af54c.tar.xz |
fix: console: expose consoles in devfs
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>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/console.c b/common/console.c index 668c870ab4..4127e7617a 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; |