CC: [email protected]
BCC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
TO: Imre Deak <[email protected]>
CC: Jani Nikula <[email protected]>

tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   5a4dce336cfb95d05d7bedc0ab0c623784735c79
commit: d8bb92e70a434584f5b8a882eb46930cc22fd45a [674/689] drm/dp: Factor out a 
function to probe a DPCD address
:::::: branch date: 3 hours ago
:::::: commit date: 29 hours ago
config: x86_64-randconfig-c022 
(https://download.01.org/0day-ci/archive/20220416/[email protected]/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Julia Lawall <[email protected]>


cocci warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/dp/drm_dp.c:551:12-13: WARNING opportunity for min()

vim +551 drivers/gpu/drm/dp/drm_dp.c

c197db75ff5c1d drivers/gpu/drm/drm_dp_helper.c Thierry Reding 2013-11-28  529  
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  530  
/**
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  531   
* drm_dp_dpcd_probe() - probe a given DPCD address with a 1-byte read access
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  532   
* @aux: DisplayPort AUX channel (SST)
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  533   
* @offset: address of the register to probe
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  534   
*
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  535   
* Probe the provided DPCD address by reading 1 byte from it. The function can
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  536   
* be used to trigger some side-effect the read access has, like waking up the
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  537   
* sink, without the need for the read-out value.
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  538   
*
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  539   
* Returns 0 if the read access suceeded, or a negative error code on failure.
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  540   
*/
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  541  
int drm_dp_dpcd_probe(struct drm_dp_aux *aux, unsigned int offset)
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  542  {
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  543   
u8 buffer;
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  544   
int ret;
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  545  
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  546   
ret = drm_dp_dpcd_access(aux, DP_AUX_NATIVE_READ, offset, &buffer, 1);
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  547   
WARN_ON(ret == 0);
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  548  
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  549   
drm_dp_dump_access(aux, DP_AUX_NATIVE_READ, offset, &buffer, ret);
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  550  
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11 @551   
return ret < 0 ? ret : 0;
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  552  }
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  553  
EXPORT_SYMBOL(drm_dp_dpcd_probe);
d8bb92e70a4345 drivers/gpu/drm/dp/drm_dp.c     Imre Deak      2022-04-11  554  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to