Re: [PATCH 1/2] drm: Fix duplicate const warning in drm_gem_ttm_helper.c

2019-09-23 Thread Sean Paul
On Mon, Sep 23, 2019 at 08:59:29AM +0200, Gerd Hoffmann wrote: > On Fri, Sep 20, 2019 at 03:35:51PM -0400, Sean Paul wrote: > > From: Sean Paul > > > > For the warning > > ../drivers/gpu/drm/drm_gem_ttm_helper.c:26:20: warning: duplicate ‘const’ > > declaration specifier [-Wduplicate-decl-specif

Re: [PATCH 1/2] drm: Fix duplicate const warning in drm_gem_ttm_helper.c

2019-09-22 Thread Gerd Hoffmann
On Fri, Sep 20, 2019 at 03:35:51PM -0400, Sean Paul wrote: > From: Sean Paul > > For the warning > ../drivers/gpu/drm/drm_gem_ttm_helper.c:26:20: warning: duplicate ‘const’ > declaration specifier [-Wduplicate-decl-specifier] I have a drm_print_bits patch in flight which fixes this too (Cc'ed y

Re: [PATCH 1/2] drm: Fix duplicate const warning in drm_gem_ttm_helper.c

2019-09-22 Thread Thomas Zimmermann
Hi Am 20.09.19 um 21:35 schrieb Sean Paul: > From: Sean Paul > > For the warning > ../drivers/gpu/drm/drm_gem_ttm_helper.c:26:20: warning: duplicate ‘const’ > declaration specifier [-Wduplicate-decl-specifier] > > Reading between the lines, I think the double const is to preserve both > the va

[PATCH 1/2] drm: Fix duplicate const warning in drm_gem_ttm_helper.c

2019-09-20 Thread Sean Paul
From: Sean Paul For the warning ../drivers/gpu/drm/drm_gem_ttm_helper.c:26:20: warning: duplicate ‘const’ declaration specifier [-Wduplicate-decl-specifier] Reading between the lines, I think the double const is to preserve both the values and the pointers in the array (which makes total sense)