Skip to contentSkip to conversation

linux-next: build failure after merge of the driver-core tree

PATCH Stephen Rothwell 3 participants 5 messages Mar 27, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the driver-core tree, today's linux-next build (s390-defconfig) failed like this:

drivers/s390/crypto/ap_bus.c:1596:20: error: initialization of 'ssize_t (*)(const struct bus_type *, char *)' {aka 'long int (*)(const struct bus_type *, char *)'} from incompatible pointer type 'ssize_t (*)(struct bus_type *, char *)' {aka 'long int (*)(struct bus_type *, char *)'} [-Werror=incompatible-pointer-types]

(reported here: http://kisskb.ellerman.id.au/kisskb/buildresult/14902509/)

Caused by commit

75cff725d956 ("driver core: bus: mark the struct bus_type for sysfs callbacks as constant")

interacting with commit

d7b1813af6a5 ("s390/ap: introduce new AP bus sysfs attribute features")

from the s390 tree.

I will apply the following (currently untested) merge fix up patch from tomorrow:

From: Stephen Rothwell <[email protected]>
Date: Mon, 27 Mar 2023 15:42:41 +1100
Subject: [PATCH] fixup for "driver core: bus: mark the struct bus_type for sysfs callbacks as constant"

interacting with "s390/ap: introduce new AP bus sysfs attribute features"

---
 drivers/s390/crypto/ap_bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/s390/crypto/ap_bus.c +1 -1
index 85bb0de15e76..8d6b9a52bf3c 100644
@@ -1570,7 +1570,7 @@ static ssize_t bindings_show(const struct bus_type *bus, char *buf)
 
 static BUS_ATTR_RO(bindings);
 
-static ssize_t features_show(struct bus_type *bus, char *buf)
+static ssize_t features_show(const struct bus_type *bus, char *buf)
 {
 	int n = 0;
 
Signature · 5 lines
2.39.2

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 38 lines · Stephen Rothwell

Hi all,

After merging the driver-core tree, today's linux-next build (s390-defconfig) failed like this:

drivers/s390/crypto/ap_bus.c:1596:20: error: initialization of 'ssize_t (*)(const struct bus_type *, char *)' {aka 'long int (*)(const struct bus_type *, char *)'} from incompatible pointer type 'ssize_t (*)(struct bus_type *, char *)' {aka 'long int (*)(struct bus_type *, char *)'} [-Werror=incompatible-pointer-types]

(reported here: http://kisskb.ellerman.id.au/kisskb/buildresult/14902509/)

Caused by commit

75cff725d956 ("driver core: bus: mark the struct bus_type for sysfs callbacks as constant")

interacting with commit

d7b1813af6a5 ("s390/ap: introduce new AP bus sysfs attribute features")

from the s390 tree.

I will apply the following (currently untested) merge fix up patch from tomorrow:

From: Stephen Rothwell <[email protected]>
Date: Mon, 27 Mar 2023 15:42:41 +1100
Subject: [PATCH] fixup for "driver core: bus: mark the struct bus_type for sysfs callbacks as constant"

interacting with "s390/ap: introduce new AP bus sysfs attribute features"

---
 drivers/s390/crypto/ap_bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/s390/crypto/ap_bus.c +0 -0
index 85bb0de15e76..8d6b9a52bf3c 100644

drivers/s390/crypto/ap_bus.c static ssize_t bindings_show(const struct bus_type *bus, char *buf) · line 1573

Quoted 5 lines
drivers/s390/crypto/ap_bus.c +1 -1
@@ -1570,7 +1570,7 @@ static ssize_t bindings_show(const struct bus_type *bus, char *buf)
 
 static BUS_ATTR_RO(bindings);
 
-static ssize_t features_show(struct bus_type *bus, char *buf)
+static ssize_t features_show(const struct bus_type *bus, char *buf)

Patch is correct, thank you.

s390 developers, if you have a persistent tag/branch, I can suck this into the driver core tree and apply this fixup there so that you don't have to deal with any merge issues for 6.4-rc1 if you want. Or I can provide one for you if you need/want that instead. Or we can just leave it alone and deal with it during the 6.4-rc1 merge window, your choice.

thanks,

greg k-h

#2 lore raw

Hi All,

Quoted 2 lines · On Mon, 27 Mar 2023 09:33:42 +0200 Greg KH <[email protected]> wrote:

Patch is correct, thank you.

Thanks for checking.

Quoted 5 lines

s390 developers, if you have a persistent tag/branch, I can suck this into the driver core tree and apply this fixup there so that you don't have to deal with any merge issues for 6.4-rc1 if you want. Or I can provide one for you if you need/want that instead. Or we can just leave it alone and deal with it during the 6.4-rc1 merge window, your choice.

Or (it being pretty trivial) you could both just let Linus know when you send your merge requests ...

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 8 lines · Stephen Rothwell

Hi All,

Quoted 2 lines · On Mon, 27 Mar 2023 09:33:42 +0200 Greg KH <[email protected]> wrote:

Patch is correct, thank you.

Thanks for checking.

Quoted 8 lines
Quoted 5 lines

s390 developers, if you have a persistent tag/branch, I can suck this into the driver core tree and apply this fixup there so that you don't have to deal with any merge issues for 6.4-rc1 if you want. Or I can provide one for you if you need/want that instead. Or we can just leave it alone and deal with it during the 6.4-rc1 merge window, your choice.

Or (it being pretty trivial) you could both just let Linus know when you send your merge requests ...

True, that works for me!

maintainer
#4 lore raw
Quoted 15 lines · Greg KH
Quoted 14 lines · Stephen Rothwell

Hi All,

Quoted 2 lines · On Mon, 27 Mar 2023 09:33:42 +0200 Greg KH <[email protected]> wrote:

Patch is correct, thank you.

Thanks for checking.

Quoted 5 lines

s390 developers, if you have a persistent tag/branch, I can suck this into the driver core tree and apply this fixup there so that you don't have to deal with any merge issues for 6.4-rc1 if you want. Or I can provide one for you if you need/want that instead. Or we can just leave it alone and deal with it during the 6.4-rc1 merge window, your choice.

Quoted 4 lines
Quoted 2 lines

Or (it being pretty trivial) you could both just let Linus know when you send your merge requests ...

True, that works for me!

Sounds good for s390 as well, thank you!