On Sun, Mar 5, 2023 at 12:48 PM stan via kernel
<kernel@lists.fedoraproject.org> wrote:
>
> Hi,
> I just built a kernel from the 6.2.2 fc37 src.rpm.  It built fine, but
> at the end there was a missing file warning for cpufreq.h.  I build the
> header files when building the kernel, so I would think that would be
> included in them.
>
> The error:
> + exit 0
>     File not found: 
> /home/stan/rpmbuild/BUILDROOT/kernel-6.2.2-300.20230305.fc37.x86_64/usr/include/cpufreq.h
>     absolute symlink: /lib/modules/6.2.2-300.20230305.fc37.x86_64/build -> 
> /usr/src/kernels/6.2.2-300.20230305.fc37.x86_64
>
> The second one is always there, a warning about a workaround as I
> understand it.
>
> I find this in the SPEC file:
> %if %{with_headers}
> %files headers
> /usr/include/*
> %exclude %{_includedir}/cpufreq.h
> %endif
>
> When I search the BUILD tree I find:
> ./linux-6.2.2-300.20230305.fc37.x86_64/include/linux/cpufreq.h
> ./linux-6.2.2-300.20230305.fc37.x86_64/include/linux/sched/cpufreq.h
>
> It seems that these are there but the above stanza in the SPEC file is
> excluding them.  Is there a reason?  Is it harmless?
>
> There is another cpufreq.h present,
> ./linux-6.2.2-300.20230305.fc37.x86_64/tools/power/cpupower/lib/cpufreq.h
> but I am not building tools, so it is probably being ignored.  Do I
> have to build tools to pick this up?

More detail on this is in
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1903 but
for Fedora, we ship cpufreq.h in kernel-tools, not kernel-headers.
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to