[PATCH v2 2/2] media: rockchip: rkisp1: extend uapi array sizes

kernel test robot lkp at intel.com
Fri Jan 15 02:44:44 EST 2021


Hi Heiko,

I love your patch! Perhaps something to improve:

[auto build test WARNING on rockchip/for-next]
[also build test WARNING on linuxtv-media/master linus/master v5.11-rc3 next-20210114]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Heiko-Stuebner/media-rockchip-rkisp1-carry-ip-version-information/20210115-124728
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next
config: c6x-allyesconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/9a078d10ec53e5c1651ed5da0b37b0e4eb34fc47
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Heiko-Stuebner/media-rockchip-rkisp1-carry-ip-version-information/20210115-124728
        git checkout 9a078d10ec53e5c1651ed5da0b37b0e4eb34fc47
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=c6x 

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

All warnings (new ones prefixed by >>):

   drivers/media/platform/rockchip/rkisp1/rkisp1-stats.c: In function 'rkisp1_stats_get_hst_meas':
>> drivers/media/platform/rockchip/rkisp1/rkisp1-stats.c:239:2: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
     239 |  memset(pbuf->params.hist.hist_bins, 0, RKISP1_CIF_ISP_HIST_BIN_N_MAX);
         |  ^~~~~~


vim +/memset +239 drivers/media/platform/rockchip/rkisp1/rkisp1-stats.c

   231	
   232	static void rkisp1_stats_get_hst_meas(struct rkisp1_stats *stats,
   233					      struct rkisp1_stat_buffer *pbuf)
   234	{
   235		struct rkisp1_device *rkisp1 = stats->rkisp1;
   236		unsigned int i;
   237	
   238		/* the global max can be bigger then the version-specific one */
 > 239		memset(pbuf->params.hist.hist_bins, 0, RKISP1_CIF_ISP_HIST_BIN_N_MAX);
   240	
   241		pbuf->meas_type |= RKISP1_CIF_ISP_STAT_HIST;
   242		for (i = 0; i < RKISP1_CIF_ISP_HIST_BIN_N_MAX_V10; i++)
   243			pbuf->params.hist.hist_bins[i] =
   244				(u8)rkisp1_read(rkisp1,
   245						RKISP1_CIF_ISP_HIST_BIN_0 + i * 4);
   246	}
   247	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 55188 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rockchip/attachments/20210115/34c499df/attachment-0001.gz>


More information about the Linux-rockchip mailing list