563
Comment:
|
685
|
Deletions are marked like this. | Additions are marked like this. |
Line 14: | Line 14: |
== Finding assignments == | == Finding and removing type conversion on such assignments == |
Line 16: | Line 16: |
Another script has an embedded list of such function names (after the __END__), or can take such names on the commandline: | Another script has an embedded list of such function names (after the _END_), or can take such names on the commandline: attachment:type-convs.pl |
Line 21: | Line 21: |
The output is a patch that removes these type conversions. |
(void*) conversions
Here are a few tips and scripts how to find unnecessary (void*) conversions.
Find (void*) functions
Here's a script that finds all functions returning (void*): attachment:find_voidp_funcs.pl
Example:
./find_voidp_funcs.pl linux-2.6.git/
Finding and removing type conversion on such assignments
Another script has an embedded list of such function names (after the _END_), or can take such names on the commandline: attachment:type-convs.pl
Example:
./find_voidp_funcs.pl linux-2.6.git kmalloc
The output is a patch that removes these type conversions.