Skip to content

Commit d06f5a3

Browse files
committed
cdx: fix build failure due to sysfs 'bus_type' argument needing to be const
Commit 75cff72 ("driver core: bus: mark the struct bus_type for sysfs callbacks as constant") missed at least one case - the CDX bus driver. Probably because Greg didn't notice the build failure, because it only ends up being enabled on arm64. And I missed it during the merge, because while I do arm64 builds these days, I don't do them in between each pull. So it took a while for me to notice the breakage, rather than me just fixing it in the driver core merge that brought this failure case in. Maybe we should remove the CDX_BUS dependency on arm64 when COMPILE_TEST is on? Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Nipun Gupta <nipun.gupta@amd.com> Cc: Nikhil Agarwal <nikhil.agarwal@amd.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent cec24b8 commit d06f5a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/cdx/cdx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static struct attribute *cdx_dev_attrs[] = {
363363
};
364364
ATTRIBUTE_GROUPS(cdx_dev);
365365

366-
static ssize_t rescan_store(struct bus_type *bus,
366+
static ssize_t rescan_store(const struct bus_type *bus,
367367
const char *buf, size_t count)
368368
{
369369
struct cdx_controller *cdx;

0 commit comments

Comments
 (0)