From: Don Zickus on gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1117#note_570181632
So I hacked up a script that can catch this. The trick is where to run
this. I think a self-test area is perfect, but the current self-tests
is a little heavy and only makes sense as a post-commit cron job. Maybe
it should be called a 'garbage collection' cron job.
Anyway, the commands I used are:
time find . -name "Makefile*" -exec grep '\.o' {} \; > /tmp/don.list (3
seconds)
for i in `cat redhat/rhel_files/*.list.rhel
redhat/fedora_files/*.list.fedora`;do mod="$(echo $i | sed 's/ko$/o/')";
grep -q $mod /tmp/don.list || echo "Bad module: $i"; done|wc -l
which found 78 modules. 39 for rhel and 39 for fedora.
That would accomplish your goal. Just need to figure out where to plug
it in.
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure