[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f5bee21a-6527-d9e2-34a8-a4d930ba85a4@digikod.net>
Date: Tue, 12 Apr 2022 19:02:01 +0200
From: Mickaël Salaün <mic@...ikod.net>
To: Tom Rix <trix@...hat.com>, Miguel Ojeda <ojeda@...nel.org>
Cc: Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
bpf@...r.kernel.org, linux-kernel@...r.kernel.org,
llvm@...ts.linux.dev
Subject: Re: [PATCH v1] clang-format: Update and extend the for_each list with
tools/
On 12/04/2022 18:51, Tom Rix wrote:
>
> On 4/12/22 8:39 AM, Mickaël Salaün wrote:
>> Add tools/ to the shell fragment generating the for_each list and update
>> it. This is useful to format files in the tools directory (e.g.
>> selftests) with the same coding style as the kernel.
>>
>> Cc: Miguel Ojeda <ojeda@...nel.org>
>> Signed-off-by: Mickaël Salaün <mic@...ikod.net>
>> Link: https://lore.kernel.org/r/20220412153906.428179-1-mic@digikod.net
>> ---
>> .clang-format | 177 ++++++++++++++++++++++++++++++++++++++++++--------
>> 1 file changed, 149 insertions(+), 28 deletions(-)
>>
>> diff --git a/.clang-format b/.clang-format
>> index fa959436bcfd..70d4e7ec4cf9 100644
>> --- a/.clang-format
>> +++ b/.clang-format
>> @@ -65,36 +65,53 @@ ExperimentalAutoDetectBinPacking: false
>> #FixNamespaceComments: false # Unknown to clang-format-4.0
>> # Taken from:
>> -# git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*('
>> include/ \
>> +# git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*('
>> include/ tools/ \
>> # | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$, -
>> '\1'," \
>> # | sort | uniq
>> ForEachMacros:
>> + - '__ata_qc_for_each'
>> + - '__bio_for_each_bvec'
>> + - '__bio_for_each_segment'
>> + - '__evlist__for_each_entry'
>> + - '__evlist__for_each_entry_continue'
>> + - '__evlist__for_each_entry_from'
>> + - '__evlist__for_each_entry_reverse'
>> + - '__evlist__for_each_entry_safe'
>> + - '__for_each_mem_range'
>> + - '__for_each_mem_range_rev'
>> + - '__for_each_thread'
>> + - '__hlist_for_each_rcu'
>> + - '__map__for_each_symbol_by_name'
>> + - '__perf_evlist__for_each_entry'
>> + - '__perf_evlist__for_each_entry_reverse'
>> + - '__perf_evlist__for_each_entry_safe'
>> + - '__rq_for_each_bio'
>> + - '__shost_for_each_device'
>> - 'apei_estatus_for_each_section'
>> - 'ata_for_each_dev'
>> - 'ata_for_each_link'
>> - - '__ata_qc_for_each'
>
> Several macros were removed.
>
> Is this intentional ?
It is an update for v5.18-rc2 so in includes some other changes. I can
send a v2 with only the tools/ update if it ease the update.
Powered by blists - more mailing lists