[linuxtv-media:master 1123/1134] drivers/media/platform/coda/imx-vdoa.c:333:1: note: in expansion of macro 'module_platform_driver'

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

 



tree:   git://linuxtv.org/media_tree.git master
head:   a2fafda66dccb84592d4b9e42e429471c356c4fc
commit: 126f52b02e6ec6a25f0b32058a91648304922d4a [1123/1134] [media] coda/imx-vdoa: constify structs
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 126f52b02e6ec6a25f0b32058a91648304922d4a
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   In file included from drivers/media/platform/coda/imx-vdoa.c:22:0:
   drivers/media/platform/coda/imx-vdoa.c: In function 'vdoa_driver_init':
>> include/linux/device.h:1461:20: warning: passing argument 1 of '__platform_driver_register' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     return __register(&(__driver) , ##__VA_ARGS__); \
                       ^
   include/linux/platform_device.h:198:29: note: in definition of macro 'platform_driver_register'
     __platform_driver_register(drv, THIS_MODULE)
                                ^~~
   include/linux/platform_device.h:228:2: note: in expansion of macro 'module_driver'
     module_driver(__platform_driver, platform_driver_register, \
     ^~~~~~~~~~~~~
>> drivers/media/platform/coda/imx-vdoa.c:333:1: note: in expansion of macro 'module_platform_driver'
    module_platform_driver(vdoa_driver);
    ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/platform_device.h:199:12: note: expected 'struct platform_driver *' but argument is of type 'const struct platform_driver *'
    extern int __platform_driver_register(struct platform_driver *,
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/media/platform/coda/imx-vdoa.c:18:0:
   drivers/media/platform/coda/imx-vdoa.c: In function 'vdoa_driver_exit':
>> include/linux/device.h:1466:15: warning: passing argument 1 of 'platform_driver_unregister' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     __unregister(&(__driver) , ##__VA_ARGS__); \
                  ^
   include/linux/platform_device.h:228:2: note: in expansion of macro 'module_driver'
     module_driver(__platform_driver, platform_driver_register, \
     ^~~~~~~~~~~~~
>> drivers/media/platform/coda/imx-vdoa.c:333:1: note: in expansion of macro 'module_platform_driver'
    module_platform_driver(vdoa_driver);
    ^~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/media/platform/coda/imx-vdoa.c:22:0:
   include/linux/platform_device.h:201:13: note: expected 'struct platform_driver *' but argument is of type 'const struct platform_driver *'
    extern void platform_driver_unregister(struct platform_driver *);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/module_platform_driver +333 drivers/media/platform/coda/imx-vdoa.c

b0444f18 Philipp Zabel         2017-01-20  317  
126f52b0 Mauro Carvalho Chehab 2017-01-31  318  static const struct of_device_id vdoa_dt_ids[] = {
b0444f18 Philipp Zabel         2017-01-20  319  	{ .compatible = "fsl,imx6q-vdoa" },
b0444f18 Philipp Zabel         2017-01-20  320  	{}
b0444f18 Philipp Zabel         2017-01-20  321  };
b0444f18 Philipp Zabel         2017-01-20  322  MODULE_DEVICE_TABLE(of, vdoa_dt_ids);
b0444f18 Philipp Zabel         2017-01-20  323  
126f52b0 Mauro Carvalho Chehab 2017-01-31  324  static const struct platform_driver vdoa_driver = {
b0444f18 Philipp Zabel         2017-01-20  325  	.probe		= vdoa_probe,
b0444f18 Philipp Zabel         2017-01-20  326  	.remove		= vdoa_remove,
b0444f18 Philipp Zabel         2017-01-20  327  	.driver		= {
b0444f18 Philipp Zabel         2017-01-20  328  		.name	= VDOA_NAME,
b0444f18 Philipp Zabel         2017-01-20  329  		.of_match_table = vdoa_dt_ids,
b0444f18 Philipp Zabel         2017-01-20  330  	},
b0444f18 Philipp Zabel         2017-01-20  331  };
b0444f18 Philipp Zabel         2017-01-20  332  
b0444f18 Philipp Zabel         2017-01-20 @333  module_platform_driver(vdoa_driver);
b0444f18 Philipp Zabel         2017-01-20  334  
b0444f18 Philipp Zabel         2017-01-20  335  MODULE_DESCRIPTION("Video Data Order Adapter");
b0444f18 Philipp Zabel         2017-01-20  336  MODULE_AUTHOR("Philipp Zabel <philipp.zabel@xxxxxxxxx>");
b0444f18 Philipp Zabel         2017-01-20  337  MODULE_ALIAS("platform:imx-vdoa");
b0444f18 Philipp Zabel         2017-01-20  338  MODULE_LICENSE("GPL");

:::::: The code at line 333 was first introduced by commit
:::::: b0444f18e0b18abce566e9e023d52e77e9cb68e1 [media] coda: add i.MX6 VDOA driver

:::::: TO: Philipp Zabel <philipp.zabel@xxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx>

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