-kernel@vger.kernel.org
Subject: RE: [PATCH v2] acpica: fix -Wnull-pointer-arithmetic warnings
> -Original Message-
> From: Qian Cai [mailto:c...@lca.pw]
> Sent: Thursday, August 1, 2019 12:16 PM
> To: Moore, Robert ; Wysocki, Rafael J
>
> Cc: Schmauss, Erik ; j...
@acpica.org; clang-built-li...@googlegroups.com; linux-
> ker...@vger.kernel.org
> Subject: Re: [PATCH v2] acpica: fix -Wnull-pointer-arithmetic warnings
>
> On Fri, 2019-07-26 at 19:35 +, Moore, Robert wrote:
> > We've taken the change to ACPI_TO_POINTER.
>
> I
On Fri, 2019-07-26 at 19:35 +, Moore, Robert wrote:
> We've taken the change to ACPI_TO_POINTER.
I am a bit confused here. I saw the commit in the acpia repo.
https://github.com/acpica/acpica/commit/02bbca5070e42d298c9b824300aa0eb8a082d797
but how does that change will go into the linux kern
> On Jul 29, 2019, at 6:24 AM, David Laight wrote:
>
> From: Moore, Robert
>> Sent: 26 July 2019 20:36
> ...
>> This is because pointer arithmetic
>> on a pointer not pointing to an array is an undefined behavior (C11 6.5.6,
>> constraint 8).
> ...
>
> The standards committee as smoking dope
From: Moore, Robert
> Sent: 26 July 2019 20:36
...
> This is because pointer arithmetic
> on a pointer not pointing to an array is an undefined behavior (C11 6.5.6,
> constraint 8).
...
The standards committee as smoking dope again :-)
If that is enforced as a compiler warning/error a lot of code
We've taken the change to ACPI_TO_POINTER.
Thanks,
Bob
-Original Message-
From: Qian Cai [mailto:c...@lca.pw]
Sent: Thursday, July 18, 2019 12:49 PM
To: Wysocki, Rafael J
Cc: Moore, Robert ; Schmauss, Erik
; j...@freebsd.org; l...@kernel.org;
ndesaulni...@google.com; linux-a...@vger.k
6 matches
Mail list logo