Error compiling Debian 4.14.71-ti-r80
Collie147 opened this issue · 2 comments
Got the below when compiling on 4.14.71
debian@beaglebone:/pru/BeagleScope$ sudo make
make[1]: Entering directory '/home/debian/pru/BeagleScope/driver'
make[2]: Entering directory '/usr/src/linux-headers-4.14.71-ti-r80'
CC [M] /home/debian/pru/BeagleScope/driver/dc782a.o
CC [M] /home/debian/pru/BeagleScope/driver/pi-bus.o
/home/debian/pru/BeagleScope/driver/pi-bus.c:99:38: warning: âstruct rpmsg_channelâ declared inside parameter list will not be visible outside of this definition or declaration
static int pi_bus_rpmsg_probe(struct rpmsg_channel *rpdev)
^~~~~~~~~~~~~
/home/debian/pru/BeagleScope/driver/pi-bus.c: In function âpi_bus_rpmsg_probeâ:
/home/debian/pru/BeagleScope/driver/pi-bus.c:105:34: error: dereferencing pointer to incomplete type âstruct rpmsg_channelâ
pibus_pdrv = devm_kzalloc(&rpdev->dev, sizeof(*pibus_pdrv), GFP_KERNEL);
^
/home/debian/pru/BeagleScope/driver/pi-bus.c: At top level:
/home/debian/pru/BeagleScope/driver/pi-bus.c:139:40: warning: âstruct rpmsg_channelâ declared inside parameter list will not be visible outside of this definition or declaration
static void pi_bus_rpmsg_remove(struct rpmsg_channel *rpdev)
^~~~~~~~~~~~~
/home/debian/pru/BeagleScope/driver/pi-bus.c: In function âpi_bus_rpmsg_removeâ:
/home/debian/pru/BeagleScope/driver/pi-bus.c:144:37: error: dereferencing pointer to incomplete type âstruct rpmsg_channelâ
pibus_pdrv = dev_get_drvdata(&rpdev->dev);
^~
/home/debian/pru/BeagleScope/driver/pi-bus.c: At top level:
/home/debian/pru/BeagleScope/driver/pi-bus.c:166:12: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.probe = pi_bus_rpmsg_probe,
^~~~~~~~~~~~~~~~~~
/home/debian/pru/BeagleScope/driver/pi-bus.c:166:12: note: (near initialization for âpi_bus_rpmsg_driver.probeâ)
/home/debian/pru/BeagleScope/driver/pi-bus.c:167:13: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.remove = pi_bus_rpmsg_remove,
^~~~~~~~~~~~~~~~~~~
/home/debian/pru/BeagleScope/driver/pi-bus.c:167:13: note: (near initialization for âpi_bus_rpmsg_driver.removeâ)
cc1: some warnings being treated as errors
scripts/Makefile.build:334: recipe for target '/home/debian/pru/BeagleScope/driver/pi-bus.o' failed
make[3]: *** [/home/debian/pru/BeagleScope/driver/pi-bus.o] Error 1
Makefile:1527: recipe for target 'module/home/debian/pru/BeagleScope/driver' failed
make[2]: *** [module/home/debian/pru/BeagleScope/driver] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.14.71-ti-r80'
Makefile:31: recipe for target 'driver' failed
make[1]: *** [driver] Error 2
make[1]: Leaving directory '/home/debian/pru/BeagleScope/driver'
Makefile:11: recipe for target 'all' failed
make: *** [all] Error 2
I am having the same problem.