linux-next: build failure after merge of the driver-core tree
Hi all,
After merging the driver-core tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:
arch/powerpc/platforms/book3s/vas-api.c: In function 'vas_register_coproc_api':arch/powerpc/platforms/book3s/vas-api.c:590:38: error: assignment to 'char * (*)(const struct device *, umode_t *)' {aka 'char * (*)(const struct device *, short unsigned int *)'} from incompatible pointer type 'char * (*)(struct device *, umode_t *)' {aka 'char * (*)(struct device *, short unsigned int *)'} [-Werror=incompatible-pointer-types]
590 | coproc_device.class->devnode = coproc_devnode;
| ^drivers/misc/cxl/file.c: In function 'cxl_file_init':drivers/misc/cxl/file.c:687:28: error: assignment to 'char * (*)(const struct device *, umode_t *)' {aka 'char * (*)(const struct device *, short unsigned int *)'} from incompatible pointer type 'char * (*)(struct device *, umode_t *)' {aka 'char * (*)(struct device *, short unsigned int *)'} [-Werror=incompatible-pointer-types]
687 | cxl_class->devnode = cxl_devnode;
| ^
Caused by commit
ff62b8e6588f ("driver core: make struct class.devnode() take a const *")
I have used the driver-core tree from next-20221125 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 14 lines · Stephen Rothwell
Hi all,
After merging the driver-core tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
arch/powerpc/platforms/book3s/vas-api.c: In function 'vas_register_coproc_api':arch/powerpc/platforms/book3s/vas-api.c:590:38: error: assignment to 'char * (*)(const struct device *,umode_t*)' {aka 'char * (*)(const struct device *, short unsigned int *)'} from incompatible pointer type 'char * (*)(struct device *,umode_t*)' {aka 'char * (*)(struct device *, short unsigned int *)'} [-Werror=incompatible-pointer-types]
590 |coproc_device.class->devnode=coproc_devnode;
| ^drivers/misc/cxl/file.c: In function 'cxl_file_init':drivers/misc/cxl/file.c:687:28: error: assignment to 'char * (*)(const struct device *,umode_t*)' {aka 'char * (*)(const struct device *, short unsigned int *)'} from incompatible pointer type 'char * (*)(struct device *,umode_t*)' {aka 'char * (*)(struct device *, short unsigned int *)'} [-Werror=incompatible-pointer-types]
687 |cxl_class->devnode=cxl_devnode;
| ^
Quoted 5 lines
Caused by commit
ff62b8e6588f("driver core: make structclass.devnode()take a const *")I have used the driver-core tree from next-20221125 for today.
Hm, how do we resolve problems like this where an api changes in my branch but needs to be updated in another branch that is not in Linus's tree yet?
Want me to make a patch for this for you to apply after the driver-core merge?
thanks,
greg k-h
Hi Greg,
Quoted 17 lines · On Mon, 28 Nov 2022 12:50:03 +0100 Greg KH <[email protected]> wrote:
Quoted 15 lines · Stephen Rothwell
After merging the driver-core tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
arch/powerpc/platforms/book3s/vas-api.c: In function 'vas_register_coproc_api':arch/powerpc/platforms/book3s/vas-api.c:590:38: error: assignment to 'char * (*)(const struct device *,umode_t*)' {aka 'char * (*)(const struct device *, short unsigned int *)'} from incompatible pointer type 'char * (*)(struct device *,umode_t*)' {aka 'char * (*)(struct device *, short unsigned int *)'} [-Werror=incompatible-pointer-types]
590 |coproc_device.class->devnode=coproc_devnode;
| ^drivers/misc/cxl/file.c: In function 'cxl_file_init':drivers/misc/cxl/file.c:687:28: error: assignment to 'char * (*)(const struct device *,umode_t*)' {aka 'char * (*)(const struct device *, short unsigned int *)'} from incompatible pointer type 'char * (*)(struct device *,umode_t*)' {aka 'char * (*)(struct device *, short unsigned int *)'} [-Werror=incompatible-pointer-types]
687 |cxl_class->devnode=cxl_devnode;
| ^Caused by commit
Quoted 7 lines
Quoted 3 lines
ff62b8e6588f("driver core: make structclass.devnode()take a const *")I have used the driver-core tree from next-20221125 for today.
Hm, how do we resolve problems like this where an api changes in my branch but needs to be updated in another branch that is not in Linus's tree yet?
That is not the case here:
$ git show ff62b8e6588f:arch/powerpc/platforms/book3s/vas-api.c | grep coproc_devnode static char *coproc_devnode(struct device *dev, umode_t *mode) coproc_device.class->devnode = coproc_devnode; $ git show ff62b8e6588f:drivers/misc/cxl/file.c | grep cxl_devnode static char *cxl_devnode(struct device *dev, umode_t *mode) cxl_class->devnode = cxl_devnode;
You just need to add a commit to your tree that updates the missed cases.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 30 lines · Stephen Rothwell
Hi Greg,
Quoted 17 lines · On Mon, 28 Nov 2022 12:50:03 +0100 Greg KH <[email protected]> wrote:
Quoted 15 lines · Stephen Rothwell
After merging the driver-core tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
arch/powerpc/platforms/book3s/vas-api.c: In function 'vas_register_coproc_api':arch/powerpc/platforms/book3s/vas-api.c:590:38: error: assignment to 'char * (*)(const struct device *,umode_t*)' {aka 'char * (*)(const struct device *, short unsigned int *)'} from incompatible pointer type 'char * (*)(struct device *,umode_t*)' {aka 'char * (*)(struct device *, short unsigned int *)'} [-Werror=incompatible-pointer-types]
590 |coproc_device.class->devnode=coproc_devnode;
| ^drivers/misc/cxl/file.c: In function 'cxl_file_init':drivers/misc/cxl/file.c:687:28: error: assignment to 'char * (*)(const struct device *,umode_t*)' {aka 'char * (*)(const struct device *, short unsigned int *)'} from incompatible pointer type 'char * (*)(struct device *,umode_t*)' {aka 'char * (*)(struct device *, short unsigned int *)'} [-Werror=incompatible-pointer-types]
687 |cxl_class->devnode=cxl_devnode;
| ^Caused by commit
Quoted 7 lines
Quoted 3 lines
ff62b8e6588f("driver core: make structclass.devnode()take a const *")I have used the driver-core tree from next-20221125 for today.
Hm, how do we resolve problems like this where an api changes in my branch but needs to be updated in another branch that is not in Linus's tree yet?
That is not the case here:
Quoted 8 lines
$ git show ff62b8e6588f:arch/powerpc/platforms/book3s/vas-api.c | grep coproc_devnode static char *coproc_devnode(struct device *dev, umode_t *mode) coproc_device.class->devnode = coproc_devnode; $ git show ff62b8e6588f:drivers/misc/cxl/file.c | grep cxl_devnode static char *cxl_devnode(struct device *dev, umode_t *mode) cxl_class->devnode = cxl_devnode;You just need to add a commit to your tree that updates the missed cases.
Odd, why is 0-day not triggering on any of these in my tree? Anyway,
I'll go fix it up, thanks...
greg k-h
Quoted 30 lines · Stephen Rothwell
Hi Greg,
Quoted 17 lines · On Mon, 28 Nov 2022 12:50:03 +0100 Greg KH <[email protected]> wrote:
Quoted 15 lines · Stephen Rothwell
After merging the driver-core tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
arch/powerpc/platforms/book3s/vas-api.c: In function 'vas_register_coproc_api':arch/powerpc/platforms/book3s/vas-api.c:590:38: error: assignment to 'char * (*)(const struct device *,umode_t*)' {aka 'char * (*)(const struct device *, short unsigned int *)'} from incompatible pointer type 'char * (*)(struct device *,umode_t*)' {aka 'char * (*)(struct device *, short unsigned int *)'} [-Werror=incompatible-pointer-types]
590 |coproc_device.class->devnode=coproc_devnode;
| ^drivers/misc/cxl/file.c: In function 'cxl_file_init':drivers/misc/cxl/file.c:687:28: error: assignment to 'char * (*)(const struct device *,umode_t*)' {aka 'char * (*)(const struct device *, short unsigned int *)'} from incompatible pointer type 'char * (*)(struct device *,umode_t*)' {aka 'char * (*)(struct device *, short unsigned int *)'} [-Werror=incompatible-pointer-types]
687 |cxl_class->devnode=cxl_devnode;
| ^Caused by commit
Quoted 7 lines
Quoted 3 lines
ff62b8e6588f("driver core: make structclass.devnode()take a const *")I have used the driver-core tree from next-20221125 for today.
Hm, how do we resolve problems like this where an api changes in my branch but needs to be updated in another branch that is not in Linus's tree yet?
That is not the case here:
Quoted 8 lines
$ git show ff62b8e6588f:arch/powerpc/platforms/book3s/vas-api.c | grep coproc_devnode static char *coproc_devnode(struct device *dev, umode_t *mode) coproc_device.class->devnode = coproc_devnode; $ git show ff62b8e6588f:drivers/misc/cxl/file.c | grep cxl_devnode static char *cxl_devnode(struct device *dev, umode_t *mode) cxl_class->devnode = cxl_devnode;You just need to add a commit to your tree that updates the missed cases.
Ok, patch sent out, let's see if 0-day objects...
thanks,
greg k-h
Hi Greg,
Quoted 3 lines · On Mon, 28 Nov 2022 17:22:52 +0100 Greg KH <[email protected]> wrote:
Odd, why is 0-day not triggering on any of these in my tree? Anyway,
I'll go fix it up, thanks...
Does 0-day do powerpc builds?
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 8 lines · Stephen Rothwell
Hi Greg,
Quoted 3 lines · On Mon, 28 Nov 2022 17:22:52 +0100 Greg KH <[email protected]> wrote:
Odd, why is 0-day not triggering on any of these in my tree? Anyway,
I'll go fix it up, thanks...Does 0-day do powerpc builds?
I thought it did, based on other problems I have had reported. I'll go queue this fix up now.
thanks,
greg k-h