]>
Commit | Line | Data |
---|---|---|
d4ef8d3f MO |
1 | # SPDX-License-Identifier: GPL-2.0 |
2 | # | |
781121a7 | 3 | # clang-format configuration file. Intended for clang-format >= 11. |
d4ef8d3f MO |
4 | # |
5 | # For more information, see: | |
6 | # | |
7 | # Documentation/process/clang-format.rst | |
8 | # https://clang.llvm.org/docs/ClangFormat.html | |
9 | # https://clang.llvm.org/docs/ClangFormatStyleOptions.html | |
10 | # | |
11 | --- | |
12 | AccessModifierOffset: -4 | |
13 | AlignAfterOpenBracket: Align | |
14 | AlignConsecutiveAssignments: false | |
15 | AlignConsecutiveDeclarations: false | |
96232c7d | 16 | AlignEscapedNewlines: Left |
d4ef8d3f MO |
17 | AlignOperands: true |
18 | AlignTrailingComments: false | |
19 | AllowAllParametersOfDeclarationOnNextLine: false | |
20 | AllowShortBlocksOnASingleLine: false | |
21 | AllowShortCaseLabelsOnASingleLine: false | |
22 | AllowShortFunctionsOnASingleLine: None | |
23 | AllowShortIfStatementsOnASingleLine: false | |
24 | AllowShortLoopsOnASingleLine: false | |
25 | AlwaysBreakAfterDefinitionReturnType: None | |
26 | AlwaysBreakAfterReturnType: None | |
27 | AlwaysBreakBeforeMultilineStrings: false | |
28 | AlwaysBreakTemplateDeclarations: false | |
29 | BinPackArguments: true | |
30 | BinPackParameters: true | |
31 | BraceWrapping: | |
32 | AfterClass: false | |
33 | AfterControlStatement: false | |
34 | AfterEnum: false | |
35 | AfterFunction: true | |
36 | AfterNamespace: true | |
37 | AfterObjCDeclaration: false | |
38 | AfterStruct: false | |
39 | AfterUnion: false | |
96232c7d | 40 | AfterExternBlock: false |
d4ef8d3f MO |
41 | BeforeCatch: false |
42 | BeforeElse: false | |
43 | IndentBraces: false | |
96232c7d MS |
44 | SplitEmptyFunction: true |
45 | SplitEmptyRecord: true | |
46 | SplitEmptyNamespace: true | |
d4ef8d3f MO |
47 | BreakBeforeBinaryOperators: None |
48 | BreakBeforeBraces: Custom | |
96232c7d | 49 | BreakBeforeInheritanceComma: false |
d4ef8d3f MO |
50 | BreakBeforeTernaryOperators: false |
51 | BreakConstructorInitializersBeforeComma: false | |
96232c7d | 52 | BreakConstructorInitializers: BeforeComma |
d4ef8d3f MO |
53 | BreakAfterJavaFieldAnnotations: false |
54 | BreakStringLiterals: false | |
55 | ColumnLimit: 80 | |
56 | CommentPragmas: '^ IWYU pragma:' | |
96232c7d | 57 | CompactNamespaces: false |
d4ef8d3f MO |
58 | ConstructorInitializerAllOnOneLineOrOnePerLine: false |
59 | ConstructorInitializerIndentWidth: 8 | |
60 | ContinuationIndentWidth: 8 | |
61 | Cpp11BracedListStyle: false | |
62 | DerivePointerAlignment: false | |
63 | DisableFormat: false | |
64 | ExperimentalAutoDetectBinPacking: false | |
96232c7d | 65 | FixNamespaceComments: false |
d4ef8d3f MO |
66 | |
67 | # Taken from: | |
49bb63a2 | 68 | # git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*(' include/ tools/ \ |
d4ef8d3f | 69 | # | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$, - '\1'," \ |
72e14aa9 | 70 | # | LC_ALL=C sort -u |
d4ef8d3f | 71 | ForEachMacros: |
43120879 MO |
72 | - '__ata_qc_for_each' |
73 | - '__bio_for_each_bvec' | |
74 | - '__bio_for_each_segment' | |
49bb63a2 MS |
75 | - '__evlist__for_each_entry' |
76 | - '__evlist__for_each_entry_continue' | |
77 | - '__evlist__for_each_entry_from' | |
78 | - '__evlist__for_each_entry_reverse' | |
79 | - '__evlist__for_each_entry_safe' | |
43120879 MO |
80 | - '__for_each_mem_range' |
81 | - '__for_each_mem_range_rev' | |
82 | - '__for_each_thread' | |
83 | - '__hlist_for_each_rcu' | |
49bb63a2 MS |
84 | - '__map__for_each_symbol_by_name' |
85 | - '__perf_evlist__for_each_entry' | |
86 | - '__perf_evlist__for_each_entry_reverse' | |
87 | - '__perf_evlist__for_each_entry_safe' | |
43120879 MO |
88 | - '__rq_for_each_bio' |
89 | - '__shost_for_each_device' | |
d4ef8d3f MO |
90 | - 'apei_estatus_for_each_section' |
91 | - 'ata_for_each_dev' | |
92 | - 'ata_for_each_link' | |
99e309b6 JG |
93 | - 'ata_qc_for_each' |
94 | - 'ata_qc_for_each_raw' | |
95 | - 'ata_qc_for_each_with_internal' | |
d4ef8d3f MO |
96 | - 'ax25_for_each' |
97 | - 'ax25_uid_for_each' | |
f16628d6 | 98 | - 'bio_for_each_bvec' |
1072c12d | 99 | - 'bio_for_each_bvec_all' |
88217894 | 100 | - 'bio_for_each_folio_all' |
d4ef8d3f | 101 | - 'bio_for_each_integrity_vec' |
d4ef8d3f MO |
102 | - 'bio_for_each_segment' |
103 | - 'bio_for_each_segment_all' | |
104 | - 'bio_list_for_each' | |
105 | - 'bip_for_each_vec' | |
d4ef8d3f MO |
106 | - 'bond_for_each_slave' |
107 | - 'bond_for_each_slave_rcu' | |
49bb63a2 MS |
108 | - 'bpf__perf_for_each_map' |
109 | - 'bpf__perf_for_each_map_named' | |
99e309b6 | 110 | - 'bpf_for_each_spilled_reg' |
49bb63a2 MS |
111 | - 'bpf_object__for_each_map' |
112 | - 'bpf_object__for_each_program' | |
113 | - 'bpf_object__for_each_safe' | |
114 | - 'bpf_perf_object__for_each' | |
d4ef8d3f MO |
115 | - 'btree_for_each_safe128' |
116 | - 'btree_for_each_safe32' | |
117 | - 'btree_for_each_safe64' | |
118 | - 'btree_for_each_safel' | |
119 | - 'card_for_each_dev' | |
120 | - 'cgroup_taskset_for_each' | |
121 | - 'cgroup_taskset_for_each_leader' | |
88217894 | 122 | - 'cpufreq_for_each_efficient_entry_idx' |
d4ef8d3f MO |
123 | - 'cpufreq_for_each_entry' |
124 | - 'cpufreq_for_each_entry_idx' | |
125 | - 'cpufreq_for_each_valid_entry' | |
126 | - 'cpufreq_for_each_valid_entry_idx' | |
127 | - 'css_for_each_child' | |
128 | - 'css_for_each_descendant_post' | |
129 | - 'css_for_each_descendant_pre' | |
88217894 MO |
130 | - 'damon_for_each_region' |
131 | - 'damon_for_each_region_safe' | |
132 | - 'damon_for_each_scheme' | |
133 | - 'damon_for_each_scheme_safe' | |
134 | - 'damon_for_each_target' | |
135 | - 'damon_for_each_target_safe' | |
49bb63a2 MS |
136 | - 'data__for_each_file' |
137 | - 'data__for_each_file_new' | |
138 | - 'data__for_each_file_start' | |
d4ef8d3f | 139 | - 'device_for_each_child_node' |
4792f9dd | 140 | - 'displayid_iter_for_each' |
88217894 | 141 | - 'dma_fence_array_for_each' |
52d08347 | 142 | - 'dma_fence_chain_for_each' |
88217894 MO |
143 | - 'dma_fence_unwrap_for_each' |
144 | - 'dma_resv_for_each_fence' | |
145 | - 'dma_resv_for_each_fence_unlocked' | |
4e4bb894 | 146 | - 'do_for_each_ftrace_op' |
d4ef8d3f MO |
147 | - 'drm_atomic_crtc_for_each_plane' |
148 | - 'drm_atomic_crtc_state_for_each_plane' | |
149 | - 'drm_atomic_crtc_state_for_each_plane_state' | |
99e309b6 | 150 | - 'drm_atomic_for_each_plane_damage' |
52d08347 MO |
151 | - 'drm_client_for_each_connector_iter' |
152 | - 'drm_client_for_each_modeset' | |
99e309b6 | 153 | - 'drm_connector_for_each_possible_encoder' |
11a4a8f7 | 154 | - 'drm_for_each_bridge_in_chain' |
d4ef8d3f MO |
155 | - 'drm_for_each_connector_iter' |
156 | - 'drm_for_each_crtc' | |
1074f8ec | 157 | - 'drm_for_each_crtc_reverse' |
d4ef8d3f MO |
158 | - 'drm_for_each_encoder' |
159 | - 'drm_for_each_encoder_mask' | |
160 | - 'drm_for_each_fb' | |
161 | - 'drm_for_each_legacy_plane' | |
162 | - 'drm_for_each_plane' | |
163 | - 'drm_for_each_plane_mask' | |
f16628d6 | 164 | - 'drm_for_each_privobj' |
d4ef8d3f MO |
165 | - 'drm_mm_for_each_hole' |
166 | - 'drm_mm_for_each_node' | |
167 | - 'drm_mm_for_each_node_in_range' | |
168 | - 'drm_mm_for_each_node_safe' | |
88217894 MO |
169 | - 'dsa_switch_for_each_available_port' |
170 | - 'dsa_switch_for_each_cpu_port' | |
171 | - 'dsa_switch_for_each_port' | |
172 | - 'dsa_switch_for_each_port_continue_reverse' | |
173 | - 'dsa_switch_for_each_port_safe' | |
174 | - 'dsa_switch_for_each_user_port' | |
175 | - 'dsa_tree_for_each_user_port' | |
49bb63a2 MS |
176 | - 'dso__for_each_symbol' |
177 | - 'dsos__for_each_with_build_id' | |
178 | - 'elf_hash_for_each_possible' | |
179 | - 'elf_section__for_each_rel' | |
180 | - 'elf_section__for_each_rela' | |
181 | - 'elf_symtab__for_each_symbol' | |
182 | - 'evlist__for_each_cpu' | |
183 | - 'evlist__for_each_entry' | |
184 | - 'evlist__for_each_entry_continue' | |
185 | - 'evlist__for_each_entry_from' | |
186 | - 'evlist__for_each_entry_reverse' | |
187 | - 'evlist__for_each_entry_safe' | |
f16628d6 | 188 | - 'flow_action_for_each' |
4792f9dd | 189 | - 'for_each_acpi_dev_match' |
52d08347 | 190 | - 'for_each_active_dev_scope' |
d4ef8d3f MO |
191 | - 'for_each_active_drhd_unit' |
192 | - 'for_each_active_iommu' | |
837f92f0 | 193 | - 'for_each_active_route' |
4e4bb894 | 194 | - 'for_each_aggr_pgid' |
d4ef8d3f | 195 | - 'for_each_available_child_of_node' |
49bb63a2 | 196 | - 'for_each_bench' |
d4ef8d3f MO |
197 | - 'for_each_bio' |
198 | - 'for_each_board_func_rsrc' | |
49bb63a2 MS |
199 | - 'for_each_btf_ext_rec' |
200 | - 'for_each_btf_ext_sec' | |
d4ef8d3f | 201 | - 'for_each_bvec' |
11a4a8f7 MO |
202 | - 'for_each_card_auxs' |
203 | - 'for_each_card_auxs_safe' | |
99e309b6 | 204 | - 'for_each_card_components' |
5d65a021 | 205 | - 'for_each_card_dapms' |
11a4a8f7 | 206 | - 'for_each_card_pre_auxs' |
99e309b6 JG |
207 | - 'for_each_card_prelinks' |
208 | - 'for_each_card_rtds' | |
209 | - 'for_each_card_rtds_safe' | |
5d65a021 MO |
210 | - 'for_each_card_widgets' |
211 | - 'for_each_card_widgets_safe' | |
99e309b6 | 212 | - 'for_each_cgroup_storage_type' |
d4ef8d3f MO |
213 | - 'for_each_child_of_node' |
214 | - 'for_each_clear_bit' | |
215 | - 'for_each_clear_bit_from' | |
88217894 MO |
216 | - 'for_each_clear_bitrange' |
217 | - 'for_each_clear_bitrange_from' | |
49bb63a2 | 218 | - 'for_each_cmd' |
d4ef8d3f | 219 | - 'for_each_cmsghdr' |
49bb63a2 | 220 | - 'for_each_collection' |
43120879 | 221 | - 'for_each_comp_order' |
d4ef8d3f | 222 | - 'for_each_compatible_node' |
99e309b6 JG |
223 | - 'for_each_component_dais' |
224 | - 'for_each_component_dais_safe' | |
d4ef8d3f | 225 | - 'for_each_console' |
6c4afa79 | 226 | - 'for_each_console_srcu' |
d4ef8d3f MO |
227 | - 'for_each_cpu' |
228 | - 'for_each_cpu_and' | |
d4ef8d3f | 229 | - 'for_each_cpu_wrap' |
5d65a021 | 230 | - 'for_each_dapm_widgets' |
49bb63a2 | 231 | - 'for_each_dedup_cand' |
d4ef8d3f | 232 | - 'for_each_dev_addr' |
52d08347 | 233 | - 'for_each_dev_scope' |
d4ef8d3f | 234 | - 'for_each_dma_cap_mask' |
99e309b6 JG |
235 | - 'for_each_dpcm_be' |
236 | - 'for_each_dpcm_be_rollback' | |
237 | - 'for_each_dpcm_be_safe' | |
238 | - 'for_each_dpcm_fe' | |
d4ef8d3f MO |
239 | - 'for_each_drhd_unit' |
240 | - 'for_each_dss_dev' | |
241 | - 'for_each_efi_memory_desc' | |
242 | - 'for_each_efi_memory_desc_in_map' | |
f16628d6 MO |
243 | - 'for_each_element' |
244 | - 'for_each_element_extid' | |
245 | - 'for_each_element_id' | |
d4ef8d3f | 246 | - 'for_each_endpoint_of_node' |
49bb63a2 MS |
247 | - 'for_each_event' |
248 | - 'for_each_event_tps' | |
d4ef8d3f MO |
249 | - 'for_each_evictable_lru' |
250 | - 'for_each_fib6_node_rt_rcu' | |
251 | - 'for_each_fib6_walker_rt' | |
52d08347 MO |
252 | - 'for_each_free_mem_pfn_range_in_zone' |
253 | - 'for_each_free_mem_pfn_range_in_zone_from' | |
d4ef8d3f MO |
254 | - 'for_each_free_mem_range' |
255 | - 'for_each_free_mem_range_reverse' | |
256 | - 'for_each_func_rsrc' | |
3006b15b | 257 | - 'for_each_group_device' |
49bb63a2 MS |
258 | - 'for_each_group_evsel' |
259 | - 'for_each_group_member' | |
d4ef8d3f MO |
260 | - 'for_each_hstate' |
261 | - 'for_each_if' | |
49bb63a2 MS |
262 | - 'for_each_inject_fn' |
263 | - 'for_each_insn' | |
264 | - 'for_each_insn_prefix' | |
265 | - 'for_each_intid' | |
d4ef8d3f MO |
266 | - 'for_each_iommu' |
267 | - 'for_each_ip_tunnel_rcu' | |
268 | - 'for_each_irq_nr' | |
49bb63a2 | 269 | - 'for_each_lang' |
99e309b6 | 270 | - 'for_each_link_codecs' |
5d65a021 | 271 | - 'for_each_link_cpus' |
52d08347 | 272 | - 'for_each_link_platforms' |
d4ef8d3f MO |
273 | - 'for_each_lru' |
274 | - 'for_each_matching_node' | |
275 | - 'for_each_matching_node_and_match' | |
d4ef8d3f MO |
276 | - 'for_each_mem_pfn_range' |
277 | - 'for_each_mem_range' | |
278 | - 'for_each_mem_range_rev' | |
1074f8ec | 279 | - 'for_each_mem_region' |
43120879 | 280 | - 'for_each_member' |
49bb63a2 | 281 | - 'for_each_memory' |
d4ef8d3f | 282 | - 'for_each_migratetype_order' |
49bb63a2 | 283 | - 'for_each_missing_reg' |
d4ef8d3f | 284 | - 'for_each_net' |
11a4a8f7 | 285 | - 'for_each_net_continue_reverse' |
43120879 | 286 | - 'for_each_net_rcu' |
d4ef8d3f MO |
287 | - 'for_each_netdev' |
288 | - 'for_each_netdev_continue' | |
289 | - 'for_each_netdev_continue_rcu' | |
11a4a8f7 | 290 | - 'for_each_netdev_continue_reverse' |
d4ef8d3f MO |
291 | - 'for_each_netdev_feature' |
292 | - 'for_each_netdev_in_bond_rcu' | |
293 | - 'for_each_netdev_rcu' | |
294 | - 'for_each_netdev_reverse' | |
295 | - 'for_each_netdev_safe' | |
d4ef8d3f MO |
296 | - 'for_each_new_connector_in_state' |
297 | - 'for_each_new_crtc_in_state' | |
f16628d6 | 298 | - 'for_each_new_mst_mgr_in_state' |
d4ef8d3f | 299 | - 'for_each_new_plane_in_state' |
88217894 | 300 | - 'for_each_new_plane_in_state_reverse' |
d4ef8d3f | 301 | - 'for_each_new_private_obj_in_state' |
49bb63a2 | 302 | - 'for_each_new_reg' |
d4ef8d3f MO |
303 | - 'for_each_node' |
304 | - 'for_each_node_by_name' | |
305 | - 'for_each_node_by_type' | |
306 | - 'for_each_node_mask' | |
307 | - 'for_each_node_state' | |
308 | - 'for_each_node_with_cpus' | |
309 | - 'for_each_node_with_property' | |
4e4bb894 | 310 | - 'for_each_nonreserved_multicast_dest_pgid' |
d4ef8d3f MO |
311 | - 'for_each_of_allnodes' |
312 | - 'for_each_of_allnodes_from' | |
99e309b6 | 313 | - 'for_each_of_cpu_node' |
d4ef8d3f MO |
314 | - 'for_each_of_pci_range' |
315 | - 'for_each_old_connector_in_state' | |
316 | - 'for_each_old_crtc_in_state' | |
f16628d6 | 317 | - 'for_each_old_mst_mgr_in_state' |
43120879 MO |
318 | - 'for_each_old_plane_in_state' |
319 | - 'for_each_old_private_obj_in_state' | |
d4ef8d3f MO |
320 | - 'for_each_oldnew_connector_in_state' |
321 | - 'for_each_oldnew_crtc_in_state' | |
f16628d6 | 322 | - 'for_each_oldnew_mst_mgr_in_state' |
d4ef8d3f | 323 | - 'for_each_oldnew_plane_in_state' |
99e309b6 | 324 | - 'for_each_oldnew_plane_in_state_reverse' |
d4ef8d3f | 325 | - 'for_each_oldnew_private_obj_in_state' |
d4ef8d3f MO |
326 | - 'for_each_online_cpu' |
327 | - 'for_each_online_node' | |
328 | - 'for_each_online_pgdat' | |
49bb63a2 | 329 | - 'for_each_path' |
d4ef8d3f MO |
330 | - 'for_each_pci_bridge' |
331 | - 'for_each_pci_dev' | |
5d65a021 | 332 | - 'for_each_pcm_streams' |
4e4bb894 | 333 | - 'for_each_physmem_range' |
d4ef8d3f MO |
334 | - 'for_each_populated_zone' |
335 | - 'for_each_possible_cpu' | |
336 | - 'for_each_present_cpu' | |
337 | - 'for_each_prime_number' | |
338 | - 'for_each_prime_number_from' | |
49bb63a2 | 339 | - 'for_each_probe_cache_entry' |
d4ef8d3f MO |
340 | - 'for_each_process' |
341 | - 'for_each_process_thread' | |
4792f9dd MO |
342 | - 'for_each_prop_codec_conf' |
343 | - 'for_each_prop_dai_codec' | |
344 | - 'for_each_prop_dai_cpu' | |
345 | - 'for_each_prop_dlc_codecs' | |
346 | - 'for_each_prop_dlc_cpus' | |
347 | - 'for_each_prop_dlc_platforms' | |
d4ef8d3f | 348 | - 'for_each_property_of_node' |
49bb63a2 MS |
349 | - 'for_each_reg' |
350 | - 'for_each_reg_filtered' | |
99e309b6 | 351 | - 'for_each_registered_fb' |
4e4bb894 MO |
352 | - 'for_each_requested_gpio' |
353 | - 'for_each_requested_gpio_in_range' | |
9f3d5eaa | 354 | - 'for_each_reserved_mem_range' |
cc6de168 | 355 | - 'for_each_reserved_mem_region' |
5d65a021 | 356 | - 'for_each_rtd_codec_dais' |
11a4a8f7 | 357 | - 'for_each_rtd_components' |
5d65a021 | 358 | - 'for_each_rtd_cpu_dais' |
5d65a021 | 359 | - 'for_each_rtd_dais' |
49bb63a2 MS |
360 | - 'for_each_script' |
361 | - 'for_each_sec' | |
d4ef8d3f MO |
362 | - 'for_each_set_bit' |
363 | - 'for_each_set_bit_from' | |
88217894 MO |
364 | - 'for_each_set_bitrange' |
365 | - 'for_each_set_bitrange_from' | |
11a4a8f7 | 366 | - 'for_each_set_clump8' |
d4ef8d3f | 367 | - 'for_each_sg' |
d901b276 | 368 | - 'for_each_sg_dma_page' |
d4ef8d3f | 369 | - 'for_each_sg_page' |
4e4bb894 MO |
370 | - 'for_each_sgtable_dma_page' |
371 | - 'for_each_sgtable_dma_sg' | |
372 | - 'for_each_sgtable_page' | |
373 | - 'for_each_sgtable_sg' | |
49bb63a2 | 374 | - 'for_each_shell_test' |
99e309b6 | 375 | - 'for_each_sibling_event' |
f16628d6 MO |
376 | - 'for_each_subelement' |
377 | - 'for_each_subelement_extid' | |
378 | - 'for_each_subelement_id' | |
49bb63a2 MS |
379 | - 'for_each_sublist' |
380 | - 'for_each_subsystem' | |
381 | - 'for_each_supported_activate_fn' | |
382 | - 'for_each_supported_inject_fn' | |
383 | - 'for_each_test' | |
d4ef8d3f | 384 | - 'for_each_thread' |
49bb63a2 | 385 | - 'for_each_token' |
4e4bb894 | 386 | - 'for_each_unicast_dest_pgid' |
1074f8ec | 387 | - 'for_each_vsi' |
11a4a8f7 | 388 | - 'for_each_wakeup_source' |
d4ef8d3f MO |
389 | - 'for_each_zone' |
390 | - 'for_each_zone_zonelist' | |
391 | - 'for_each_zone_zonelist_nodemask' | |
49bb63a2 | 392 | - 'func_for_each_insn' |
d4ef8d3f MO |
393 | - 'fwnode_for_each_available_child_node' |
394 | - 'fwnode_for_each_child_node' | |
395 | - 'fwnode_graph_for_each_endpoint' | |
396 | - 'gadget_for_each_ep' | |
f16628d6 MO |
397 | - 'genradix_for_each' |
398 | - 'genradix_for_each_from' | |
d4ef8d3f MO |
399 | - 'hash_for_each' |
400 | - 'hash_for_each_possible' | |
401 | - 'hash_for_each_possible_rcu' | |
402 | - 'hash_for_each_possible_rcu_notrace' | |
403 | - 'hash_for_each_possible_safe' | |
404 | - 'hash_for_each_rcu' | |
405 | - 'hash_for_each_safe' | |
49bb63a2 MS |
406 | - 'hashmap__for_each_entry' |
407 | - 'hashmap__for_each_entry_safe' | |
408 | - 'hashmap__for_each_key_entry' | |
409 | - 'hashmap__for_each_key_entry_safe' | |
d4ef8d3f | 410 | - 'hctx_for_each_ctx' |
49bb63a2 MS |
411 | - 'hists__for_each_format' |
412 | - 'hists__for_each_sort_list' | |
d4ef8d3f MO |
413 | - 'hlist_bl_for_each_entry' |
414 | - 'hlist_bl_for_each_entry_rcu' | |
415 | - 'hlist_bl_for_each_entry_safe' | |
416 | - 'hlist_for_each' | |
417 | - 'hlist_for_each_entry' | |
418 | - 'hlist_for_each_entry_continue' | |
419 | - 'hlist_for_each_entry_continue_rcu' | |
420 | - 'hlist_for_each_entry_continue_rcu_bh' | |
421 | - 'hlist_for_each_entry_from' | |
422 | - 'hlist_for_each_entry_from_rcu' | |
423 | - 'hlist_for_each_entry_rcu' | |
424 | - 'hlist_for_each_entry_rcu_bh' | |
425 | - 'hlist_for_each_entry_rcu_notrace' | |
426 | - 'hlist_for_each_entry_safe' | |
1074f8ec | 427 | - 'hlist_for_each_entry_srcu' |
d4ef8d3f MO |
428 | - 'hlist_for_each_safe' |
429 | - 'hlist_nulls_for_each_entry' | |
430 | - 'hlist_nulls_for_each_entry_from' | |
431 | - 'hlist_nulls_for_each_entry_rcu' | |
432 | - 'hlist_nulls_for_each_entry_safe' | |
99e309b6 JG |
433 | - 'i3c_bus_for_each_i2cdev' |
434 | - 'i3c_bus_for_each_i3cdev' | |
d4ef8d3f MO |
435 | - 'idr_for_each_entry' |
436 | - 'idr_for_each_entry_continue' | |
52d08347 | 437 | - 'idr_for_each_entry_continue_ul' |
d4ef8d3f | 438 | - 'idr_for_each_entry_ul' |
52d08347 MO |
439 | - 'in_dev_for_each_ifa_rcu' |
440 | - 'in_dev_for_each_ifa_rtnl' | |
d4ef8d3f | 441 | - 'inet_bind_bucket_for_each' |
88217894 MO |
442 | - 'inet_lhash2_for_each_icsk' |
443 | - 'inet_lhash2_for_each_icsk_continue' | |
d4ef8d3f | 444 | - 'inet_lhash2_for_each_icsk_rcu' |
f394576e | 445 | - 'interval_tree_for_each_double_span' |
5fe93786 | 446 | - 'interval_tree_for_each_span' |
49bb63a2 MS |
447 | - 'intlist__for_each_entry' |
448 | - 'intlist__for_each_entry_safe' | |
51fe6141 | 449 | - 'iopt_for_each_contig_area' |
49bb63a2 | 450 | - 'kcore_copy__for_each_phdr' |
d4ef8d3f MO |
451 | - 'key_for_each' |
452 | - 'key_for_each_safe' | |
453 | - 'klp_for_each_func' | |
f16628d6 MO |
454 | - 'klp_for_each_func_safe' |
455 | - 'klp_for_each_func_static' | |
d4ef8d3f | 456 | - 'klp_for_each_object' |
f16628d6 MO |
457 | - 'klp_for_each_object_safe' |
458 | - 'klp_for_each_object_static' | |
5d65a021 | 459 | - 'kunit_suite_for_each_test_case' |
d4ef8d3f | 460 | - 'kvm_for_each_memslot' |
88217894 | 461 | - 'kvm_for_each_memslot_in_gfn_range' |
d4ef8d3f | 462 | - 'kvm_for_each_vcpu' |
49bb63a2 | 463 | - 'libbpf_nla_for_each_attr' |
d4ef8d3f | 464 | - 'list_for_each' |
99e309b6 JG |
465 | - 'list_for_each_codec' |
466 | - 'list_for_each_codec_safe' | |
11a4a8f7 | 467 | - 'list_for_each_continue' |
d4ef8d3f MO |
468 | - 'list_for_each_entry' |
469 | - 'list_for_each_entry_continue' | |
470 | - 'list_for_each_entry_continue_rcu' | |
471 | - 'list_for_each_entry_continue_reverse' | |
472 | - 'list_for_each_entry_from' | |
99e309b6 | 473 | - 'list_for_each_entry_from_rcu' |
d4ef8d3f MO |
474 | - 'list_for_each_entry_from_reverse' |
475 | - 'list_for_each_entry_lockless' | |
476 | - 'list_for_each_entry_rcu' | |
477 | - 'list_for_each_entry_reverse' | |
478 | - 'list_for_each_entry_safe' | |
479 | - 'list_for_each_entry_safe_continue' | |
480 | - 'list_for_each_entry_safe_from' | |
481 | - 'list_for_each_entry_safe_reverse' | |
1074f8ec | 482 | - 'list_for_each_entry_srcu' |
49bb63a2 | 483 | - 'list_for_each_from' |
d4ef8d3f MO |
484 | - 'list_for_each_prev' |
485 | - 'list_for_each_prev_safe' | |
486 | - 'list_for_each_safe' | |
487 | - 'llist_for_each' | |
488 | - 'llist_for_each_entry' | |
489 | - 'llist_for_each_entry_safe' | |
490 | - 'llist_for_each_safe' | |
49bb63a2 MS |
491 | - 'map__for_each_symbol' |
492 | - 'map__for_each_symbol_by_name' | |
493 | - 'map_for_each_event' | |
494 | - 'map_for_each_metric' | |
495 | - 'maps__for_each_entry' | |
496 | - 'maps__for_each_entry_safe' | |
11a4a8f7 | 497 | - 'mci_for_each_dimm' |
d4ef8d3f MO |
498 | - 'media_device_for_each_entity' |
499 | - 'media_device_for_each_intf' | |
500 | - 'media_device_for_each_link' | |
501 | - 'media_device_for_each_pad' | |
88217894 | 502 | - 'msi_for_each_desc' |
99e309b6 | 503 | - 'nanddev_io_for_each_page' |
d4ef8d3f MO |
504 | - 'netdev_for_each_lower_dev' |
505 | - 'netdev_for_each_lower_private' | |
506 | - 'netdev_for_each_lower_private_rcu' | |
507 | - 'netdev_for_each_mc_addr' | |
508 | - 'netdev_for_each_uc_addr' | |
509 | - 'netdev_for_each_upper_dev_rcu' | |
510 | - 'netdev_hw_addr_list_for_each' | |
511 | - 'nft_rule_for_each_expr' | |
512 | - 'nla_for_each_attr' | |
513 | - 'nla_for_each_nested' | |
514 | - 'nlmsg_for_each_attr' | |
515 | - 'nlmsg_for_each_msg' | |
516 | - 'nr_neigh_for_each' | |
517 | - 'nr_neigh_for_each_safe' | |
518 | - 'nr_node_for_each' | |
519 | - 'nr_node_for_each_safe' | |
520 | - 'of_for_each_phandle' | |
521 | - 'of_property_for_each_string' | |
522 | - 'of_property_for_each_u32' | |
523 | - 'pci_bus_for_each_resource' | |
09cc9006 | 524 | - 'pci_dev_for_each_resource' |
1074f8ec MO |
525 | - 'pcl_for_each_chunk' |
526 | - 'pcl_for_each_segment' | |
5d65a021 | 527 | - 'pcm_for_each_format' |
49bb63a2 MS |
528 | - 'perf_config_items__for_each_entry' |
529 | - 'perf_config_sections__for_each_entry' | |
530 | - 'perf_config_set__for_each_entry' | |
531 | - 'perf_cpu_map__for_each_cpu' | |
532 | - 'perf_evlist__for_each_entry' | |
533 | - 'perf_evlist__for_each_entry_reverse' | |
534 | - 'perf_evlist__for_each_entry_safe' | |
535 | - 'perf_evlist__for_each_evsel' | |
536 | - 'perf_evlist__for_each_mmap' | |
537 | - 'perf_hpp_list__for_each_format' | |
538 | - 'perf_hpp_list__for_each_format_safe' | |
539 | - 'perf_hpp_list__for_each_sort_list' | |
540 | - 'perf_hpp_list__for_each_sort_list_safe' | |
541 | - 'perf_pmu__for_each_hybrid_pmu' | |
d4ef8d3f | 542 | - 'ping_portaddr_for_each_entry' |
c25b7a7a | 543 | - 'ping_portaddr_for_each_entry_rcu' |
d4ef8d3f MO |
544 | - 'plist_for_each' |
545 | - 'plist_for_each_continue' | |
546 | - 'plist_for_each_entry' | |
547 | - 'plist_for_each_entry_continue' | |
548 | - 'plist_for_each_entry_safe' | |
549 | - 'plist_for_each_safe' | |
550 | - 'pnp_for_each_card' | |
551 | - 'pnp_for_each_dev' | |
552 | - 'protocol_for_each_card' | |
553 | - 'protocol_for_each_dev' | |
554 | - 'queue_for_each_hw_ctx' | |
d4ef8d3f MO |
555 | - 'radix_tree_for_each_slot' |
556 | - 'radix_tree_for_each_tagged' | |
4792f9dd | 557 | - 'rb_for_each' |
d4ef8d3f | 558 | - 'rbtree_postorder_for_each_entry_safe' |
52d08347 | 559 | - 'rdma_for_each_block' |
ea1075ed | 560 | - 'rdma_for_each_port' |
ebc24096 | 561 | - 'rdma_umem_for_each_dma_block' |
49bb63a2 | 562 | - 'resort_rb__for_each_entry' |
d4ef8d3f MO |
563 | - 'resource_list_for_each_entry' |
564 | - 'resource_list_for_each_entry_safe' | |
565 | - 'rhl_for_each_entry_rcu' | |
566 | - 'rhl_for_each_rcu' | |
567 | - 'rht_for_each' | |
d4ef8d3f | 568 | - 'rht_for_each_entry' |
f7ad68bf | 569 | - 'rht_for_each_entry_from' |
d4ef8d3f | 570 | - 'rht_for_each_entry_rcu' |
f7ad68bf | 571 | - 'rht_for_each_entry_rcu_from' |
d4ef8d3f | 572 | - 'rht_for_each_entry_safe' |
52d08347 | 573 | - 'rht_for_each_from' |
d4ef8d3f | 574 | - 'rht_for_each_rcu' |
f7ad68bf | 575 | - 'rht_for_each_rcu_from' |
f16628d6 | 576 | - 'rq_for_each_bvec' |
d4ef8d3f | 577 | - 'rq_for_each_segment' |
88217894 MO |
578 | - 'rq_list_for_each' |
579 | - 'rq_list_for_each_safe' | |
d4ef8d3f MO |
580 | - 'scsi_for_each_prot_sg' |
581 | - 'scsi_for_each_sg' | |
582 | - 'sctp_for_each_hentry' | |
583 | - 'sctp_skb_for_each' | |
49bb63a2 MS |
584 | - 'sec_for_each_insn' |
585 | - 'sec_for_each_insn_continue' | |
586 | - 'sec_for_each_insn_from' | |
d4ef8d3f | 587 | - 'shdma_for_each_chan' |
d4ef8d3f MO |
588 | - 'shost_for_each_device' |
589 | - 'sk_for_each' | |
590 | - 'sk_for_each_bound' | |
591 | - 'sk_for_each_entry_offset_rcu' | |
592 | - 'sk_for_each_from' | |
593 | - 'sk_for_each_rcu' | |
594 | - 'sk_for_each_safe' | |
595 | - 'sk_nulls_for_each' | |
596 | - 'sk_nulls_for_each_from' | |
597 | - 'sk_nulls_for_each_rcu' | |
99e309b6 | 598 | - 'snd_array_for_each' |
d4ef8d3f MO |
599 | - 'snd_pcm_group_for_each_entry' |
600 | - 'snd_soc_dapm_widget_for_each_path' | |
601 | - 'snd_soc_dapm_widget_for_each_path_safe' | |
602 | - 'snd_soc_dapm_widget_for_each_sink_path' | |
603 | - 'snd_soc_dapm_widget_for_each_source_path' | |
49bb63a2 MS |
604 | - 'strlist__for_each_entry' |
605 | - 'strlist__for_each_entry_safe' | |
606 | - 'sym_for_each_insn' | |
607 | - 'sym_for_each_insn_continue_reverse' | |
608 | - 'symbols__for_each_entry' | |
d4ef8d3f | 609 | - 'tb_property_for_each' |
88217894 | 610 | - 'tcf_act_for_each_action' |
99e309b6 | 611 | - 'tcf_exts_for_each_action' |
d4ef8d3f MO |
612 | - 'udp_portaddr_for_each_entry' |
613 | - 'udp_portaddr_for_each_entry_rcu' | |
614 | - 'usb_hub_for_each_child' | |
615 | - 'v4l2_device_for_each_subdev' | |
616 | - 'v4l2_m2m_for_each_dst_buf' | |
617 | - 'v4l2_m2m_for_each_dst_buf_safe' | |
618 | - 'v4l2_m2m_for_each_src_buf' | |
619 | - 'v4l2_m2m_for_each_src_buf_safe' | |
99e309b6 | 620 | - 'virtio_device_for_each_vq' |
4e4bb894 | 621 | - 'while_for_each_ftrace_op' |
99e309b6 | 622 | - 'xa_for_each' |
f16628d6 | 623 | - 'xa_for_each_marked' |
11a4a8f7 | 624 | - 'xa_for_each_range' |
f16628d6 | 625 | - 'xa_for_each_start' |
99e309b6 JG |
626 | - 'xas_for_each' |
627 | - 'xas_for_each_conflict' | |
628 | - 'xas_for_each_marked' | |
11a4a8f7 MO |
629 | - 'xbc_array_for_each_value' |
630 | - 'xbc_for_each_key_value' | |
631 | - 'xbc_node_for_each_array_value' | |
632 | - 'xbc_node_for_each_child' | |
633 | - 'xbc_node_for_each_key_value' | |
88217894 | 634 | - 'xbc_node_for_each_subkey' |
d4ef8d3f MO |
635 | - 'zorro_for_each_dev' |
636 | ||
96232c7d | 637 | IncludeBlocks: Preserve |
d4ef8d3f MO |
638 | IncludeCategories: |
639 | - Regex: '.*' | |
640 | Priority: 1 | |
641 | IncludeIsMainRegex: '(Test)?$' | |
642 | IndentCaseLabels: false | |
d7f66043 | 643 | IndentGotoLabels: false |
96232c7d | 644 | IndentPPDirectives: None |
d4ef8d3f | 645 | IndentWidth: 8 |
7bee9bd2 | 646 | IndentWrappedFunctionNames: false |
d4ef8d3f MO |
647 | JavaScriptQuotes: Leave |
648 | JavaScriptWrapImports: true | |
649 | KeepEmptyLinesAtTheStartOfBlocks: false | |
650 | MacroBlockBegin: '' | |
651 | MacroBlockEnd: '' | |
652 | MaxEmptyLinesToKeep: 1 | |
c90f3b8c | 653 | NamespaceIndentation: None |
96232c7d | 654 | ObjCBinPackProtocolList: Auto |
d4ef8d3f MO |
655 | ObjCBlockIndentWidth: 8 |
656 | ObjCSpaceAfterProperty: true | |
657 | ObjCSpaceBeforeProtocolList: true | |
658 | ||
659 | # Taken from git's rules | |
96232c7d | 660 | PenaltyBreakAssignment: 10 |
d4ef8d3f MO |
661 | PenaltyBreakBeforeFirstCallParameter: 30 |
662 | PenaltyBreakComment: 10 | |
663 | PenaltyBreakFirstLessLess: 0 | |
664 | PenaltyBreakString: 10 | |
665 | PenaltyExcessCharacter: 100 | |
666 | PenaltyReturnTypeOnItsOwnLine: 60 | |
667 | ||
668 | PointerAlignment: Right | |
669 | ReflowComments: false | |
670 | SortIncludes: false | |
96232c7d | 671 | SortUsingDeclarations: false |
d4ef8d3f MO |
672 | SpaceAfterCStyleCast: false |
673 | SpaceAfterTemplateKeyword: true | |
674 | SpaceBeforeAssignmentOperators: true | |
96232c7d MS |
675 | SpaceBeforeCtorInitializerColon: true |
676 | SpaceBeforeInheritanceColon: true | |
781121a7 | 677 | SpaceBeforeParens: ControlStatementsExceptForEachMacros |
96232c7d | 678 | SpaceBeforeRangeBasedForLoopColon: true |
d4ef8d3f MO |
679 | SpaceInEmptyParentheses: false |
680 | SpacesBeforeTrailingComments: 1 | |
681 | SpacesInAngles: false | |
682 | SpacesInContainerLiterals: false | |
683 | SpacesInCStyleCastParentheses: false | |
684 | SpacesInParentheses: false | |
685 | SpacesInSquareBrackets: false | |
686 | Standard: Cpp03 | |
687 | TabWidth: 8 | |
688 | UseTab: Always | |
689 | ... |