Checking for incorrect MODULE_PARM

From: Keith Owens (kaos@ocs.com.au)
Date: Sun Dec 10 2000 - 07:06:10 EST


modutils 2.3.22 does more rigorous checking of MODULE_PARM entries and
has already found several cases where MODULE_PARM(x) is used but the
corresponding variable 'x' is not defined. These are module coding
bugs that were previously hidden. Run this script to do a quick check
of all your modules against modutils 2.3.22. Run as any user, does not
have not be root.

for i in $(/sbin/modprobe -l)
do
        (echo -e "\n" $i ; /sbin/modinfo -p $i) > /var/tmp/modinfo
        grep warning /var/tmp/modinfo > /dev/null && cat /var/tmp/modinfo
done

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Dec 15 2000 - 21:00:19 EST