Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | # clang-format configuration file. Intended for clang-format >= 4. |
| 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 |
| 16 | #AlignEscapedNewlines: Left # Unknown to clang-format-4.0 |
| 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 |
| 40 | #AfterExternBlock: false # Unknown to clang-format-5.0 |
| 41 | BeforeCatch: false |
| 42 | BeforeElse: false |
| 43 | IndentBraces: false |
| 44 | #SplitEmptyFunction: true # Unknown to clang-format-4.0 |
| 45 | #SplitEmptyRecord: true # Unknown to clang-format-4.0 |
| 46 | #SplitEmptyNamespace: true # Unknown to clang-format-4.0 |
| 47 | BreakBeforeBinaryOperators: None |
| 48 | BreakBeforeBraces: Custom |
| 49 | #BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0 |
| 50 | BreakBeforeTernaryOperators: false |
| 51 | BreakConstructorInitializersBeforeComma: false |
| 52 | #BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0 |
| 53 | BreakAfterJavaFieldAnnotations: false |
| 54 | BreakStringLiterals: false |
| 55 | ColumnLimit: 80 |
| 56 | CommentPragmas: '^ IWYU pragma:' |
| 57 | #CompactNamespaces: false # Unknown to clang-format-4.0 |
| 58 | ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 59 | ConstructorInitializerIndentWidth: 8 |
| 60 | ContinuationIndentWidth: 8 |
| 61 | Cpp11BracedListStyle: false |
| 62 | DerivePointerAlignment: false |
| 63 | DisableFormat: false |
| 64 | ExperimentalAutoDetectBinPacking: false |
| 65 | #FixNamespaceComments: false # Unknown to clang-format-4.0 |
| 66 | |
| 67 | # Taken from: |
| 68 | # git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*(' include/ \ |
| 69 | # | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$, - '\1'," \ |
| 70 | # | sort | uniq |
| 71 | ForEachMacros: |
| 72 | - 'apei_estatus_for_each_section' |
| 73 | - 'ata_for_each_dev' |
| 74 | - 'ata_for_each_link' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 75 | - '__ata_qc_for_each' |
| 76 | - 'ata_qc_for_each' |
| 77 | - 'ata_qc_for_each_raw' |
| 78 | - 'ata_qc_for_each_with_internal' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 79 | - 'ax25_for_each' |
| 80 | - 'ax25_uid_for_each' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 81 | - '__bio_for_each_bvec' |
| 82 | - 'bio_for_each_bvec' |
Omar Sandoval | 1072c12d | 2020-04-16 14:46:11 -0700 | [diff] [blame] | 83 | - 'bio_for_each_bvec_all' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 84 | - 'bio_for_each_integrity_vec' |
| 85 | - '__bio_for_each_segment' |
| 86 | - 'bio_for_each_segment' |
| 87 | - 'bio_for_each_segment_all' |
| 88 | - 'bio_list_for_each' |
| 89 | - 'bip_for_each_vec' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 90 | - 'bitmap_for_each_clear_region' |
| 91 | - 'bitmap_for_each_set_region' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 92 | - 'blkg_for_each_descendant_post' |
| 93 | - 'blkg_for_each_descendant_pre' |
| 94 | - 'blk_queue_for_each_rl' |
| 95 | - 'bond_for_each_slave' |
| 96 | - 'bond_for_each_slave_rcu' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 97 | - 'bpf_for_each_spilled_reg' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 98 | - 'btree_for_each_safe128' |
| 99 | - 'btree_for_each_safe32' |
| 100 | - 'btree_for_each_safe64' |
| 101 | - 'btree_for_each_safel' |
| 102 | - 'card_for_each_dev' |
| 103 | - 'cgroup_taskset_for_each' |
| 104 | - 'cgroup_taskset_for_each_leader' |
| 105 | - 'cpufreq_for_each_entry' |
| 106 | - 'cpufreq_for_each_entry_idx' |
| 107 | - 'cpufreq_for_each_valid_entry' |
| 108 | - 'cpufreq_for_each_valid_entry_idx' |
| 109 | - 'css_for_each_child' |
| 110 | - 'css_for_each_descendant_post' |
| 111 | - 'css_for_each_descendant_pre' |
| 112 | - 'device_for_each_child_node' |
Miguel Ojeda | 4792f9dd | 2021-05-12 23:32:39 +0200 | [diff] [blame] | 113 | - 'displayid_iter_for_each' |
Miguel Ojeda | 52d0834 | 2019-08-31 10:00:11 +0200 | [diff] [blame] | 114 | - 'dma_fence_chain_for_each' |
Miguel Ojeda | 4e4bb89 | 2020-09-01 12:53:42 +0200 | [diff] [blame] | 115 | - 'do_for_each_ftrace_op' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 116 | - 'drm_atomic_crtc_for_each_plane' |
| 117 | - 'drm_atomic_crtc_state_for_each_plane' |
| 118 | - 'drm_atomic_crtc_state_for_each_plane_state' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 119 | - 'drm_atomic_for_each_plane_damage' |
Miguel Ojeda | 52d0834 | 2019-08-31 10:00:11 +0200 | [diff] [blame] | 120 | - 'drm_client_for_each_connector_iter' |
| 121 | - 'drm_client_for_each_modeset' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 122 | - 'drm_connector_for_each_possible_encoder' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 123 | - 'drm_for_each_bridge_in_chain' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 124 | - 'drm_for_each_connector_iter' |
| 125 | - 'drm_for_each_crtc' |
Miguel Ojeda | 1074f8e | 2021-01-29 15:00:23 +0100 | [diff] [blame] | 126 | - 'drm_for_each_crtc_reverse' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 127 | - 'drm_for_each_encoder' |
| 128 | - 'drm_for_each_encoder_mask' |
| 129 | - 'drm_for_each_fb' |
| 130 | - 'drm_for_each_legacy_plane' |
| 131 | - 'drm_for_each_plane' |
| 132 | - 'drm_for_each_plane_mask' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 133 | - 'drm_for_each_privobj' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 134 | - 'drm_mm_for_each_hole' |
| 135 | - 'drm_mm_for_each_node' |
| 136 | - 'drm_mm_for_each_node_in_range' |
| 137 | - 'drm_mm_for_each_node_safe' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 138 | - 'flow_action_for_each' |
Miguel Ojeda | 4792f9dd | 2021-05-12 23:32:39 +0200 | [diff] [blame] | 139 | - 'for_each_acpi_dev_match' |
Miguel Ojeda | 52d0834 | 2019-08-31 10:00:11 +0200 | [diff] [blame] | 140 | - 'for_each_active_dev_scope' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 141 | - 'for_each_active_drhd_unit' |
| 142 | - 'for_each_active_iommu' |
Miguel Ojeda | 4e4bb89 | 2020-09-01 12:53:42 +0200 | [diff] [blame] | 143 | - 'for_each_aggr_pgid' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 144 | - 'for_each_available_child_of_node' |
| 145 | - 'for_each_bio' |
| 146 | - 'for_each_board_func_rsrc' |
| 147 | - 'for_each_bvec' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 148 | - 'for_each_card_auxs' |
| 149 | - 'for_each_card_auxs_safe' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 150 | - 'for_each_card_components' |
Miguel Ojeda | 5d65a02 | 2020-04-18 13:49:33 +0200 | [diff] [blame] | 151 | - 'for_each_card_dapms' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 152 | - 'for_each_card_pre_auxs' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 153 | - 'for_each_card_prelinks' |
| 154 | - 'for_each_card_rtds' |
| 155 | - 'for_each_card_rtds_safe' |
Miguel Ojeda | 5d65a02 | 2020-04-18 13:49:33 +0200 | [diff] [blame] | 156 | - 'for_each_card_widgets' |
| 157 | - 'for_each_card_widgets_safe' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 158 | - 'for_each_cgroup_storage_type' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 159 | - 'for_each_child_of_node' |
| 160 | - 'for_each_clear_bit' |
| 161 | - 'for_each_clear_bit_from' |
| 162 | - 'for_each_cmsghdr' |
| 163 | - 'for_each_compatible_node' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 164 | - 'for_each_component_dais' |
| 165 | - 'for_each_component_dais_safe' |
| 166 | - 'for_each_comp_order' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 167 | - 'for_each_console' |
| 168 | - 'for_each_cpu' |
| 169 | - 'for_each_cpu_and' |
| 170 | - 'for_each_cpu_not' |
| 171 | - 'for_each_cpu_wrap' |
Miguel Ojeda | 5d65a02 | 2020-04-18 13:49:33 +0200 | [diff] [blame] | 172 | - 'for_each_dapm_widgets' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 173 | - 'for_each_dev_addr' |
Miguel Ojeda | 52d0834 | 2019-08-31 10:00:11 +0200 | [diff] [blame] | 174 | - 'for_each_dev_scope' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 175 | - 'for_each_dma_cap_mask' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 176 | - 'for_each_dpcm_be' |
| 177 | - 'for_each_dpcm_be_rollback' |
| 178 | - 'for_each_dpcm_be_safe' |
| 179 | - 'for_each_dpcm_fe' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 180 | - 'for_each_drhd_unit' |
| 181 | - 'for_each_dss_dev' |
Miguel Ojeda | 4792f9dd | 2021-05-12 23:32:39 +0200 | [diff] [blame] | 182 | - 'for_each_dtpm_table' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 183 | - 'for_each_efi_memory_desc' |
| 184 | - 'for_each_efi_memory_desc_in_map' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 185 | - 'for_each_element' |
| 186 | - 'for_each_element_extid' |
| 187 | - 'for_each_element_id' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 188 | - 'for_each_endpoint_of_node' |
| 189 | - 'for_each_evictable_lru' |
| 190 | - 'for_each_fib6_node_rt_rcu' |
| 191 | - 'for_each_fib6_walker_rt' |
Miguel Ojeda | 52d0834 | 2019-08-31 10:00:11 +0200 | [diff] [blame] | 192 | - 'for_each_free_mem_pfn_range_in_zone' |
| 193 | - 'for_each_free_mem_pfn_range_in_zone_from' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 194 | - 'for_each_free_mem_range' |
| 195 | - 'for_each_free_mem_range_reverse' |
| 196 | - 'for_each_func_rsrc' |
| 197 | - 'for_each_hstate' |
| 198 | - 'for_each_if' |
| 199 | - 'for_each_iommu' |
| 200 | - 'for_each_ip_tunnel_rcu' |
| 201 | - 'for_each_irq_nr' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 202 | - 'for_each_link_codecs' |
Miguel Ojeda | 5d65a02 | 2020-04-18 13:49:33 +0200 | [diff] [blame] | 203 | - 'for_each_link_cpus' |
Miguel Ojeda | 52d0834 | 2019-08-31 10:00:11 +0200 | [diff] [blame] | 204 | - 'for_each_link_platforms' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 205 | - 'for_each_lru' |
| 206 | - 'for_each_matching_node' |
| 207 | - 'for_each_matching_node_and_match' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 208 | - 'for_each_member' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 209 | - 'for_each_memcg_cache_index' |
| 210 | - 'for_each_mem_pfn_range' |
Mike Rapoport | 6e245ad | 2020-10-13 16:57:59 -0700 | [diff] [blame] | 211 | - '__for_each_mem_range' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 212 | - 'for_each_mem_range' |
Mike Rapoport | 6e245ad | 2020-10-13 16:57:59 -0700 | [diff] [blame] | 213 | - '__for_each_mem_range_rev' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 214 | - 'for_each_mem_range_rev' |
Miguel Ojeda | 1074f8e | 2021-01-29 15:00:23 +0100 | [diff] [blame] | 215 | - 'for_each_mem_region' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 216 | - 'for_each_migratetype_order' |
| 217 | - 'for_each_msi_entry' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 218 | - 'for_each_msi_entry_safe' |
Miguel Ojeda | 4792f9dd | 2021-05-12 23:32:39 +0200 | [diff] [blame] | 219 | - 'for_each_msi_vector' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 220 | - 'for_each_net' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 221 | - 'for_each_net_continue_reverse' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 222 | - 'for_each_netdev' |
| 223 | - 'for_each_netdev_continue' |
| 224 | - 'for_each_netdev_continue_rcu' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 225 | - 'for_each_netdev_continue_reverse' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 226 | - 'for_each_netdev_feature' |
| 227 | - 'for_each_netdev_in_bond_rcu' |
| 228 | - 'for_each_netdev_rcu' |
| 229 | - 'for_each_netdev_reverse' |
| 230 | - 'for_each_netdev_safe' |
| 231 | - 'for_each_net_rcu' |
| 232 | - 'for_each_new_connector_in_state' |
| 233 | - 'for_each_new_crtc_in_state' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 234 | - 'for_each_new_mst_mgr_in_state' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 235 | - 'for_each_new_plane_in_state' |
| 236 | - 'for_each_new_private_obj_in_state' |
| 237 | - 'for_each_node' |
| 238 | - 'for_each_node_by_name' |
| 239 | - 'for_each_node_by_type' |
| 240 | - 'for_each_node_mask' |
| 241 | - 'for_each_node_state' |
| 242 | - 'for_each_node_with_cpus' |
| 243 | - 'for_each_node_with_property' |
Miguel Ojeda | 4e4bb89 | 2020-09-01 12:53:42 +0200 | [diff] [blame] | 244 | - 'for_each_nonreserved_multicast_dest_pgid' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 245 | - 'for_each_of_allnodes' |
| 246 | - 'for_each_of_allnodes_from' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 247 | - 'for_each_of_cpu_node' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 248 | - 'for_each_of_pci_range' |
| 249 | - 'for_each_old_connector_in_state' |
| 250 | - 'for_each_old_crtc_in_state' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 251 | - 'for_each_old_mst_mgr_in_state' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 252 | - 'for_each_oldnew_connector_in_state' |
| 253 | - 'for_each_oldnew_crtc_in_state' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 254 | - 'for_each_oldnew_mst_mgr_in_state' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 255 | - 'for_each_oldnew_plane_in_state' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 256 | - 'for_each_oldnew_plane_in_state_reverse' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 257 | - 'for_each_oldnew_private_obj_in_state' |
| 258 | - 'for_each_old_plane_in_state' |
| 259 | - 'for_each_old_private_obj_in_state' |
| 260 | - 'for_each_online_cpu' |
| 261 | - 'for_each_online_node' |
| 262 | - 'for_each_online_pgdat' |
| 263 | - 'for_each_pci_bridge' |
| 264 | - 'for_each_pci_dev' |
| 265 | - 'for_each_pci_msi_entry' |
Miguel Ojeda | 5d65a02 | 2020-04-18 13:49:33 +0200 | [diff] [blame] | 266 | - 'for_each_pcm_streams' |
Miguel Ojeda | 4e4bb89 | 2020-09-01 12:53:42 +0200 | [diff] [blame] | 267 | - 'for_each_physmem_range' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 268 | - 'for_each_populated_zone' |
| 269 | - 'for_each_possible_cpu' |
| 270 | - 'for_each_present_cpu' |
| 271 | - 'for_each_prime_number' |
| 272 | - 'for_each_prime_number_from' |
| 273 | - 'for_each_process' |
| 274 | - 'for_each_process_thread' |
Miguel Ojeda | 4792f9dd | 2021-05-12 23:32:39 +0200 | [diff] [blame] | 275 | - 'for_each_prop_codec_conf' |
| 276 | - 'for_each_prop_dai_codec' |
| 277 | - 'for_each_prop_dai_cpu' |
| 278 | - 'for_each_prop_dlc_codecs' |
| 279 | - 'for_each_prop_dlc_cpus' |
| 280 | - 'for_each_prop_dlc_platforms' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 281 | - 'for_each_property_of_node' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 282 | - 'for_each_registered_fb' |
Miguel Ojeda | 4e4bb89 | 2020-09-01 12:53:42 +0200 | [diff] [blame] | 283 | - 'for_each_requested_gpio' |
| 284 | - 'for_each_requested_gpio_in_range' |
Mike Rapoport | 9f3d5ea | 2020-10-13 16:58:25 -0700 | [diff] [blame] | 285 | - 'for_each_reserved_mem_range' |
Mike Rapoport | cc6de16 | 2020-10-13 16:58:30 -0700 | [diff] [blame] | 286 | - 'for_each_reserved_mem_region' |
Miguel Ojeda | 5d65a02 | 2020-04-18 13:49:33 +0200 | [diff] [blame] | 287 | - 'for_each_rtd_codec_dais' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 288 | - 'for_each_rtd_components' |
Miguel Ojeda | 5d65a02 | 2020-04-18 13:49:33 +0200 | [diff] [blame] | 289 | - 'for_each_rtd_cpu_dais' |
Miguel Ojeda | 5d65a02 | 2020-04-18 13:49:33 +0200 | [diff] [blame] | 290 | - 'for_each_rtd_dais' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 291 | - 'for_each_set_bit' |
| 292 | - 'for_each_set_bit_from' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 293 | - 'for_each_set_clump8' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 294 | - 'for_each_sg' |
Jason Gunthorpe | d901b27 | 2019-01-04 11:40:21 -0700 | [diff] [blame] | 295 | - 'for_each_sg_dma_page' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 296 | - 'for_each_sg_page' |
Miguel Ojeda | 4e4bb89 | 2020-09-01 12:53:42 +0200 | [diff] [blame] | 297 | - 'for_each_sgtable_dma_page' |
| 298 | - 'for_each_sgtable_dma_sg' |
| 299 | - 'for_each_sgtable_page' |
| 300 | - 'for_each_sgtable_sg' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 301 | - 'for_each_sibling_event' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 302 | - 'for_each_subelement' |
| 303 | - 'for_each_subelement_extid' |
| 304 | - 'for_each_subelement_id' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 305 | - '__for_each_thread' |
| 306 | - 'for_each_thread' |
Miguel Ojeda | 4e4bb89 | 2020-09-01 12:53:42 +0200 | [diff] [blame] | 307 | - 'for_each_unicast_dest_pgid' |
Miguel Ojeda | 1074f8e | 2021-01-29 15:00:23 +0100 | [diff] [blame] | 308 | - 'for_each_vsi' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 309 | - 'for_each_wakeup_source' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 310 | - 'for_each_zone' |
| 311 | - 'for_each_zone_zonelist' |
| 312 | - 'for_each_zone_zonelist_nodemask' |
| 313 | - 'fwnode_for_each_available_child_node' |
| 314 | - 'fwnode_for_each_child_node' |
| 315 | - 'fwnode_graph_for_each_endpoint' |
| 316 | - 'gadget_for_each_ep' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 317 | - 'genradix_for_each' |
| 318 | - 'genradix_for_each_from' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 319 | - 'hash_for_each' |
| 320 | - 'hash_for_each_possible' |
| 321 | - 'hash_for_each_possible_rcu' |
| 322 | - 'hash_for_each_possible_rcu_notrace' |
| 323 | - 'hash_for_each_possible_safe' |
| 324 | - 'hash_for_each_rcu' |
| 325 | - 'hash_for_each_safe' |
| 326 | - 'hctx_for_each_ctx' |
| 327 | - 'hlist_bl_for_each_entry' |
| 328 | - 'hlist_bl_for_each_entry_rcu' |
| 329 | - 'hlist_bl_for_each_entry_safe' |
| 330 | - 'hlist_for_each' |
| 331 | - 'hlist_for_each_entry' |
| 332 | - 'hlist_for_each_entry_continue' |
| 333 | - 'hlist_for_each_entry_continue_rcu' |
| 334 | - 'hlist_for_each_entry_continue_rcu_bh' |
| 335 | - 'hlist_for_each_entry_from' |
| 336 | - 'hlist_for_each_entry_from_rcu' |
| 337 | - 'hlist_for_each_entry_rcu' |
| 338 | - 'hlist_for_each_entry_rcu_bh' |
| 339 | - 'hlist_for_each_entry_rcu_notrace' |
| 340 | - 'hlist_for_each_entry_safe' |
Miguel Ojeda | 1074f8e | 2021-01-29 15:00:23 +0100 | [diff] [blame] | 341 | - 'hlist_for_each_entry_srcu' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 342 | - '__hlist_for_each_rcu' |
| 343 | - 'hlist_for_each_safe' |
| 344 | - 'hlist_nulls_for_each_entry' |
| 345 | - 'hlist_nulls_for_each_entry_from' |
| 346 | - 'hlist_nulls_for_each_entry_rcu' |
| 347 | - 'hlist_nulls_for_each_entry_safe' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 348 | - 'i3c_bus_for_each_i2cdev' |
| 349 | - 'i3c_bus_for_each_i3cdev' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 350 | - 'ide_host_for_each_port' |
| 351 | - 'ide_port_for_each_dev' |
| 352 | - 'ide_port_for_each_present_dev' |
| 353 | - 'idr_for_each_entry' |
| 354 | - 'idr_for_each_entry_continue' |
Miguel Ojeda | 52d0834 | 2019-08-31 10:00:11 +0200 | [diff] [blame] | 355 | - 'idr_for_each_entry_continue_ul' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 356 | - 'idr_for_each_entry_ul' |
Miguel Ojeda | 52d0834 | 2019-08-31 10:00:11 +0200 | [diff] [blame] | 357 | - 'in_dev_for_each_ifa_rcu' |
| 358 | - 'in_dev_for_each_ifa_rtnl' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 359 | - 'inet_bind_bucket_for_each' |
| 360 | - 'inet_lhash2_for_each_icsk_rcu' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 361 | - 'key_for_each' |
| 362 | - 'key_for_each_safe' |
| 363 | - 'klp_for_each_func' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 364 | - 'klp_for_each_func_safe' |
| 365 | - 'klp_for_each_func_static' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 366 | - 'klp_for_each_object' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 367 | - 'klp_for_each_object_safe' |
| 368 | - 'klp_for_each_object_static' |
Miguel Ojeda | 5d65a02 | 2020-04-18 13:49:33 +0200 | [diff] [blame] | 369 | - 'kunit_suite_for_each_test_case' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 370 | - 'kvm_for_each_memslot' |
| 371 | - 'kvm_for_each_vcpu' |
| 372 | - 'list_for_each' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 373 | - 'list_for_each_codec' |
| 374 | - 'list_for_each_codec_safe' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 375 | - 'list_for_each_continue' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 376 | - 'list_for_each_entry' |
| 377 | - 'list_for_each_entry_continue' |
| 378 | - 'list_for_each_entry_continue_rcu' |
| 379 | - 'list_for_each_entry_continue_reverse' |
| 380 | - 'list_for_each_entry_from' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 381 | - 'list_for_each_entry_from_rcu' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 382 | - 'list_for_each_entry_from_reverse' |
| 383 | - 'list_for_each_entry_lockless' |
| 384 | - 'list_for_each_entry_rcu' |
| 385 | - 'list_for_each_entry_reverse' |
| 386 | - 'list_for_each_entry_safe' |
| 387 | - 'list_for_each_entry_safe_continue' |
| 388 | - 'list_for_each_entry_safe_from' |
| 389 | - 'list_for_each_entry_safe_reverse' |
Miguel Ojeda | 1074f8e | 2021-01-29 15:00:23 +0100 | [diff] [blame] | 390 | - 'list_for_each_entry_srcu' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 391 | - 'list_for_each_prev' |
| 392 | - 'list_for_each_prev_safe' |
| 393 | - 'list_for_each_safe' |
| 394 | - 'llist_for_each' |
| 395 | - 'llist_for_each_entry' |
| 396 | - 'llist_for_each_entry_safe' |
| 397 | - 'llist_for_each_safe' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 398 | - 'mci_for_each_dimm' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 399 | - 'media_device_for_each_entity' |
| 400 | - 'media_device_for_each_intf' |
| 401 | - 'media_device_for_each_link' |
| 402 | - 'media_device_for_each_pad' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 403 | - 'nanddev_io_for_each_page' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 404 | - 'netdev_for_each_lower_dev' |
| 405 | - 'netdev_for_each_lower_private' |
| 406 | - 'netdev_for_each_lower_private_rcu' |
| 407 | - 'netdev_for_each_mc_addr' |
| 408 | - 'netdev_for_each_uc_addr' |
| 409 | - 'netdev_for_each_upper_dev_rcu' |
| 410 | - 'netdev_hw_addr_list_for_each' |
| 411 | - 'nft_rule_for_each_expr' |
| 412 | - 'nla_for_each_attr' |
| 413 | - 'nla_for_each_nested' |
| 414 | - 'nlmsg_for_each_attr' |
| 415 | - 'nlmsg_for_each_msg' |
| 416 | - 'nr_neigh_for_each' |
| 417 | - 'nr_neigh_for_each_safe' |
| 418 | - 'nr_node_for_each' |
| 419 | - 'nr_node_for_each_safe' |
| 420 | - 'of_for_each_phandle' |
| 421 | - 'of_property_for_each_string' |
| 422 | - 'of_property_for_each_u32' |
| 423 | - 'pci_bus_for_each_resource' |
Miguel Ojeda | 1074f8e | 2021-01-29 15:00:23 +0100 | [diff] [blame] | 424 | - 'pcl_for_each_chunk' |
| 425 | - 'pcl_for_each_segment' |
Miguel Ojeda | 5d65a02 | 2020-04-18 13:49:33 +0200 | [diff] [blame] | 426 | - 'pcm_for_each_format' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 427 | - 'ping_portaddr_for_each_entry' |
| 428 | - 'plist_for_each' |
| 429 | - 'plist_for_each_continue' |
| 430 | - 'plist_for_each_entry' |
| 431 | - 'plist_for_each_entry_continue' |
| 432 | - 'plist_for_each_entry_safe' |
| 433 | - 'plist_for_each_safe' |
| 434 | - 'pnp_for_each_card' |
| 435 | - 'pnp_for_each_dev' |
| 436 | - 'protocol_for_each_card' |
| 437 | - 'protocol_for_each_dev' |
| 438 | - 'queue_for_each_hw_ctx' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 439 | - 'radix_tree_for_each_slot' |
| 440 | - 'radix_tree_for_each_tagged' |
Miguel Ojeda | 4792f9dd | 2021-05-12 23:32:39 +0200 | [diff] [blame] | 441 | - 'rb_for_each' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 442 | - 'rbtree_postorder_for_each_entry_safe' |
Miguel Ojeda | 52d0834 | 2019-08-31 10:00:11 +0200 | [diff] [blame] | 443 | - 'rdma_for_each_block' |
Jason Gunthorpe | ea1075e | 2019-02-12 21:12:47 -0700 | [diff] [blame] | 444 | - 'rdma_for_each_port' |
Jason Gunthorpe | ebc2409 | 2020-09-04 19:41:45 -0300 | [diff] [blame] | 445 | - 'rdma_umem_for_each_dma_block' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 446 | - 'resource_list_for_each_entry' |
| 447 | - 'resource_list_for_each_entry_safe' |
| 448 | - 'rhl_for_each_entry_rcu' |
| 449 | - 'rhl_for_each_rcu' |
| 450 | - 'rht_for_each' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 451 | - 'rht_for_each_entry' |
NeilBrown | f7ad68b | 2019-03-21 14:42:40 +1100 | [diff] [blame] | 452 | - 'rht_for_each_entry_from' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 453 | - 'rht_for_each_entry_rcu' |
NeilBrown | f7ad68b | 2019-03-21 14:42:40 +1100 | [diff] [blame] | 454 | - 'rht_for_each_entry_rcu_from' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 455 | - 'rht_for_each_entry_safe' |
Miguel Ojeda | 52d0834 | 2019-08-31 10:00:11 +0200 | [diff] [blame] | 456 | - 'rht_for_each_from' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 457 | - 'rht_for_each_rcu' |
NeilBrown | f7ad68b | 2019-03-21 14:42:40 +1100 | [diff] [blame] | 458 | - 'rht_for_each_rcu_from' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 459 | - '__rq_for_each_bio' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 460 | - 'rq_for_each_bvec' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 461 | - 'rq_for_each_segment' |
| 462 | - 'scsi_for_each_prot_sg' |
| 463 | - 'scsi_for_each_sg' |
| 464 | - 'sctp_for_each_hentry' |
| 465 | - 'sctp_skb_for_each' |
| 466 | - 'shdma_for_each_chan' |
| 467 | - '__shost_for_each_device' |
| 468 | - 'shost_for_each_device' |
| 469 | - 'sk_for_each' |
| 470 | - 'sk_for_each_bound' |
| 471 | - 'sk_for_each_entry_offset_rcu' |
| 472 | - 'sk_for_each_from' |
| 473 | - 'sk_for_each_rcu' |
| 474 | - 'sk_for_each_safe' |
| 475 | - 'sk_nulls_for_each' |
| 476 | - 'sk_nulls_for_each_from' |
| 477 | - 'sk_nulls_for_each_rcu' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 478 | - 'snd_array_for_each' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 479 | - 'snd_pcm_group_for_each_entry' |
| 480 | - 'snd_soc_dapm_widget_for_each_path' |
| 481 | - 'snd_soc_dapm_widget_for_each_path_safe' |
| 482 | - 'snd_soc_dapm_widget_for_each_sink_path' |
| 483 | - 'snd_soc_dapm_widget_for_each_source_path' |
| 484 | - 'tb_property_for_each' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 485 | - 'tcf_exts_for_each_action' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 486 | - 'udp_portaddr_for_each_entry' |
| 487 | - 'udp_portaddr_for_each_entry_rcu' |
| 488 | - 'usb_hub_for_each_child' |
| 489 | - 'v4l2_device_for_each_subdev' |
| 490 | - 'v4l2_m2m_for_each_dst_buf' |
| 491 | - 'v4l2_m2m_for_each_dst_buf_safe' |
| 492 | - 'v4l2_m2m_for_each_src_buf' |
| 493 | - 'v4l2_m2m_for_each_src_buf_safe' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 494 | - 'virtio_device_for_each_vq' |
Miguel Ojeda | 4e4bb89 | 2020-09-01 12:53:42 +0200 | [diff] [blame] | 495 | - 'while_for_each_ftrace_op' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 496 | - 'xa_for_each' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 497 | - 'xa_for_each_marked' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 498 | - 'xa_for_each_range' |
Miguel Ojeda | f16628d | 2019-03-30 09:20:16 +0100 | [diff] [blame] | 499 | - 'xa_for_each_start' |
Jason Gunthorpe | 99e309b | 2019-01-18 22:57:04 +0000 | [diff] [blame] | 500 | - 'xas_for_each' |
| 501 | - 'xas_for_each_conflict' |
| 502 | - 'xas_for_each_marked' |
Miguel Ojeda | 11a4a8f | 2020-03-06 21:50:00 +0100 | [diff] [blame] | 503 | - 'xbc_array_for_each_value' |
| 504 | - 'xbc_for_each_key_value' |
| 505 | - 'xbc_node_for_each_array_value' |
| 506 | - 'xbc_node_for_each_child' |
| 507 | - 'xbc_node_for_each_key_value' |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 508 | - 'zorro_for_each_dev' |
| 509 | |
| 510 | #IncludeBlocks: Preserve # Unknown to clang-format-5.0 |
| 511 | IncludeCategories: |
| 512 | - Regex: '.*' |
| 513 | Priority: 1 |
| 514 | IncludeIsMainRegex: '(Test)?$' |
| 515 | IndentCaseLabels: false |
| 516 | #IndentPPDirectives: None # Unknown to clang-format-5.0 |
| 517 | IndentWidth: 8 |
Jason Gunthorpe | 7bee9bd | 2018-06-25 16:44:30 -0600 | [diff] [blame] | 518 | IndentWrappedFunctionNames: false |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 519 | JavaScriptQuotes: Leave |
| 520 | JavaScriptWrapImports: true |
| 521 | KeepEmptyLinesAtTheStartOfBlocks: false |
| 522 | MacroBlockBegin: '' |
| 523 | MacroBlockEnd: '' |
| 524 | MaxEmptyLinesToKeep: 1 |
Ian Rogers | c90f3b8 | 2020-04-08 17:13:52 -0700 | [diff] [blame] | 525 | NamespaceIndentation: None |
Miguel Ojeda | d4ef8d3 | 2018-04-10 16:32:40 -0700 | [diff] [blame] | 526 | #ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0 |
| 527 | ObjCBlockIndentWidth: 8 |
| 528 | ObjCSpaceAfterProperty: true |
| 529 | ObjCSpaceBeforeProtocolList: true |
| 530 | |
| 531 | # Taken from git's rules |
| 532 | #PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0 |
| 533 | PenaltyBreakBeforeFirstCallParameter: 30 |
| 534 | PenaltyBreakComment: 10 |
| 535 | PenaltyBreakFirstLessLess: 0 |
| 536 | PenaltyBreakString: 10 |
| 537 | PenaltyExcessCharacter: 100 |
| 538 | PenaltyReturnTypeOnItsOwnLine: 60 |
| 539 | |
| 540 | PointerAlignment: Right |
| 541 | ReflowComments: false |
| 542 | SortIncludes: false |
| 543 | #SortUsingDeclarations: false # Unknown to clang-format-4.0 |
| 544 | SpaceAfterCStyleCast: false |
| 545 | SpaceAfterTemplateKeyword: true |
| 546 | SpaceBeforeAssignmentOperators: true |
| 547 | #SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0 |
| 548 | #SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0 |
| 549 | SpaceBeforeParens: ControlStatements |
| 550 | #SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0 |
| 551 | SpaceInEmptyParentheses: false |
| 552 | SpacesBeforeTrailingComments: 1 |
| 553 | SpacesInAngles: false |
| 554 | SpacesInContainerLiterals: false |
| 555 | SpacesInCStyleCastParentheses: false |
| 556 | SpacesInParentheses: false |
| 557 | SpacesInSquareBrackets: false |
| 558 | Standard: Cpp03 |
| 559 | TabWidth: 8 |
| 560 | UseTab: Always |
| 561 | ... |