From: Justin Forbes on
gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1117#note_5702...
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
I don't think that addresses the issue, I think the issue is when a new
module comes along with a dep on a module that was in extras, and moves
the extras module back to kernel-modules. The only real way to do that
is to diff the file lists of module every time and list anything missing
that was in the previous verison.