Skip to content

Commit 4312087

Browse files
committed
clang-format: Use POSIX locale for sort
This avoids differences when different people run the command, which is relevant for our use case, e.g.: $ LC_ALL=en_US.UTF-8 sort test ata_for_each_link __ata_qc_for_each ata_qc_for_each $ LC_ALL=C sort test __ata_qc_for_each ata_for_each_link ata_qc_for_each Link: https://lore.kernel.org/lkml/CANiq72=7=ZpAObWRmposOmnyZ8XR_eNHCBtA3bu3fusmcPUwDA@mail.gmail.com/ Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 8821789 commit 4312087

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

.clang-format

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,29 @@ ExperimentalAutoDetectBinPacking: false
6767
# Taken from:
6868
# git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*(' include/ \
6969
# | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$, - '\1'," \
70-
# | sort | uniq
70+
# | LC_ALL=C sort | uniq
7171
ForEachMacros:
72+
- '__ata_qc_for_each'
73+
- '__bio_for_each_bvec'
74+
- '__bio_for_each_segment'
75+
- '__for_each_mem_range'
76+
- '__for_each_mem_range_rev'
77+
- '__for_each_thread'
78+
- '__hlist_for_each_rcu'
79+
- '__rq_for_each_bio'
80+
- '__shost_for_each_device'
7281
- 'apei_estatus_for_each_section'
7382
- 'ata_for_each_dev'
7483
- 'ata_for_each_link'
75-
- '__ata_qc_for_each'
7684
- 'ata_qc_for_each'
7785
- 'ata_qc_for_each_raw'
7886
- 'ata_qc_for_each_with_internal'
7987
- 'ax25_for_each'
8088
- 'ax25_uid_for_each'
81-
- '__bio_for_each_bvec'
8289
- 'bio_for_each_bvec'
8390
- 'bio_for_each_bvec_all'
8491
- 'bio_for_each_folio_all'
8592
- 'bio_for_each_integrity_vec'
86-
- '__bio_for_each_segment'
8793
- 'bio_for_each_segment'
8894
- 'bio_for_each_segment_all'
8995
- 'bio_list_for_each'
@@ -176,10 +182,10 @@ ForEachMacros:
176182
- 'for_each_clear_bitrange'
177183
- 'for_each_clear_bitrange_from'
178184
- 'for_each_cmsghdr'
185+
- 'for_each_comp_order'
179186
- 'for_each_compatible_node'
180187
- 'for_each_component_dais'
181188
- 'for_each_component_dais_safe'
182-
- 'for_each_comp_order'
183189
- 'for_each_console'
184190
- 'for_each_cpu'
185191
- 'for_each_cpu_and'
@@ -220,16 +226,15 @@ ForEachMacros:
220226
- 'for_each_lru'
221227
- 'for_each_matching_node'
222228
- 'for_each_matching_node_and_match'
223-
- 'for_each_member'
224229
- 'for_each_mem_pfn_range'
225-
- '__for_each_mem_range'
226230
- 'for_each_mem_range'
227-
- '__for_each_mem_range_rev'
228231
- 'for_each_mem_range_rev'
229232
- 'for_each_mem_region'
233+
- 'for_each_member'
230234
- 'for_each_migratetype_order'
231235
- 'for_each_net'
232236
- 'for_each_net_continue_reverse'
237+
- 'for_each_net_rcu'
233238
- 'for_each_netdev'
234239
- 'for_each_netdev_continue'
235240
- 'for_each_netdev_continue_rcu'
@@ -239,7 +244,6 @@ ForEachMacros:
239244
- 'for_each_netdev_rcu'
240245
- 'for_each_netdev_reverse'
241246
- 'for_each_netdev_safe'
242-
- 'for_each_net_rcu'
243247
- 'for_each_new_connector_in_state'
244248
- 'for_each_new_crtc_in_state'
245249
- 'for_each_new_mst_mgr_in_state'
@@ -261,14 +265,14 @@ ForEachMacros:
261265
- 'for_each_old_connector_in_state'
262266
- 'for_each_old_crtc_in_state'
263267
- 'for_each_old_mst_mgr_in_state'
268+
- 'for_each_old_plane_in_state'
269+
- 'for_each_old_private_obj_in_state'
264270
- 'for_each_oldnew_connector_in_state'
265271
- 'for_each_oldnew_crtc_in_state'
266272
- 'for_each_oldnew_mst_mgr_in_state'
267273
- 'for_each_oldnew_plane_in_state'
268274
- 'for_each_oldnew_plane_in_state_reverse'
269275
- 'for_each_oldnew_private_obj_in_state'
270-
- 'for_each_old_plane_in_state'
271-
- 'for_each_old_private_obj_in_state'
272276
- 'for_each_online_cpu'
273277
- 'for_each_online_node'
274278
- 'for_each_online_pgdat'
@@ -315,7 +319,6 @@ ForEachMacros:
315319
- 'for_each_subelement'
316320
- 'for_each_subelement_extid'
317321
- 'for_each_subelement_id'
318-
- '__for_each_thread'
319322
- 'for_each_thread'
320323
- 'for_each_unicast_dest_pgid'
321324
- 'for_each_vsi'
@@ -352,7 +355,6 @@ ForEachMacros:
352355
- 'hlist_for_each_entry_rcu_notrace'
353356
- 'hlist_for_each_entry_safe'
354357
- 'hlist_for_each_entry_srcu'
355-
- '__hlist_for_each_rcu'
356358
- 'hlist_for_each_safe'
357359
- 'hlist_nulls_for_each_entry'
358360
- 'hlist_nulls_for_each_entry_from'
@@ -470,7 +472,6 @@ ForEachMacros:
470472
- 'rht_for_each_from'
471473
- 'rht_for_each_rcu'
472474
- 'rht_for_each_rcu_from'
473-
- '__rq_for_each_bio'
474475
- 'rq_for_each_bvec'
475476
- 'rq_for_each_segment'
476477
- 'rq_list_for_each'
@@ -480,7 +481,6 @@ ForEachMacros:
480481
- 'sctp_for_each_hentry'
481482
- 'sctp_skb_for_each'
482483
- 'shdma_for_each_chan'
483-
- '__shost_for_each_device'
484484
- 'shost_for_each_device'
485485
- 'sk_for_each'
486486
- 'sk_for_each_bound'

0 commit comments

Comments
 (0)