[clk:clk-next 130/133] drivers/clk/mediatek/clk-mtk.h:44:19: warning: 'struct clk_onecell_data' declared inside parameter list will not be visible outside of this definition or declaration

kbuild test robot fengguang.wu at intel.com
Thu Dec 21 20:42:42 PST 2017


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
head:   813bf3417374b0f382d4bfbd712c54794d943c57
commit: 74cb0d6dde85fef197aca3b2976487e99934309d [130/133] clk: mediatek: fixup test-building of MediaTek clock drivers
config: sparc64-allmodconfig (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
        git checkout 74cb0d6dde85fef197aca3b2976487e99934309d
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All warnings (new ones prefixed by >>):

   In file included from drivers/clk/mediatek/reset.c:22:0:
>> drivers/clk/mediatek/clk-mtk.h:44:19: warning: 'struct clk_onecell_data' declared inside parameter list will not be visible outside of this definition or declaration
      int num, struct clk_onecell_data *clk_data);
                      ^~~~~~~~~~~~~~~~
   drivers/clk/mediatek/clk-mtk.h:63:19: warning: 'struct clk_onecell_data' declared inside parameter list will not be visible outside of this definition or declaration
      int num, struct clk_onecell_data *clk_data);
                      ^~~~~~~~~~~~~~~~
   drivers/clk/mediatek/clk-mtk.h:145:10: warning: 'struct clk_onecell_data' declared inside parameter list will not be visible outside of this definition or declaration
      struct clk_onecell_data *clk_data);
             ^~~~~~~~~~~~~~~~
   drivers/clk/mediatek/clk-mtk.h:164:11: warning: 'struct clk_onecell_data' declared inside parameter list will not be visible outside of this definition or declaration
       struct clk_onecell_data *clk_data);
              ^~~~~~~~~~~~~~~~
   drivers/clk/mediatek/clk-mtk.h:190:12: warning: 'struct clk_onecell_data' declared inside parameter list will not be visible outside of this definition or declaration
        struct clk_onecell_data *clk_data);
               ^~~~~~~~~~~~~~~~

vim +44 drivers/clk/mediatek/clk-mtk.h

4fa04380 James Liao 2015-07-10  35  
4fa04380 James Liao 2015-07-10  36  #define FIXED_CLK(_id, _name, _parent, _rate) {		\
4fa04380 James Liao 2015-07-10  37  		.id = _id,				\
4fa04380 James Liao 2015-07-10  38  		.name = _name,				\
4fa04380 James Liao 2015-07-10  39  		.parent = _parent,			\
4fa04380 James Liao 2015-07-10  40  		.rate = _rate,				\
4fa04380 James Liao 2015-07-10  41  	}
4fa04380 James Liao 2015-07-10  42  
4fa04380 James Liao 2015-07-10  43  void mtk_clk_register_fixed_clks(const struct mtk_fixed_clk *clks,
4fa04380 James Liao 2015-07-10 @44  		int num, struct clk_onecell_data *clk_data);
4fa04380 James Liao 2015-07-10  45  

:::::: The code at line 44 was first introduced by commit
:::::: 4fa043806a2cdbf86503068276ab9bba91a726f6 clk: mediatek: Add fixed clocks support for Mediatek SoC.

:::::: TO: James Liao <jamesjj.liao at mediatek.com>
:::::: CC: James Liao <jamesjj.liao at mediatek.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 52902 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171222/f74eaa2e/attachment-0001.gz>


More information about the linux-arm-kernel mailing list