From: Jani Nikula <jani.nikula@intel.com>
To: CA+G9fYu4PPE6_91mzor0bW7RSzBDNJ3xqqgeeK-jR1jokmhYOQ@mail.gmail.com,
dri-devel@lists.freedesktop.org,
open list <linux-kernel@vger.kernel.org>,
Linux-Next Mailing List <linux-next@vger.kernel.org>
Cc: David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
Lyude Paul <lyude@redhat.com>,
ville.syrjala@linux.intel.com, airlied@redhat.com,
dianders@chromium.org, tzimmermann@suse.de, sfr@canb.auug.org.au,
lkft-triage@lists.linaro.org, Kees Cook <keescook@chromium.org>
Subject: Re: MSM8960: gpu/drm/dp/drm_dp.c:59:27: warning: array subscript 10 is outside, array bounds of 'const u8[6]'
Date: Wed, 02 Mar 2022 13:33:56 +0200 [thread overview]
Message-ID: <87ee3k6123.fsf@intel.com> (raw)
In-Reply-To: <8e13f51a-845b-1fdf-11ea-6053f7d8df9e@gmail.com>
On Tue, 01 Mar 2022, Rudraksha Gupta <guptarud@gmail.com> wrote:
> Hi all,
>
>
> I am getting this warning when compiling the kernel for the MSM8960 with
> this defconfig:
> https://raw.githubusercontent.com/apq8064-mainline/linux/qcom-apq8064-next/arch/arm/configs/qcom_apq8064_defconfig
>
>
> Warning:
>
> ../drivers/gpu/drm/dp/drm_dp.c: In function
> 'drm_dp_get_adjust_request_post_cursor':
> ../drivers/gpu/drm/dp/drm_dp.c:59:27: warning: array subscript 10 is
> outside array bounds of 'const u8[6]' {aka 'const unsigned char[6]'}
> [-Warray-bounds]
> 59 | return link_status[r - DP_LANE0_1_STATUS];
> | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
> ../drivers/gpu/drm/dp/drm_dp.c:210:51: note: while referencing 'link_status'
> 210 | u8 drm_dp_get_adjust_request_post_cursor(const u8
> link_status[DP_LINK_STATUS_SIZE],
> | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
Please see https://lore.kernel.org/r/20220225035610.2552144-3-keescook@chromium.org
BR,
Jani.
--
Jani Nikula, Intel Open Source Graphics Center
WARNING: multiple messages have this Message-ID (diff)
From: Jani Nikula <jani.nikula@intel.com>
To: CA+G9fYu4PPE6_91mzor0bW7RSzBDNJ3xqqgeeK-jR1jokmhYOQ@mail.gmail.com,
dri-devel@lists.freedesktop.org,
open list <linux-kernel@vger.kernel.org>,
Linux-Next Mailing List <linux-next@vger.kernel.org>
Cc: sfr@canb.auug.org.au, tzimmermann@suse.de,
David Airlie <airlied@linux.ie>,
dianders@chromium.org, lkft-triage@lists.linaro.org,
airlied@redhat.com, Kees Cook <keescook@chromium.org>
Subject: Re: MSM8960: gpu/drm/dp/drm_dp.c:59:27: warning: array subscript 10 is outside, array bounds of 'const u8[6]'
Date: Wed, 02 Mar 2022 13:33:56 +0200 [thread overview]
Message-ID: <87ee3k6123.fsf@intel.com> (raw)
In-Reply-To: <8e13f51a-845b-1fdf-11ea-6053f7d8df9e@gmail.com>
On Tue, 01 Mar 2022, Rudraksha Gupta <guptarud@gmail.com> wrote:
> Hi all,
>
>
> I am getting this warning when compiling the kernel for the MSM8960 with
> this defconfig:
> https://raw.githubusercontent.com/apq8064-mainline/linux/qcom-apq8064-next/arch/arm/configs/qcom_apq8064_defconfig
>
>
> Warning:
>
> ../drivers/gpu/drm/dp/drm_dp.c: In function
> 'drm_dp_get_adjust_request_post_cursor':
> ../drivers/gpu/drm/dp/drm_dp.c:59:27: warning: array subscript 10 is
> outside array bounds of 'const u8[6]' {aka 'const unsigned char[6]'}
> [-Warray-bounds]
> 59 | return link_status[r - DP_LANE0_1_STATUS];
> | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
> ../drivers/gpu/drm/dp/drm_dp.c:210:51: note: while referencing 'link_status'
> 210 | u8 drm_dp_get_adjust_request_post_cursor(const u8
> link_status[DP_LINK_STATUS_SIZE],
> | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
Please see https://lore.kernel.org/r/20220225035610.2552144-3-keescook@chromium.org
BR,
Jani.
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2022-03-02 11:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-02 2:39 MSM8960: gpu/drm/dp/drm_dp.c:59:27: warning: array subscript 10 is outside, array bounds of 'const u8[6]' Rudraksha Gupta
2022-03-02 2:39 ` Rudraksha Gupta
2022-03-02 11:33 ` Jani Nikula [this message]
2022-03-02 11:33 ` Jani Nikula
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ee3k6123.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=CA+G9fYu4PPE6_91mzor0bW7RSzBDNJ3xqqgeeK-jR1jokmhYOQ@mail.gmail.com \
--cc=airlied@linux.ie \
--cc=airlied@redhat.com \
--cc=daniel@ffwll.ch \
--cc=dianders@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=lkft-triage@lists.linaro.org \
--cc=lyude@redhat.com \
--cc=sfr@canb.auug.org.au \
--cc=tzimmermann@suse.de \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.