# Re: \[PATCH v2 25/63\] compiler\_types.h: Remove \_\_compiletime\_object\_size()

- From: Miguel Ojeda \<hidden\>
- Date: 2021-08-18 13:02:34 
- List: linux-wireless
- Page: https://ratatoskr.run/linux-wireless/2021/08/1481683
- Thread: https://ratatoskr.run/linux-wireless/2021/08/1481188/t.md

```text
On Wed, Aug 18, 2021 at 8:14 AM Kees Cook [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
```
