[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201906200811.HS8vkcfr%lkp@intel.com>
Date: Thu, 20 Jun 2019 08:59:13 +0800
From: kbuild test robot <lkp@...el.com>
To: Yash Shah <yash.shah@...ive.com>
Cc: kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 1038/1074]
drivers/net//ethernet/cadence/macb_main.c:4003:21: error: variable
'fu540_c000_ops' has initializer but incomplete type
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: 6c9bef32c6e742e847fc28c9bf7721cbfa003fa6
commit: c218ad559020ff98f5d7de6c8bca05b635581777 [1038/1074] macb: Add support for SiFive FU540-C000
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.4.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 c218ad559020ff98f5d7de6c8bca05b635581777
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> drivers/net//ethernet/cadence/macb_main.c:48:16: error: field 'hw' has incomplete type
struct clk_hw hw;
^~
>> drivers/net//ethernet/cadence/macb_main.c:4003:21: error: variable 'fu540_c000_ops' has initializer but incomplete type
static const struct clk_ops fu540_c000_ops = {
^~~~~~~
>> drivers/net//ethernet/cadence/macb_main.c:4004:3: error: 'const struct clk_ops' has no member named 'recalc_rate'
.recalc_rate = fu540_macb_tx_recalc_rate,
^~~~~~~~~~~
drivers/net//ethernet/cadence/macb_main.c:4004:17: warning: excess elements in struct initializer
.recalc_rate = fu540_macb_tx_recalc_rate,
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net//ethernet/cadence/macb_main.c:4004:17: note: (near initialization for 'fu540_c000_ops')
>> drivers/net//ethernet/cadence/macb_main.c:4005:3: error: 'const struct clk_ops' has no member named 'round_rate'
.round_rate = fu540_macb_tx_round_rate,
^~~~~~~~~~
drivers/net//ethernet/cadence/macb_main.c:4005:16: warning: excess elements in struct initializer
.round_rate = fu540_macb_tx_round_rate,
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net//ethernet/cadence/macb_main.c:4005:16: note: (near initialization for 'fu540_c000_ops')
>> drivers/net//ethernet/cadence/macb_main.c:4006:3: error: 'const struct clk_ops' has no member named 'set_rate'
.set_rate = fu540_macb_tx_set_rate,
^~~~~~~~
drivers/net//ethernet/cadence/macb_main.c:4006:14: warning: excess elements in struct initializer
.set_rate = fu540_macb_tx_set_rate,
^~~~~~~~~~~~~~~~~~~~~~
drivers/net//ethernet/cadence/macb_main.c:4006:14: note: (near initialization for 'fu540_c000_ops')
drivers/net//ethernet/cadence/macb_main.c: In function 'fu540_c000_clk_init':
>> drivers/net//ethernet/cadence/macb_main.c:4013:23: error: storage size of 'init' isn't known
struct clk_init_data init;
^~~~
>> drivers/net//ethernet/cadence/macb_main.c:4032:12: error: implicit declaration of function 'clk_register'; did you mean 'sock_register'? [-Werror=implicit-function-declaration]
*tx_clk = clk_register(NULL, &mgmt->hw);
^~~~~~~~~~~~
sock_register
drivers/net//ethernet/cadence/macb_main.c:4013:23: warning: unused variable 'init' [-Wunused-variable]
struct clk_init_data init;
^~~~
drivers/net//ethernet/cadence/macb_main.c: In function 'macb_probe':
>> drivers/net//ethernet/cadence/macb_main.c:4366:2: error: implicit declaration of function 'clk_unregister'; did you mean 'sock_unregister'? [-Werror=implicit-function-declaration]
clk_unregister(tx_clk);
^~~~~~~~~~~~~~
sock_unregister
drivers/net//ethernet/cadence/macb_main.c: At top level:
>> drivers/net//ethernet/cadence/macb_main.c:4003:29: error: storage size of 'fu540_c000_ops' isn't known
static const struct clk_ops fu540_c000_ops = {
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/fu540_c000_ops +4003 drivers/net//ethernet/cadence/macb_main.c
4002
> 4003 static const struct clk_ops fu540_c000_ops = {
> 4004 .recalc_rate = fu540_macb_tx_recalc_rate,
> 4005 .round_rate = fu540_macb_tx_round_rate,
> 4006 .set_rate = fu540_macb_tx_set_rate,
4007 };
4008
4009 static int fu540_c000_clk_init(struct platform_device *pdev, struct clk **pclk,
4010 struct clk **hclk, struct clk **tx_clk,
4011 struct clk **rx_clk, struct clk **tsu_clk)
4012 {
> 4013 struct clk_init_data init;
4014 int err = 0;
4015
4016 err = macb_clk_init(pdev, pclk, hclk, tx_clk, rx_clk, tsu_clk);
4017 if (err)
4018 return err;
4019
4020 mgmt = devm_kzalloc(&pdev->dev, sizeof(*mgmt), GFP_KERNEL);
4021 if (!mgmt)
4022 return -ENOMEM;
4023
4024 init.name = "sifive-gemgxl-mgmt";
4025 init.ops = &fu540_c000_ops;
4026 init.flags = 0;
4027 init.num_parents = 0;
4028
4029 mgmt->rate = 0;
4030 mgmt->hw.init = &init;
4031
> 4032 *tx_clk = clk_register(NULL, &mgmt->hw);
4033 if (IS_ERR(*tx_clk))
4034 return PTR_ERR(*tx_clk);
4035
4036 err = clk_prepare_enable(*tx_clk);
4037 if (err)
4038 dev_err(&pdev->dev, "failed to enable tx_clk (%u)\n", err);
4039 else
4040 dev_info(&pdev->dev, "Registered clk switch '%s'\n", init.name);
4041
4042 return 0;
4043 }
4044
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (54085 bytes)
Powered by blists - more mailing lists