public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* MSM8960: gpu/drm/dp/drm_dp.c:59:27: warning: array subscript 10 is outside, array bounds of 'const u8[6]'
@ 2022-03-02  2:39 Rudraksha Gupta
  2022-03-02 11:33 ` Jani Nikula
  0 siblings, 1 reply; 2+ messages in thread
From: Rudraksha Gupta @ 2022-03-02  2:39 UTC (permalink / raw)
  To: dri-devel, open list, Linux-Next Mailing List
  Cc: David Airlie, Daniel Vetter, Lyude Paul, ville.syrjala,
	jani.nikula, airlied, dianders, tzimmermann, sfr, lkft-triage

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],
       | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-02 11:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 11:33 ` Jani Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox