Content-Type: multipart/mixed; boundary="===============0694047986906555144==" MIME-Version: 1.0 From: Nautiyal, Ankit K To: kbuild-all@lists.01.org Subject: Re: [PATCH v4 07/16] drm/dp_helper: Add helpers to configure PCONs RGB-YCbCr Conversion Date: Thu, 10 Dec 2020 17:50:38 +0530 Message-ID: <25291b7c-5aa5-d687-8516-a64e122dd2ee@intel.com> In-Reply-To: <20201209175034.GJ2767@kadam> List-Id: --===============0694047986906555144== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Dan, Thanks for the mail. As rightly mentioned, the intention was && instead of ||. I will fix the issue in the next version of the patch. Thanks & Regards, Ankit On 12/9/2020 11:20 PM, Dan Carpenter wrote: > Hi Ankit, > > url: https://github.com/0day-ci/linux/commits/Ankit-Nautiyal/Add-suppo= rt-for-DP-HDMI2-1-PCON/20201208-160027 > base: git://anongit.freedesktop.org/drm-intel for-linux-next > config: i386-randconfig-m021-20201209 (attached as .config) > compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > Reported-by: Dan Carpenter > > smatch warnings: > drivers/gpu/drm/drm_dp_helper.c:3185 drm_dp_pcon_convert_rgb_to_ycbcr() w= arn: was && intended here instead of ||? > > vim +3185 drivers/gpu/drm/drm_dp_helper.c > > +int drm_dp_pcon_convert_rgb_to_ycbcr(struct drm_dp_aux *aux, u8 color_sp= c) > +{ > + int ret; > + u8 buf; > + > + if (color_spc !=3D DP_CONVERSION_BT601_RGB_YCBCR_ENABLE || > + color_spc !=3D DP_CONVERSION_BT709_RGB_YCBCR_ENABLE || > + color_spc !=3D DP_CONVERSION_BT2020_RGB_YCBCR_ENABLE) > + return -EINVAL; > > "color_spc" cannot possibly be equal to three different values so this > function will always return -EINVAL. > > + > + ret =3D drm_dp_dpcd_readb(aux, DP_PROTOCOL_CONVERTER_CONTROL_2, &buf); > + if (ret < 0) > + return ret; > + > + buf |=3D color_spc; > + ret =3D drm_dp_dpcd_writeb(aux, DP_PROTOCOL_CONVERTER_CONTROL_2, buf); > + if (ret < 0) > + return ret; > + > + return 0; > +} > > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org > > _______________________________________________ > dri-devel mailing list > dri-devel(a)lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0694047986906555144==--