Skip to contentSkip to conversation

New guy here, and patch for kj.pl ( forget

Kernel-janitors Randy.Dunlap 1 participant 1 message Feb 5, 2004 Kernel janitors

lore
Share & tools
lore
#0 lore raw

On Sun, 25 Jan 2004 13:38:28 +0100 JOUANNE Mickael <[email protected]> wrote:

kj-new.pl renamed from kj.pl +1 -1
@@ -109,7 +109,7 @@
 			print "$filename:$linenr:$line\n\n";
 		}
 
-		if ($line=~/MOD_{INC,DEC}_USE_COUNT/) {
+		if ($line=~/MOD_(INC|DEC)_USE_COUNT/) {
 			print "Net drivers should call SET_MODULE_OWNER instead of MOD_{INC,DEC}_USE_COUNT\n";
 			print "$filename:$linenr:$line\n\n";
 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I updated the kj.pl and kj-devel.pl scripts to use the regex syntax above and to change the message:
MOD_(INC|DEC)_USE_COUNT is deprecated, see the module-init-tool FAQ...

I also added SET_MODULE_ONWER, with a message that it is now useless in Linux 2.6.

Thanks,
--
~Randy
kernel-janitors project: http://janitor.kernelnewbies.org/
_______________________________________________
Kernel-janitors mailing list [email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors