[PATCH v2 25/63] compiler_types.h: Remove __compiletime_object_size()
Miguel Ojeda
miguel.ojeda.sandonis at gmail.com
Wed Aug 18 13:02:17 UTC 2021
On Wed, Aug 18, 2021 at 8:14 AM Kees Cook <keescook at chromium.org> wrote:
>
> Since all compilers support __builtin_object_size(), and there is only
> one user of __compiletime_object_size, remove it to avoid the needless
> indirection. This lets Clang reason about check_copy_size() correctly.
Sounds good to me, the indirection is making things more complex than
they need to be.
Reviewed-by: Miguel Ojeda <ojeda at kernel.org>
Cheers,
Miguel
More information about the dri-devel
mailing list