Re: [PATCH] drm/dp_mst: Fix drm_dp_mst_topology.c selftest compilation warning

2020-04-15 Thread Tang Bin
Hi Jani: On 2020/4/14 19:08, Jani Nikula wrote: On Mon, 13 Apr 2020, Alex Deucher wrote: On Mon, Apr 13, 2020 at 5:29 AM Tang Bin wrote: The struct drm_dp_desc contains struct drm_dp_dpcd_ident, and the struct drm_dp_dpcd_ident contains the array, so zero-initialization requires a more coupl

Re: [PATCH] drm/dp_mst: Fix drm_dp_mst_topology.c selftest compilation warning

2020-04-14 Thread Jani Nikula
On Tue, 14 Apr 2020, Tang Bin wrote: > But someone may query '{}' could not initialize all members, that's > why I brought '{{{0}}}' up. {} *does* initialize everything. What are you trying to say? BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center

Re: [PATCH] drm/dp_mst: Fix drm_dp_mst_topology.c selftest compilation warning

2020-04-14 Thread Jani Nikula
On Mon, 13 Apr 2020, Alex Deucher wrote: > On Mon, Apr 13, 2020 at 5:29 AM Tang Bin wrote: >> >> The struct drm_dp_desc contains struct drm_dp_dpcd_ident, and the struct >> drm_dp_dpcd_ident contains the array, so zero-initialization requires a >> more couple of braces. In the ARM compiler enviro

Re: [PATCH] drm/dp_mst: Fix drm_dp_mst_topology.c selftest compilation warning

2020-04-13 Thread Alex Deucher
On Mon, Apr 13, 2020 at 5:29 AM Tang Bin wrote: > > The struct drm_dp_desc contains struct drm_dp_dpcd_ident, and the struct > drm_dp_dpcd_ident contains the array, so zero-initialization requires a > more couple of braces. In the ARM compiler environment, the compile > warning pointing it out: >

[PATCH] drm/dp_mst: Fix drm_dp_mst_topology.c selftest compilation warning

2020-04-13 Thread Tang Bin
The struct drm_dp_desc contains struct drm_dp_dpcd_ident, and the struct drm_dp_dpcd_ident contains the array, so zero-initialization requires a more couple of braces. In the ARM compiler environment, the compile warning pointing it out: drivers/gpu/drm/drm_dp_mst_topology.c: In function 'dr