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
)
13 CK(register_smatch_ignore
)
16 CK(register_strlen_equiv
)
18 CK(register_parse_call_math
)
19 CK(register_param_limit
)
20 CK(register_param_filter
)
21 CK(register_param_set
)
22 CK(register_param_cleared
)
23 CK(register_struct_assignment
)
24 CK(register_comparison
)
25 CK(register_comparison_links
)
26 CK(register_comparison_inc_dec
)
27 CK(register_comparison_inc_dec_links
)
28 CK(register_local_values
)
29 CK(register_function_ptrs
)
31 CK(register_start_states
)
33 CK(register_data_source
)
34 CK(register_common_functions
)
35 CK(register_function_info
)
36 CK(register_auto_copy
)
37 CK(register_type_links
)
38 CK(register_impossible
)
39 CK(register_impossible_return
)
40 CK(register_param_used
)
53 CK(check_dereferences_param
)
58 CK(check_allocation_funcs
)
59 CK(check_frees_argument
)
65 CK(check_dma_on_stack
)
66 CK(check_param_mapper
)
68 CK(check_dev_queue_xmit
)
73 CK(check_resource_size
)
74 CK(check_release_resource
)
76 CK(check_freeing_null
)
82 CK(check_return_efault
)
85 CK(check_kmalloc_to_bugon
)
86 CK(check_platform_device_put
)
88 CK(check_return_enomem
)
89 CK(check_get_user_overflow
)
90 CK(check_get_user_overflow2
)
91 CK(check_access_ok_math
)
92 CK(check_container_of
)
93 CK(check_input_free_device
)
96 CK(check_logical_instead_of_bitwise
)
97 CK(check_kmalloc_wrong_size
)
98 CK(check_pointer_math
)
100 CK(check_macro_side_effects
)
102 CK(check_return_cast
)
104 CK(check_passes_sizeof
)
105 CK(check_assign_vs_compare
)
106 CK(check_missing_break
)
107 CK(check_array_condition
)
108 CK(check_struct_type
)
109 CK(check_64bit_shift
)
110 CK(check_wrong_size_arg
)
111 CK(check_cast_assign
)
112 CK(check_readl_infinite_loops
)
113 CK(check_double_checking
)
114 CK(check_shift_to_zero
)
116 CK(check_unreachable
)
117 CK(check_no_if_block
)
118 CK(check_buffer_too_small_for_struct
)
120 /* <- your test goes here */
121 /* CK(register_template) */
123 /* kernel specific */
124 CK(check_kernel_printf
)
126 CK(check_puts_argument
)
128 CK(check_err_ptr_deref
)
129 CK(check_expects_err_ptr
)
131 CK(check_return_negative_var
)
134 CK(check_wait_for_common
)
135 CK(check_bogus_irqrestore
)
136 CK(check_buf_comparison
)
137 CK(check_buf_comparison_links
)
142 /* wine specific stuff */
143 CK(check_wine_filehandles
)
146 #include "check_list_local.h"
148 CK(register_stored_conditions
)
149 CK(register_stored_conditions_links
)
151 CK(register_buf_size_late
)
152 CK(register_modification_hooks_late
)
153 CK(register_smatch_extra_late
)
154 CK(check_assigned_expr
) /* This is used by smatch_extra.c so it has to come really late */
155 CK(check_assigned_expr_links
)
156 CK(check_kernel
) /* this is overwriting stuff from smatch_extra_late */
157 CK(register_function_hooks
)
159 CK(register_db_call_marker
) /* always second last */
161 * Implications always has to be last. If you need to be after implications
162 * then you need to hack smatch_implications.c and add function calls there.
165 CK(register_implications
)