linux-next: build failure after merge of the w1 tree
Subsystems (2)
Hi all,
After merging the w1 tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/w1/masters/w1-uart.c:314:24: error: initialization of 'size_t (*)(struct serdev_device *, const u8 *, size_t)' {aka 'long unsigned int (*)(struct serdev_device *, const unsigned char *, long unsigned int)'} from incompatible pointer type 'ssize_t (*)(struct serdev_device *, const u8 *, size_t)' {aka 'long int (*)(struct serdev_device *, const unsigned char *, long unsigned int)'} [-Werror=incompatible-pointer-types]
314 | .receive_buf = w1_uart_serdev_receive_buf,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/w1/masters/w1-uart.c:314:24: note: (near initialization for 'w1_uart_serdev_ops.receive_buf')
Caused by commit
178cf9db9e6d ("w1: add UART w1 bus driver")
interacting with commit
fed99212acae ("treewide, serdev: change receive_buf() return type to size_t")
from the tty tree.
I have applied the following merge resolution patch:
From: Stephen Rothwell <[email protected]>
Date: Thu, 15 Feb 2024 13:23:35 +1100
Subject: [PATCH] fixup for "w1: add UART w1 bus driver"
interacting with "treewide, serdev: change receive_buf() return type to size_t"
--- drivers/w1/masters/w1-uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/w1/masters/w1-uart.c +1 -1
@@ -289,7 +289,7 @@ static int w1_uart_serdev_tx_rx(struct w1_uart_device *w1dev,return ret; } -static ssize_t w1_uart_serdev_receive_buf (struct serdev_device *serdev, +static size_t w1_uart_serdev_receive_buf (struct serdev_device *serdev,const u8 *buf,size_t count) {struct w1_uart_device *w1dev =serdev_device_get_drvdata (serdev);
Signature · 5 lines
2.43.0 -- Cheers, Stephen Rothwell
Quoted 38 lines · Stephen Rothwell
Hi all,
After merging the w1 tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/w1/masters/w1-uart.c:314:24: error: initialization of 'size_t(*)(structserdev_device*, const u8 *,size_t)' {aka 'long unsigned int (*)(structserdev_device*, const unsigned char *, long unsigned int)'} from incompatible pointer type 'ssize_t(*)(structserdev_device*, const u8 *,size_t)' {aka 'long int (*)(structserdev_device*, const unsigned char *, long unsigned int)'} [-Werror=incompatible-pointer-types]
314 | .receive_buf =w1_uart_serdev_receive_buf,| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/w1/masters/w1-uart.c:314:24: note: (near initialization for 'w1_uart_serdev_ops.receive_buf')Caused by commit
178cf9db9e6d("w1: add UART w1 bus driver")interacting with commit
fed99212acae("treewide, serdev: changereceive_buf()return type tosize_t")from the tty tree.
I have applied the following merge resolution patch:
From: Stephen Rothwell <[email protected]>
Date: Thu, 15 Feb 2024 13:23:35 +1100
Subject: [PATCH] fixup for "w1: add UART w1 bus driver"interacting with "treewide, serdev: change
receive_buf()return type tosize_t"Signed-off-by Stephen Rothwell <[email protected]>--- drivers/w1/masters/w1-uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/w1/masters/w1-uart.c +0
-0
drivers/w1/masters/w1-uart.c static int w1_uart_serdev_tx_rx(struct w1_uart_device *w1dev, · line 295
Quoted 8 lines
drivers/w1/masters/w1-uart.c +1
-1@@ -289,7 +289,7 @@ static int w1_uart_serdev_tx_rx(struct w1_uart_device *w1dev,return ret; } -static ssize_t w1_uart_serdev_receive_buf (struct serdev_device *serdev, +static size_t w1_uart_serdev_receive_buf (struct serdev_device *serdev,const u8 *buf,size_t count) {struct w1_uart_device *w1dev =serdev_device_get_drvdata (serdev);
Looks good to me.
Krzysztof, want to pull in the w1 changes to my tty tree and make this change on top of it so that everything works properly going forward?
Or do you want to handle this when stuff is merged by Linus during -rc1?
thanks,
greg k-h
Quoted 50 lines · Greg KH
Quoted 38 lines · Stephen Rothwell
Hi all,
After merging the w1 tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/w1/masters/w1-uart.c:314:24: error: initialization of 'size_t(*)(structserdev_device*, const u8 *,size_t)' {aka 'long unsigned int (*)(structserdev_device*, const unsigned char *, long unsigned int)'} from incompatible pointer type 'ssize_t(*)(structserdev_device*, const u8 *,size_t)' {aka 'long int (*)(structserdev_device*, const unsigned char *, long unsigned int)'} [-Werror=incompatible-pointer-types]
314 | .receive_buf =w1_uart_serdev_receive_buf,| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/w1/masters/w1-uart.c:314:24: note: (near initialization for 'w1_uart_serdev_ops.receive_buf')Caused by commit
178cf9db9e6d("w1: add UART w1 bus driver")interacting with commit
fed99212acae("treewide, serdev: changereceive_buf()return type tosize_t")from the tty tree.
I have applied the following merge resolution patch:
From: Stephen Rothwell <[email protected]>
Date: Thu, 15 Feb 2024 13:23:35 +1100
Subject: [PATCH] fixup for "w1: add UART w1 bus driver"interacting with "treewide, serdev: change
receive_buf()return type tosize_t"Signed-off-by Stephen Rothwell <[email protected]>--- drivers/w1/masters/w1-uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/w1/masters/w1-uart.c +0
-0drivers/w1/masters/w1-uart.c static int w1_uart_serdev_tx_rx(struct w1_uart_device *w1dev, · line 295
Quoted 8 lines
drivers/w1/masters/w1-uart.c +1
-1@@ -289,7 +289,7 @@ static int w1_uart_serdev_tx_rx(struct w1_uart_device *w1dev,return ret; } -static ssize_t w1_uart_serdev_receive_buf (struct serdev_device *serdev, +static size_t w1_uart_serdev_receive_buf (struct serdev_device *serdev,const u8 *buf,size_t count) {struct w1_uart_device *w1dev =serdev_device_get_drvdata (serdev);Looks good to me.
Quoted 2 lines
Krzysztof, want to pull in the w1 changes to my tty tree and make this change on top of it so that everything works properly going forward?
Sure, I will base my branch on top of your tty-next. Currently the HEAD
is: 6cc3028f797a ("tty: vt: decrypt magic constants in vc_is_control()")
Best regards,
Krzysztof