Re: [PATCH] [media] cx231xx: Initial support Evromedia USB Full Hybrid Full HD

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

 



Hi Oleh,

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on v4.10-rc3 next-20170106]
[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/Oleh-Kravchenko/cx231xx-Initial-support-Evromedia-USB-Full-Hybrid-Full-HD/20170110-033153
base:   git://linuxtv.org/media_tree.git master
config: x86_64-rhel-7.2 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/media/usb/cx231xx/cx231xx-dvb.c: In function 'dvb_init':
>> drivers/media/usb/cx231xx/cx231xx-dvb.c:967:32: warning: passing argument 3 of 'strlcpy' makes integer from pointer without a cast [-Wint-conversion]
      strlcpy(info.type, "si2168", info.type);
                                   ^~~~
   In file included from include/linux/bitmap.h:8:0,
                    from include/linux/cpumask.h:11,
                    from arch/x86/include/asm/cpumask.h:4,
                    from arch/x86/include/asm/msr.h:10,
                    from arch/x86/include/asm/processor.h:20,
                    from arch/x86/include/asm/cpufeature.h:4,
                    from arch/x86/include/asm/thread_info.h:52,
                    from include/linux/thread_info.h:25,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/linux/videodev2.h:59,
                    from drivers/media/usb/cx231xx/cx231xx.h:25,
                    from drivers/media/usb/cx231xx/cx231xx-dvb.c:22:
   include/linux/string.h:27:8: note: expected 'size_t {aka long unsigned int}' but argument is of type 'char *'
    size_t strlcpy(char *, const char *, size_t);
           ^~~~~~~
   drivers/media/usb/cx231xx/cx231xx-dvb.c:999:32: warning: passing argument 3 of 'strlcpy' makes integer from pointer without a cast [-Wint-conversion]
      strlcpy(info.type, "si2157", info.type);
                                   ^~~~
   In file included from include/linux/bitmap.h:8:0,
                    from include/linux/cpumask.h:11,
                    from arch/x86/include/asm/cpumask.h:4,
                    from arch/x86/include/asm/msr.h:10,
                    from arch/x86/include/asm/processor.h:20,
                    from arch/x86/include/asm/cpufeature.h:4,
                    from arch/x86/include/asm/thread_info.h:52,
                    from include/linux/thread_info.h:25,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/linux/videodev2.h:59,
                    from drivers/media/usb/cx231xx/cx231xx.h:25,
                    from drivers/media/usb/cx231xx/cx231xx-dvb.c:22:
   include/linux/string.h:27:8: note: expected 'size_t {aka long unsigned int}' but argument is of type 'char *'
    size_t strlcpy(char *, const char *, size_t);
           ^~~~~~~

vim +/strlcpy +967 drivers/media/usb/cx231xx/cx231xx-dvb.c

   951			break;
   952	
   953		case CX231XX_BOARD_EVROMEDIA_FULL_HYBRID_FULLHD:
   954		{
   955			struct si2157_config si2157_config = {};
   956			struct si2168_config si2168_config = {};
   957			struct i2c_board_info info = {};
   958			struct i2c_client *client;
   959			struct i2c_adapter *adapter;
   960	
   961			/* attach demodulator chip */
   962			si2168_config.ts_mode = SI2168_TS_SERIAL; /* from *.inf file */
   963			si2168_config.fe = &dev->dvb->frontend;
   964			si2168_config.i2c_adapter = &adapter;
   965			si2168_config.ts_clock_inv = true;
   966	
 > 967			strlcpy(info.type, "si2168", info.type);
   968			info.addr = dev->board.demod_addr;
   969			info.platform_data = &si2168_config;
   970	
   971			request_module(info.type);
   972			client = i2c_new_device(demod_i2c, &info);
   973	
   974			if (client == NULL || client->dev.driver == NULL || dev->dvb->frontend == NULL) {
   975				dev_err(dev->dev, "Failed to attach Si2168 front end\n");

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

Attachment: .config.gz
Description: application/gzip


[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