CC: [email protected] BCC: [email protected] CC: Linux Memory Management List <[email protected]> TO: Thomas Zimmermann <[email protected]> CC: Javier Martinez Canillas <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 5469f0c06732a077c70a759a81f2a1f00b277694 commit: 6a99099fe1d6c46cbcd74298eeb386c4b9048f77 [5849/7959] drm/display: Move HDCP helpers into display-helper module :::::: branch date: 3 days ago :::::: commit date: 7 days ago compiler: arm-linux-gnueabi-gcc (GCC) 11.3.0 reproduce (cppcheck warning): # apt-get install cppcheck git checkout 6a99099fe1d6c46cbcd74298eeb386c4b9048f77 cppcheck --quiet --enable=style,performance,portability --template=gcc FILE If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> cppcheck possible warnings: (new ones prefixed by >>, may not real problems) >> drivers/gpu/drm/display/drm_hdcp_helper.c:53:58: warning: Parameter >> 'revoked_ksv_list' can be declared with const [constParameter] static u32 drm_hdcp_get_revoked_ksvs(const u8 *buf, u8 **revoked_ksv_list, ^ vim +/revoked_ksv_list +53 drivers/gpu/drm/display/drm_hdcp_helper.c 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 52 79643fddd6eb2d drivers/gpu/drm/drm_hdcp.c Ramalingam C 2020-02-12 @53 static u32 drm_hdcp_get_revoked_ksvs(const u8 *buf, u8 **revoked_ksv_list, 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 54 u32 vrls_length) 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 55 { 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 56 u32 vrl_ksv_cnt, vrl_ksv_sz, vrl_idx = 0; 79643fddd6eb2d drivers/gpu/drm/drm_hdcp.c Ramalingam C 2020-02-12 57 u32 parsed_bytes = 0, ksv_count = 0; 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 58 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 59 do { 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 60 vrl_ksv_cnt = *buf; 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 61 vrl_ksv_sz = vrl_ksv_cnt * DRM_HDCP_KSV_LEN; 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 62 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 63 buf++; 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 64 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 65 DRM_DEBUG("vrl: %d, Revoked KSVs: %d\n", vrl_idx++, 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 66 vrl_ksv_cnt); 79643fddd6eb2d drivers/gpu/drm/drm_hdcp.c Ramalingam C 2020-02-12 67 memcpy((*revoked_ksv_list) + (ksv_count * DRM_HDCP_KSV_LEN), 79643fddd6eb2d drivers/gpu/drm/drm_hdcp.c Ramalingam C 2020-02-12 68 buf, vrl_ksv_sz); 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 69 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 70 ksv_count += vrl_ksv_cnt; 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 71 buf += vrl_ksv_sz; 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 72 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 73 parsed_bytes += (vrl_ksv_sz + 1); 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 74 } while (parsed_bytes < vrls_length); 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 75 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 76 return ksv_count; 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 77 } 6498bf5800a302 drivers/gpu/drm/drm_hdcp.c Ramalingam C 2019-05-07 78 :::::: The code at line 53 was first introduced by commit :::::: 79643fddd6eb2d4dec33ac6fb0c66399549fbe55 drm/hdcp: optimizing the srm handling :::::: TO: Ramalingam C <[email protected]> :::::: CC: Ramalingam C <[email protected]> -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
