[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <17e81b06-7778-44f4-94cd-6a2b1fe5c7e0@gmail.com>
Date: Mon, 29 Jul 2024 23:39:02 +0200
From: Javier Carrasco <javier.carrasco.cruz@...il.com>
To: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
Cc: Miguel Ojeda <ojeda@...nel.org>, Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>, Bill Wendling
<morbo@...gle.com>, Justin Stitt <justinstitt@...gle.com>,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev
Subject: Re: [PATCH] clang-format: Update with v6.11-rc1's `for_each` macro
list
On 29/07/2024 22:14, Miguel Ojeda wrote:
> Hi Javier,
>
> On Mon, Jul 29, 2024 at 9:56 PM Javier Carrasco
> <javier.carrasco.cruz@...il.com> wrote:
>>
>> Note that commit 4792f9dd1293 ("clang-format: Update with the latest
>> for_each macro list") added the macro `displayid_iter_for_each`, which
>> is not part of include/ and tools/ (it is defined in
>> drivers/gpu/drm/drm_displayid_internal.h), and the shell fragment used
>> to update the list will drop it. In order to keep the macro on the list,
>> manual intervention will always be required.
>
> Thanks for the patch!
>
> That macro was inside `include/` back then, so now it should be
> removed from the list.
>
> Of course, if we want to include internal headers, that is also an
> option to be discussed, but we should be consistent either way.
>
> Cheers,
> Miguel
A quick test threw 326 extra macros that are defined in internal headers
under drivers/ and arch/. Including internal headers would remove the
need to update the list if a macro is moved from inlcude/ to an internal
header, but the list will need to be updated much more often.
Best regards,
Javier Carrasco
Powered by blists - more mailing lists