2 #define CK(_x) void _x(int id);
6 CK(register_smatch_extra
) /* smatch_extra always has to be first */
7 CK(register_smatch_extra_links
)
8 CK(register_modification_hooks
)
9 CK(register_definition_db_callbacks
)
11 CK(register_untracked_param
)
12 CK(register_buf_comparison
)
13 CK(register_buf_comparison_links
)
14 CK(register_param_compare_limit
)
15 CK(register_param_compare_limit_links
)
16 CK(register_returns_early
)
18 CK(register_smatch_ignore
)
21 CK(register_strlen_equiv
)
23 CK(register_parse_call_math
)
24 CK(register_param_limit
)
25 CK(register_param_filter
)
26 CK(register_param_set
)
27 CK(register_param_cleared
)
28 CK(register_struct_assignment
)
29 CK(register_comparison
)
30 CK(register_comparison_links
)
31 CK(register_comparison_inc_dec
)
32 CK(register_comparison_inc_dec_links
)
33 CK(register_local_values
)
34 CK(register_function_ptrs
)
36 CK(register_start_states
)
38 CK(register_data_source
)
39 CK(register_common_functions
)
40 CK(register_function_info
)
41 CK(register_auto_copy
)
42 CK(register_type_links
)
43 CK(register_impossible
)
44 CK(register_impossible_return
)
45 CK(register_param_used
)
47 CK(register_real_absolute
)
48 CK(register_imaginary_absolute
)
60 CK(check_dereferences_param
)
62 CK(check_index_overflow
)
63 CK(check_testing_index_after_use
)
64 CK(check_memcpy_overflow
)
65 CK(check_strcpy_overflow
)
66 CK(check_sprintf_overflow
)
67 CK(check_snprintf_overflow
)
68 CK(check_allocating_enough_data
)
71 CK(check_allocation_funcs
)
72 CK(check_frees_argument
)
78 CK(check_dma_on_stack
)
79 CK(check_param_mapper
)
81 CK(check_dev_queue_xmit
)
86 CK(check_resource_size
)
87 CK(check_release_resource
)
89 CK(check_freeing_null
)
95 CK(check_return_efault
)
98 CK(check_kmalloc_to_bugon
)
99 CK(check_platform_device_put
)
101 CK(check_return_enomem
)
102 CK(check_get_user_overflow
)
103 CK(check_get_user_overflow2
)
104 CK(check_access_ok_math
)
105 CK(check_container_of
)
106 CK(check_input_free_device
)
109 CK(check_logical_instead_of_bitwise
)
110 CK(check_kmalloc_wrong_size
)
111 CK(check_pointer_math
)
113 CK(check_macro_side_effects
)
115 CK(check_return_cast
)
117 CK(check_passes_sizeof
)
118 CK(check_assign_vs_compare
)
119 CK(check_missing_break
)
120 CK(check_array_condition
)
121 CK(check_struct_type
)
122 CK(check_64bit_shift
)
123 CK(check_wrong_size_arg
)
124 CK(check_cast_assign
)
125 CK(check_readl_infinite_loops
)
126 CK(check_double_checking
)
127 CK(check_shift_to_zero
)
129 CK(check_unreachable
)
130 CK(check_no_if_block
)
131 CK(check_buffer_too_small_for_struct
)
132 CK(check_continue_vs_break
)
133 CK(check_impossible_mask
)
135 /* <- your test goes here */
136 /* CK(register_template) */
138 /* kernel specific */
139 CK(check_kernel_printf
)
141 CK(check_puts_argument
)
143 CK(check_err_ptr_deref
)
144 CK(check_expects_err_ptr
)
146 CK(check_return_negative_var
)
149 CK(check_wait_for_common
)
150 CK(check_bogus_irqrestore
)
151 CK(check_zero_to_err_ptr
)
152 CK(check_off_by_one_relative
)
156 CK(check_dma_mapping_error
)
158 /* wine specific stuff */
159 CK(check_wine_filehandles
)
162 #include "check_list_local.h"
165 CK(register_stored_conditions
)
166 CK(register_stored_conditions_links
)
168 CK(register_buf_size_late
)
169 CK(register_smatch_extra_late
)
170 CK(check_assigned_expr
) /* This is used by smatch_extra.c so it has to come really late */
171 CK(check_assigned_expr_links
)
172 CK(register_modification_hooks_late
) /* has to come after smatch_extra */
173 CK(register_comparison_late
) /* has to come after modification_hooks_late */
174 CK(register_function_hooks
)
175 CK(check_kernel
) /* this is overwriting stuff from smatch_extra_late */
178 CK(register_db_call_marker
) /* always second last */
180 * Implications always has to be last. If you need to be after implications
181 * then you need to hack smatch_implications.c and add function calls there.
184 CK(register_implications
)