]>
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 | 84 | - '__map__for_each_symbol_by_name' |
5a205c6a MO |
85 | - '__pci_bus_for_each_res0' |
86 | - '__pci_bus_for_each_res1' | |
87 | - '__pci_dev_for_each_res0' | |
88 | - '__pci_dev_for_each_res1' | |
49bb63a2 MS |
89 | - '__perf_evlist__for_each_entry' |
90 | - '__perf_evlist__for_each_entry_reverse' | |
91 | - '__perf_evlist__for_each_entry_safe' | |
43120879 MO |
92 | - '__rq_for_each_bio' |
93 | - '__shost_for_each_device' | |
5a205c6a | 94 | - '__sym_for_each' |
d4ef8d3f MO |
95 | - 'apei_estatus_for_each_section' |
96 | - 'ata_for_each_dev' | |
97 | - 'ata_for_each_link' | |
99e309b6 JG |
98 | - 'ata_qc_for_each' |
99 | - 'ata_qc_for_each_raw' | |
100 | - 'ata_qc_for_each_with_internal' | |
d4ef8d3f MO |
101 | - 'ax25_for_each' |
102 | - 'ax25_uid_for_each' | |
f16628d6 | 103 | - 'bio_for_each_bvec' |
1072c12d | 104 | - 'bio_for_each_bvec_all' |
88217894 | 105 | - 'bio_for_each_folio_all' |
d4ef8d3f | 106 | - 'bio_for_each_integrity_vec' |
d4ef8d3f MO |
107 | - 'bio_for_each_segment' |
108 | - 'bio_for_each_segment_all' | |
109 | - 'bio_list_for_each' | |
110 | - 'bip_for_each_vec' | |
d4ef8d3f MO |
111 | - 'bond_for_each_slave' |
112 | - 'bond_for_each_slave_rcu' | |
5a205c6a MO |
113 | - 'bpf_for_each' |
114 | - 'bpf_for_each_reg_in_vstate' | |
115 | - 'bpf_for_each_reg_in_vstate_mask' | |
99e309b6 | 116 | - 'bpf_for_each_spilled_reg' |
49bb63a2 MS |
117 | - 'bpf_object__for_each_map' |
118 | - 'bpf_object__for_each_program' | |
d4ef8d3f MO |
119 | - 'btree_for_each_safe128' |
120 | - 'btree_for_each_safe32' | |
121 | - 'btree_for_each_safe64' | |
122 | - 'btree_for_each_safel' | |
123 | - 'card_for_each_dev' | |
124 | - 'cgroup_taskset_for_each' | |
125 | - 'cgroup_taskset_for_each_leader' | |
5a205c6a | 126 | - 'cpu_aggr_map__for_each_idx' |
88217894 | 127 | - 'cpufreq_for_each_efficient_entry_idx' |
d4ef8d3f MO |
128 | - 'cpufreq_for_each_entry' |
129 | - 'cpufreq_for_each_entry_idx' | |
130 | - 'cpufreq_for_each_valid_entry' | |
131 | - 'cpufreq_for_each_valid_entry_idx' | |
132 | - 'css_for_each_child' | |
133 | - 'css_for_each_descendant_post' | |
134 | - 'css_for_each_descendant_pre' | |
88217894 | 135 | - 'damon_for_each_region' |
5a205c6a | 136 | - 'damon_for_each_region_from' |
88217894 MO |
137 | - 'damon_for_each_region_safe' |
138 | - 'damon_for_each_scheme' | |
139 | - 'damon_for_each_scheme_safe' | |
140 | - 'damon_for_each_target' | |
141 | - 'damon_for_each_target_safe' | |
5a205c6a MO |
142 | - 'damos_for_each_filter' |
143 | - 'damos_for_each_filter_safe' | |
49bb63a2 MS |
144 | - 'data__for_each_file' |
145 | - 'data__for_each_file_new' | |
146 | - 'data__for_each_file_start' | |
d4ef8d3f | 147 | - 'device_for_each_child_node' |
4792f9dd | 148 | - 'displayid_iter_for_each' |
88217894 | 149 | - 'dma_fence_array_for_each' |
52d08347 | 150 | - 'dma_fence_chain_for_each' |
88217894 MO |
151 | - 'dma_fence_unwrap_for_each' |
152 | - 'dma_resv_for_each_fence' | |
153 | - 'dma_resv_for_each_fence_unlocked' | |
4e4bb894 | 154 | - 'do_for_each_ftrace_op' |
d4ef8d3f MO |
155 | - 'drm_atomic_crtc_for_each_plane' |
156 | - 'drm_atomic_crtc_state_for_each_plane' | |
157 | - 'drm_atomic_crtc_state_for_each_plane_state' | |
99e309b6 | 158 | - 'drm_atomic_for_each_plane_damage' |
52d08347 MO |
159 | - 'drm_client_for_each_connector_iter' |
160 | - 'drm_client_for_each_modeset' | |
99e309b6 | 161 | - 'drm_connector_for_each_possible_encoder' |
5a205c6a MO |
162 | - 'drm_exec_for_each_locked_object' |
163 | - 'drm_exec_for_each_locked_object_reverse' | |
11a4a8f7 | 164 | - 'drm_for_each_bridge_in_chain' |
d4ef8d3f MO |
165 | - 'drm_for_each_connector_iter' |
166 | - 'drm_for_each_crtc' | |
1074f8ec | 167 | - 'drm_for_each_crtc_reverse' |
d4ef8d3f MO |
168 | - 'drm_for_each_encoder' |
169 | - 'drm_for_each_encoder_mask' | |
170 | - 'drm_for_each_fb' | |
171 | - 'drm_for_each_legacy_plane' | |
172 | - 'drm_for_each_plane' | |
173 | - 'drm_for_each_plane_mask' | |
f16628d6 | 174 | - 'drm_for_each_privobj' |
5a205c6a MO |
175 | - 'drm_gem_for_each_gpuva' |
176 | - 'drm_gem_for_each_gpuva_safe' | |
177 | - 'drm_gpuva_for_each_op' | |
178 | - 'drm_gpuva_for_each_op_from_reverse' | |
179 | - 'drm_gpuva_for_each_op_safe' | |
180 | - 'drm_gpuvm_for_each_va' | |
181 | - 'drm_gpuvm_for_each_va_range' | |
182 | - 'drm_gpuvm_for_each_va_range_safe' | |
183 | - 'drm_gpuvm_for_each_va_safe' | |
d4ef8d3f MO |
184 | - 'drm_mm_for_each_hole' |
185 | - 'drm_mm_for_each_node' | |
186 | - 'drm_mm_for_each_node_in_range' | |
187 | - 'drm_mm_for_each_node_safe' | |
88217894 MO |
188 | - 'dsa_switch_for_each_available_port' |
189 | - 'dsa_switch_for_each_cpu_port' | |
5a205c6a | 190 | - 'dsa_switch_for_each_cpu_port_continue_reverse' |
88217894 MO |
191 | - 'dsa_switch_for_each_port' |
192 | - 'dsa_switch_for_each_port_continue_reverse' | |
193 | - 'dsa_switch_for_each_port_safe' | |
194 | - 'dsa_switch_for_each_user_port' | |
5a205c6a | 195 | - 'dsa_tree_for_each_cpu_port' |
88217894 | 196 | - 'dsa_tree_for_each_user_port' |
5a205c6a | 197 | - 'dsa_tree_for_each_user_port_continue_reverse' |
49bb63a2 MS |
198 | - 'dso__for_each_symbol' |
199 | - 'dsos__for_each_with_build_id' | |
200 | - 'elf_hash_for_each_possible' | |
49bb63a2 MS |
201 | - 'elf_symtab__for_each_symbol' |
202 | - 'evlist__for_each_cpu' | |
203 | - 'evlist__for_each_entry' | |
204 | - 'evlist__for_each_entry_continue' | |
205 | - 'evlist__for_each_entry_from' | |
206 | - 'evlist__for_each_entry_reverse' | |
207 | - 'evlist__for_each_entry_safe' | |
f16628d6 | 208 | - 'flow_action_for_each' |
5a205c6a | 209 | - 'for_each_acpi_consumer_dev' |
4792f9dd | 210 | - 'for_each_acpi_dev_match' |
52d08347 | 211 | - 'for_each_active_dev_scope' |
d4ef8d3f MO |
212 | - 'for_each_active_drhd_unit' |
213 | - 'for_each_active_iommu' | |
837f92f0 | 214 | - 'for_each_active_route' |
4e4bb894 | 215 | - 'for_each_aggr_pgid' |
5a205c6a MO |
216 | - 'for_each_and_bit' |
217 | - 'for_each_andnot_bit' | |
d4ef8d3f | 218 | - 'for_each_available_child_of_node' |
49bb63a2 | 219 | - 'for_each_bench' |
d4ef8d3f MO |
220 | - 'for_each_bio' |
221 | - 'for_each_board_func_rsrc' | |
49bb63a2 MS |
222 | - 'for_each_btf_ext_rec' |
223 | - 'for_each_btf_ext_sec' | |
d4ef8d3f | 224 | - 'for_each_bvec' |
11a4a8f7 MO |
225 | - 'for_each_card_auxs' |
226 | - 'for_each_card_auxs_safe' | |
99e309b6 | 227 | - 'for_each_card_components' |
5d65a021 | 228 | - 'for_each_card_dapms' |
11a4a8f7 | 229 | - 'for_each_card_pre_auxs' |
99e309b6 JG |
230 | - 'for_each_card_prelinks' |
231 | - 'for_each_card_rtds' | |
232 | - 'for_each_card_rtds_safe' | |
5d65a021 MO |
233 | - 'for_each_card_widgets' |
234 | - 'for_each_card_widgets_safe' | |
99e309b6 | 235 | - 'for_each_cgroup_storage_type' |
d4ef8d3f MO |
236 | - 'for_each_child_of_node' |
237 | - 'for_each_clear_bit' | |
238 | - 'for_each_clear_bit_from' | |
88217894 MO |
239 | - 'for_each_clear_bitrange' |
240 | - 'for_each_clear_bitrange_from' | |
49bb63a2 | 241 | - 'for_each_cmd' |
d4ef8d3f | 242 | - 'for_each_cmsghdr' |
49bb63a2 | 243 | - 'for_each_collection' |
43120879 | 244 | - 'for_each_comp_order' |
d4ef8d3f | 245 | - 'for_each_compatible_node' |
99e309b6 JG |
246 | - 'for_each_component_dais' |
247 | - 'for_each_component_dais_safe' | |
5a205c6a | 248 | - 'for_each_conduit' |
d4ef8d3f | 249 | - 'for_each_console' |
6c4afa79 | 250 | - 'for_each_console_srcu' |
d4ef8d3f MO |
251 | - 'for_each_cpu' |
252 | - 'for_each_cpu_and' | |
5a205c6a MO |
253 | - 'for_each_cpu_andnot' |
254 | - 'for_each_cpu_or' | |
d4ef8d3f | 255 | - 'for_each_cpu_wrap' |
5d65a021 | 256 | - 'for_each_dapm_widgets' |
49bb63a2 | 257 | - 'for_each_dedup_cand' |
d4ef8d3f | 258 | - 'for_each_dev_addr' |
52d08347 | 259 | - 'for_each_dev_scope' |
d4ef8d3f | 260 | - 'for_each_dma_cap_mask' |
99e309b6 JG |
261 | - 'for_each_dpcm_be' |
262 | - 'for_each_dpcm_be_rollback' | |
263 | - 'for_each_dpcm_be_safe' | |
264 | - 'for_each_dpcm_fe' | |
d4ef8d3f MO |
265 | - 'for_each_drhd_unit' |
266 | - 'for_each_dss_dev' | |
267 | - 'for_each_efi_memory_desc' | |
268 | - 'for_each_efi_memory_desc_in_map' | |
f16628d6 MO |
269 | - 'for_each_element' |
270 | - 'for_each_element_extid' | |
271 | - 'for_each_element_id' | |
d4ef8d3f | 272 | - 'for_each_endpoint_of_node' |
49bb63a2 MS |
273 | - 'for_each_event' |
274 | - 'for_each_event_tps' | |
d4ef8d3f MO |
275 | - 'for_each_evictable_lru' |
276 | - 'for_each_fib6_node_rt_rcu' | |
277 | - 'for_each_fib6_walker_rt' | |
52d08347 MO |
278 | - 'for_each_free_mem_pfn_range_in_zone' |
279 | - 'for_each_free_mem_pfn_range_in_zone_from' | |
d4ef8d3f MO |
280 | - 'for_each_free_mem_range' |
281 | - 'for_each_free_mem_range_reverse' | |
282 | - 'for_each_func_rsrc' | |
5a205c6a | 283 | - 'for_each_gpiochip_node' |
49bb63a2 | 284 | - 'for_each_group_evsel' |
5a205c6a | 285 | - 'for_each_group_evsel_head' |
49bb63a2 | 286 | - 'for_each_group_member' |
5a205c6a | 287 | - 'for_each_group_member_head' |
d4ef8d3f MO |
288 | - 'for_each_hstate' |
289 | - 'for_each_if' | |
49bb63a2 MS |
290 | - 'for_each_inject_fn' |
291 | - 'for_each_insn' | |
292 | - 'for_each_insn_prefix' | |
293 | - 'for_each_intid' | |
d4ef8d3f MO |
294 | - 'for_each_iommu' |
295 | - 'for_each_ip_tunnel_rcu' | |
296 | - 'for_each_irq_nr' | |
49bb63a2 | 297 | - 'for_each_lang' |
99e309b6 | 298 | - 'for_each_link_codecs' |
5d65a021 | 299 | - 'for_each_link_cpus' |
52d08347 | 300 | - 'for_each_link_platforms' |
d4ef8d3f MO |
301 | - 'for_each_lru' |
302 | - 'for_each_matching_node' | |
303 | - 'for_each_matching_node_and_match' | |
5a205c6a | 304 | - 'for_each_media_entity_data_link' |
d4ef8d3f MO |
305 | - 'for_each_mem_pfn_range' |
306 | - 'for_each_mem_range' | |
307 | - 'for_each_mem_range_rev' | |
1074f8ec | 308 | - 'for_each_mem_region' |
43120879 | 309 | - 'for_each_member' |
49bb63a2 | 310 | - 'for_each_memory' |
d4ef8d3f | 311 | - 'for_each_migratetype_order' |
49bb63a2 | 312 | - 'for_each_missing_reg' |
5a205c6a MO |
313 | - 'for_each_mle_subelement' |
314 | - 'for_each_mod_mem_type' | |
d4ef8d3f | 315 | - 'for_each_net' |
11a4a8f7 | 316 | - 'for_each_net_continue_reverse' |
43120879 | 317 | - 'for_each_net_rcu' |
d4ef8d3f MO |
318 | - 'for_each_netdev' |
319 | - 'for_each_netdev_continue' | |
320 | - 'for_each_netdev_continue_rcu' | |
11a4a8f7 | 321 | - 'for_each_netdev_continue_reverse' |
5a205c6a | 322 | - 'for_each_netdev_dump' |
d4ef8d3f MO |
323 | - 'for_each_netdev_feature' |
324 | - 'for_each_netdev_in_bond_rcu' | |
325 | - 'for_each_netdev_rcu' | |
326 | - 'for_each_netdev_reverse' | |
327 | - 'for_each_netdev_safe' | |
d4ef8d3f MO |
328 | - 'for_each_new_connector_in_state' |
329 | - 'for_each_new_crtc_in_state' | |
f16628d6 | 330 | - 'for_each_new_mst_mgr_in_state' |
d4ef8d3f | 331 | - 'for_each_new_plane_in_state' |
88217894 | 332 | - 'for_each_new_plane_in_state_reverse' |
d4ef8d3f | 333 | - 'for_each_new_private_obj_in_state' |
49bb63a2 | 334 | - 'for_each_new_reg' |
d4ef8d3f MO |
335 | - 'for_each_node' |
336 | - 'for_each_node_by_name' | |
337 | - 'for_each_node_by_type' | |
338 | - 'for_each_node_mask' | |
339 | - 'for_each_node_state' | |
340 | - 'for_each_node_with_cpus' | |
341 | - 'for_each_node_with_property' | |
4e4bb894 | 342 | - 'for_each_nonreserved_multicast_dest_pgid' |
5a205c6a | 343 | - 'for_each_numa_hop_mask' |
d4ef8d3f MO |
344 | - 'for_each_of_allnodes' |
345 | - 'for_each_of_allnodes_from' | |
99e309b6 | 346 | - 'for_each_of_cpu_node' |
d4ef8d3f MO |
347 | - 'for_each_of_pci_range' |
348 | - 'for_each_old_connector_in_state' | |
349 | - 'for_each_old_crtc_in_state' | |
f16628d6 | 350 | - 'for_each_old_mst_mgr_in_state' |
43120879 MO |
351 | - 'for_each_old_plane_in_state' |
352 | - 'for_each_old_private_obj_in_state' | |
d4ef8d3f MO |
353 | - 'for_each_oldnew_connector_in_state' |
354 | - 'for_each_oldnew_crtc_in_state' | |
f16628d6 | 355 | - 'for_each_oldnew_mst_mgr_in_state' |
d4ef8d3f | 356 | - 'for_each_oldnew_plane_in_state' |
99e309b6 | 357 | - 'for_each_oldnew_plane_in_state_reverse' |
d4ef8d3f | 358 | - 'for_each_oldnew_private_obj_in_state' |
d4ef8d3f MO |
359 | - 'for_each_online_cpu' |
360 | - 'for_each_online_node' | |
361 | - 'for_each_online_pgdat' | |
5a205c6a | 362 | - 'for_each_or_bit' |
49bb63a2 | 363 | - 'for_each_path' |
d4ef8d3f MO |
364 | - 'for_each_pci_bridge' |
365 | - 'for_each_pci_dev' | |
5d65a021 | 366 | - 'for_each_pcm_streams' |
4e4bb894 | 367 | - 'for_each_physmem_range' |
d4ef8d3f MO |
368 | - 'for_each_populated_zone' |
369 | - 'for_each_possible_cpu' | |
5a205c6a | 370 | - 'for_each_present_blessed_reg' |
d4ef8d3f MO |
371 | - 'for_each_present_cpu' |
372 | - 'for_each_prime_number' | |
373 | - 'for_each_prime_number_from' | |
49bb63a2 | 374 | - 'for_each_probe_cache_entry' |
d4ef8d3f MO |
375 | - 'for_each_process' |
376 | - 'for_each_process_thread' | |
4792f9dd MO |
377 | - 'for_each_prop_codec_conf' |
378 | - 'for_each_prop_dai_codec' | |
379 | - 'for_each_prop_dai_cpu' | |
380 | - 'for_each_prop_dlc_codecs' | |
381 | - 'for_each_prop_dlc_cpus' | |
382 | - 'for_each_prop_dlc_platforms' | |
d4ef8d3f | 383 | - 'for_each_property_of_node' |
49bb63a2 MS |
384 | - 'for_each_reg' |
385 | - 'for_each_reg_filtered' | |
5a205c6a MO |
386 | - 'for_each_reloc' |
387 | - 'for_each_reloc_from' | |
4e4bb894 MO |
388 | - 'for_each_requested_gpio' |
389 | - 'for_each_requested_gpio_in_range' | |
9f3d5eaa | 390 | - 'for_each_reserved_mem_range' |
cc6de168 | 391 | - 'for_each_reserved_mem_region' |
5d65a021 | 392 | - 'for_each_rtd_codec_dais' |
11a4a8f7 | 393 | - 'for_each_rtd_components' |
5d65a021 | 394 | - 'for_each_rtd_cpu_dais' |
5d65a021 | 395 | - 'for_each_rtd_dais' |
5a205c6a | 396 | - 'for_each_sband_iftype_data' |
49bb63a2 MS |
397 | - 'for_each_script' |
398 | - 'for_each_sec' | |
d4ef8d3f MO |
399 | - 'for_each_set_bit' |
400 | - 'for_each_set_bit_from' | |
5a205c6a | 401 | - 'for_each_set_bit_wrap' |
88217894 MO |
402 | - 'for_each_set_bitrange' |
403 | - 'for_each_set_bitrange_from' | |
11a4a8f7 | 404 | - 'for_each_set_clump8' |
d4ef8d3f | 405 | - 'for_each_sg' |
d901b276 | 406 | - 'for_each_sg_dma_page' |
d4ef8d3f | 407 | - 'for_each_sg_page' |
4e4bb894 MO |
408 | - 'for_each_sgtable_dma_page' |
409 | - 'for_each_sgtable_dma_sg' | |
410 | - 'for_each_sgtable_page' | |
411 | - 'for_each_sgtable_sg' | |
99e309b6 | 412 | - 'for_each_sibling_event' |
5a205c6a | 413 | - 'for_each_sta_active_link' |
f16628d6 MO |
414 | - 'for_each_subelement' |
415 | - 'for_each_subelement_extid' | |
416 | - 'for_each_subelement_id' | |
49bb63a2 MS |
417 | - 'for_each_sublist' |
418 | - 'for_each_subsystem' | |
419 | - 'for_each_supported_activate_fn' | |
420 | - 'for_each_supported_inject_fn' | |
5a205c6a | 421 | - 'for_each_sym' |
49bb63a2 | 422 | - 'for_each_test' |
d4ef8d3f | 423 | - 'for_each_thread' |
49bb63a2 | 424 | - 'for_each_token' |
4e4bb894 | 425 | - 'for_each_unicast_dest_pgid' |
5a205c6a MO |
426 | - 'for_each_valid_link' |
427 | - 'for_each_vif_active_link' | |
428 | - 'for_each_vma' | |
429 | - 'for_each_vma_range' | |
1074f8ec | 430 | - 'for_each_vsi' |
11a4a8f7 | 431 | - 'for_each_wakeup_source' |
d4ef8d3f MO |
432 | - 'for_each_zone' |
433 | - 'for_each_zone_zonelist' | |
434 | - 'for_each_zone_zonelist_nodemask' | |
49bb63a2 | 435 | - 'func_for_each_insn' |
d4ef8d3f MO |
436 | - 'fwnode_for_each_available_child_node' |
437 | - 'fwnode_for_each_child_node' | |
5a205c6a | 438 | - 'fwnode_for_each_parent_node' |
d4ef8d3f MO |
439 | - 'fwnode_graph_for_each_endpoint' |
440 | - 'gadget_for_each_ep' | |
f16628d6 MO |
441 | - 'genradix_for_each' |
442 | - 'genradix_for_each_from' | |
5a205c6a | 443 | - 'genradix_for_each_reverse' |
d4ef8d3f MO |
444 | - 'hash_for_each' |
445 | - 'hash_for_each_possible' | |
446 | - 'hash_for_each_possible_rcu' | |
447 | - 'hash_for_each_possible_rcu_notrace' | |
448 | - 'hash_for_each_possible_safe' | |
449 | - 'hash_for_each_rcu' | |
450 | - 'hash_for_each_safe' | |
49bb63a2 MS |
451 | - 'hashmap__for_each_entry' |
452 | - 'hashmap__for_each_entry_safe' | |
453 | - 'hashmap__for_each_key_entry' | |
454 | - 'hashmap__for_each_key_entry_safe' | |
d4ef8d3f | 455 | - 'hctx_for_each_ctx' |
49bb63a2 MS |
456 | - 'hists__for_each_format' |
457 | - 'hists__for_each_sort_list' | |
d4ef8d3f MO |
458 | - 'hlist_bl_for_each_entry' |
459 | - 'hlist_bl_for_each_entry_rcu' | |
460 | - 'hlist_bl_for_each_entry_safe' | |
461 | - 'hlist_for_each' | |
462 | - 'hlist_for_each_entry' | |
463 | - 'hlist_for_each_entry_continue' | |
464 | - 'hlist_for_each_entry_continue_rcu' | |
465 | - 'hlist_for_each_entry_continue_rcu_bh' | |
466 | - 'hlist_for_each_entry_from' | |
467 | - 'hlist_for_each_entry_from_rcu' | |
468 | - 'hlist_for_each_entry_rcu' | |
469 | - 'hlist_for_each_entry_rcu_bh' | |
470 | - 'hlist_for_each_entry_rcu_notrace' | |
471 | - 'hlist_for_each_entry_safe' | |
1074f8ec | 472 | - 'hlist_for_each_entry_srcu' |
d4ef8d3f MO |
473 | - 'hlist_for_each_safe' |
474 | - 'hlist_nulls_for_each_entry' | |
475 | - 'hlist_nulls_for_each_entry_from' | |
476 | - 'hlist_nulls_for_each_entry_rcu' | |
477 | - 'hlist_nulls_for_each_entry_safe' | |
99e309b6 JG |
478 | - 'i3c_bus_for_each_i2cdev' |
479 | - 'i3c_bus_for_each_i3cdev' | |
d4ef8d3f MO |
480 | - 'idr_for_each_entry' |
481 | - 'idr_for_each_entry_continue' | |
52d08347 | 482 | - 'idr_for_each_entry_continue_ul' |
d4ef8d3f | 483 | - 'idr_for_each_entry_ul' |
52d08347 MO |
484 | - 'in_dev_for_each_ifa_rcu' |
485 | - 'in_dev_for_each_ifa_rtnl' | |
d4ef8d3f | 486 | - 'inet_bind_bucket_for_each' |
5fe93786 | 487 | - 'interval_tree_for_each_span' |
49bb63a2 MS |
488 | - 'intlist__for_each_entry' |
489 | - 'intlist__for_each_entry_safe' | |
490 | - 'kcore_copy__for_each_phdr' | |
d4ef8d3f MO |
491 | - 'key_for_each' |
492 | - 'key_for_each_safe' | |
493 | - 'klp_for_each_func' | |
f16628d6 MO |
494 | - 'klp_for_each_func_safe' |
495 | - 'klp_for_each_func_static' | |
d4ef8d3f | 496 | - 'klp_for_each_object' |
f16628d6 MO |
497 | - 'klp_for_each_object_safe' |
498 | - 'klp_for_each_object_static' | |
5d65a021 | 499 | - 'kunit_suite_for_each_test_case' |
d4ef8d3f | 500 | - 'kvm_for_each_memslot' |
88217894 | 501 | - 'kvm_for_each_memslot_in_gfn_range' |
d4ef8d3f | 502 | - 'kvm_for_each_vcpu' |
49bb63a2 | 503 | - 'libbpf_nla_for_each_attr' |
d4ef8d3f | 504 | - 'list_for_each' |
99e309b6 JG |
505 | - 'list_for_each_codec' |
506 | - 'list_for_each_codec_safe' | |
11a4a8f7 | 507 | - 'list_for_each_continue' |
d4ef8d3f MO |
508 | - 'list_for_each_entry' |
509 | - 'list_for_each_entry_continue' | |
510 | - 'list_for_each_entry_continue_rcu' | |
511 | - 'list_for_each_entry_continue_reverse' | |
512 | - 'list_for_each_entry_from' | |
99e309b6 | 513 | - 'list_for_each_entry_from_rcu' |
d4ef8d3f MO |
514 | - 'list_for_each_entry_from_reverse' |
515 | - 'list_for_each_entry_lockless' | |
516 | - 'list_for_each_entry_rcu' | |
517 | - 'list_for_each_entry_reverse' | |
518 | - 'list_for_each_entry_safe' | |
519 | - 'list_for_each_entry_safe_continue' | |
520 | - 'list_for_each_entry_safe_from' | |
521 | - 'list_for_each_entry_safe_reverse' | |
1074f8ec | 522 | - 'list_for_each_entry_srcu' |
49bb63a2 | 523 | - 'list_for_each_from' |
d4ef8d3f MO |
524 | - 'list_for_each_prev' |
525 | - 'list_for_each_prev_safe' | |
5a205c6a MO |
526 | - 'list_for_each_rcu' |
527 | - 'list_for_each_reverse' | |
d4ef8d3f MO |
528 | - 'list_for_each_safe' |
529 | - 'llist_for_each' | |
530 | - 'llist_for_each_entry' | |
531 | - 'llist_for_each_entry_safe' | |
532 | - 'llist_for_each_safe' | |
5a205c6a | 533 | - 'lwq_for_each_safe' |
49bb63a2 MS |
534 | - 'map__for_each_symbol' |
535 | - 'map__for_each_symbol_by_name' | |
49bb63a2 MS |
536 | - 'maps__for_each_entry' |
537 | - 'maps__for_each_entry_safe' | |
2a0b726b | 538 | - 'mas_for_each' |
11a4a8f7 | 539 | - 'mci_for_each_dimm' |
d4ef8d3f MO |
540 | - 'media_device_for_each_entity' |
541 | - 'media_device_for_each_intf' | |
542 | - 'media_device_for_each_link' | |
543 | - 'media_device_for_each_pad' | |
5a205c6a MO |
544 | - 'media_entity_for_each_pad' |
545 | - 'media_pipeline_for_each_entity' | |
546 | - 'media_pipeline_for_each_pad' | |
547 | - 'mlx5_lag_for_each_peer_mdev' | |
548 | - 'msi_domain_for_each_desc' | |
88217894 | 549 | - 'msi_for_each_desc' |
2a0b726b | 550 | - 'mt_for_each' |
99e309b6 | 551 | - 'nanddev_io_for_each_page' |
d4ef8d3f MO |
552 | - 'netdev_for_each_lower_dev' |
553 | - 'netdev_for_each_lower_private' | |
554 | - 'netdev_for_each_lower_private_rcu' | |
555 | - 'netdev_for_each_mc_addr' | |
5a205c6a MO |
556 | - 'netdev_for_each_synced_mc_addr' |
557 | - 'netdev_for_each_synced_uc_addr' | |
d4ef8d3f MO |
558 | - 'netdev_for_each_uc_addr' |
559 | - 'netdev_for_each_upper_dev_rcu' | |
560 | - 'netdev_hw_addr_list_for_each' | |
561 | - 'nft_rule_for_each_expr' | |
562 | - 'nla_for_each_attr' | |
563 | - 'nla_for_each_nested' | |
564 | - 'nlmsg_for_each_attr' | |
565 | - 'nlmsg_for_each_msg' | |
566 | - 'nr_neigh_for_each' | |
567 | - 'nr_neigh_for_each_safe' | |
568 | - 'nr_node_for_each' | |
569 | - 'nr_node_for_each_safe' | |
570 | - 'of_for_each_phandle' | |
571 | - 'of_property_for_each_string' | |
572 | - 'of_property_for_each_u32' | |
573 | - 'pci_bus_for_each_resource' | |
09cc9006 | 574 | - 'pci_dev_for_each_resource' |
1074f8ec MO |
575 | - 'pcl_for_each_chunk' |
576 | - 'pcl_for_each_segment' | |
5d65a021 | 577 | - 'pcm_for_each_format' |
49bb63a2 MS |
578 | - 'perf_config_items__for_each_entry' |
579 | - 'perf_config_sections__for_each_entry' | |
580 | - 'perf_config_set__for_each_entry' | |
581 | - 'perf_cpu_map__for_each_cpu' | |
5a205c6a | 582 | - 'perf_cpu_map__for_each_idx' |
49bb63a2 MS |
583 | - 'perf_evlist__for_each_entry' |
584 | - 'perf_evlist__for_each_entry_reverse' | |
585 | - 'perf_evlist__for_each_entry_safe' | |
586 | - 'perf_evlist__for_each_evsel' | |
587 | - 'perf_evlist__for_each_mmap' | |
588 | - 'perf_hpp_list__for_each_format' | |
589 | - 'perf_hpp_list__for_each_format_safe' | |
590 | - 'perf_hpp_list__for_each_sort_list' | |
591 | - 'perf_hpp_list__for_each_sort_list_safe' | |
5a205c6a | 592 | - 'perf_tool_event__for_each_event' |
d4ef8d3f MO |
593 | - 'plist_for_each' |
594 | - 'plist_for_each_continue' | |
595 | - 'plist_for_each_entry' | |
596 | - 'plist_for_each_entry_continue' | |
597 | - 'plist_for_each_entry_safe' | |
598 | - 'plist_for_each_safe' | |
599 | - 'pnp_for_each_card' | |
600 | - 'pnp_for_each_dev' | |
601 | - 'protocol_for_each_card' | |
602 | - 'protocol_for_each_dev' | |
603 | - 'queue_for_each_hw_ctx' | |
d4ef8d3f MO |
604 | - 'radix_tree_for_each_slot' |
605 | - 'radix_tree_for_each_tagged' | |
4792f9dd | 606 | - 'rb_for_each' |
d4ef8d3f | 607 | - 'rbtree_postorder_for_each_entry_safe' |
52d08347 | 608 | - 'rdma_for_each_block' |
ea1075ed | 609 | - 'rdma_for_each_port' |
ebc24096 | 610 | - 'rdma_umem_for_each_dma_block' |
49bb63a2 | 611 | - 'resort_rb__for_each_entry' |
d4ef8d3f MO |
612 | - 'resource_list_for_each_entry' |
613 | - 'resource_list_for_each_entry_safe' | |
614 | - 'rhl_for_each_entry_rcu' | |
615 | - 'rhl_for_each_rcu' | |
616 | - 'rht_for_each' | |
d4ef8d3f | 617 | - 'rht_for_each_entry' |
f7ad68bf | 618 | - 'rht_for_each_entry_from' |
d4ef8d3f | 619 | - 'rht_for_each_entry_rcu' |
f7ad68bf | 620 | - 'rht_for_each_entry_rcu_from' |
d4ef8d3f | 621 | - 'rht_for_each_entry_safe' |
52d08347 | 622 | - 'rht_for_each_from' |
d4ef8d3f | 623 | - 'rht_for_each_rcu' |
f7ad68bf | 624 | - 'rht_for_each_rcu_from' |
f16628d6 | 625 | - 'rq_for_each_bvec' |
d4ef8d3f | 626 | - 'rq_for_each_segment' |
88217894 MO |
627 | - 'rq_list_for_each' |
628 | - 'rq_list_for_each_safe' | |
5a205c6a | 629 | - 'sample_read_group__for_each' |
d4ef8d3f MO |
630 | - 'scsi_for_each_prot_sg' |
631 | - 'scsi_for_each_sg' | |
632 | - 'sctp_for_each_hentry' | |
633 | - 'sctp_skb_for_each' | |
49bb63a2 MS |
634 | - 'sec_for_each_insn' |
635 | - 'sec_for_each_insn_continue' | |
636 | - 'sec_for_each_insn_from' | |
5a205c6a | 637 | - 'sec_for_each_sym' |
d4ef8d3f | 638 | - 'shdma_for_each_chan' |
d4ef8d3f MO |
639 | - 'shost_for_each_device' |
640 | - 'sk_for_each' | |
641 | - 'sk_for_each_bound' | |
5a205c6a | 642 | - 'sk_for_each_bound_bhash2' |
d4ef8d3f MO |
643 | - 'sk_for_each_entry_offset_rcu' |
644 | - 'sk_for_each_from' | |
645 | - 'sk_for_each_rcu' | |
646 | - 'sk_for_each_safe' | |
647 | - 'sk_nulls_for_each' | |
648 | - 'sk_nulls_for_each_from' | |
649 | - 'sk_nulls_for_each_rcu' | |
99e309b6 | 650 | - 'snd_array_for_each' |
d4ef8d3f MO |
651 | - 'snd_pcm_group_for_each_entry' |
652 | - 'snd_soc_dapm_widget_for_each_path' | |
653 | - 'snd_soc_dapm_widget_for_each_path_safe' | |
654 | - 'snd_soc_dapm_widget_for_each_sink_path' | |
655 | - 'snd_soc_dapm_widget_for_each_source_path' | |
49bb63a2 MS |
656 | - 'strlist__for_each_entry' |
657 | - 'strlist__for_each_entry_safe' | |
658 | - 'sym_for_each_insn' | |
659 | - 'sym_for_each_insn_continue_reverse' | |
660 | - 'symbols__for_each_entry' | |
d4ef8d3f | 661 | - 'tb_property_for_each' |
88217894 | 662 | - 'tcf_act_for_each_action' |
99e309b6 | 663 | - 'tcf_exts_for_each_action' |
5a205c6a MO |
664 | - 'ttm_resource_manager_for_each_res' |
665 | - 'twsk_for_each_bound_bhash2' | |
d4ef8d3f MO |
666 | - 'udp_portaddr_for_each_entry' |
667 | - 'udp_portaddr_for_each_entry_rcu' | |
668 | - 'usb_hub_for_each_child' | |
669 | - 'v4l2_device_for_each_subdev' | |
670 | - 'v4l2_m2m_for_each_dst_buf' | |
671 | - 'v4l2_m2m_for_each_dst_buf_safe' | |
672 | - 'v4l2_m2m_for_each_src_buf' | |
673 | - 'v4l2_m2m_for_each_src_buf_safe' | |
99e309b6 | 674 | - 'virtio_device_for_each_vq' |
4e4bb894 | 675 | - 'while_for_each_ftrace_op' |
99e309b6 | 676 | - 'xa_for_each' |
f16628d6 | 677 | - 'xa_for_each_marked' |
11a4a8f7 | 678 | - 'xa_for_each_range' |
f16628d6 | 679 | - 'xa_for_each_start' |
99e309b6 JG |
680 | - 'xas_for_each' |
681 | - 'xas_for_each_conflict' | |
682 | - 'xas_for_each_marked' | |
11a4a8f7 MO |
683 | - 'xbc_array_for_each_value' |
684 | - 'xbc_for_each_key_value' | |
685 | - 'xbc_node_for_each_array_value' | |
686 | - 'xbc_node_for_each_child' | |
687 | - 'xbc_node_for_each_key_value' | |
88217894 | 688 | - 'xbc_node_for_each_subkey' |
d4ef8d3f MO |
689 | - 'zorro_for_each_dev' |
690 | ||
96232c7d | 691 | IncludeBlocks: Preserve |
d4ef8d3f MO |
692 | IncludeCategories: |
693 | - Regex: '.*' | |
694 | Priority: 1 | |
695 | IncludeIsMainRegex: '(Test)?$' | |
696 | IndentCaseLabels: false | |
d7f66043 | 697 | IndentGotoLabels: false |
96232c7d | 698 | IndentPPDirectives: None |
d4ef8d3f | 699 | IndentWidth: 8 |
7bee9bd2 | 700 | IndentWrappedFunctionNames: false |
d4ef8d3f MO |
701 | JavaScriptQuotes: Leave |
702 | JavaScriptWrapImports: true | |
703 | KeepEmptyLinesAtTheStartOfBlocks: false | |
704 | MacroBlockBegin: '' | |
705 | MacroBlockEnd: '' | |
706 | MaxEmptyLinesToKeep: 1 | |
c90f3b8c | 707 | NamespaceIndentation: None |
96232c7d | 708 | ObjCBinPackProtocolList: Auto |
d4ef8d3f MO |
709 | ObjCBlockIndentWidth: 8 |
710 | ObjCSpaceAfterProperty: true | |
711 | ObjCSpaceBeforeProtocolList: true | |
712 | ||
713 | # Taken from git's rules | |
96232c7d | 714 | PenaltyBreakAssignment: 10 |
d4ef8d3f MO |
715 | PenaltyBreakBeforeFirstCallParameter: 30 |
716 | PenaltyBreakComment: 10 | |
717 | PenaltyBreakFirstLessLess: 0 | |
718 | PenaltyBreakString: 10 | |
719 | PenaltyExcessCharacter: 100 | |
720 | PenaltyReturnTypeOnItsOwnLine: 60 | |
721 | ||
722 | PointerAlignment: Right | |
723 | ReflowComments: false | |
724 | SortIncludes: false | |
96232c7d | 725 | SortUsingDeclarations: false |
d4ef8d3f MO |
726 | SpaceAfterCStyleCast: false |
727 | SpaceAfterTemplateKeyword: true | |
728 | SpaceBeforeAssignmentOperators: true | |
96232c7d MS |
729 | SpaceBeforeCtorInitializerColon: true |
730 | SpaceBeforeInheritanceColon: true | |
781121a7 | 731 | SpaceBeforeParens: ControlStatementsExceptForEachMacros |
96232c7d | 732 | SpaceBeforeRangeBasedForLoopColon: true |
d4ef8d3f MO |
733 | SpaceInEmptyParentheses: false |
734 | SpacesBeforeTrailingComments: 1 | |
735 | SpacesInAngles: false | |
736 | SpacesInContainerLiterals: false | |
737 | SpacesInCStyleCastParentheses: false | |
738 | SpacesInParentheses: false | |
739 | SpacesInSquareBrackets: false | |
740 | Standard: Cpp03 | |
741 | TabWidth: 8 | |
742 | UseTab: Always | |
743 | ... |