]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: gcc fixes for extended dpm tables
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Aug 2013 19:28:42 +0000 (15:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:31:23 +0000 (16:31 -0400)
commit6d4e5d362c116b501005114d8ad56d1f5969fa28
tree8639367c7c930428dc185b81ad924dc3d2f9f4a9
parent80b2edb7b44d8154f249a646ba5ab92cc771a082
drm/radeon: gcc fixes for extended dpm tables

Newer versions of gcc seem to wander off into the
weeds when dealing with variable sizes arrays in
structs.  Rather than indexing the arrays, use
pointer arithmetic.

See bugs:
https://bugs.freedesktop.org/show_bug.cgi?id=66932
https://bugs.freedesktop.org/show_bug.cgi?id=66972
https://bugs.freedesktop.org/show_bug.cgi?id=66945

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r600_dpm.c