Bug 213979 - needs unknown symbol errors building cros_ec_sensors_core
Summary: needs unknown symbol errors building cros_ec_sensors_core
Status: RESOLVED INVALID
Alias: None
Product: Drivers
Classification: Unclassified
Component: IIO (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Virtual Assignee for Drivers/IIO
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-05 04:52 UTC by Jason M.
Modified: 2021-08-07 02:36 UTC (History)
0 users

See Also:
Kernel Version: 5.13.6
Subsystem:
Regression: No
Bisected commit-id:


Attachments
config (230.13 KB, text/plain)
2021-08-05 04:52 UTC, Jason M.
Details

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

Note You need to log in before you can comment on or make changes to this bug.