helper: don't strip casting in get_array_offset()
[smatch.git] / check_list.h
blob72e81e62147e831f64662ca8ff45eac1982babe6
1 #ifndef CK
2 #define CK(_x) void _x(int id);
3 #define __undo_CK_def
4 #endif
6 CK(register_smatch_extra) /* smatch_extra always has to be first */
7 CK(register_modification_hooks)
8 CK(register_definition_db_callbacks)
9 CK(register_project)
10 CK(register_untracked_param)
12 CK(register_smatch_ignore)
13 CK(register_buf_size)
14 CK(register_strlen)
15 CK(register_strlen_equiv)
16 CK(register_capped)
17 CK(register_parse_call_math)
18 CK(register_param_limit)
19 CK(register_param_filter)
20 CK(register_param_set)
21 CK(register_param_cleared)
22 CK(register_struct_assignment)
23 CK(register_comparison)
24 CK(register_comparison_links)
25 CK(register_local_values)
26 CK(register_function_ptrs)
27 CK(register_annotate)
28 CK(register_start_states)
29 CK(register_type_val)
30 CK(register_data_source)
31 CK(register_common_functions)
32 CK(register_stored_conditions_links)
33 CK(register_function_info)
34 CK(register_auto_copy)
35 CK(register_type_links)
36 CK(register_impossible)
37 CK(register_impossible_return)
38 CK(register_param_used)
39 CK(register_strings)
41 CK(check_debug)
42 CK(check_assigned_expr)
43 CK(check_assigned_expr_links)
44 CK(check_user_data)
46 CK(check_user_data2)
47 CK(check_user_data3)
49 CK(check_bogus_loop)
51 CK(check_deref)
52 CK(check_check_deref)
53 CK(check_dereferences_param)
54 CK(check_frees_param)
55 CK(check_overflow)
56 CK(check_leaks)
57 CK(check_type)
58 CK(check_allocation_funcs)
59 CK(check_frees_argument)
60 CK(check_balanced)
61 CK(check_deref_check)
62 CK(check_signed)
63 CK(check_precedence)
64 CK(check_unused_ret)
65 CK(check_dma_on_stack)
66 CK(check_param_mapper)
67 CK(check_call_tree)
68 CK(check_dev_queue_xmit)
69 CK(check_stack)
70 CK(check_no_return)
71 CK(check_mod_timer)
72 CK(check_return)
73 CK(check_resource_size)
74 CK(check_release_resource)
75 CK(check_proc_create)
76 CK(check_freeing_null)
77 CK(check_free)
78 CK(check_no_effect)
79 CK(check_kunmap)
80 CK(check_snprintf)
81 CK(check_macros)
82 CK(check_return_efault)
83 CK(check_gfp_dma)
84 CK(check_unwind)
85 CK(check_kmalloc_to_bugon)
86 CK(check_platform_device_put)
87 CK(check_info_leak)
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)
94 CK(check_select)
95 CK(check_memset)
96 CK(check_logical_instead_of_bitwise)
97 CK(check_kmalloc_wrong_size)
98 CK(check_pointer_math)
99 CK(check_bit_shift)
100 CK(check_macro_side_effects)
101 CK(check_sizeof)
102 CK(check_return_cast)
103 CK(check_or_vs_and)
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)
115 CK(check_indenting)
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)
125 CK(check_locking)
126 CK(check_puts_argument)
127 CK(check_err_ptr)
128 CK(check_err_ptr_deref)
129 CK(check_expects_err_ptr)
130 CK(check_held_dev)
131 CK(check_return_negative_var)
132 CK(check_rosenberg)
133 CK(check_rosenberg2)
134 CK(check_wait_for_common)
135 CK(check_bogus_irqrestore)
136 CK(check_buf_comparison)
137 CK(check_buf_comparison_links)
138 CK(check_capable)
139 CK(check_ns_capable)
141 /* wine specific stuff */
142 CK(check_wine_filehandles)
143 CK(check_wine_WtoA)
145 #include "check_list_local.h"
147 CK(register_stored_conditions)
148 CK(register_sval)
149 CK(register_buf_size_late)
150 CK(register_modification_hooks_late)
151 CK(register_smatch_extra_late)
152 CK(check_kernel) /* this is overwriting stuff from smatch_extra_late */
153 CK(register_function_hooks)
154 CK(register_returns)
155 CK(register_db_call_marker) /* always second last */
156 CK(register_implications) /* implications always has to be last */
158 #ifdef __undo_CK_def
159 #undef CK
160 #undef __undo_CK_def
161 #endif