Thread (108 messages) 108 messages, 22 authors, 2021-11-24

Re: [PATCH v2 25/63] compiler_types.h: Remove __compiletime_object_size()

From: Miguel Ojeda <hidden>
Date: 2021-08-18 13:02:34
Also in: dri-devel, linux-hardening, linux-kbuild, linux-staging, linux-wireless, lkml, netdev

On Wed, Aug 18, 2021 at 8:14 AM Kees Cook [off-list ref] 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@kernel.org>

Cheers,
Miguel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help