Title: Problems building Linux kernel with RT patch PREEMPT_RT [Print This Page] Author: Andy_S Time: 4/11/2024 13:48 Title: Problems building Linux kernel with RT patch PREEMPT_RT Last edited by Andy_S In 4/11/2024 19:18 Editor
Hello.
When building the Linux kernel with the RT patch PREEMPT_RT 5.10.198, the errors below appear. Please tell me what needs to be done to correct them.
Configuration kernel in logs_and_configForKernel.tar.gz
The following errors that occurred when building the kernel have been fixed:
ERROR:
security/smack/smack_lsm.c:54:21: warning: 'smack_ipv6_lock' defined but not used [-Wunused-variable]
error, forbidden warning:smack_lsm.c:54
54 | static DEFINE_MUTEX(smack_ipv6_lock);
| ^~~~~~~~~~~~~~~
FOR CORRECTION:
#ifdef SMACK_IPV6_PORT_LABELING
static DEFINE_MUTEX(smack_ipv6_lock);
#endif
ERROR:
drivers/usb/dwc2/platform.c: In function 'dwc2_resume':
drivers/usb/dwc2/platform.c:816:12: error: 'struct dwc2_hsotg' has no member named 'driver'
816 | if (!dwc2->driver)
| ^~
make[4]: *** [scripts/Makefile.build:273: drivers/usb/dwc2/platform.o] §°§ê§Ú§Ò§Ü§Ñ 1
make[3]: *** [scripts/Makefile.build:516: drivers/usb/dwc2] §°§ê§Ú§Ò§Ü§Ñ 2
make[2]: *** [scripts/Makefile.build:516: drivers/usb] §°§ê§Ú§Ò§Ü§Ñ 2
make[2]: *** §°§Ø§Ú§Õ§Ñ§ß§Ú§Ö §Ù§Ñ§Ó§Ö§â§ê§Ö§ß§Ú§ñ §Ù§Ñ§Õ§Ñ§ß§Ú§Û¡
FOR CORRECTION: (file .config)
<M> DesignWare USB2 DRD Core Support
§Ù§Ñ§ä§Ö§Þ §Ó§í§Ò§â§Ñ§ä§î
DWC2 Mode Selection (Dual Role mode) --->
ERROR:
rivers/rpmsg/virtio_rpmsg_bus.c:194:3: error: 'const struct rpmsg_endpoint_ops' has no member named 'get_mtu'
194 | .get_mtu = virtio_rpmsg_get_mtu,
| ^~~~~~~
drivers/rpmsg/virtio_rpmsg_bus.c:194:13: error: initialization of '__poll_t (*)(struct rpmsg_endpoint *, struct file *, poll_table *)' {aka 'unsigned int (*)(struct rpmsg_endpoint *, struct file *, struct poll_table_struct *)'} from incompatible pointer type 'ssize_t (*)(struct rpmsg_endpoint *)' {aka 'long int (*)(struct rpmsg_endpoint *)'} [-Werror=incompatible-pointer-types]
194 | .get_mtu = virtio_rpmsg_get_mtu,
| ^~~~~~~~~~~~~~~~~~~~
drivers/rpmsg/virtio_rpmsg_bus.c:194:13: note: (near initialization for 'virtio_endpoint_ops.poll')
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:273: drivers/rpmsg/virtio_rpmsg_bus.o] §°§ê§Ú§Ò§Ü§Ñ 1
make[2]: *** [scripts/Makefile.build:516: drivers/rpmsg] §°§ê§Ú§Ò§Ü§Ñ 2
make[2]: *** §°§Ø§Ú§Õ§Ñ§ß§Ú§Ö §Ù§Ñ§Ó§Ö§â§ê§Ö§ß§Ú§ñ §Ù§Ñ§Õ§Ñ§ß§Ú§Û¡
Author: adoroshoes Time: 11/13/2024 19:21
Discover Adoro stylish and comfortable casual shoes for men designed to elevate your wardrobe. Shop now for the perfect blend of style and comfort.Author: Gulaal Time: 11/13/2024 20:11
Update your wardrobe with Gulaal¡¯s new dress. Our fresh designs offer a perfect blend of modern trends and timeless elegance for any occasion.
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/)