<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Jani:<br>
    </p>
    <div class="moz-cite-prefix">On 2020/4/14 19:08, Jani Nikula wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:87imi2miin.fsf@intel.com">
      <pre class="moz-quote-pre" wrap="">On Mon, 13 Apr 2020, Alex Deucher <a class="moz-txt-link-rfc2396E" href="mailto:alexdeucher@gmail.com"><alexdeucher@gmail.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">On Mon, Apr 13, 2020 at 5:29 AM Tang Bin <a class="moz-txt-link-rfc2396E" href="mailto:tangbin@cmss.chinamobile.com"><tangbin@cmss.chinamobile.com></a> wrote:
</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">
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 'drm_dp_mst_dsc_aux_for_port':
    drivers/gpu/drm/drm_dp_mst_topology.c:5494:9: warning: missing braces around initializer [-Wmissing-braces]
      struct drm_dp_desc desc = { 0 };

</pre>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">
This seems to vary based on compilers.  Maybe a memset would be better.
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
= {}; will do the trick.</pre>
    </blockquote>
    <p>Yes, I had already confirmed this on the hardware before I
      mentioned the patch: '{}' or '{{{0}}}' are the same result in this
      file.But someone may query '{}' could not initialize all members,
      that's why I brought '{{{0}}}' up. Both initializations are
      validated on the hardware.<br>
    </p>
    <div style="color: rgb(0, 0, 0); font-size: 14px; font-style:
      normal; font-variant: normal; font-weight: normal; letter-spacing:
      normal; line-height: normal; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">My environment:</div>
    <br style="color: rgb(0, 0, 0); font-size: 14px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">
    <div style="color: rgb(0, 0, 0); font-size: 14px; font-style:
      normal; font-variant: normal; font-weight: normal; letter-spacing:
      normal; line-height: normal; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">  PC : Ubuntu 16.04</div>
    <br style="color: rgb(0, 0, 0); font-size: 14px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">
    <div style="color: rgb(0, 0, 0); font-size: 14px; font-style:
      normal; font-variant: normal; font-weight: normal; letter-spacing:
      normal; line-height: normal; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">  Hardware : I.MX6ULL</div>
    <br style="color: rgb(0, 0, 0); font-size: 14px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">
    <div style="color: rgb(0, 0, 0); font-size: 14px; font-style:
      normal; font-variant: normal; font-weight: normal; letter-spacing:
      normal; line-height: normal; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">  Tool Chain : arm-linux-gnueabihf-gcc (Linaro GCC
      4.9-2017.01) 4.9.4</div>
    <p><br>
    </p>
    <p>Thanks <br>
    </p>
    <p>Tang Bin<br>
    </p>
    <blockquote type="cite">
      <pre class="moz-quote-pre" wrap="">
</pre>
    </blockquote>
    <blockquote type="cite" cite="mid:87imi2miin.fsf@intel.com">
      <pre class="moz-quote-pre" wrap="">
</pre>
    </blockquote>
  </body>
</html>