[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230327154655.58dd627d@canb.auug.org.au>
Date: Mon, 27 Mar 2023 15:46:55 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Greg KH <greg@...ah.com>, Heiko Carstens <hca@...ux.ibm.com>,
Vasily Gorbik <gor@...ux.ibm.com>,
Christian Borntraeger <borntraeger@...ibm.com>
Cc: Harald Freudenberger <freude@...ux.ibm.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Next Mailing List <linux-next@...r.kernel.org>
Subject: linux-next: build failure after merge of the driver-core tree
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 <sfr@...b.auug.org.au>
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"
Signed-off-by: Stephen Rothwell <sfr@...b.auug.org.au>
---
drivers/s390/crypto/ap_bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c
index 85bb0de15e76..8d6b9a52bf3c 100644
--- a/drivers/s390/crypto/ap_bus.c
+++ b/drivers/s390/crypto/ap_bus.c
@@ -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;
--
2.39.2
--
Cheers,
Stephen Rothwell
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists