[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdaB390mn2s3vrVAhaY9Portxdzc8bVkM5F3DtVy-k-r2Q@mail.gmail.com>
Date:   Mon, 6 Nov 2023 14:19:33 +0100
From:   Linus Walleij <linus.walleij@...aro.org>
To:     kernel test robot <lkp@...el.com>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: arch/arm/kernel/hibernate.c:29:40: warning: array subscript -1 is
 outside array bounds of 'const void[2147483647]'
Hi Robot,
On Wed, Oct 18, 2023 at 2:17 PM kernel test robot <lkp@...el.com> wrote:
>    arch/arm/kernel/hibernate.c: In function 'pfn_is_nosave':
> >> arch/arm/kernel/hibernate.c:29:40: warning: array subscript -1 is outside array bounds of 'const void[2147483647]' [-Warray-bounds=]
>       29 |         unsigned long nosave_end_pfn = virt_to_pfn(&__nosave_end - 1);
>          |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
So the concern is that &__nosave_end  could be 0 and the -1 would make
it wrap around?
It still has nothing to do with arrays, I don't get it.
Yours,
Linus Walleij
Powered by blists - more mailing lists
 
