[radeon-alex:drm-next 233/256] drivers/gpu/drm/drm_dp_mst_topology.c:5151:9: warning: missing braces around initializer

kbuild test robot lkp at intel.com
Fri Jan 10 12:49:17 UTC 2020


tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next
head:   d7c4470150516c55928b494601a4b9bbc5d4352d
commit: e630edd889c75a9782023288d5d0d3d6990130c4 [233/256] drm/dp_mst: Add new quirk for Synaptics MST hubs
config: x86_64-randconfig-s0-20200109 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
        git checkout e630edd889c75a9782023288d5d0d3d6990130c4
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_mst_dsc_aux_for_port':
>> drivers/gpu/drm/drm_dp_mst_topology.c:5151:9: warning: missing braces around initializer [-Wmissing-braces]
     struct drm_dp_desc desc = { 0 };
            ^
   drivers/gpu/drm/drm_dp_mst_topology.c:5151:9: warning: (near initialization for 'desc.ident') [-Wmissing-braces]

vim +5151 drivers/gpu/drm/drm_dp_mst_topology.c

  5130	
  5131	/**
  5132	 * drm_dp_mst_dsc_aux_for_port() - Find the correct aux for DSC
  5133	 * @port: The port to check. A leaf of the MST tree with an attached display.
  5134	 *
  5135	 * Depending on the situation, DSC may be enabled via the endpoint aux,
  5136	 * the immediately upstream aux, or the connector's physical aux.
  5137	 *
  5138	 * This is both the correct aux to read DSC_CAPABILITY and the
  5139	 * correct aux to write DSC_ENABLED.
  5140	 *
  5141	 * This operation can be expensive (up to four aux reads), so
  5142	 * the caller should cache the return.
  5143	 *
  5144	 * Returns:
  5145	 * NULL if DSC cannot be enabled on this port, otherwise the aux device
  5146	 */
  5147	struct drm_dp_aux *drm_dp_mst_dsc_aux_for_port(struct drm_dp_mst_port *port)
  5148	{
  5149		struct drm_dp_mst_port *immediate_upstream_port;
  5150		struct drm_dp_mst_port *fec_port;
> 5151		struct drm_dp_desc desc = { 0 };

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 39772 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200110/fe4f5641/attachment-0001.gz>


More information about the dri-devel mailing list