Closed hvdijk closed 3 years ago
cpufreq-selector-sysfs.[c|h] files are only used in cpufreq-monitor-factory.c file:
Good spot. I was focusing on the fact that it was unconditionally used and linked in prior to 4cb6f915 and did not see that 4cb6f915 made it conditional. Would you prefer me to update this PR or you to just commit your fix?
it’s best that you update your PR
Alright, updated. Had already checked to make sure that this builds too, but should point out that that was with the ! HAVE_LIBCPUFREQ
case.
Commit 4cb6f915 added cpufreq-selector-sysfs.[ch] to mate_cpufreq_selector_SOURCES for the !HAVE_LIBCPUFREQ case, but they were already unconditionally part of that. Including them twice leads to duplicate definitions for the symbols defined by them.