[linuxtv-media:master 1719/1759] arch/arm/mach-davinci/pdata-quirks.c:87:13: warning: initialization discards 'const' qualifier from pointer target type

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

 



tree:   git://linuxtv.org/media_tree.git master
head:   703ecba4dbfb8de9cad7420021dfcbd11007de3b
commit: 4a5f8ae50b66a40cd9cec8f72f5f64611504ddc1 [1719/1759] [media] davinci: vpif_capture: get subdevs from DT when available
config: arm-davinci_all_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 4a5f8ae50b66a40cd9cec8f72f5f64611504ddc1
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

>> arch/arm/mach-davinci/pdata-quirks.c:87:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      .inputs = da850_ch0_inputs,
                ^~~~~~~~~~~~~~~~
   arch/arm/mach-davinci/pdata-quirks.c:97:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      .inputs = da850_ch1_inputs,
                ^~~~~~~~~~~~~~~~
--
>> arch/arm/mach-davinci/board-dm646x-evm.c:680:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      .inputs = dm6467_ch0_inputs,
                ^~~~~~~~~~~~~~~~~
   arch/arm/mach-davinci/board-dm646x-evm.c:690:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      .inputs = dm6467_ch1_inputs,
                ^~~~~~~~~~~~~~~~~

vim +/const +87 arch/arm/mach-davinci/pdata-quirks.c

7ee77194 Kevin Hilman 2017-02-28  71  			.platform_data = &tvp5146_pdata,
7ee77194 Kevin Hilman 2017-02-28  72  		},
7ee77194 Kevin Hilman 2017-02-28  73  	},
7ee77194 Kevin Hilman 2017-02-28  74  	{
7ee77194 Kevin Hilman 2017-02-28  75  		.name = TVP5147_CH1,
7ee77194 Kevin Hilman 2017-02-28  76  		.board_info = {
7ee77194 Kevin Hilman 2017-02-28  77  			I2C_BOARD_INFO("tvp5146", 0x5c),
7ee77194 Kevin Hilman 2017-02-28  78  			.platform_data = &tvp5146_pdata,
7ee77194 Kevin Hilman 2017-02-28  79  		},
7ee77194 Kevin Hilman 2017-02-28  80  	},
7ee77194 Kevin Hilman 2017-02-28  81  };
7ee77194 Kevin Hilman 2017-02-28  82  
7ee77194 Kevin Hilman 2017-02-28  83  static struct vpif_capture_config da850_vpif_capture_config = {
7ee77194 Kevin Hilman 2017-02-28  84  	.subdev_info = da850_vpif_capture_sdev_info,
7ee77194 Kevin Hilman 2017-02-28  85  	.subdev_count = ARRAY_SIZE(da850_vpif_capture_sdev_info),
7ee77194 Kevin Hilman 2017-02-28  86  	.chan_config[0] = {
7ee77194 Kevin Hilman 2017-02-28 @87  		.inputs = da850_ch0_inputs,
7ee77194 Kevin Hilman 2017-02-28  88  		.input_count = ARRAY_SIZE(da850_ch0_inputs),
7ee77194 Kevin Hilman 2017-02-28  89  		.vpif_if = {
7ee77194 Kevin Hilman 2017-02-28  90  			.if_type = VPIF_IF_BT656,
7ee77194 Kevin Hilman 2017-02-28  91  			.hd_pol  = 1,
7ee77194 Kevin Hilman 2017-02-28  92  			.vd_pol  = 1,
7ee77194 Kevin Hilman 2017-02-28  93  			.fid_pol = 0,
7ee77194 Kevin Hilman 2017-02-28  94  		},
7ee77194 Kevin Hilman 2017-02-28  95  	},

:::::: The code at line 87 was first introduced by commit
:::::: 7ee77194143ba7cee8d55956adc85914ce49a277 ARM: davinci: da8xx: add pdata-quirks for VPIF capture

:::::: TO: Kevin Hilman <khilman@xxxxxxxxxxxx>
:::::: CC: Sekhar Nori <nsekhar@xxxxxx>

---
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