CC [M] /home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.o
In file included from /home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:21:0:
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c: In function ‘nrf24_tx_thread’:
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:226:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘ssize_t {aka long int}’ [-Wformat=]
dev_dbg(&device->dev, "tx %d bytes", n);
^
./include/linux/device.h:1364:30: note: in definition of macro ‘dev_dbg’
dev_printk(KERN_DEBUG, dev, format, ##arg)
^~~~~~
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c: In function ‘nrf24_rx_thread’:
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:309:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘ssize_t {aka long int}’ [-Wformat=]
"%s: get pipe failed (err: %d)",
^
./include/linux/device.h:1364:30: note: in definition of macro ‘dev_dbg’
dev_printk(KERN_DEBUG, dev, format, ##arg)
^~~~~~
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:328:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘ssize_t {aka long int}’ [-Wformat=]
"%s: could not read pload (err = %d)",
^
./include/linux/device.h:1364:30: note: in definition of macro ‘dev_dbg’
dev_printk(KERN_DEBUG, dev, format, ##arg)
^~~~~~
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:334:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘ssize_t {aka long int}’ [-Wformat=]
dev_dbg(p->dev, "rx %d bytes", length);
^
./include/linux/device.h:1364:30: note: in definition of macro ‘dev_dbg’
dev_printk(KERN_DEBUG, dev, format, ##arg)
^~~~~~
In file included from /home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:33:0:
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c: In function ‘nrf24_read’:
./include/linux/kfifo.h:636:27: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
unsigned int *__copied = (copied);
^
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:420:6: note: in expansion of macro ‘kfifo_to_user’
n = kfifo_to_user(&p->rx_fifo, buf, size, &copied);
^~~~~~~~~~~~~
In file included from /home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:21:0:
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c: In function ‘nrf24_write’:
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:439:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
dev_dbg(p->dev, "write (%d)", size);
^
./include/linux/device.h:1364:30: note: in definition of macro ‘dev_dbg’
dev_printk(KERN_DEBUG, dev, format, ##arg)
^~~~~~
In file included from /home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:33:0:
./include/linux/kfifo.h:608:27: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
unsigned int __copied = (copied);
^
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:454:6: note: in expansion of macro ‘kfifo_from_user’
n = kfifo_from_user(&device->tx_fifo,
^~~~~~~~~~~~~~~
In file included from ./include/linux/spi/spi.h:21:0,
from /home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:23:
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c: In function ‘nrf24_probe’:
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:818:39: error: passing argument 1 of ‘kthread_create_on_node’ from incompatible pointer type [-Werror=incompatible-pointer-types]
device->rx_task_struct = kthread_run(nrf24_rx_thread,
^
./include/linux/kthread.h:27:25: note: in definition of macro ‘kthread_create’
kthread_create_on_node(threadfn, data, NUMA_NO_NODE, namefmt, ##arg)
^~~~~~~~
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:818:27: note: in expansion of macro ‘kthread_run’
device->rx_task_struct = kthread_run(nrf24_rx_thread,
^~~~~~~~~~~
./include/linux/kthread.h:10:21: note: expected ‘int ()(void )’ but argument is of type ‘ssize_t ()(void ) {aka long int ()(void *)}’
struct task_struct *kthread_create_on_node(int (*threadfn)(void data),
^~~~~~~~~~~~~~~~~~~~~~
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:828:39: error: passing argument 1 of ‘kthread_create_on_node’ from incompatible pointer type [-Werror=incompatible-pointer-types]
device->tx_task_struct = kthread_run(nrf24_tx_thread,
^
./include/linux/kthread.h:27:25: note: in definition of macro ‘kthread_create’
kthread_create_on_node(threadfn, data, NUMA_NO_NODE, namefmt, ##arg)
^~~~~~~~
/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.c:828:27: note: in expansion of macro ‘kthread_run’
device->tx_task_struct = kthread_run(nrf24_tx_thread,
^~~~~~~~~~~
./include/linux/kthread.h:10:21: note: expected ‘int ()(void )’ but argument is of type ‘ssize_t ()(void ) {aka long int ()(void *)}’
struct task_struct *kthread_create_on_node(int (*threadfn)(void *data),
^~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:316: recipe for target '/home/sergey/Projects/orpaltech/drivers/nordic/nrf24/nrf24_if.o' failed