Bug 213979

Summary: needs unknown symbol errors building cros_ec_sensors_core
Product: Drivers Reporter: Jason M. (jason)
Component: IIOAssignee: Virtual Assignee for Drivers/IIO (drivers_iio)
Status: RESOLVED INVALID    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.13.6 Subsystem:
Regression: No Bisected commit-id:
Attachments: config

Description Jason M. 2021-08-05 04:52:14 UTC
Created attachment 298213 [details]
config

depmod: WARNING: /home/jason/rpmbuild/BUILDROOT/kernel-5.13.6-200.fc34.x86_64/./lib/modules/5.13.6-200.fc34.x86_64+debug/kernel/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.ko needs unknown symbol cros_ec_sensorhub_register_push_data

depmod: WARNING: /home/jason/rpmbuild/BUILDROOT/kernel-5.13.6-200.fc34.x86_64/./lib/modules/5.13.6-200.fc34.x86_64+debug/kernel/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.ko needs unknown symbol cros_ec_sensorhub_unregister_push_data

I've attached the config. Please let me know if there is anything else I can provide.
Comment 1 Jason M. 2021-08-07 02:36:14 UTC
Andy, Guenter, thank you for your help. I apologize for filing this and taking your time. It looks like an issue with the script Fedora uses to filter modules into the kernel-core and kernel-modules packages.

The modules under drivers/platform were getting filtered out (removed) while the iio/common modules were left in place before it was running depmod, which is what resulted in the warnings. I modified the script a bit and my custom build worked.

https://src.fedoraproject.org/rpms/kernel/blob/f34/f/filter-modules.sh.fedora