154
Comment: Page created.
|
685
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= (void*) conversions | ## page was renamed from KernelJanitors/Todo/VoidP = (void*) conversions = |
Line 3: | Line 4: |
Here are a few tips how to find unnecessary (void*) conversions. | Here are a few tips and scripts how to find unnecessary (void*) conversions. |
Line 5: | Line 6: |
Here's a script that finds all functions returning (void*): | == 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. |
(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.