2 #define CK(_x) void _x(int id);
6 CK(register_db_call_marker
) /* always has to be first */
7 CK(register_param_used
) /* get_state_hooks have to be registered before smatch_extra */
8 CK(register_container_of
)
9 CK(register_smatch_extra
) /* smatch_extra always has to be SMATCH_EXTRA */
10 CK(register_smatch_extra_links
)
11 CK(register_modification_hooks
)
12 CK(register_definition_db_callbacks
)
14 CK(register_untracked_param
)
15 CK(register_buf_comparison
)
16 CK(register_buf_comparison_links
)
17 CK(register_param_compare_limit
)
18 CK(register_param_compare_limit_links
)
19 CK(register_returns_early
)
21 CK(register_smatch_ignore
)
24 CK(register_strlen_equiv
)
26 CK(register_parse_call_math
)
27 CK(register_param_limit
)
28 CK(register_param_filter
)
29 CK(register_param_set
)
30 CK(register_param_cleared
)
31 CK(register_struct_assignment
)
32 CK(register_comparison
)
33 CK(register_comparison_links
)
34 CK(register_comparison_inc_dec
)
35 CK(register_comparison_inc_dec_links
)
36 CK(register_local_values
)
37 CK(register_function_ptrs
)
39 CK(register_start_states
)
41 CK(register_data_source
)
42 CK(register_common_functions
)
43 CK(register_function_info
)
44 CK(register_auto_copy
)
45 CK(register_type_links
)
46 CK(register_impossible
)
47 CK(register_impossible_return
)
49 CK(register_real_absolute
)
50 CK(register_imaginary_absolute
)
51 CK(register_fn_arg_link
)
52 CK(register_parameter_names
)
53 CK(register_return_to_param
)
54 CK(register_return_to_param_links
)
55 CK(register_constraints
)
56 CK(register_constraints_required
)
57 CK(register_about_fn_ptr_arg
)
69 CK(check_dereferences_param
)
71 CK(check_index_overflow
)
72 CK(check_testing_index_after_use
)
73 CK(check_memcpy_overflow
)
74 CK(check_strcpy_overflow
)
75 CK(check_sprintf_overflow
)
76 CK(check_snprintf_overflow
)
77 CK(check_allocating_enough_data
)
80 CK(check_allocation_funcs
)
81 CK(check_frees_argument
)
86 CK(check_dma_on_stack
)
87 CK(check_param_mapper
)
89 CK(check_dev_queue_xmit
)
94 CK(check_resource_size
)
95 CK(check_release_resource
)
97 CK(check_freeing_null
)
103 CK(check_return_efault
)
106 CK(check_kmalloc_to_bugon
)
107 CK(check_platform_device_put
)
109 CK(check_return_enomem
)
110 CK(check_get_user_overflow
)
111 CK(check_get_user_overflow2
)
112 CK(check_access_ok_math
)
113 CK(check_container_of
)
114 CK(check_input_free_device
)
117 CK(check_logical_instead_of_bitwise
)
118 CK(check_kmalloc_wrong_size
)
119 CK(check_pointer_math
)
121 CK(check_macro_side_effects
)
123 CK(check_return_cast
)
125 CK(check_passes_sizeof
)
126 CK(check_assign_vs_compare
)
127 CK(check_missing_break
)
128 CK(check_array_condition
)
129 CK(check_struct_type
)
130 CK(check_64bit_shift
)
131 CK(check_wrong_size_arg
)
132 CK(check_cast_assign
)
133 CK(check_readl_infinite_loops
)
134 CK(check_double_checking
)
135 CK(check_shift_to_zero
)
137 CK(check_unreachable
)
138 CK(check_no_if_block
)
139 CK(check_buffer_too_small_for_struct
)
140 CK(check_uninitialized
)
141 CK(check_signed_integer_overflow_check
)
142 CK(check_continue_vs_break
)
143 CK(check_impossible_mask
)
145 /* <- your test goes here */
146 /* CK(register_template) */
148 /* kernel specific */
149 CK(check_kernel_printf
)
151 CK(check_puts_argument
)
153 CK(check_err_ptr_deref
)
154 CK(check_expects_err_ptr
)
156 CK(check_return_negative_var
)
159 CK(check_wait_for_common
)
160 CK(check_bogus_irqrestore
)
161 CK(check_zero_to_err_ptr
)
162 CK(check_freeing_devm
)
163 CK(check_off_by_one_relative
)
167 CK(check_dma_mapping_error
)
169 /* wine specific stuff */
170 CK(check_wine_filehandles
)
173 #include "check_list_local.h"
176 CK(register_stored_conditions
)
177 CK(register_stored_conditions_links
)
179 CK(register_buf_size_late
)
180 CK(register_smatch_extra_late
)
181 CK(check_assigned_expr
) /* This is used by smatch_extra.c so it has to come really late */
182 CK(check_assigned_expr_links
)
183 CK(register_modification_hooks_late
) /* has to come after smatch_extra */
184 CK(register_comparison_late
) /* has to come after modification_hooks_late */
185 CK(register_function_hooks
)
186 CK(check_kernel
) /* this is overwriting stuff from smatch_extra_late */
190 * Implications always has to be last. If you need to be after implications
191 * then you need to hack smatch_implications.c and add function calls there.
194 CK(register_implications
)