Re: [PATCH 2/4] v4l: vsp1: Add Cubic Look Up Table (CLU) support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Laurent,

[auto build test ERROR on: renesas/next]
[also build test ERROR on: v4.4-rc1 next-20151116]

url:    https://github.com/0day-ci/linux/commits/Laurent-Pinchart/VSP1-Add-support-for-lookup-tables/20151116-124808
base:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git next
config: x86_64-randconfig-s5-11161354 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   drivers/media/platform/vsp1/vsp1_clu.c: In function 'clu_configure':
>> drivers/media/platform/vsp1/vsp1_clu.c:48:12: error: implicit declaration of function 'kcalloc' [-Werror=implicit-function-declaration]
     entries = kcalloc(config->nentries, sizeof(*entries), GFP_KERNEL);
               ^
>> drivers/media/platform/vsp1/vsp1_clu.c:48:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     entries = kcalloc(config->nentries, sizeof(*entries), GFP_KERNEL);
             ^
>> drivers/media/platform/vsp1/vsp1_clu.c:77:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
     kfree(entries);
     ^
   cc1: some warnings being treated as errors

vim +/kcalloc +48 drivers/media/platform/vsp1/vsp1_clu.c

    42		unsigned int i;
    43		int ret;
    44	
    45		if (config->nentries > 17*17*17)
    46			return -EINVAL;
    47	
  > 48		entries = kcalloc(config->nentries, sizeof(*entries), GFP_KERNEL);
    49		if (!entries)
    50			return -ENOMEM;
    51	
    52		ret = copy_from_user(entries, config->entries,
    53				     config->nentries * sizeof(*entries));
    54		if (ret) {
    55			ret = -EFAULT;
    56			goto done;
    57		}
    58	
    59		for (i = 0; i < config->nentries; ++i) {
    60			u32 addr = entries[i].addr;
    61			u32 value = entries[i].value;
    62	
    63			if (((addr >> 0) & 0xff) >= 17 ||
    64			    ((addr >> 8) & 0xff) >= 17 ||
    65			    ((addr >> 16) & 0xff) >= 17 ||
    66			    ((addr >> 24) & 0xff) != 0 ||
    67			    (value & 0xff000000) != 0) {
    68				ret = -EINVAL;
    69				goto done;
    70			}
    71	
    72			vsp1_clu_write(clu, VI6_CLU_ADDR, addr);
    73			vsp1_clu_write(clu, VI6_CLU_DATA, value);
    74		}
    75	
    76	done:
  > 77		kfree(entries);
    78		return ret;
    79	}
    80	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux