Re: [PATCH v2 05/19] media: fsl-viu: allow building it with COMPILE_TEST

2018-04-06 Thread kbuild test robot
Hi Mauro,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on v4.16 next-20180406]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Mauro-Carvalho-Chehab/Make-all-media-drivers-build-with-COMPILE_TEST/20180406-163048
base:   git://linuxtv.org/media_tree.git master
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/media/platform/fsl-viu.c:1081:25: sparse: incorrect type in argument 
2 (different address spaces)
   drivers/media/platform/fsl-viu.c:1081:25:expected void volatile 
[noderef] *addr
   drivers/media/platform/fsl-viu.c:1081:25:got unsigned int *
   drivers/media/platform/fsl-viu.c:1082:25: sparse: incorrect type in argument 
2 (different address spaces)
   drivers/media/platform/fsl-viu.c:1082:25:expected void volatile 
[noderef] *addr
   drivers/media/platform/fsl-viu.c:1082:25:got unsigned int *
   drivers/media/platform/fsl-viu.c:1083:25: sparse: incorrect type in argument 
2 (different address spaces)
   drivers/media/platform/fsl-viu.c:1083:25:expected void volatile 
[noderef] *addr
   drivers/media/platform/fsl-viu.c:1083:25:got unsigned int *
   drivers/media/platform/fsl-viu.c:1095:17: sparse: incorrect type in argument 
1 (different address spaces)
   drivers/media/platform/fsl-viu.c:1095:17:expected void const volatile 
[noderef] *addr
   drivers/media/platform/fsl-viu.c:1095:17:got unsigned int *
   drivers/media/platform/fsl-viu.c:446:9: sparse: incorrect type in argument 2 
(different address spaces)
   drivers/media/platform/fsl-viu.c:446:9:expected void volatile [noderef] 
*addr
   drivers/media/platform/fsl-viu.c:446:9:got unsigned int *
   drivers/media/platform/fsl-viu.c:447:9: sparse: incorrect type in argument 2 
(different address spaces)
   drivers/media/platform/fsl-viu.c:447:9:expected void volatile [noderef] 
*addr
   drivers/media/platform/fsl-viu.c:447:9:got unsigned int *
   drivers/media/platform/fsl-viu.c:448:9: sparse: incorrect type in argument 2 
(different address spaces)
   drivers/media/platform/fsl-viu.c:448:9:expected void volatile [noderef] 
*addr
   drivers/media/platform/fsl-viu.c:448:9:got unsigned int *
   drivers/media/platform/fsl-viu.c:446:9: sparse: incorrect type in argument 2 
(different address spaces)
   drivers/media/platform/fsl-viu.c:446:9:expected void volatile [noderef] 
*addr
   drivers/media/platform/fsl-viu.c:446:9:got unsigned int *
   drivers/media/platform/fsl-viu.c:447:9: sparse: incorrect type in argument 2 
(different address spaces)
   drivers/media/platform/fsl-viu.c:447:9:expected void volatile [noderef] 
*addr
   drivers/media/platform/fsl-viu.c:447:9:got unsigned int *
   drivers/media/platform/fsl-viu.c:448:9: sparse: incorrect type in argument 2 
(different address spaces)
   drivers/media/platform/fsl-viu.c:448:9:expected void volatile [noderef] 
*addr
   drivers/media/platform/fsl-viu.c:448:9:got unsigned int *
   drivers/media/platform/fsl-viu.c:1000:9: sparse: incorrect type in argument 
2 (different address spaces)
   drivers/media/platform/fsl-viu.c:1000:9:expected void volatile [noderef] 
*addr
   drivers/media/platform/fsl-viu.c:1000:9:got unsigned int *
   drivers/media/platform/fsl-viu.c:1001:9: sparse: incorrect type in argument 
2 (different address spaces)
   drivers/media/platform/fsl-viu.c:1001:9:expected void volatile [noderef] 
*addr
   drivers/media/platform/fsl-viu.c:1001:9:got unsigned int *
   drivers/media/platform/fsl-viu.c:1002:9: sparse: incorrect type in argument 
2 (different address spaces)
   drivers/media/platform/fsl-viu.c:1002:9:expected void volatile [noderef] 
*addr
   drivers/media/platform/fsl-viu.c:1002:9:got unsigned int *
   drivers/media/platform/fsl-viu.c:1003:9: sparse: incorrect type in argument 
2 (different address spaces)
   drivers/media/platform/fsl-viu.c:1003:9:expected void volatile [noderef] 
*addr
   drivers/media/platform/fsl-viu.c:1003:9:got unsigned int *
   drivers/media/platform/fsl-viu.c:1004:9: sparse: incorrect type in argument 
2 (different address spaces)
   drivers/media/platform/fsl-viu.c:1004:9:expected void volatile [noderef] 
*addr
   drivers/media/platform/fsl-viu.c:1004:9:got unsigned int *
   drivers/media/platform/fsl-viu.c:1005:9: sparse: incorrect type in argument 
2 (different address spaces)
   drivers/media/platform/fsl-viu.c:1005:9:expected void volatile [noderef] 
*addr
   drivers/media/platform/fsl-viu.c:1005:9:got unsigned int *
   drivers/media/platform/fsl-viu.c:1006:9: sparse: incorrect type in argument 
1 (different address spaces)
   

Re: [PATCH v2 05/19] media: fsl-viu: allow building it with COMPILE_TEST

2018-04-06 Thread kbuild test robot
Hi Mauro,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on v4.16 next-20180406]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Mauro-Carvalho-Chehab/Make-all-media-drivers-build-with-COMPILE_TEST/20180406-163048
base:   git://linuxtv.org/media_tree.git master
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sparc64 

All warnings (new ones prefixed by >>):

>> drivers/media/platform/fsl-viu.c:41:0: warning: "NO_IRQ" redefined
#define NO_IRQ   0

   In file included from arch/sparc/include/asm/irq.h:5:0,
from include/linux/interrupt.h:19,
from drivers/media/platform/fsl-viu.c:22:
   arch/sparc/include/asm/irq_64.h:98:0: note: this is the location of the 
previous definition
#define NO_IRQ  0x

   drivers/media/platform/fsl-viu.c: In function 'viu_setup_preview':
   drivers/media/platform/fsl-viu.c:760:28: warning: cast from pointer to 
integer of different size [-Wpointer-to-int-cast]
 reg_val.field_base_addr = (u32)dev->ovbuf.base;
   ^

vim +/NO_IRQ +41 drivers/media/platform/fsl-viu.c

38  
39  /* Allow building this driver with COMPILE_TEST */
40  #ifndef CONFIG_PPC_MPC512x
  > 41  #define NO_IRQ   0
42  

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


.config.gz
Description: application/gzip