Re: [PATCH 04/31] stddef: Avoid warning with clang with offsetof()

2022-01-13 Thread Simon Glass
Hi Tom, On Thu, 13 Jan 2022 at 06:41, Tom Rini wrote: > > On Thu, Jan 13, 2022 at 06:37:27AM -0700, Simon Glass wrote: > > Hi Tom, Rasmus, > > > > On Thu, 13 Jan 2022 at 06:07, Tom Rini wrote: > > > > > > On Thu, Jan 13, 2022 at 09:08:13AM +0100, Rasmus Villemoes wrote: > > > > On 01/11/2021

Re: [PATCH 04/31] stddef: Avoid warning with clang with offsetof()

2022-01-13 Thread Tom Rini
On Thu, Jan 13, 2022 at 06:37:27AM -0700, Simon Glass wrote: > Hi Tom, Rasmus, > > On Thu, 13 Jan 2022 at 06:07, Tom Rini wrote: > > > > On Thu, Jan 13, 2022 at 09:08:13AM +0100, Rasmus Villemoes wrote: > > > On 01/11/2021 02.17, Simon Glass wrote: > > > > Some bright sparks have decided that a

Re: [PATCH 04/31] stddef: Avoid warning with clang with offsetof()

2022-01-13 Thread Simon Glass
Hi Tom, Rasmus, On Thu, 13 Jan 2022 at 06:07, Tom Rini wrote: > > On Thu, Jan 13, 2022 at 09:08:13AM +0100, Rasmus Villemoes wrote: > > On 01/11/2021 02.17, Simon Glass wrote: > > > Some bright sparks have decided that a cast on a constant cannot be a > > > constant, so offsetof() produces this

Re: [PATCH 04/31] stddef: Avoid warning with clang with offsetof()

2022-01-13 Thread Tom Rini
On Thu, Jan 13, 2022 at 09:08:13AM +0100, Rasmus Villemoes wrote: > On 01/11/2021 02.17, Simon Glass wrote: > > Some bright sparks have decided that a cast on a constant cannot be a > > constant, so offsetof() produces this warning on clang-10: > > > > include/intel_gnvs.h:113:1: error:

Re: [PATCH 04/31] stddef: Avoid warning with clang with offsetof()

2022-01-13 Thread Rasmus Villemoes
On 01/11/2021 02.17, Simon Glass wrote: > Some bright sparks have decided that a cast on a constant cannot be a > constant, so offsetof() produces this warning on clang-10: > > include/intel_gnvs.h:113:1: error: static_assert expression is not an > integral constant expression >

[PATCH 04/31] stddef: Avoid warning with clang with offsetof()

2021-10-31 Thread Simon Glass
Some bright sparks have decided that a cast on a constant cannot be a constant, so offsetof() produces this warning on clang-10: include/intel_gnvs.h:113:1: error: static_assert expression is not an integral constant expression check_member(acpi_global_nvs, unused2,