[renesas:arm64-dt-for-v4.21 25/25] Error: arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts:622.1-7 Label or path sdhi0 not found

2018-11-07 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git 
arm64-dt-for-v4.21
head:   3e8f76c61511f3c4f0c25c36172605d6aeaec37c
commit: 3e8f76c61511f3c4f0c25c36172605d6aeaec37c [25/25] arm64: dts: r8a77990: 
ebisu: Add and enable SDHI device nodes
config: arm64-defconfig (attached as .config)
compiler: aarch64-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 3e8f76c61511f3c4f0c25c36172605d6aeaec37c
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

>> Error: arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts:622.1-7 Label or path 
>> sdhi0 not found
>> Error: arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts:637.1-7 Label or path 
>> sdhi1 not found
>> Error: arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts:651.1-7 Label or path 
>> sdhi3 not found
>> FATAL ERROR: Syntax error parsing input tree

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/pinctrl-rza2-v2 1/2] drivers//pinctrl/pinctrl-rza2.c:25:43: error: 'RZA2_NPORTS' undeclared here (not in a function); did you mean 'RZA2_NPINS'?

2018-11-07 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/pinctrl-rza2-v2
head:   bb0f488fb2907f47250f7f34af60a482fd3dbfe4
commit: feac9e8cb1ad7b4979e4b553fcdf2d8582049227 [1/2] pinctrl: Add RZ/A2 pin 
and gpio controller
config: mips-allmodconfig (attached as .config)
compiler: mips-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 feac9e8cb1ad7b4979e4b553fcdf2d8582049227
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=mips 

All error/warnings (new ones prefixed by >>):

   In file included from arch/mips/include/asm/ptrace.h:19:0,
from include/linux/irq.h:24,
from include/linux/gpio/driver.h:7,
from include/asm-generic/gpio.h:13,
from include/linux/gpio.h:62,
from drivers//pinctrl/pinctrl-rza2.c:14:
>> arch/mips/include/uapi/asm/ptrace.h:17:13: error: expected identifier before 
>> numeric constant
#define PC  64
^
>> drivers//pinctrl/pinctrl-rza2.c:38:73: note: in expansion of macro 'PC'
enum pfc_pin_port_name {P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, PA, PB, PC, 
PD,
^~
>> drivers//pinctrl/pinctrl-rza2.c:25:43: error: 'RZA2_NPORTS' undeclared here 
>> (not in a function); did you mean 'RZA2_NPINS'?
#define RZA2_NPINS  (RZA2_PINS_PER_PORT * RZA2_NPORTS)
  ^
>> drivers//pinctrl/pinctrl-rza2.c:230:11: note: in expansion of macro 
>> 'RZA2_NPINS'
 .ngpio = RZA2_NPINS,
  ^~
--
   In file included from arch/mips/include/asm/ptrace.h:19:0,
from include/linux/irq.h:24,
from include/linux/gpio/driver.h:7,
from include/asm-generic/gpio.h:13,
from include/linux/gpio.h:62,
from drivers/pinctrl/pinctrl-rza2.c:14:
>> arch/mips/include/uapi/asm/ptrace.h:17:13: error: expected identifier before 
>> numeric constant
#define PC  64
^
   drivers/pinctrl/pinctrl-rza2.c:38:73: note: in expansion of macro 'PC'
enum pfc_pin_port_name {P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, PA, PB, PC, 
PD,
^~
   drivers/pinctrl/pinctrl-rza2.c:25:43: error: 'RZA2_NPORTS' undeclared here 
(not in a function); did you mean 'RZA2_NPINS'?
#define RZA2_NPINS  (RZA2_PINS_PER_PORT * RZA2_NPORTS)
  ^
   drivers/pinctrl/pinctrl-rza2.c:230:11: note: in expansion of macro 
'RZA2_NPINS'
 .ngpio = RZA2_NPINS,
  ^~

vim +25 drivers//pinctrl/pinctrl-rza2.c

  > 14  #include 
15  #include 
16  #include 
17  #include 
18  
19  #include "core.h"
20  #include "pinmux.h"
21  
22  #define DRIVER_NAME "pinctrl-rza2"
23  
24  #define RZA2_PINS_PER_PORT  8
  > 25  #define RZA2_NPINS  (RZA2_PINS_PER_PORT * RZA2_NPORTS)
26  #define RZA2_PIN_ID_TO_PORT(id) ((id) / RZA2_PINS_PER_PORT)
27  #define RZA2_PIN_ID_TO_PIN(id)  ((id) % RZA2_PINS_PER_PORT)
28  
29  /*
30   * Use 16 lower bits [15:0] for pin identifier
31   * Use 16 higher bits [31:16] for pin mux function
32   */
33  #define MUX_PIN_ID_MASK GENMASK(15, 0)
34  #define MUX_FUNC_MASK   GENMASK(31, 16)
35  #define MUX_FUNC_OFFS   16
36  #define MUX_FUNC(pinconf)   ((pinconf & MUX_FUNC_MASK) >> 
MUX_FUNC_OFFS)
37  
  > 38  enum pfc_pin_port_name {P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, PA, PB, 
PC, PD,
39  PE, PF, PG, PH, PJ, PK, PL, PM, RZA2_NPORTS};
40  static const char port_names[] = "0123456789ABCDEFGHJKLM";
41  

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


.config.gz
Description: application/gzip


[renesas-drivers:sh-pfc-for-v4.20 24/25] drivers/pinctrl/pinctrl-rzn1.c:935:3-8: No need to set .owner here. The core will do it.

2018-10-10 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
sh-pfc-for-v4.20
head:   ef26d96023a4c34b1bcc4294f570df2b63a1b952
commit: 4e53b5004745ef26a37bca4933b2d3ea71313f2a [24/25] pinctrl: renesas: 
Renesas RZ/N1 pinctrl driver


coccinelle warnings: (new ones prefixed by >>)

>> drivers/pinctrl/pinctrl-rzn1.c:935:3-8: No need to set .owner here. The core 
>> will do it.

Please review and possibly fold the followup patch.

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


[PATCH] pinctrl: renesas: fix platform_no_drv_owner.cocci warnings

2018-10-10 Thread kbuild test robot
From: kbuild test robot 

drivers/pinctrl/pinctrl-rzn1.c:935:3-8: No need to set .owner here. The core 
will do it.

 Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Fixes: 4e53b5004745 ("pinctrl: renesas: Renesas RZ/N1 pinctrl driver")
CC: Phil Edworthy 
Signed-off-by: kbuild test robot 
---

tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
sh-pfc-for-v4.20
head:   ef26d96023a4c34b1bcc4294f570df2b63a1b952
commit: 4e53b5004745ef26a37bca4933b2d3ea71313f2a [24/25] pinctrl: renesas: 
Renesas RZ/N1 pinctrl driver

 pinctrl-rzn1.c |1 -
 1 file changed, 1 deletion(-)

--- a/drivers/pinctrl/pinctrl-rzn1.c
+++ b/drivers/pinctrl/pinctrl-rzn1.c
@@ -932,7 +932,6 @@ static struct platform_driver rzn1_pinct
.remove = rzn1_pinctrl_remove,
.driver = {
.name   = "rzn1-pinctrl",
-   .owner  = THIS_MODULE,
.of_match_table = rzn1_pinctrl_match,
},
 };


[renesas-drivers:topic/bd9571-toggle-power-switch-v3 1/3] drivers/regulator/bd9571mwv-regulator.c:320:34: error: 'dev_attr_backup_mode' undeclared; did you mean 'of_attach_node'?

2018-07-13 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/bd9571-toggle-power-switch-v3
head:   4fda313512471700b88bb8ff2b4d279f8e859c0a
commit: d85ea090054e9994381548062c1089e6fda5aae8 [1/3] regulator: bd9571mwv: 
Use "backup_mode" sysfs file instead of "wake_up"
config: i386-randconfig-x007-201827 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
git checkout d85ea090054e9994381548062c1089e6fda5aae8
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/regulator/bd9571mwv-regulator.c: In function 
'bd9571mwv_regulator_probe':
   drivers/regulator/bd9571mwv-regulator.c:258:9: warning: unused variable 
'ret' [-Wunused-variable]
 int i, ret;
^~~
   drivers/regulator/bd9571mwv-regulator.c: In function 
'bd9571mwv_regulator_remove':
>> drivers/regulator/bd9571mwv-regulator.c:320:34: error: 
>> 'dev_attr_backup_mode' undeclared (first use in this function); did you mean 
>> 'of_attach_node'?
 device_remove_file(>dev, _attr_backup_mode);
 ^~~~
 of_attach_node
   drivers/regulator/bd9571mwv-regulator.c:320:34: note: each undeclared 
identifier is reported only once for each function it appears in

vim +320 drivers/regulator/bd9571mwv-regulator.c

   250  
   251  static int bd9571mwv_regulator_probe(struct platform_device *pdev)
   252  {
   253  struct bd9571mwv *bd = dev_get_drvdata(pdev->dev.parent);
   254  struct regulator_config config = { };
   255  struct bd9571mwv_reg *bdreg;
   256  struct regulator_dev *rdev;
   257  unsigned int val;
 > 258  int i, ret;
   259  
   260  bdreg = devm_kzalloc(>dev, sizeof(*bdreg), GFP_KERNEL);
   261  if (!bdreg)
   262  return -ENOMEM;
   263  
   264  bdreg->bd = bd;
   265  
   266  platform_set_drvdata(pdev, bdreg);
   267  
   268  config.dev = >dev;
   269  config.dev->of_node = bd->dev->of_node;
   270  config.driver_data = bd;
   271  config.regmap = bd->regmap;
   272  
   273  for (i = 0; i < ARRAY_SIZE(regulators); i++) {
   274  rdev = devm_regulator_register(>dev, 
[i],
   275 );
   276  if (IS_ERR(rdev)) {
   277  dev_err(bd->dev, "failed to register %s 
regulator\n",
   278  pdev->name);
   279  return PTR_ERR(rdev);
   280  }
   281  }
   282  
   283  val = 0;
   284  of_property_read_u32(bd->dev->of_node, "rohm,ddr-backup-power", 
);
   285  if (val & ~BD9571MWV_BKUP_MODE_CNT_KEEPON_MASK) {
   286  dev_err(bd->dev, "invalid %s mode %u\n",
   287  "rohm,ddr-backup-power", val);
   288  return -EINVAL;
   289  }
   290  bdreg->bkup_mode_cnt_keepon = val;
   291  
   292  bdreg->rstbmode_level = of_property_read_bool(bd->dev->of_node,
   293
"rohm,rstbmode-level");
   294  bdreg->rstbmode_pulse = of_property_read_bool(bd->dev->of_node,
   295
"rohm,rstbmode-pulse");
   296  if (bdreg->rstbmode_level && bdreg->rstbmode_pulse) {
   297  dev_err(bd->dev, "only one rohm,rstbmode-* may be 
specified");
   298  return -EINVAL;
   299  }
   300  
   301  #ifdef CONFIG_PM_SLEEP
   302  if (bdreg->bkup_mode_cnt_keepon) {
   303  /*
   304   * Backup mode is enabled by default in pulse mode, but 
needs
   305   * explicit user setup in level mode.
   306   */
   307  bdreg->bkup_mode_enabled = bdreg->rstbmode_pulse;
   308  
   309  ret = device_create_file(>dev, 
_attr_backup_mode);
   310  if (ret)
   311  return ret;
   312  }
   313  #endif /* CONFIG_PM_SLEEP */
   314  
   315  return 0;
   316  }
   317  
   318  static int bd9571mwv_regulator_remove(struct platform_device *pdev)
   319  {
 > 320  device_remove_file(>dev, _attr_backup_mode);
   321  return 0;
   322  }
   323  

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


.config.gz
Description: application/gzip


Re: [PATCH v7 5/5] clk: renesas: Renesas R9A06G032 clock driver

2018-05-26 Thread kbuild test robot
Hi Michel,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on renesas-drivers/clk-renesas]
[also build test WARNING on v4.17-rc6]
[cannot apply to robh/for-next]
[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/Michel-Pollet/dt-bindings-Add-the-r9a06g032-sysctrl-h-file/20180526-154235
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
clk-renesas
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/clk/renesas/r9a06g032-clocks.c:430:22: sparse: cast removes address 
>> space of expression
>> drivers/clk/renesas/r9a06g032-clocks.c:431:30: sparse: incorrect type in 
>> argument 1 (different address spaces) @@expected unsigned int [noderef] 
>> [usertype] *reg @@got eref] [usertype] *reg @@
   drivers/clk/renesas/r9a06g032-clocks.c:431:30:expected unsigned int 
[noderef] [usertype] *reg
   drivers/clk/renesas/r9a06g032-clocks.c:431:30:got unsigned int 
[usertype] *reg
   drivers/clk/renesas/r9a06g032-clocks.c:516:22: sparse: cast removes address 
space of expression
   drivers/clk/renesas/r9a06g032-clocks.c:528:38: sparse: incorrect type in 
argument 2 (different address spaces) @@expected unsigned int [noderef] 
[usertype] *reg @@got eref] [usertype] *reg @@
   drivers/clk/renesas/r9a06g032-clocks.c:528:38:expected unsigned int 
[noderef] [usertype] *reg
   drivers/clk/renesas/r9a06g032-clocks.c:528:38:got unsigned int 
[usertype] *reg

vim +430 drivers/clk/renesas/r9a06g032-clocks.c

   421  
   422  #define to_r9a06g032_divider(_hw) \
   423  container_of(_hw, struct r9a06g032_clk_div, hw)
   424  
   425  static unsigned long r9a06g032_divider_recalc_rate(
   426  struct clk_hw *hw,
   427  unsigned long parent_rate)
   428  {
   429  struct r9a06g032_clk_div *clk = to_r9a06g032_divider(hw);
 > 430  u32 *reg = ((u32 *)clk->clocks->reg) + clk->reg;
 > 431  long div = clk_readl(reg);
   432  
   433  if (div < clk->min)
   434  div = clk->min;
   435  else if (div > clk->max)
   436  div = clk->max;
   437  return DIV_ROUND_UP(parent_rate, div);
   438  }
   439  

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


Re: [PATCH 2/6] mfd: da9063: Replace model with type

2018-05-26 Thread kbuild test robot
Hi Marek,

I love your patch! Yet something to improve:

[auto build test ERROR on ljones-mfd/for-mfd-next]
[also build test ERROR on v4.17-rc6]
[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/Marek-Vasut/mfd-da9063-Rename-PMIC_DA9063-to-PMIC_CHIP_ID_DA9063/20180526-162613
base:   https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
config: x86_64-randconfig-x011-201820 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/regulator/da9063-regulator.c: In function 'da9063_regulator_probe':
>> drivers/regulator/da9063-regulator.c:744:12: error: 'const struct 
>> da9063_dev_model' has no member named 'dev_model'
  if (model->dev_model == da9063->type)
   ^~
>> drivers/regulator/da9063-regulator.c:749:10: error: 'struct da9063' has no 
>> member named 'model'
   da9063->model);
 ^~

vim +744 drivers/regulator/da9063-regulator.c

   715  
   716  static int da9063_regulator_probe(struct platform_device *pdev)
   717  {
   718  struct da9063 *da9063 = dev_get_drvdata(pdev->dev.parent);
   719  struct da9063_pdata *da9063_pdata = 
dev_get_platdata(da9063->dev);
   720  struct of_regulator_match *da9063_reg_matches = NULL;
   721  struct da9063_regulators_pdata *regl_pdata;
   722  const struct da9063_dev_model *model;
   723  struct da9063_regulators *regulators;
   724  struct da9063_regulator *regl;
   725  struct regulator_config config;
   726  bool bcores_merged, bmem_bio_merged;
   727  int id, irq, n, n_regulators, ret, val;
   728  size_t size;
   729  
   730  regl_pdata = da9063_pdata ? da9063_pdata->regulators_pdata : 
NULL;
   731  
   732  if (!regl_pdata)
   733  regl_pdata = da9063_parse_regulators_dt(pdev,
   734  
_reg_matches);
   735  
   736  if (IS_ERR(regl_pdata) || regl_pdata->n_regulators == 0) {
   737  dev_err(>dev,
   738  "No regulators defined for the platform\n");
   739  return -ENODEV;
   740  }
   741  
   742  /* Find regulators set for particular device model */
   743  for (model = regulators_models; model->regulator_info; model++) 
{
 > 744  if (model->dev_model == da9063->type)
   745  break;
   746  }
   747  if (!model->regulator_info) {
   748  dev_err(>dev, "Chip model not recognised (%u)\n",
 > 749  da9063->model);
   750  return -ENODEV;
   751  }
   752  
   753  ret = regmap_read(da9063->regmap, DA9063_REG_CONFIG_H, );
   754  if (ret < 0) {
   755  dev_err(>dev,
   756  "Error while reading BUCKs configuration\n");
   757  return ret;
   758  }
   759  bcores_merged = val & DA9063_BCORE_MERGE;
   760  bmem_bio_merged = val & DA9063_BUCK_MERGE;
   761  
   762  n_regulators = model->n_regulators;
   763  if (bcores_merged)
   764  n_regulators -= 2; /* remove BCORE1, BCORE2 */
   765  else
   766  n_regulators--;/* remove BCORES_MERGED */
   767  if (bmem_bio_merged)
   768  n_regulators -= 2; /* remove BMEM, BIO */
   769  else
   770  n_regulators--;/* remove BMEM_BIO_MERGED */
   771  
   772  /* Allocate memory required by usable regulators */
   773  size = sizeof(struct da9063_regulators) +
   774  n_regulators * sizeof(struct da9063_regulator);
   775  regulators = devm_kzalloc(>dev, size, GFP_KERNEL);
   776  if (!regulators)
   777  return -ENOMEM;
   778  
   779  regulators->n_regulators = n_regulators;
   780  platform_set_drvdata(pdev, regulators);
   781  
   782  /* Register all regulators declared in platform information */
   783  n = 0;
   784  id = 0;
   785  while (n < regulators->n_regulators) {
   786  /* Skip regulator IDs depending on merge mode 
configuration */
   787  switch (id) {
   788  case DA9063_ID_BCORE1:
   789  case DA9063_ID_BCORE2:
   790  if (bcores_merged) {
   791  id++;
   792  continue;
   793  }
   794  break;
   795  case DA9063_ID_BMEM:
   796  case DA9063_ID_BIO:
   797  if 

Re: [PATCH 2/6] mfd: da9063: Replace model with type

2018-05-26 Thread kbuild test robot
Hi Marek,

I love your patch! Perhaps something to improve:

[auto build test WARNING on ljones-mfd/for-mfd-next]
[also build test WARNING on v4.17-rc6]
[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/Marek-Vasut/mfd-da9063-Rename-PMIC_DA9063-to-PMIC_CHIP_ID_DA9063/20180526-162613
base:   https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
config: x86_64-randconfig-x002-201820 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:10:0,
from drivers//regulator/da9063-regulator.c:16:
   drivers//regulator/da9063-regulator.c: In function 'da9063_regulator_probe':
   drivers//regulator/da9063-regulator.c:744:12: error: 'const struct 
da9063_dev_model' has no member named 'dev_model'
  if (model->dev_model == da9063->type)
   ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> drivers//regulator/da9063-regulator.c:744:3: note: in expansion of macro 'if'
  if (model->dev_model == da9063->type)
  ^~
   drivers//regulator/da9063-regulator.c:744:12: error: 'const struct 
da9063_dev_model' has no member named 'dev_model'
  if (model->dev_model == da9063->type)
   ^
   include/linux/compiler.h:58:42: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> drivers//regulator/da9063-regulator.c:744:3: note: in expansion of macro 'if'
  if (model->dev_model == da9063->type)
  ^~
   drivers//regulator/da9063-regulator.c:744:12: error: 'const struct 
da9063_dev_model' has no member named 'dev_model'
  if (model->dev_model == da9063->type)
   ^
   include/linux/compiler.h:69:16: note: in definition of macro '__trace_if'
  __r = !!(cond); \
   ^~~~
>> drivers//regulator/da9063-regulator.c:744:3: note: in expansion of macro 'if'
  if (model->dev_model == da9063->type)
  ^~
   drivers//regulator/da9063-regulator.c:749:10: error: 'struct da9063' has no 
member named 'model'
   da9063->model);
 ^~

vim +/if +744 drivers//regulator/da9063-regulator.c

   715  
   716  static int da9063_regulator_probe(struct platform_device *pdev)
   717  {
   718  struct da9063 *da9063 = dev_get_drvdata(pdev->dev.parent);
   719  struct da9063_pdata *da9063_pdata = 
dev_get_platdata(da9063->dev);
   720  struct of_regulator_match *da9063_reg_matches = NULL;
   721  struct da9063_regulators_pdata *regl_pdata;
   722  const struct da9063_dev_model *model;
   723  struct da9063_regulators *regulators;
   724  struct da9063_regulator *regl;
   725  struct regulator_config config;
   726  bool bcores_merged, bmem_bio_merged;
   727  int id, irq, n, n_regulators, ret, val;
   728  size_t size;
   729  
   730  regl_pdata = da9063_pdata ? da9063_pdata->regulators_pdata : 
NULL;
   731  
   732  if (!regl_pdata)
   733  regl_pdata = da9063_parse_regulators_dt(pdev,
   734  
_reg_matches);
   735  
   736  if (IS_ERR(regl_pdata) || regl_pdata->n_regulators == 0) {
   737  dev_err(>dev,
   738  "No regulators defined for the platform\n");
   739  return -ENODEV;
   740  }
   741  
   742  /* Find regulators set for particular device model */
   743  for (model = regulators_models; model->regulator_info; model++) 
{
 > 744  if (model->dev_model == da9063->type)
   745  break;
   746  }
   747  if (!model->regulator_info) {
   748  dev_err(>dev, "Chip model not recognised (%u)\n",
   749  da9063->model);
   750  return -ENODEV;
   751  }
   752  
   753  ret = regmap_read(da9063->regmap, DA9063_REG_CONFIG_H, );
   754  if (ret < 0) {
   755  dev_err(>dev,
   756  "Error while reading BUCKs configuration\n");
   757  return ret;
   758  }
   759  bcores_merged = val & DA9063_BCORE_MERGE;
   760  bmem_bio_merged = val & DA9063_BUCK_MERGE;
   761  
   762  n_regulators = model->n_regulators;
   763  if (bcores_merged)
   764  n_regulators -= 2; /* remove BCORE1, BCORE2 */
   765  else
   766  n_regulators--;/* remove BCORES_MERGED */
   767  if (bmem_bio_merged)

Re: [PATCH v6 6/6] clk: renesas: Renesas RZ/N1 clock driver

2018-05-23 Thread kbuild test robot
Hi Michel,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on next-20180517]
[also build test WARNING on v4.17-rc6]
[cannot apply to robh/for-next renesas-drivers/clk-renesas renesas/devel 
v4.17-rc6 v4.17-rc5 v4.17-rc4]
[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/Michel-Pollet/arm-Base-support-for-Renesas-RZN1D-DB-Board/20180524-052042
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/clk/renesas/rzn1-clocks.c:270:22: sparse: cast removes address space 
>> of expression
>> drivers/clk/renesas/rzn1-clocks.c:271:29: sparse: incorrect type in argument 
>> 1 (different address spaces) @@expected unsigned int [noderef] 
>> [usertype] *reg @@got eref] [usertype] *reg @@
   drivers/clk/renesas/rzn1-clocks.c:271:29:expected unsigned int [noderef] 
[usertype] *reg
   drivers/clk/renesas/rzn1-clocks.c:271:29:got unsigned int [usertype] *reg
   drivers/clk/renesas/rzn1-clocks.c:274:25: sparse: incorrect type in argument 
2 (different address spaces) @@expected unsigned int [noderef] [usertype] 
*reg @@got eref] [usertype] *reg @@
   drivers/clk/renesas/rzn1-clocks.c:274:25:expected unsigned int [noderef] 
[usertype] *reg
   drivers/clk/renesas/rzn1-clocks.c:274:25:got unsigned int [usertype] *reg
   drivers/clk/renesas/rzn1-clocks.c:281:22: sparse: cast removes address space 
of expression
   drivers/clk/renesas/rzn1-clocks.c:282:29: sparse: incorrect type in argument 
1 (different address spaces) @@expected unsigned int [noderef] [usertype] 
*reg @@got eref] [usertype] *reg @@
   drivers/clk/renesas/rzn1-clocks.c:282:29:expected unsigned int [noderef] 
[usertype] *reg
   drivers/clk/renesas/rzn1-clocks.c:282:29:got unsigned int [usertype] *reg
   drivers/clk/renesas/rzn1-clocks.c:430:22: sparse: cast removes address space 
of expression
   drivers/clk/renesas/rzn1-clocks.c:431:30: sparse: incorrect type in argument 
1 (different address spaces) @@expected unsigned int [noderef] [usertype] 
*reg @@got eref] [usertype] *reg @@
   drivers/clk/renesas/rzn1-clocks.c:431:30:expected unsigned int [noderef] 
[usertype] *reg
   drivers/clk/renesas/rzn1-clocks.c:431:30:got unsigned int [usertype] *reg
   drivers/clk/renesas/rzn1-clocks.c:516:22: sparse: cast removes address space 
of expression
   drivers/clk/renesas/rzn1-clocks.c:528:38: sparse: incorrect type in argument 
2 (different address spaces) @@expected unsigned int [noderef] [usertype] 
*reg @@got eref] [usertype] *reg @@
   drivers/clk/renesas/rzn1-clocks.c:528:38:expected unsigned int [noderef] 
[usertype] *reg
   drivers/clk/renesas/rzn1-clocks.c:528:38:got unsigned int [usertype] *reg

vim +270 drivers/clk/renesas/rzn1-clocks.c

   264  
   265  /* register/bit pairs are encoded as an uint16_t */
   266  static void clk_rdesc_set(
   267  struct rzn1_priv *clocks,
   268  uint16_t one, unsigned int on)
   269  {
 > 270  u32 *reg = ((u32 *)clocks->reg) + (one >> 5);
 > 271  u32 val = clk_readl(reg);
   272  
   273  val = (val & ~(1U << (one & 0x1f))) | ((!!on) << (one & 0x1f));
   274  clk_writel(val, reg);
   275  }
   276  

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


Re: [PATCH v6 5/6] ARM: dts: Renesas RZN1D-DB Board base file

2018-05-23 Thread kbuild test robot
Hi Michel,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on next-20180517]
[also build test ERROR on v4.17-rc6]
[cannot apply to robh/for-next renesas-drivers/clk-renesas renesas/devel 
v4.17-rc6 v4.17-rc5 v4.17-rc4]
[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/Michel-Pollet/arm-Base-support-for-Renesas-RZN1D-DB-Board/20180524-052042
config: arm-at91_dt_defconfig (attached as .config)
compiler: arm-linux-gnueabi-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
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   In file included from arch/arm/boot/dts/r9a06g032-rzn1d400-db.dts:11:0:
>> arch/arm/boot/dts/r9a06g032.dtsi:10:10: fatal error: 
>> dt-bindings/clock/rzn1-clock.h: No such file or directory
#include 
 ^~~~
   compilation terminated.

vim +10 arch/arm/boot/dts/r9a06g032.dtsi

f9ea3b52 Michel Pollet 2018-05-22 @10  #include 
f9ea3b52 Michel Pollet 2018-05-22  11  

:: The code at line 10 was first introduced by commit
:: f9ea3b52d31219bb2ad77f919417ed61fc779fcb ARM: dts: Renesas RZ/N1 SoC 
base device tree file

:: TO: Michel Pollet 
:: CC: 0day robot 

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


.config.gz
Description: application/gzip


Re: [PATCH v3 2/3] arm64: dts: renesas: draak: Describe CVBS input

2018-05-20 Thread kbuild test robot
Hi Jacopo,

I love your patch! Yet something to improve:

[auto build test ERROR on linuxtv-media/master]
[cannot apply to renesas/next v4.17-rc6]
[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/Jacopo-Mondi/arm64-dts-Draak-Enable-video-inputs-and-VIN4/20180521-052159
base:   git://linuxtv.org/media_tree.git master
config: arm64-defconfig (attached as .config)
compiler: aarch64-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
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

>> Error: arch/arm64/boot/dts/renesas/r8a77995-draak.dts:272.1-6 Label or path 
>> vin4 not found
>> FATAL ERROR: Syntax error parsing input tree

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


.config.gz
Description: application/gzip


Re: [PATCH net-next 2/2] drivers: net: Remove device_node checks with of_mdiobus_register()

2018-05-16 Thread kbuild test robot
Hi Florian,

I love your patch! Yet something to improve:

[auto build test ERROR on net-next/master]

url:
https://github.com/0day-ci/linux/commits/Florian-Fainelli/of-mdio-Fall-back-to-mdiobus_register-with-np-is-NULL/20180516-203317
config: arm-omap2plus_defconfig (attached as .config)
compiler: arm-linux-gnueabi-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
# save the attached .config to linux build tree
make.cross ARCH=arm 

All error/warnings (new ones prefixed by >>):

   drivers/net//ethernet/ti/davinci_mdio.c: In function 'davinci_mdio_probe':
>> drivers/net//ethernet/ti/davinci_mdio.c:457:12: error: invalid storage class 
>> for function 'davinci_mdio_remove'
static int davinci_mdio_remove(struct platform_device *pdev)
   ^~~
>> drivers/net//ethernet/ti/davinci_mdio.c:457:1: warning: ISO C90 forbids 
>> mixed declarations and code [-Wdeclaration-after-statement]
static int davinci_mdio_remove(struct platform_device *pdev)
^~
>> drivers/net//ethernet/ti/davinci_mdio.c:471:12: error: invalid storage class 
>> for function 'davinci_mdio_runtime_suspend'
static int davinci_mdio_runtime_suspend(struct device *dev)
   ^~~~
>> drivers/net//ethernet/ti/davinci_mdio.c:485:12: error: invalid storage class 
>> for function 'davinci_mdio_runtime_resume'
static int davinci_mdio_runtime_resume(struct device *dev)
   ^~~
>> drivers/net//ethernet/ti/davinci_mdio.c:495:12: error: invalid storage class 
>> for function 'davinci_mdio_suspend'
static int davinci_mdio_suspend(struct device *dev)
   ^~~~
>> drivers/net//ethernet/ti/davinci_mdio.c:512:12: error: invalid storage class 
>> for function 'davinci_mdio_resume'
static int davinci_mdio_resume(struct device *dev)
   ^~~
   In file included from include/linux/device.h:23:0,
from include/linux/platform_device.h:14,
from drivers/net//ethernet/ti/davinci_mdio.c:29:
>> drivers/net//ethernet/ti/davinci_mdio.c:527:21: error: initializer element 
>> is not constant
 SET_RUNTIME_PM_OPS(davinci_mdio_runtime_suspend,
^
   include/linux/pm.h:354:21: note: in definition of macro 'SET_RUNTIME_PM_OPS'
 .runtime_suspend = suspend_fn, \
^~
   drivers/net//ethernet/ti/davinci_mdio.c:527:21: note: (near initialization 
for 'davinci_mdio_pm_ops.runtime_suspend')
 SET_RUNTIME_PM_OPS(davinci_mdio_runtime_suspend,
^
   include/linux/pm.h:354:21: note: in definition of macro 'SET_RUNTIME_PM_OPS'
 .runtime_suspend = suspend_fn, \
^~
   drivers/net//ethernet/ti/davinci_mdio.c:528:7: error: initializer element is 
not constant
  davinci_mdio_runtime_resume, NULL)
  ^
   include/linux/pm.h:355:20: note: in definition of macro 'SET_RUNTIME_PM_OPS'
 .runtime_resume = resume_fn, \
   ^
   drivers/net//ethernet/ti/davinci_mdio.c:528:7: note: (near initialization 
for 'davinci_mdio_pm_ops.runtime_resume')
  davinci_mdio_runtime_resume, NULL)
  ^
   include/linux/pm.h:355:20: note: in definition of macro 'SET_RUNTIME_PM_OPS'
 .runtime_resume = resume_fn, \
   ^
   drivers/net//ethernet/ti/davinci_mdio.c:529:31: error: initializer element 
is not constant
 SET_LATE_SYSTEM_SLEEP_PM_OPS(davinci_mdio_suspend, davinci_mdio_resume)
  ^
   include/linux/pm.h:330:18: note: in definition of macro 
'SET_LATE_SYSTEM_SLEEP_PM_OPS'
 .suspend_late = suspend_fn, \
 ^~
   drivers/net//ethernet/ti/davinci_mdio.c:529:31: note: (near initialization 
for 'davinci_mdio_pm_ops.suspend_late')
 SET_LATE_SYSTEM_SLEEP_PM_OPS(davinci_mdio_suspend, davinci_mdio_resume)
  ^
   include/linux/pm.h:330:18: note: in definition of macro 
'SET_LATE_SYSTEM_SLEEP_PM_OPS'
 .suspend_late = suspend_fn, \
 ^~
   drivers/net//ethernet/ti/davinci_mdio.c:529:53: error: initializer element 
is not constant
 SET_LATE_SYSTEM_SLEEP_PM_OPS(davinci_mdio_suspend, davinci_mdio_resume)
^
   include/linux/pm.h:331:18: note: in definition of macro 
'SET_LATE_SYSTEM_SLEEP_PM_OPS'
 .resume_early = resume_fn, \
 ^
   drivers/net//ethernet/ti/davinci_mdio.c:529:53: note: (near initialization 
for 'davinci_mdio_pm_ops.resume_early')
 SET_LATE_SYSTEM_SLEEP_PM_OPS(davinci_mdio_suspend, davinci_mdio_resume)
^
   include/linux/pm.h:331:18: note: in definition of macro 

Re: [PATCH 22/24] drm/bridge: remove the .of_node member

2018-04-28 Thread kbuild test robot
Hi Peter,

I love your patch! Yet something to improve:

[auto build test ERROR on v4.17-rc2]
[also build test ERROR on next-20180426]
[cannot apply to drm/drm-next robclark/msm-next drm-exynos/exynos-drm/for-next]
[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/Peter-Rosin/device-link-bridge-supplier-drm-device/20180428-135229
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-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
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/gpu//drm/rockchip/rockchip_lvds.c: In function 'rockchip_lvds_bind':
>> drivers/gpu//drm/rockchip/rockchip_lvds.c:381:24: error: 'struct drm_bridge' 
>> has no member named 'of_node'
  remote = lvds->bridge->of_node;
   ^~

vim +381 drivers/gpu//drm/rockchip/rockchip_lvds.c

34cc0aa25 Sandy Huang 2017-09-02  340  
34cc0aa25 Sandy Huang 2017-09-02  341  static int rockchip_lvds_bind(struct 
device *dev, struct device *master,
34cc0aa25 Sandy Huang 2017-09-02  342 void *data)
34cc0aa25 Sandy Huang 2017-09-02  343  {
34cc0aa25 Sandy Huang 2017-09-02  344   struct rockchip_lvds *lvds = 
dev_get_drvdata(dev);
34cc0aa25 Sandy Huang 2017-09-02  345   struct drm_device *drm_dev = data;
34cc0aa25 Sandy Huang 2017-09-02  346   struct drm_encoder *encoder;
34cc0aa25 Sandy Huang 2017-09-02  347   struct drm_connector *connector;
34cc0aa25 Sandy Huang 2017-09-02  348   struct device_node *remote = NULL;
34cc0aa25 Sandy Huang 2017-09-02  349   struct device_node  *port, *endpoint;
6bf2e0324 Sean Paul   2017-09-20  350   int ret = 0, child_count = 0;
34cc0aa25 Sandy Huang 2017-09-02  351   const char *name;
34cc0aa25 Sandy Huang 2017-09-02  352   u32 endpoint_id;
34cc0aa25 Sandy Huang 2017-09-02  353  
34cc0aa25 Sandy Huang 2017-09-02  354   lvds->drm_dev = drm_dev;
34cc0aa25 Sandy Huang 2017-09-02  355   port = 
of_graph_get_port_by_id(dev->of_node, 1);
34cc0aa25 Sandy Huang 2017-09-02  356   if (!port) {
34cc0aa25 Sandy Huang 2017-09-02  357   DRM_DEV_ERROR(dev,
34cc0aa25 Sandy Huang 2017-09-02  358 "can't found port 
point, please init lvds panel port!\n");
34cc0aa25 Sandy Huang 2017-09-02  359   return -EINVAL;
34cc0aa25 Sandy Huang 2017-09-02  360   }
34cc0aa25 Sandy Huang 2017-09-02  361   for_each_child_of_node(port, endpoint) {
6bf2e0324 Sean Paul   2017-09-20  362   child_count++;
34cc0aa25 Sandy Huang 2017-09-02  363   of_property_read_u32(endpoint, 
"reg", _id);
34cc0aa25 Sandy Huang 2017-09-02  364   ret = 
drm_of_find_panel_or_bridge(dev->of_node, 1, endpoint_id,
34cc0aa25 Sandy Huang 2017-09-02  365   
  >panel, >bridge);
34cc0aa25 Sandy Huang 2017-09-02  366   if (!ret)
34cc0aa25 Sandy Huang 2017-09-02  367   break;
34cc0aa25 Sandy Huang 2017-09-02  368   }
6bf2e0324 Sean Paul   2017-09-20  369   if (!child_count) {
6bf2e0324 Sean Paul   2017-09-20  370   DRM_DEV_ERROR(dev, "lvds port 
does not have any children\n");
6bf2e0324 Sean Paul   2017-09-20  371   ret = -EINVAL;
6bf2e0324 Sean Paul   2017-09-20  372   goto err_put_port;
6bf2e0324 Sean Paul   2017-09-20  373   } else if (ret) {
34cc0aa25 Sandy Huang 2017-09-02  374   DRM_DEV_ERROR(dev, "failed to 
find panel and bridge node\n");
34cc0aa25 Sandy Huang 2017-09-02  375   ret = -EPROBE_DEFER;
34cc0aa25 Sandy Huang 2017-09-02  376   goto err_put_port;
34cc0aa25 Sandy Huang 2017-09-02  377   }
34cc0aa25 Sandy Huang 2017-09-02  378   if (lvds->panel)
34cc0aa25 Sandy Huang 2017-09-02  379   remote = 
lvds->panel->dev->of_node;
34cc0aa25 Sandy Huang 2017-09-02  380   else
34cc0aa25 Sandy Huang 2017-09-02 @381   remote = lvds->bridge->of_node;
34cc0aa25 Sandy Huang 2017-09-02  382   if 
(of_property_read_string(dev->of_node, "rockchip,output", ))
34cc0aa25 Sandy Huang 2017-09-02  383   /* default set it as output rgb 
*/
34cc0aa25 Sandy Huang 2017-09-02  384   lvds->output = 
DISPLAY_OUTPUT_RGB;
34cc0aa25 Sandy Huang 2017-09-02  385   else
34cc0aa25 Sandy Huang 2017-09-02  386   lvds->output = 
lvds_name_to_output(name);
34cc0aa25 Sandy Huang 2017-09-02  387  
34cc0aa25 Sandy Huang 2017-09-02  388   if (lvds->output < 0) {
34cc0aa25 Sandy Huang 2017-09-02  389   DRM_DEV_ERROR(dev, "invalid 
output type [%s]\n", name);
34cc0aa25 Sandy Huang 2017-09-02  390   ret = lvds->output;
34cc0aa25 Sandy Huang 2017-09-02  391   goto err_put_remote;
34cc0aa25 Sandy Huang 2017-09-02  392   }
34cc0aa25 Sandy Huang 2017-09-02  393  
34cc0aa25 Sandy Huang 2017-09-02  394   if 

Re: [PATCH v7 01/11] ARM: sunxi: smp: Move assembly code into a file

2018-04-26 Thread kbuild test robot
Hi Mylène,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on arm-soc/for-next]
[also build test ERROR on v4.17-rc2 next-20180426]
[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/Myl-ne-Josserand/Sunxi-Add-SMP-support-on-A83T/20180423-051823
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git for-next
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-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
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   /tmp/ccQKy2ZB.s: Assembler messages:
>> /tmp/ccQKy2ZB.s:73: Error: selected processor does not support `isb' in ARM 
>> mode
>> /tmp/ccQKy2ZB.s:74: Error: selected processor does not support `dsb' in ARM 
>> mode

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


.config.gz
Description: application/gzip


Re: [PATCH] drm: rcar-du: of: Include header to define prototypes

2018-04-24 Thread kbuild test robot
Hi Kieran,

I love your patch! Yet something to improve:

[auto build test ERROR on drm/drm-next]
[also build test ERROR on v4.17-rc2 next-20180424]
[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/Kieran-Bingham/drm-rcar-du-of-Include-header-to-define-prototypes/20180425-062015
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: arm64-defconfig (attached as .config)
compiler: aarch64-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
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

>> drivers/gpu//drm/rcar-du/rcar_du_of.c:320:13: error: redefinition of 
>> 'rcar_du_of_init'
void __init rcar_du_of_init(const struct of_device_id *of_ids)
^~~
   In file included from drivers/gpu//drm/rcar-du/rcar_du_of.c:21:0:
   drivers/gpu//drm/rcar-du/rcar_du_of.h:17:20: note: previous definition of 
'rcar_du_of_init' was here
static inline void rcar_du_of_init(const struct of_device_id *of_ids) { }
   ^~~

vim +/rcar_du_of_init +320 drivers/gpu//drm/rcar-du/rcar_du_of.c

81c0e3dd Laurent Pinchart 2018-01-10  319  
81c0e3dd Laurent Pinchart 2018-01-10 @320  void __init rcar_du_of_init(const 
struct of_device_id *of_ids)

:: The code at line 320 was first introduced by commit
:: 81c0e3dd82927064a2f56a31a0974a0d110fcdb0 drm: rcar-du: Fix legacy DT to 
create LVDS encoder nodes

:: TO: Laurent Pinchart 
:: CC: Laurent Pinchart 

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


.config.gz
Description: application/gzip


[renesas:topic/hs400-mmc-v4 3/4] drivers/mmc/host/tmio_mmc_core.c:1103:5: sparse: symbol 'tmio_mmc_prepare_hs400_tuning' was not declared. Should it be static?

2018-04-18 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git 
topic/hs400-mmc-v4
head:   bad50f922dfffd9bc1a54e1512852e45d25b4ac7
commit: 485c8281e412190ab902c62868cfebf7dc783189 [3/4] mmc: tmio: add eMMC 
HS400 mode support
reproduce:
# apt-get install sparse
git checkout 485c8281e412190ab902c62868cfebf7dc783189
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/mmc/host/tmio_mmc_core.c:1103:5: sparse: symbol 
>> 'tmio_mmc_prepare_hs400_tuning' was not declared. Should it be static?
>> drivers/mmc/host/tmio_mmc_core.c:1113:6: sparse: symbol 
>> 'tmio_mmc_prepare_hs400_tuning_downgrade' was not declared. Should it be 
>> static?
>> drivers/mmc/host/tmio_mmc_core.c:1122:6: sparse: symbol 
>> 'tmio_mmc_complete_hs400_tuning' was not declared. Should it be static?

Please review and possibly fold the followup patch.

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


[RFC PATCH renesas] mmc: tmio: tmio_mmc_prepare_hs400_tuning() can be static

2018-04-18 Thread kbuild test robot

Fixes: 485c8281e412 ("mmc: tmio: add eMMC HS400 mode support")
Signed-off-by: Fengguang Wu 
---
 tmio_mmc_core.c |   10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c
index 4a83320..cd7afa9 100644
--- a/drivers/mmc/host/tmio_mmc_core.c
+++ b/drivers/mmc/host/tmio_mmc_core.c
@@ -1100,7 +1100,7 @@ static int tmio_multi_io_quirk(struct mmc_card *card,
return blk_size;
 }
 
-int tmio_mmc_prepare_hs400_tuning(struct mmc_host *mmc, struct mmc_ios *ios)
+static int tmio_mmc_prepare_hs400_tuning(struct mmc_host *mmc, struct mmc_ios 
*ios)
 {
struct tmio_mmc_host *host = mmc_priv(mmc);
 
@@ -1110,8 +1110,8 @@ int tmio_mmc_prepare_hs400_tuning(struct mmc_host *mmc, 
struct mmc_ios *ios)
return 0;
 }
 
-void tmio_mmc_prepare_hs400_tuning_downgrade(struct mmc_host *mmc,
-struct mmc_ios *ios)
+static void tmio_mmc_prepare_hs400_tuning_downgrade(struct mmc_host *mmc,
+   struct mmc_ios *ios)
 {
struct tmio_mmc_host *host = mmc_priv(mmc);
 
@@ -1119,8 +1119,8 @@ void tmio_mmc_prepare_hs400_tuning_downgrade(struct 
mmc_host *mmc,
host->prepare_hs400_tuning_downgrade(host, ios);
 }
 
-void tmio_mmc_complete_hs400_tuning(struct mmc_host *mmc,
-   struct mmc_ios *ios)
+static void tmio_mmc_complete_hs400_tuning(struct mmc_host *mmc,
+  struct mmc_ios *ios)
 {
struct tmio_mmc_host *host = mmc_priv(mmc);
 


Re: [PATCH v6 01/11] ARM: sunxi: smp: Move assembly code into a file

2018-04-17 Thread kbuild test robot
Hi Mylène,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on arm-soc/for-next]
[also build test ERROR on v4.17-rc1 next-20180417]
[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/Myl-ne-Josserand/Sunxi-Add-SMP-support-on-A83T/20180417-113911
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git for-next
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-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
# save the attached .config to linux build tree
make.cross ARCH=arm 

All error/warnings (new ones prefixed by >>):

   In file included from arch/arm/include/asm/cputype.h:6:0,
from arch/arm/mach-sunxi/headsmp.S:15:
>> include/linux/kernel.h:57:0: warning: "ALIGN" redefined
#define ALIGN(x, a)  __ALIGN_KERNEL((x), (a))

   In file included from arch/arm/mach-sunxi/headsmp.S:13:0:
   include/linux/linkage.h:79:0: note: this is the location of the previous 
definition
#define ALIGN __ALIGN

   /usr/lib/gcc-cross/arm-linux-gnueabi/7/include/stdarg.h: Assembler messages:
>> /usr/lib/gcc-cross/arm-linux-gnueabi/7/include/stdarg.h:40: Error: bad 
>> instruction `typedef __builtin_va_list __gnuc_va_list'
>> /usr/lib/gcc-cross/arm-linux-gnueabi/7/include/stdarg.h:99: Error: bad 
>> instruction `typedef __gnuc_va_list va_list'
>> include/linux/stddef.h:10: Error: bad instruction `enum {'
>> include/linux/stddef.h:11: Error: junk at end of line, first unrecognized 
>> character is `,'
   include/linux/stddef.h:13: Error: junk at end of line, first unrecognized 
character is `}'
>> include/linux/bitops.h:29: Error: bad instruction `extern unsigned int 
>> __sw_hweight8(unsigned int w)'
>> include/linux/bitops.h:30: Error: bad instruction `extern unsigned int 
>> __sw_hweight16(unsigned int w)'
>> include/linux/bitops.h:31: Error: bad instruction `extern unsigned int 
>> __sw_hweight32(unsigned int w)'
>> include/linux/bitops.h:32: Error: bad instruction `extern unsigned long 
>> __sw_hweight64(__u64 w)'
>> arch/arm/include/asm/irqflags.h:25: Error: bad instruction `static inline 
>> unsigned long arch_local_irq_save(void)'
>> arch/arm/include/asm/irqflags.h:26: Error: junk at end of line, first 
>> unrecognized character is `{'
>> arch/arm/include/asm/irqflags.h:27: Error: bad instruction `unsigned long 
>> flags'
>> arch/arm/include/asm/irqflags.h:29: Error: bad instruction `asm volatile('
   arch/arm/include/asm/irqflags.h:30: Error: bad instruction ` mrs %0, 
""cpsr""@ arch_local_irq_save\n"'
>> arch/arm/include/asm/irqflags.h:31: Error: bad instruction ` cpsid   i"'
>> arch/arm/include/asm/irqflags.h:32: Error: junk at end of line, first 
>> unrecognized character is `:'
>> arch/arm/include/asm/irqflags.h:33: Error: bad instruction `return flags'
   arch/arm/include/asm/irqflags.h:34: Error: junk at end of line, first 
unrecognized character is `}'
>> arch/arm/include/asm/irqflags.h:37: Error: bad instruction `static inline 
>> void arch_local_irq_enable(void)'
   arch/arm/include/asm/irqflags.h:38: Error: junk at end of line, first 
unrecognized character is `{'
   arch/arm/include/asm/irqflags.h:39: Error: bad instruction `asm volatile('
>> arch/arm/include/asm/irqflags.h:40: Error: bad instruction ` cpsie i 
>> @ arch_local_irq_enable"'
   arch/arm/include/asm/irqflags.h:41: Error: junk at end of line, first 
unrecognized character is `:'
   arch/arm/include/asm/irqflags.h:42: Error: junk at end of line, first 
unrecognized character is `:'
   arch/arm/include/asm/irqflags.h:43: Error: junk at end of line, first 
unrecognized character is `:'
   arch/arm/include/asm/irqflags.h:44: Error: junk at end of line, first 
unrecognized character is `}'
>> arch/arm/include/asm/irqflags.h:47: Error: bad instruction `static inline 
>> void arch_local_irq_disable(void)'
   arch/arm/include/asm/irqflags.h:48: Error: junk at end of line, first 
unrecognized character is `{'
   arch/arm/include/asm/irqflags.h:49: Error: bad instruction `asm volatile('
>> arch/arm/include/asm/irqflags.h:50: Error: bad instruction ` cpsid i 
>> @ arch_local_irq_disable"'
   arch/arm/include/asm/irqflags.h:51: Error: junk at end of line, first 
unrecognized character is `:'
   arch/arm/include/asm/irqflags.h:52: Error: junk at end of line, first 
unrecognized character is `:'
   arch/arm/include/asm/irqflags.h:53: Error: junk at end of line, first 
unrecognized character is `:'
   arch/arm/include/asm/irqflags.h:54: Error: junk at end of line, first 
unrecognized character is `}'

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


.config.gz

Re: [PATCH v6 01/11] ARM: sunxi: smp: Move assembly code into a file

2018-04-17 Thread kbuild test robot
Hi Mylène,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on arm-soc/for-next]
[also build test ERROR on v4.17-rc1 next-20180416]
[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/Myl-ne-Josserand/Sunxi-Add-SMP-support-on-A83T/20180417-113911
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git for-next
config: arm-sunxi_defconfig (attached as .config)
compiler: arm-linux-gnueabi-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
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   include/asm-generic/bitops/sched.h:14: Error: junk at end of line, first 
unrecognized character is `{'
   include/asm-generic/bitops/sched.h:20: Error: bad instruction `if (b[0])'
   include/asm-generic/bitops/sched.h:21: Error: bad instruction `return 
__ffs(b[0])'
   include/asm-generic/bitops/sched.h:22: Error: bad instruction `if (b[1])'
   include/asm-generic/bitops/sched.h:23: Error: bad instruction `return 
__ffs(b[1])+32'
   include/asm-generic/bitops/sched.h:24: Error: bad instruction `if (b[2])'
   include/asm-generic/bitops/sched.h:25: Error: bad instruction `return 
__ffs(b[2])+64'
   include/asm-generic/bitops/sched.h:26: Error: bad instruction `return 
__ffs(b[3])+96'
   include/asm-generic/bitops/sched.h:30: Error: junk at end of line, first 
unrecognized character is `}'
   include/asm-generic/bitops/arch_hweight.h:7: Error: bad instruction `static 
inline unsigned int __arch_hweight32(unsigned int w)'
   include/asm-generic/bitops/arch_hweight.h:8: Error: junk at end of line, 
first unrecognized character is `{'
   include/asm-generic/bitops/arch_hweight.h:9: Error: bad instruction `return 
__sw_hweight32(w)'
   include/asm-generic/bitops/arch_hweight.h:10: Error: junk at end of line, 
first unrecognized character is `}'
   include/asm-generic/bitops/arch_hweight.h:12: Error: bad instruction `static 
inline unsigned int __arch_hweight16(unsigned int w)'
   include/asm-generic/bitops/arch_hweight.h:13: Error: junk at end of line, 
first unrecognized character is `{'
   include/asm-generic/bitops/arch_hweight.h:14: Error: bad instruction `return 
__sw_hweight16(w)'
   include/asm-generic/bitops/arch_hweight.h:15: Error: junk at end of line, 
first unrecognized character is `}'
   include/asm-generic/bitops/arch_hweight.h:17: Error: bad instruction `static 
inline unsigned int __arch_hweight8(unsigned int w)'
   include/asm-generic/bitops/arch_hweight.h:18: Error: junk at end of line, 
first unrecognized character is `{'
   include/asm-generic/bitops/arch_hweight.h:19: Error: bad instruction `return 
__sw_hweight8(w)'
   include/asm-generic/bitops/arch_hweight.h:20: Error: junk at end of line, 
first unrecognized character is `}'
   include/asm-generic/bitops/arch_hweight.h:22: Error: bad instruction `static 
inline unsigned long __arch_hweight64(__u64 w)'
   include/asm-generic/bitops/arch_hweight.h:23: Error: junk at end of line, 
first unrecognized character is `{'
   include/asm-generic/bitops/arch_hweight.h:24: Error: bad instruction `return 
__sw_hweight64(w)'
   include/asm-generic/bitops/arch_hweight.h:25: Error: junk at end of line, 
first unrecognized character is `}'
   include/asm-generic/bitops/find.h:30: Error: bad instruction `extern 
unsigned long find_next_and_bit(const unsigned long*addr1,'
   include/asm-generic/bitops/find.h:31: Error: bad instruction `const unsigned 
long*addr2,unsigned long size,'
   include/asm-generic/bitops/find.h:32: Error: bad instruction `unsigned long 
offset)'
   arch/arm/include/asm/swab.h:23: Error: bad instruction `static inline __u32 
__arch_swahb32(__u32 x)'
   arch/arm/include/asm/swab.h:24: Error: junk at end of line, first 
unrecognized character is `{'
   arch/arm/include/asm/swab.h:25: Error: bad instruction `__asm__ ("rev16 %0, 
%1":"=r"(x):"r"(x))'
   arch/arm/include/asm/swab.h:26: Error: bad instruction `return x'
   arch/arm/include/asm/swab.h:27: Error: junk at end of line, first 
unrecognized character is `}'
   arch/arm/include/asm/swab.h:31: Error: bad instruction `static inline __u32 
__arch_swab32(__u32 x)'
   arch/arm/include/asm/swab.h:32: Error: junk at end of line, first 
unrecognized character is `{'
   arch/arm/include/asm/swab.h:33: Error: bad instruction `__asm__ ("rev %0, 
%1":"=r"(x):"r"(x))'
   arch/arm/include/asm/swab.h:34: Error: bad instruction `return x'
   arch/arm/include/asm/swab.h:35: Error: junk at end of line, first 
unrecognized character is `}'
   include/uapi/linux/swab.h:47: Error: bad instruction `static inline __u16 
__fswab16(__u16 val)'
   include/uapi/linux/swab.h:48: Error: junk at end of line, first unrecognized 
character is `{'
   include/uapi/linux/swab.h:50: 

Re: [PATCH v2 1/2] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-04-13 Thread kbuild test robot
Hi Phil,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on gpio/for-next]
[also build test ERROR on v4.16 next-20180413]
[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/Phil-Edworthy/gpio-dwapb-Add-support-for-1-interrupt-per-port-A-GPIO/20180414-042450
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git 
for-next
config: x86_64-randconfig-ne0-04140637 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> ERROR: "of_irq_parse_one" [drivers/gpio/gpio-dwapb.ko] undefined!

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


.config.gz
Description: application/gzip


Re: [PATCH v2 1/2] gpio: dwapb: Add support for 1 interrupt per port A GPIO

2018-04-13 Thread kbuild test robot
Hi Phil,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on gpio/for-next]
[also build test ERROR on v4.16 next-20180413]
[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/Phil-Edworthy/gpio-dwapb-Add-support-for-1-interrupt-per-port-A-GPIO/20180414-042450
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git 
for-next
config: sparc64-allyesconfig (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
# save the attached .config to linux build tree
make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   drivers/gpio/gpio-dwapb.o: In function `dwapb_gpio_probe':
>> gpio-dwapb.c:(.text+0x1444): undefined reference to `of_irq_parse_one'
   `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: 
defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
   `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: 
defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
   `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: 
defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
   `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: 
defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o

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


.config.gz
Description: application/gzip


Re: [PATCH v3 5/8] arm: shmobile: Add the RZ/N1 arch to the shmobile Kconfig

2018-03-30 Thread kbuild test robot
Hi Michel,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on renesas/devel]
[also build test ERROR on v4.16-rc7 next-20180329]
[cannot apply to robh/for-next power-supply/for-next]
[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/Michel-Pollet/arm-Base-support-for-Renesas-RZN1D-DB-Board/20180330-103029
base:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git devel
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-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
# save the attached .config to linux build tree
make.cross ARCH=arm 

All error/warnings (new ones prefixed by >>):

   drivers/power/reset/rzn1-reboot.c: In function 'rzn1_reboot_probe':
>> drivers/power/reset/rzn1-reboot.c:70:2: warning: this 'if' clause does not 
>> guard... [-Wmisleading-indentation]
 if (!parent || !parent->of_node)
 ^~
   drivers/power/reset/rzn1-reboot.c:72:3: note: ...this statement, but the 
latter is misleadingly indented as if it were guarded by the 'if'
  return -ENODEV;
  ^~
   drivers/power/reset/rzn1-reboot.c:66:6: warning: unused variable 'err' 
[-Wunused-variable]
 int err;
 ^~~
   drivers/power/reset/rzn1-reboot.c: At top level:
>> drivers/power/reset/rzn1-reboot.c:74:2: warning: data definition has no type 
>> or storage class
 sysctrl = syscon_node_to_regmap(parent->of_node);
 ^~~
>> drivers/power/reset/rzn1-reboot.c:74:2: error: type defaults to 'int' in 
>> declaration of 'sysctrl' [-Werror=implicit-int]
>> drivers/power/reset/rzn1-reboot.c:74:2: error: conflicting types for 
>> 'sysctrl'
   drivers/power/reset/rzn1-reboot.c:37:23: note: previous declaration of 
'sysctrl' was here
static struct regmap *sysctrl;
  ^~~
>> drivers/power/reset/rzn1-reboot.c:74:34: error: 'parent' undeclared here 
>> (not in a function); did you mean 'pte_t'?
 sysctrl = syscon_node_to_regmap(parent->of_node);
 ^~
 pte_t
>> drivers/power/reset/rzn1-reboot.c:75:2: error: expected identifier or '(' 
>> before 'if'
 if (IS_ERR(sysctrl)) {
 ^~
   drivers/power/reset/rzn1-reboot.c:79:2: warning: data definition has no type 
or storage class
 err = register_restart_handler(_reboot_nb);
 ^~~
>> drivers/power/reset/rzn1-reboot.c:79:2: error: type defaults to 'int' in 
>> declaration of 'err' [-Werror=implicit-int]
>> drivers/power/reset/rzn1-reboot.c:79:8: error: initializer element is not 
>> constant
 err = register_restart_handler(_reboot_nb);
   ^~~~
   drivers/power/reset/rzn1-reboot.c:80:2: error: expected identifier or '(' 
before 'if'
 if (err) {
 ^~
>> drivers/power/reset/rzn1-reboot.c:85:2: error: expected identifier or '(' 
>> before 'return'
 return err;
 ^~
>> drivers/power/reset/rzn1-reboot.c:86:1: error: expected identifier or '(' 
>> before '}' token
}
^
   cc1: some warnings being treated as errors

vim +74 drivers/power/reset/rzn1-reboot.c

a673cd20 Michel Pollet 2018-03-29  63  
a673cd20 Michel Pollet 2018-03-29  64  static int rzn1_reboot_probe(struct 
platform_device *pdev)
a673cd20 Michel Pollet 2018-03-29  65  {
a673cd20 Michel Pollet 2018-03-29 @66   int err;
a673cd20 Michel Pollet 2018-03-29  67   struct device *parent;
a673cd20 Michel Pollet 2018-03-29  68  
a673cd20 Michel Pollet 2018-03-29  69   parent = pdev->dev.parent;
a673cd20 Michel Pollet 2018-03-29 @70   if (!parent || !parent->of_node)
a673cd20 Michel Pollet 2018-03-29  71   dev_err(>dev, "couldn't 
find sysctrl node\n");
a673cd20 Michel Pollet 2018-03-29 @72   return -ENODEV;
a673cd20 Michel Pollet 2018-03-29  73   }
a673cd20 Michel Pollet 2018-03-29 @74   sysctrl = 
syscon_node_to_regmap(parent->of_node);
a673cd20 Michel Pollet 2018-03-29 @75   if (IS_ERR(sysctrl)) {
a673cd20 Michel Pollet 2018-03-29  76   dev_err(>dev, "couldn't 
find find regmap\n");
a673cd20 Michel Pollet 2018-03-29  77   return PTR_ERR(sysctrl);
a673cd20 Michel Pollet 2018-03-29  78   }
a673cd20 Michel Pollet 2018-03-29 @79   err = 
register_restart_handler(_reboot_nb);
a673cd20 Michel Pollet 2018-03-29  80   if (err) {
a673cd20 Michel Pollet 2018-03-29  81   dev_err(>dev, "register 
restart handler failed(err=%d)\n",
a673cd20 Michel Pollet 2018-03-29  82   err);
a673cd20 Michel Pollet 2018-03-29  83   }
a673cd20 Michel Pollet 2018-03-29  84  
a673cd20 Michel Pollet 2018-03-29 @85   return err;
a673cd20 Michel Pollet 2018-03-29 @86  }
a673cd20 Michel Pollet 2018-03-29  87  

:: The code at line 74 was first introduced by commit
:: a673cd202aba1924128e65ccd880b1eb5201c559 reset: 

[RFC PATCH renesas-drivers] media: vsp1: vsp1_dl_cmd_pool_create can be static

2018-03-13 Thread kbuild test robot

Fixes: 02dcefdd58c7 ("media: vsp1: Provide support for extended command pools")
Signed-off-by: Fengguang Wu 
---
 vsp1_dl.c |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/media/platform/vsp1/vsp1_dl.c 
b/drivers/media/platform/vsp1/vsp1_dl.c
index 6d17b8b..7b99d47 100644
--- a/drivers/media/platform/vsp1/vsp1_dl.c
+++ b/drivers/media/platform/vsp1/vsp1_dl.c
@@ -392,7 +392,7 @@ struct vsp1_extended_command_info {
  *
  * Return a pointer to a pool on success or NULL if memory can't be allocated.
  */
-struct vsp1_dl_cmd_pool *
+static struct vsp1_dl_cmd_pool *
 vsp1_dl_cmd_pool_create(struct vsp1_device *vsp1, enum vsp1_extcmd_type type,
unsigned int num_cmds)
 {
@@ -450,7 +450,7 @@ vsp1_dl_cmd_pool_create(struct vsp1_device *vsp1, enum 
vsp1_extcmd_type type,
return pool;
 }
 
-struct vsp1_dl_ext_cmd *vsp1_dl_ext_cmd_get(struct vsp1_dl_cmd_pool *pool)
+static struct vsp1_dl_ext_cmd *vsp1_dl_ext_cmd_get(struct vsp1_dl_cmd_pool 
*pool)
 {
struct vsp1_dl_ext_cmd *cmd = NULL;
unsigned long flags;
@@ -468,7 +468,7 @@ struct vsp1_dl_ext_cmd *vsp1_dl_ext_cmd_get(struct 
vsp1_dl_cmd_pool *pool)
return cmd;
 }
 
-void vsp1_dl_ext_cmd_put(struct vsp1_dl_ext_cmd *cmd)
+static void vsp1_dl_ext_cmd_put(struct vsp1_dl_ext_cmd *cmd)
 {
unsigned long flags;
 
@@ -483,7 +483,7 @@ void vsp1_dl_ext_cmd_put(struct vsp1_dl_ext_cmd *cmd)
spin_unlock_irqrestore(>pool->lock, flags);
 }
 
-void vsp1_dl_ext_cmd_pool_destroy(struct vsp1_dl_cmd_pool *pool)
+static void vsp1_dl_ext_cmd_pool_destroy(struct vsp1_dl_cmd_pool *pool)
 {
if (!pool)
return;


[renesas-drivers:master 4329/4669] drivers/media/platform/vsp1/vsp1_dl.c:378:3: sparse: symbol 'vsp1_extended_commands' was not declared. Should it be static?

2018-03-13 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git master
head:   b67ea3b553661cb76397afbf73701c3ea14b19de
commit: 02dcefdd58c734623b9caf2513316380feb9f993 [4329/4669] media: vsp1: 
Provide support for extended command pools
reproduce:
# apt-get install sparse
git checkout 02dcefdd58c734623b9caf2513316380feb9f993
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/media/platform/vsp1/vsp1_dl.c:378:3: sparse: symbol 
>> 'vsp1_extended_commands' was not declared. Should it be static?
>> drivers/media/platform/vsp1/vsp1_dl.c:395:25: sparse: symbol 
>> 'vsp1_dl_cmd_pool_create' was not declared. Should it be static?
>> drivers/media/platform/vsp1/vsp1_dl.c:453:24: sparse: symbol 
>> 'vsp1_dl_ext_cmd_get' was not declared. Should it be static?
>> drivers/media/platform/vsp1/vsp1_dl.c:471:6: sparse: symbol 
>> 'vsp1_dl_ext_cmd_put' was not declared. Should it be static?
>> drivers/media/platform/vsp1/vsp1_dl.c:486:6: sparse: symbol 
>> 'vsp1_dl_ext_cmd_pool_destroy' was not declared. Should it be static?

Please review and possibly fold the followup patch.

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


Re: [PATCH v9 07/11] media: i2c: ov772x: Support frame interval handling

2018-02-19 Thread kbuild test robot
Hi Jacopo,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on v4.16-rc2 next-20180220]
[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/Jacopo-Mondi/Renesas-Capture-Engine-Unit-CEU-V4L2-driver/20180220-101027
base:   git://linuxtv.org/media_tree.git master
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/media/i2c/ov772x.c:386:3: sparse: symbol 'ov772x_pll' was not 
>> declared. Should it be
>> drivers/media/i2c/ov772x.c:535:14: sparse: symbol 'ov772x_frame_intervals' 
>> was not declared. Should it be
   drivers/media/i2c/ov772x.c: In function 'ov772x_set_frame_rate.isra.2':
   drivers/media/i2c/ov772x.c:643:7: warning: 'fsize' may be used uninitialized 
in this function
pclk = fps COPYING CREDITS Documentation Kbuild Kconfig LICENSES 
MAINTAINERS Makefile README arch block certs crypto drivers firmware fs include 
init ipc kernel lib mm net samples scripts security sound tools usr virt fsize;
~^

Please review and possibly fold the followup patch.

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


[RFC PATCH] media: i2c: ov772x: ov772x_frame_intervals[] can be static

2018-02-19 Thread kbuild test robot

Fixes: 42b7d5be5f1f ("media: i2c: ov772x: Support frame interval handling")
Signed-off-by: Fengguang Wu 
---
 ov772x.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/ov772x.c b/drivers/media/i2c/ov772x.c
index eba71d97..0d8ce2a 100644
--- a/drivers/media/i2c/ov772x.c
+++ b/drivers/media/i2c/ov772x.c
@@ -532,7 +532,7 @@ static const struct ov772x_win_size ov772x_win_sizes[] = {
 /*
  * frame rate settings lists
  */
-unsigned int ov772x_frame_intervals[] = { 5, 10, 15, 20, 30, 60 };
+static unsigned int ov772x_frame_intervals[] = { 5, 10, 15, 20, 30, 60 };
 #define OV772X_N_FRAME_INTERVALS ARRAY_SIZE(ov772x_frame_intervals)
 
 /*


Re: [PATCH v9 07/11] media: i2c: ov772x: Support frame interval handling

2018-02-19 Thread kbuild test robot
Hi Jacopo,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on v4.16-rc2 next-20180220]
[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/Jacopo-Mondi/Renesas-Capture-Engine-Unit-CEU-V4L2-driver/20180220-101027
base:   git://linuxtv.org/media_tree.git master
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   drivers/media/i2c/ov772x.c: In function 'ov772x_set_frame_rate.isra.2':
>> drivers/media/i2c/ov772x.c:643:7: warning: 'fsize' may be used uninitialized 
>> in this function [-Wmaybe-uninitialized]
 pclk = fps * fsize;
 ~^

vim +/fsize +643 drivers/media/i2c/ov772x.c

   604  
   605  static int ov772x_set_frame_rate(struct ov772x_priv *priv,
   606   struct v4l2_fract *tpf,
   607   const struct ov772x_color_format *cfmt,
   608   const struct ov772x_win_size *win)
   609  {
   610  struct i2c_client *client = v4l2_get_subdevdata(>subdev);
   611  unsigned long fin = clk_get_rate(priv->clk);
   612  unsigned int fps = tpf->numerator ?
   613 tpf->denominator / tpf->numerator :
   614 tpf->denominator;
   615  unsigned int best_diff;
   616  unsigned int fsize;
   617  unsigned int pclk;
   618  unsigned int diff;
   619  unsigned int idx;
   620  unsigned int i;
   621  u8 clkrc = 0;
   622  u8 com4 = 0;
   623  int ret;
   624  
   625  /* Approximate to the closest supported frame interval. */
   626  best_diff = ~0L;
   627  for (i = 0, idx = 0; i < OV772X_N_FRAME_INTERVALS; i++) {
   628  diff = abs(fps - ov772x_frame_intervals[i]);
   629  if (diff < best_diff) {
   630  idx = i;
   631  best_diff = diff;
   632  }
   633  }
   634  fps = ov772x_frame_intervals[idx];
   635  
   636  /* Use image size (with blankings) to calculate desired pixel 
clock. */
   637  if ((cfmt->com7 & OFMT_MASK) == OFMT_RGB ||
   638  (cfmt->com7 & OFMT_MASK) == OFMT_YUV)
   639  fsize = win->sizeimage * 2;
   640  else if ((cfmt->com7 & OFMT_MASK) == OFMT_BRAW)
   641  fsize = win->sizeimage;
   642  
 > 643  pclk = fps * fsize;
   644  
   645  /*
   646   * Pixel clock generation circuit is pretty simple:
   647   *
   648   * Fin -> [ / CLKRC_div] -> [ * PLL_mult] -> pclk
   649   *
   650   * Try to approximate the desired pixel clock testing all 
available
   651   * PLL multipliers (1x, 4x, 6x, 8x) and calculate corresponding
   652   * divisor with:
   653   *
   654   * div = PLL_mult * Fin / pclk
   655   *
   656   * and re-calculate the pixel clock using it:
   657   *
   658   * pclk = Fin * PLL_mult / CLKRC_div
   659   *
   660   * Choose the PLL_mult and CLKRC_div pair that gives a pixel 
clock
   661   * closer to the desired one.
   662   *
   663   * The desired pixel clock is calculated using a known frame 
size
   664   * (blanking included) and FPS.
   665   */
   666  best_diff = ~0L;
   667  for (i = 0; i < ARRAY_SIZE(ov772x_pll); i++) {
   668  unsigned int pll_mult = ov772x_pll[i].mult;
   669  unsigned int pll_out = pll_mult * fin;
   670  unsigned int t_pclk;
   671  unsigned int div;
   672  
   673  if (pll_out < pclk)
   674  continue;
   675  
   676  div = DIV_ROUND_CLOSEST(pll_out, pclk);
   677  t_pclk = DIV_ROUND_CLOSEST(fin * pll_mult, div);
   678  diff = abs(pclk - t_pclk);
   679  if (diff < best_diff) {
   680  best_diff = diff;
   681  clkrc = CLKRC_DIV(div);
   682  com4 = ov772x_pll[i].com4;
   683  }
   684  }
   685  
   686  ret = ov772x_write(client, COM4, com4 | COM4_RESERVED);
   687  if (ret < 0)
   688  return ret;
   689  
   690  ret = ov772x_write(client, CLKRC, clkrc | CLKRC_RESERVED);
   691  if (ret < 0)
   692   

Re: [PATCH v9 03/11] media: platform: Add Renesas CEU driver

2018-02-19 Thread kbuild test robot
Hi Jacopo,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on v4.16-rc2 next-20180220]
[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/Jacopo-Mondi/Renesas-Capture-Engine-Unit-CEU-V4L2-driver/20180220-101027
base:   git://linuxtv.org/media_tree.git master
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/media/platform/renesas-ceu.c: In function 'ceu_g_parm':
>> drivers/media/platform/renesas-ceu.c:1177:9: error: implicit declaration of 
>> function 'v4l2_g_parm_cap'; did you mean 'v4l2_g_ctrl'? 
>> [-Werror=implicit-function-declaration]
 return v4l2_g_parm_cap(video_devdata(file), ceudev->sd->v4l2_sd, a);
^~~
v4l2_g_ctrl
   drivers/media/platform/renesas-ceu.c: In function 'ceu_s_parm':
>> drivers/media/platform/renesas-ceu.c:1184:9: error: implicit declaration of 
>> function 'v4l2_s_parm_cap'; did you mean 'v4l2_s_ctrl'? 
>> [-Werror=implicit-function-declaration]
 return v4l2_s_parm_cap(video_devdata(file), ceudev->sd->v4l2_sd, a);
^~~
v4l2_s_ctrl
   drivers/media/platform/renesas-ceu.c: In function 'ceu_start_streaming':
   drivers/media/platform/renesas-ceu.c:290:2: warning: 'cdwdr' may be used 
uninitialized in this function [-Wmaybe-uninitialized]
 iowrite32(data, priv->base + reg_offs);
 ^~
   drivers/media/platform/renesas-ceu.c:338:27: note: 'cdwdr' was declared here
 u32 camcr, cdocr, cfzsr, cdwdr, capwr;
  ^
   drivers/media/platform/renesas-ceu.c:290:2: warning: 'cfzsr' may be used 
uninitialized in this function [-Wmaybe-uninitialized]
 iowrite32(data, priv->base + reg_offs);
 ^~
   drivers/media/platform/renesas-ceu.c:338:20: note: 'cfzsr' was declared here
 u32 camcr, cdocr, cfzsr, cdwdr, capwr;
   ^
   drivers/media/platform/renesas-ceu.c:418:8: warning: 'camcr' may be used 
uninitialized in this function [-Wmaybe-uninitialized]
 camcr |= mbus_flags & V4L2_MBUS_HSYNC_ACTIVE_LOW ? 1 << 0 : 0;
 ~~^~~
   drivers/media/platform/renesas-ceu.c:338:6: note: 'camcr' was declared here
 u32 camcr, cdocr, cfzsr, cdwdr, capwr;
 ^
   drivers/media/platform/renesas-ceu.c: In function 'ceu_probe':
   drivers/media/platform/renesas-ceu.c:1623:9: warning: 'ret' may be used 
uninitialized in this function [-Wmaybe-uninitialized]
 return ret;
^~~
   cc1: some warnings being treated as errors

vim +1177 drivers/media/platform/renesas-ceu.c

  1172  
  1173  static int ceu_g_parm(struct file *file, void *fh, struct 
v4l2_streamparm *a)
  1174  {
  1175  struct ceu_device *ceudev = video_drvdata(file);
  1176  
> 1177  return v4l2_g_parm_cap(video_devdata(file), 
> ceudev->sd->v4l2_sd, a);
  1178  }
  1179  
  1180  static int ceu_s_parm(struct file *file, void *fh, struct 
v4l2_streamparm *a)
  1181  {
  1182  struct ceu_device *ceudev = video_drvdata(file);
  1183  
> 1184  return v4l2_s_parm_cap(video_devdata(file), 
> ceudev->sd->v4l2_sd, a);
  1185  }
  1186  

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


.config.gz
Description: application/gzip


[renesas:soc-for-v4.17 6/6] drivers/soc/renesas/r8a77980-sysc.c:12:10: fatal error: dt-bindings/power/r8a77980-sysc.h: No such file or directory

2018-02-19 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git 
soc-for-v4.17
head:   8b49a80541c565d5d8482f15350ab861f60455a1
commit: 8b49a80541c565d5d8482f15350ab861f60455a1 [6/6] soc: renesas: rcar-sysc: 
add R8A77980 support
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 8b49a80541c565d5d8482f15350ab861f60455a1
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

>> drivers/soc/renesas/r8a77980-sysc.c:12:10: fatal error: 
>> dt-bindings/power/r8a77980-sysc.h: No such file or directory
#include 
 ^~~
   compilation terminated.

vim +12 drivers/soc/renesas/r8a77980-sysc.c

11  
  > 12  #include 
13  

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


.config.gz
Description: application/gzip


Re: [PATCH v2 3/5] [RFT] ARM: dts: wheat: Fix ADV7513 address usage

2018-02-13 Thread kbuild test robot
Hi Kieran,

I love your patch! Yet something to improve:

[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on v4.16-rc1 next-20180213]
[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/Kieran-Bingham/dt-bindings-media-adv7604-Add-support-for-i2c_new_secondary_device/20180214-032943
base:   git://linuxtv.org/media_tree.git master
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-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
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

>> Error: arch/arm/boot/dts/r8a7792-wheat.dts:251.24-25 syntax error
   FATAL ERROR: Unable to parse input tree

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


.config.gz
Description: application/gzip


Re: [PATCH v6 3/9] v4l: platform: Add Renesas CEU driver

2018-01-19 Thread kbuild test robot
Hi Jacopo,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.15-rc8]
[cannot apply to linuxtv-media/master next-20180119]
[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/Jacopo-Mondi/Renesas-Capture-Engine-Unit-CEU-V4L2-driver/20180120-053007
config: mn10300-allmodconfig (attached as .config)
compiler: am33_2.0-linux-gcc (GCC) 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
# save the attached .config to linux build tree
make.cross ARCH=mn10300 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   In file included from include/linux/scatterlist.h:9:0,
from include/linux/dma-mapping.h:11,
from drivers/media/platform/renesas-ceu.c:16:
   drivers/media/platform/renesas-ceu.c: In function 'ceu_start_streaming':
>> arch/mn10300/include/asm/io.h:63:25: warning: 'cdwdr' may be used 
>> uninitialized in this function [-Wmaybe-uninitialized]
 *(volatile u32 *) addr = b;
 ~~~^~~
   drivers/media/platform/renesas-ceu.c:335:27: note: 'cdwdr' was declared here
 u32 camcr, cdocr, cfzsr, cdwdr, capwr;
  ^
   In file included from include/linux/scatterlist.h:9:0,
from include/linux/dma-mapping.h:11,
from drivers/media/platform/renesas-ceu.c:16:
>> arch/mn10300/include/asm/io.h:63:25: warning: 'cfzsr' may be used 
>> uninitialized in this function [-Wmaybe-uninitialized]
 *(volatile u32 *) addr = b;
 ~~~^~~
   drivers/media/platform/renesas-ceu.c:335:20: note: 'cfzsr' was declared here
 u32 camcr, cdocr, cfzsr, cdwdr, capwr;
   ^
   drivers/media/platform/renesas-ceu.c:415:8: warning: 'camcr' may be used 
uninitialized in this function [-Wmaybe-uninitialized]
 camcr |= mbus_flags & V4L2_MBUS_HSYNC_ACTIVE_LOW ? 1 << 0 : 0;
 ~~^~~
   drivers/media/platform/renesas-ceu.c:335:6: note: 'camcr' was declared here
 u32 camcr, cdocr, cfzsr, cdwdr, capwr;
 ^
   drivers/media/platform/renesas-ceu.c: In function 'ceu_probe':
   drivers/media/platform/renesas-ceu.c:1621:9: warning: 'ret' may be used 
uninitialized in this function [-Wmaybe-uninitialized]
 return ret;
^~~
--
   In file included from include/linux/scatterlist.h:9:0,
from include/linux/dma-mapping.h:11,
from drivers/media//platform/renesas-ceu.c:16:
   drivers/media//platform/renesas-ceu.c: In function 'ceu_start_streaming':
>> arch/mn10300/include/asm/io.h:63:25: warning: 'cdwdr' may be used 
>> uninitialized in this function [-Wmaybe-uninitialized]
 *(volatile u32 *) addr = b;
 ~~~^~~
   drivers/media//platform/renesas-ceu.c:335:27: note: 'cdwdr' was declared here
 u32 camcr, cdocr, cfzsr, cdwdr, capwr;
  ^
   In file included from include/linux/scatterlist.h:9:0,
from include/linux/dma-mapping.h:11,
from drivers/media//platform/renesas-ceu.c:16:
>> arch/mn10300/include/asm/io.h:63:25: warning: 'cfzsr' may be used 
>> uninitialized in this function [-Wmaybe-uninitialized]
 *(volatile u32 *) addr = b;
 ~~~^~~
   drivers/media//platform/renesas-ceu.c:335:20: note: 'cfzsr' was declared here
 u32 camcr, cdocr, cfzsr, cdwdr, capwr;
   ^
   drivers/media//platform/renesas-ceu.c:415:8: warning: 'camcr' may be used 
uninitialized in this function [-Wmaybe-uninitialized]
 camcr |= mbus_flags & V4L2_MBUS_HSYNC_ACTIVE_LOW ? 1 << 0 : 0;
 ~~^~~
   drivers/media//platform/renesas-ceu.c:335:6: note: 'camcr' was declared here
 u32 camcr, cdocr, cfzsr, cdwdr, capwr;
 ^
   drivers/media//platform/renesas-ceu.c: In function 'ceu_probe':
   drivers/media//platform/renesas-ceu.c:1621:9: warning: 'ret' may be used 
uninitialized in this function [-Wmaybe-uninitialized]
 return ret;
^~~

vim +/cdwdr +63 arch/mn10300/include/asm/io.h

b920de1b include/asm-mn10300/io.h David Howells 2008-02-08  60  
b920de1b include/asm-mn10300/io.h David Howells 2008-02-08  61  static inline 
void writel(u32 b, volatile void __iomem *addr)
b920de1b include/asm-mn10300/io.h David Howells 2008-02-08  62  {
b920de1b include/asm-mn10300/io.h David Howells 2008-02-08 @63  
*(volatile u32 *) addr = b;
b920de1b include/asm-mn10300/io.h David Howells 2008-02-08  64  }
b920de1b include/asm-mn10300/io.h 

Re: [PATCH v6 3/9] v4l: platform: Add Renesas CEU driver

2018-01-19 Thread kbuild test robot
Hi Jacopo,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.15-rc8]
[cannot apply to linuxtv-media/master next-20180119]
[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/Jacopo-Mondi/Renesas-Capture-Engine-Unit-CEU-V4L2-driver/20180120-053007
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 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
# save the attached .config to linux build tree
make.cross ARCH=ia64 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   drivers/media/platform/renesas-ceu.c: In function 'ceu_start_streaming':
>> drivers/media/platform/renesas-ceu.c:287:2: warning: 'cdwdr' may be used 
>> uninitialized in this function [-Wmaybe-uninitialized]
 iowrite32(data, priv->base + reg_offs);
 ^~
   drivers/media/platform/renesas-ceu.c:335:27: note: 'cdwdr' was declared here
 u32 camcr, cdocr, cfzsr, cdwdr, capwr;
  ^
>> drivers/media/platform/renesas-ceu.c:287:2: warning: 'cfzsr' may be used 
>> uninitialized in this function [-Wmaybe-uninitialized]
 iowrite32(data, priv->base + reg_offs);
 ^~
   drivers/media/platform/renesas-ceu.c:335:20: note: 'cfzsr' was declared here
 u32 camcr, cdocr, cfzsr, cdwdr, capwr;
   ^
>> drivers/media/platform/renesas-ceu.c:415:8: warning: 'camcr' may be used 
>> uninitialized in this function [-Wmaybe-uninitialized]
 camcr |= mbus_flags & V4L2_MBUS_HSYNC_ACTIVE_LOW ? 1 << 0 : 0;
 ~~^~~
   drivers/media/platform/renesas-ceu.c:335:6: note: 'camcr' was declared here
 u32 camcr, cdocr, cfzsr, cdwdr, capwr;
 ^
   drivers/media/platform/renesas-ceu.c: In function 'ceu_probe':
>> drivers/media/platform/renesas-ceu.c:1621:9: warning: 'ret' may be used 
>> uninitialized in this function [-Wmaybe-uninitialized]
 return ret;
^~~

vim +/cdwdr +287 drivers/media/platform/renesas-ceu.c

   284  
   285  static void ceu_write(struct ceu_device *priv, unsigned int reg_offs, 
u32 data)
   286  {
 > 287  iowrite32(data, priv->base + reg_offs);
   288  }
   289  
   290  static u32 ceu_read(struct ceu_device *priv, unsigned int reg_offs)
   291  {
   292  return ioread32(priv->base + reg_offs);
   293  }
   294  
   295  /*
   296   * ceu_soft_reset() - Software reset the CEU interface.
   297   * @ceu_device: CEU device.
   298   *
   299   * Returns 0 for success, -EIO for error.
   300   */
   301  static int ceu_soft_reset(struct ceu_device *ceudev)
   302  {
   303  unsigned int i;
   304  
   305  ceu_write(ceudev, CEU_CAPSR, CEU_CAPSR_CPKIL);
   306  
   307  for (i = 0; i < 100; i++) {
   308  if (!(ceu_read(ceudev, CEU_CSTSR) & CEU_CSTRST_CPTON))
   309  break;
   310  udelay(1);
   311  }
   312  
   313  if (i == 100) {
   314  dev_err(ceudev->dev, "soft reset time out\n");
   315  return -EIO;
   316  }
   317  
   318  for (i = 0; i < 100; i++) {
   319  if (!(ceu_read(ceudev, CEU_CAPSR) & CEU_CAPSR_CPKIL))
   320  return 0;
   321  udelay(1);
   322  }
   323  
   324  /* If we get here, CEU has not reset properly. */
   325  return -EIO;
   326  }
   327  
   328  /* --- CEU Capture Operations --- */
   329  
   330  /*
   331   * ceu_hw_config() - Configure CEU interface registers.
   332   */
   333  static int ceu_hw_config(struct ceu_device *ceudev)
   334  {
 > 335  u32 camcr, cdocr, cfzsr, cdwdr, capwr;
   336  struct v4l2_pix_format_mplane *pix = >v4l2_pix;
   337  struct ceu_subdev *ceu_sd = ceudev->sd;
   338  struct ceu_mbus_fmt *mbus_fmt = _sd->mbus_fmt;
   339  unsigned int mbus_flags = ceu_sd->mbus_flags;
   340  
   341  /* Start configuring CEU registers */
   342  ceu_write(ceudev, CEU_CAIFR, 0);
   343  ceu_write(ceudev, CEU_CFWCR, 0);
   344  ceu_write(ceudev, CEU_CRCNTR, 0);
   345  ceu_write(ceudev, CEU_CRCMPR, 0);
   346  
   347  /* Set the frame capture period for both image capture and data 
sync. */
   348  capwr = (pix->height << 16) | pix->width * mbus_fmt->bpp / 8;
   349  
   350  /*
   351   * Swap input data endianness by default.
   352   * In data fetch mode bytes are received in 

Re: [PATCH 01/33] clk_ops: change round_rate() to return unsigned long

2018-01-01 Thread kbuild test robot
Hi Bryan,

I love your patch! Perhaps something to improve:

[auto build test WARNING on tegra/for-next]
[also build test WARNING on v4.15-rc6]
[cannot apply to clk/clk-next next-20171222]
[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/Bryan-O-Donoghue/change-clk_ops-round_rate-to-scale-past-LONG_MAX/20180101-212907
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-next
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)


vim +321 drivers/clk/clk-versaclock5.c

8c1ebe97 Marek Vasut 2017-07-09  318  
8c1ebe97 Marek Vasut 2017-07-09  319  static const struct clk_ops vc5_dbl_ops = 
{
8c1ebe97 Marek Vasut 2017-07-09  320.recalc_rate= vc5_dbl_recalc_rate,
8c1ebe97 Marek Vasut 2017-07-09 @321.round_rate = vc5_dbl_round_rate,
8c1ebe97 Marek Vasut 2017-07-09  322.set_rate   = vc5_dbl_set_rate,
8c1ebe97 Marek Vasut 2017-07-09  323  };
8c1ebe97 Marek Vasut 2017-07-09  324  

:: The code at line 321 was first introduced by commit
:: 8c1ebe9762670159ca982167131af63c94ff1571 clk: vc5: Add support for the 
input frequency doubler

:: TO: Marek Vasut 
:: CC: Stephen Boyd 

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


Re: [PATCH 01/33] clk_ops: change round_rate() to return unsigned long

2018-01-01 Thread kbuild test robot
Hi Bryan,

I love your patch! Yet something to improve:

[auto build test ERROR on tegra/for-next]
[also build test ERROR on v4.15-rc6]
[cannot apply to clk/clk-next next-20171222]
[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/Bryan-O-Donoghue/change-clk_ops-round_rate-to-scale-past-LONG_MAX/20180101-212907
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-next
config: x86_64-randconfig-x016-201800 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> drivers//clk/clk-versaclock5.c:321:16: error: initialization from 
>> incompatible pointer type [-Werror=incompatible-pointer-types]
 .round_rate = vc5_dbl_round_rate,
   ^~
   drivers//clk/clk-versaclock5.c:321:16: note: (near initialization for 
'vc5_dbl_ops.round_rate')
   cc1: some warnings being treated as errors

vim +321 drivers//clk/clk-versaclock5.c

8c1ebe97 Marek Vasut 2017-07-09  318  
8c1ebe97 Marek Vasut 2017-07-09  319  static const struct clk_ops vc5_dbl_ops = 
{
8c1ebe97 Marek Vasut 2017-07-09  320.recalc_rate= vc5_dbl_recalc_rate,
8c1ebe97 Marek Vasut 2017-07-09 @321.round_rate = vc5_dbl_round_rate,
8c1ebe97 Marek Vasut 2017-07-09  322.set_rate   = vc5_dbl_set_rate,
8c1ebe97 Marek Vasut 2017-07-09  323  };
8c1ebe97 Marek Vasut 2017-07-09  324  

:: The code at line 321 was first introduced by commit
:: 8c1ebe9762670159ca982167131af63c94ff1571 clk: vc5: Add support for the 
input frequency doubler

:: TO: Marek Vasut 
:: CC: Stephen Boyd 

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


.config.gz
Description: application/gzip


Re: [PATCH 01/33] clk_ops: change round_rate() to return unsigned long

2018-01-01 Thread kbuild test robot
Hi Bryan,

I love your patch! Perhaps something to improve:

[auto build test WARNING on tegra/for-next]
[also build test WARNING on v4.15-rc6]
[cannot apply to clk/clk-next next-20171222]
[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/Bryan-O-Donoghue/change-clk_ops-round_rate-to-scale-past-LONG_MAX/20180101-212907
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-next
config: i386-randconfig-b0-01011934 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

>> drivers/clk/clk-versaclock5.c:321:2: warning: initialization from 
>> incompatible pointer type
 .round_rate = vc5_dbl_round_rate,
 ^
   drivers/clk/clk-versaclock5.c:321:2: warning: (near initialization for 
'vc5_dbl_ops.round_rate')

vim +321 drivers/clk/clk-versaclock5.c

8c1ebe97 Marek Vasut 2017-07-09  318  
8c1ebe97 Marek Vasut 2017-07-09  319  static const struct clk_ops vc5_dbl_ops = 
{
8c1ebe97 Marek Vasut 2017-07-09  320.recalc_rate= vc5_dbl_recalc_rate,
8c1ebe97 Marek Vasut 2017-07-09 @321.round_rate = vc5_dbl_round_rate,
8c1ebe97 Marek Vasut 2017-07-09  322.set_rate   = vc5_dbl_set_rate,
8c1ebe97 Marek Vasut 2017-07-09  323  };
8c1ebe97 Marek Vasut 2017-07-09  324  

:: The code at line 321 was first introduced by commit
:: 8c1ebe9762670159ca982167131af63c94ff1571 clk: vc5: Add support for the 
input frequency doubler

:: TO: Marek Vasut 
:: CC: Stephen Boyd 

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


.config.gz
Description: application/gzip


Re: [PATCH v2 5/9] arch: sh: migor: Use new renesas-ceu camera driver

2017-12-30 Thread kbuild test robot
Hi Jacopo,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on v4.15-rc5 next-20171222]
[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/Jacopo-Mondi/Renesas-Capture-Engine-Unit-CEU-V4L2-driver/20171230-212202
base:   git://linuxtv.org/media_tree.git master
config: sh-migor_defconfig (attached as .config)
compiler: sh4-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
# save the attached .config to linux build tree
make.cross ARCH=sh 

Note: the 
linux-review/Jacopo-Mondi/Renesas-Capture-Engine-Unit-CEU-V4L2-driver/20171230-212202
 HEAD 71df4d9132d9f8a1821abcec32c12adba1892c50 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

>> arch/sh/boards/mach-migor/setup.c:403:3: error: 'struct ov772x_camera_info' 
>> has no member named 'xclk_rate'
 .xclk_rate = 1000,
  ^

vim +403 arch/sh/boards/mach-migor/setup.c

   401  
   402  static struct ov772x_camera_info ov7725_info = {
 > 403  .xclk_rate  = 1000,
   404  };
   405  

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


.config.gz
Description: application/gzip


Re: [PATCH v2 2/3] phy: core: Drop unused runtime PM APIs

2017-12-23 Thread kbuild test robot
Hi Ulf,

I love your patch! Yet something to improve:

[auto build test ERROR on phy/next]
[also build test ERROR on v4.15-rc4 next-20171222]
[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/Ulf-Hansson/phy-core-Re-work-runtime-PM-deployment-and-fix-an-issue/20171223-170432
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux-phy.git 
next
config: x86_64-acpi-redef (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers//ata/libahci.c: In function 'ahci_rpm_get_port':
>> drivers//ata/libahci.c:239:9: error: implicit declaration of function 
>> 'pm_runtime_get_sync'; did you mean 'ktime_get_ns'? 
>> [-Werror=implicit-function-declaration]
 return pm_runtime_get_sync(ap->dev);
^~~
ktime_get_ns
   drivers//ata/libahci.c: In function 'ahci_rpm_put_port':
>> drivers//ata/libahci.c:251:2: error: implicit declaration of function 
>> 'pm_runtime_put'; did you mean 'of_node_put'? 
>> [-Werror=implicit-function-declaration]
 pm_runtime_put(ap->dev);
 ^~
 of_node_put
   cc1: some warnings being treated as errors

vim +251 drivers//ata/libahci.c

365cfa1e Anton Vorontsov 2010-03-28  228  
bb03c640 Mika Westerberg 2016-02-18  229  /**
bb03c640 Mika Westerberg 2016-02-18  230   *ahci_rpm_get_port - Make sure 
the port is powered on
bb03c640 Mika Westerberg 2016-02-18  231   *@ap: Port to power on
bb03c640 Mika Westerberg 2016-02-18  232   *
bb03c640 Mika Westerberg 2016-02-18  233   *Whenever there is need to 
access the AHCI host registers outside of
bb03c640 Mika Westerberg 2016-02-18  234   *normal execution paths, call 
this function to make sure the host is
bb03c640 Mika Westerberg 2016-02-18  235   *actually powered on.
bb03c640 Mika Westerberg 2016-02-18  236   */
bb03c640 Mika Westerberg 2016-02-18  237  static int ahci_rpm_get_port(struct 
ata_port *ap)
bb03c640 Mika Westerberg 2016-02-18  238  {
bb03c640 Mika Westerberg 2016-02-18 @239return 
pm_runtime_get_sync(ap->dev);
bb03c640 Mika Westerberg 2016-02-18  240  }
bb03c640 Mika Westerberg 2016-02-18  241  
bb03c640 Mika Westerberg 2016-02-18  242  /**
bb03c640 Mika Westerberg 2016-02-18  243   *ahci_rpm_put_port - Undoes 
ahci_rpm_get_port()
bb03c640 Mika Westerberg 2016-02-18  244   *@ap: Port to power down
bb03c640 Mika Westerberg 2016-02-18  245   *
bb03c640 Mika Westerberg 2016-02-18  246   *Undoes ahci_rpm_get_port() and 
possibly powers down the AHCI host
bb03c640 Mika Westerberg 2016-02-18  247   *if it has no more active users.
bb03c640 Mika Westerberg 2016-02-18  248   */
bb03c640 Mika Westerberg 2016-02-18  249  static void ahci_rpm_put_port(struct 
ata_port *ap)
bb03c640 Mika Westerberg 2016-02-18  250  {
bb03c640 Mika Westerberg 2016-02-18 @251pm_runtime_put(ap->dev);
bb03c640 Mika Westerberg 2016-02-18  252  }
bb03c640 Mika Westerberg 2016-02-18  253  

:: The code at line 251 was first introduced by commit
:: bb03c640697155639b2e15e2aaa4c10f60bf0d5e ahci: Add functions to manage 
runtime PM of AHCI ports

:: TO: Mika Westerberg 
:: CC: Tejun Heo 

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


.config.gz
Description: application/gzip


Re: [PATCH v2 2/3] phy: core: Drop unused runtime PM APIs

2017-12-23 Thread kbuild test robot
Hi Ulf,

I love your patch! Yet something to improve:

[auto build test ERROR on phy/next]
[also build test ERROR on v4.15-rc4 next-20171222]
[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/Ulf-Hansson/phy-core-Re-work-runtime-PM-deployment-and-fix-an-issue/20171223-170432
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux-phy.git 
next
config: i386-randconfig-a0-201751 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers//ata/ahci.c: In function 'ahci_init_one':
>> drivers//ata/ahci.c:1761:2: error: implicit declaration of function 
>> 'pm_runtime_put_noidle' [-Werror=implicit-function-declaration]
 pm_runtime_put_noidle(>dev);
 ^
   drivers//ata/ahci.c: In function 'ahci_remove_one':
>> drivers//ata/ahci.c:1767:2: error: implicit declaration of function 
>> 'pm_runtime_get_noresume' [-Werror=implicit-function-declaration]
 pm_runtime_get_noresume(>dev);
 ^
   cc1: some warnings being treated as errors
--
   drivers//ata/libahci.c: In function 'ahci_rpm_get_port':
>> drivers//ata/libahci.c:239:2: error: implicit declaration of function 
>> 'pm_runtime_get_sync' [-Werror=implicit-function-declaration]
 return pm_runtime_get_sync(ap->dev);
 ^
   drivers//ata/libahci.c: In function 'ahci_rpm_put_port':
>> drivers//ata/libahci.c:251:2: error: implicit declaration of function 
>> 'pm_runtime_put' [-Werror=implicit-function-declaration]
 pm_runtime_put(ap->dev);
 ^
   cc1: some warnings being treated as errors
--
   drivers//ata/ahci_ceva.c: In function 'ceva_ahci_resume':
>> drivers//ata/ahci_ceva.c:326:2: error: implicit declaration of function 
>> 'pm_runtime_disable' [-Werror=implicit-function-declaration]
 pm_runtime_disable(dev);
 ^
>> drivers//ata/ahci_ceva.c:327:2: error: implicit declaration of function 
>> 'pm_runtime_set_active' [-Werror=implicit-function-declaration]
 pm_runtime_set_active(dev);
 ^
>> drivers//ata/ahci_ceva.c:328:2: error: implicit declaration of function 
>> 'pm_runtime_enable' [-Werror=implicit-function-declaration]
 pm_runtime_enable(dev);
 ^
   cc1: some warnings being treated as errors
--
   drivers//ata/ahci_qoriq.c: In function 'ahci_qoriq_resume':
>> drivers//ata/ahci_qoriq.c:306:2: error: implicit declaration of function 
>> 'pm_runtime_disable' [-Werror=implicit-function-declaration]
 pm_runtime_disable(dev);
 ^
>> drivers//ata/ahci_qoriq.c:307:2: error: implicit declaration of function 
>> 'pm_runtime_set_active' [-Werror=implicit-function-declaration]
 pm_runtime_set_active(dev);
 ^
>> drivers//ata/ahci_qoriq.c:308:2: error: implicit declaration of function 
>> 'pm_runtime_enable' [-Werror=implicit-function-declaration]
 pm_runtime_enable(dev);
 ^
   cc1: some warnings being treated as errors

vim +/pm_runtime_put_noidle +1761 drivers//ata/ahci.c

d243bed32f drivers/ata/ahci.c  Tirumalesh Chalamarla   2016-02-16  1642  
4447d35156 drivers/ata/ahci.c  Tejun Heo   2007-04-17  1643 
/* save initial config */
394d6e535f drivers/ata/ahci.c  Anton Vorontsov 2010-03-03  1644 
ahci_pci_save_initial_config(pdev, hpriv);
^1da177e4c drivers/scsi/ahci.c Linus Torvalds  2005-04-16  1645  
4447d35156 drivers/ata/ahci.c  Tejun Heo   2007-04-17  1646 
/* prepare host */
453d3131ec drivers/ata/ahci.c  Robert Hancock  2010-01-26  1647 
if (hpriv->cap & HOST_CAP_NCQ) {
453d3131ec drivers/ata/ahci.c  Robert Hancock  2010-01-26  1648 
pi.flags |= ATA_FLAG_NCQ;
83f2b9630c drivers/ata/ahci.c  Tejun Heo   2010-03-30  1649 
/*
83f2b9630c drivers/ata/ahci.c  Tejun Heo   2010-03-30  1650 
 * Auto-activate optimization is supposed to be
83f2b9630c drivers/ata/ahci.c  Tejun Heo   2010-03-30  1651 
 * supported on all AHCI controllers indicating NCQ
83f2b9630c drivers/ata/ahci.c  Tejun Heo   2010-03-30  1652 
 * capability, but it seems to be broken on some
83f2b9630c drivers/ata/ahci.c  Tejun Heo   2010-03-30  1653 
 * chipsets including NVIDIAs.
83f2b9630c drivers/ata/ahci.c  Tejun Heo   2010-03-30  1654 
 */
83f2b9630c drivers/ata/ahci.c  Tejun Heo   2010-03-30  1655 
if (!(hpriv->flags & AHCI_HFLAG_NO_FPDMA_AA))
453d3131ec drivers/ata/ahci.c  Robert Hancock  2010-01-26  1656 
pi.flags |= ATA_FLAG_FPDMA_AA;
40fb59e75a drivers/ata/ahci.c  Marc Carino 2013-08-24  1657  
40fb59e75a drivers/ata/ahci.c  Marc Carino 2013-08-24  1658 
/*
40fb59e75a drivers/ata/ahci.c  Marc Carino 

[renesas-drivers:topic/renesas-overlays 23/108] drivers/of/dynamic.c:1076 of_changeset_add_property_stringf() error: potential null dereference 'str'. (kvasprintf returns null)

2017-12-17 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   c991b7bbdc862ab5c1a7edf88d04105fa081e2fc
commit: e068b1eab7180587d15bbc55abdc5851b7f216dc [23/108] of: changesets: 
Introduce changeset helper methods

smatch warnings:
show-warning-context "warning-lines" files

vim +/str +1076 drivers/of/dynamic.c

  1050  
  1051  /**
  1052   * of_changeset_add_property_stringf - Create a new formatted string 
property
  1053   *
  1054   * @ocs:changeset pointer
  1055   * @np: device node pointer
  1056   * @name:   name of the property
  1057   * @fmt:format of string property
  1058   * ...  arguments of the format string
  1059   *
  1060   * Adds a string property to the changeset by making copies of the name
  1061   * and the formatted value.
  1062   *
  1063   * Returns zero on success, a negative error value otherwise.
  1064   */
  1065  int of_changeset_add_property_stringf(struct of_changeset *ocs,
  1066  struct device_node *np, const char *name, const char 
*fmt, ...)
  1067  {
  1068  va_list vargs;
  1069  char *str;
  1070  int ret;
  1071  
  1072  va_start(vargs, fmt);
  1073  str = kvasprintf(GFP_KERNEL, fmt, vargs);
  1074  va_end(vargs);
  1075  
> 1076  ret = of_changeset_add_property_string(ocs, np, name, str);
  1077  
  1078  kfree(str);
  1079  return ret;
  1080  }
  1081  

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


[RFC PATCH renesas-drivers] [RFC] of: dead_aliases_lookup can be static

2017-12-14 Thread kbuild test robot

Fixes: 19e0da502da1 ("[RFC] of: Add of_alias_destroy()")
Signed-off-by: Fengguang Wu 
---
 base.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/base.c b/drivers/of/base.c
index 5d3a0ad..1f3f84c 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1568,7 +1568,7 @@ void of_alias_create(struct property *pp,
 }
 
 #ifdef CONFIG_OF_DYNAMIC
-LIST_HEAD(dead_aliases_lookup);
+static LIST_HEAD(dead_aliases_lookup);
 
 void of_alias_destroy(const char *name)
 {


[renesas-drivers:topic/renesas-overlays 30/92] drivers/of/base.c:1571:1: sparse: symbol 'dead_aliases_lookup' was not declared. Should it be static?

2017-12-14 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   47d433a558bb60587eb9f86a4d010ef74e03fa0d
commit: 19e0da502da117244914b018be929c1ba0761d14 [30/92] [RFC] of: Add 
of_alias_destroy()
reproduce:
# apt-get install sparse
git checkout 19e0da502da117244914b018be929c1ba0761d14
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)


Please review and possibly fold the followup patch.

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


[renesas-drivers:topic/renesas-overlays 23/92] drivers/of/dynamic.c:1141:13: sparse: incorrect type in assignment (different base types)

2017-12-14 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   47d433a558bb60587eb9f86a4d010ef74e03fa0d
commit: e068b1eab7180587d15bbc55abdc5851b7f216dc [23/92] of: changesets: 
Introduce changeset helper methods
reproduce:
# apt-get install sparse
git checkout e068b1eab7180587d15bbc55abdc5851b7f216dc
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)


vim +1141 drivers/of/dynamic.c

  1124  
  1125  /**
  1126   * of_changeset_add_property_u32 - Create a new u32 property
  1127   *
  1128   * @ocs:changeset pointer
  1129   * @np: device node pointer
  1130   * @name:   name of the property
  1131   * @val:value in host endian format
  1132   *
  1133   * Adds a u32 property to the changeset.
  1134   *
  1135   * Returns zero on success, a negative error value otherwise.
  1136   */
  1137  int of_changeset_add_property_u32(struct of_changeset *ocs,
  1138  struct device_node *np, const char *name, u32 val)
  1139  {
  1140  /* in place */
> 1141  val = cpu_to_be32(val);
  1142  return of_changeset_add_property_copy(ocs, np, name, , 
sizeof(val));
  1143  }
  1144  

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


[renesas-drivers:topic/renesas-overlays 10/92] drivers/of/overlay.c:657:6: sparse: symbol 'overlay_changeset_release' was not declared. Should it be static?

2017-12-14 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   47d433a558bb60587eb9f86a4d010ef74e03fa0d
commit: 11de0d24be4742a41feceb95d9145b08843dc70a [10/92] of: overlay: 
kobjectify overlay objects
reproduce:
# apt-get install sparse
git checkout 11de0d24be4742a41feceb95d9145b08843dc70a
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)


Please review and possibly fold the followup patch.

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


[RFC PATCH renesas-drivers] of: overlay: overlay_changeset_release() can be static

2017-12-14 Thread kbuild test robot

Fixes: 11de0d24be47 ("of: overlay: kobjectify overlay objects")
Signed-off-by: Fengguang Wu 
---
 overlay.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c
index ef7e8a4..7f0255e 100644
--- a/drivers/of/overlay.c
+++ b/drivers/of/overlay.c
@@ -654,7 +654,7 @@ static inline struct overlay_changeset *kobj_to_ovcs(struct 
kobject *kobj)
return container_of(kobj, struct overlay_changeset, kobj);
 }
 
-void overlay_changeset_release(struct kobject *kobj)
+static void overlay_changeset_release(struct kobject *kobj)
 {
struct overlay_changeset *ovcs = kobj_to_ovcs(kobj);
 


[renesas-drivers:topic/renesas-overlays 8/91] drivers//of/configfs.c:48:2: error: implicit declaration of function 'of_fdt_unflatten_tree'; did you mean 'of_pdt_build_devicetree'?

2017-12-08 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   775b0f62546cf5d5791c43d3ee5239f5394014fb
commit: cd57c0972233bd19244b37aeb075adb26ff6d4df [8/91] OF: DT-Overlay configfs 
interface (v7)
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 cd57c0972233bd19244b37aeb075adb26ff6d4df
# save the attached .config to linux build tree
make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   drivers//of/configfs.c: In function 'create_overlay':
>> drivers//of/configfs.c:48:2: error: implicit declaration of function 
>> 'of_fdt_unflatten_tree'; did you mean 'of_pdt_build_devicetree'? 
>> [-Werror=implicit-function-declaration]
 of_fdt_unflatten_tree(blob, NULL, >overlay);
 ^
 of_pdt_build_devicetree
   cc1: some warnings being treated as errors

vim +48 drivers//of/configfs.c

42  
43  static int create_overlay(struct cfs_overlay_item *overlay, void *blob)
44  {
45  int err;
46  
47  /* unflatten the tree */
  > 48  of_fdt_unflatten_tree(blob, NULL, >overlay);
49  if (overlay->overlay == NULL) {
50  pr_err("%s: failed to unflatten tree\n", __func__);
51  err = -EINVAL;
52  goto out_err;
53  }
54  pr_debug("%s: unflattened OK\n", __func__);
55  
56  /* mark it as detached */
57  of_node_set_flag(overlay->overlay, OF_DETACHED);
58  
59  /* perform resolution */
60  err = of_resolve_phandles(overlay->overlay);
61  if (err != 0) {
62  pr_err("%s: Failed to resolve tree\n", __func__);
63  goto out_err;
64  }
65  pr_debug("%s: resolved OK\n", __func__);
66  
67  err = of_overlay_apply(overlay->overlay, >ov_id);
68  if (err < 0) {
69  pr_err("%s: Failed to create overlay (err=%d)\n",
70  __func__, err);
71  goto out_err;
72  }
73  
74  out_err:
75  return err;
76  }
77  

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/phy-reset-v4 1/4] include/linux/err.h:31:9: warning: 'gpiod' may be used uninitialized in this function

2017-12-04 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/phy-reset-v4
head:   8999caba1f624814c0e3e2a6fabfdab70ae44e9e
commit: 8274c902dc09564722a4ef7e1364bb3f3f2f9f79 [1/4] phylib: Add device reset 
GPIO support
config: i386-randconfig-x076-201749 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
git checkout 8274c902dc09564722a4ef7e1364bb3f3f2f9f79
# save the attached .config to linux build tree
make ARCH=i386 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/processor.h:32:0,
from arch/x86/include/asm/cpufeature.h:5,
from arch/x86/include/asm/thread_info.h:53,
from include/linux/thread_info.h:38,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from drivers/net/phy/mdio_bus.c:20:
   drivers/net/phy/mdio_bus.c: In function 'mdiobus_register_device':
>> include/linux/err.h:31:9: warning: 'gpiod' may be used uninitialized in this 
>> function [-Wmaybe-uninitialized]
 return (long) ptr;
^~
   drivers/net/phy/mdio_bus.c:52:20: note: 'gpiod' was declared here
 struct gpio_desc *gpiod;
   ^
--
   In file included from arch/x86/include/asm/processor.h:32:0,
from arch/x86/include/asm/cpufeature.h:5,
from arch/x86/include/asm/thread_info.h:53,
from include/linux/thread_info.h:38,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from drivers/net//phy/mdio_bus.c:20:
   drivers/net//phy/mdio_bus.c: In function 'mdiobus_register_device':
>> include/linux/err.h:31:9: warning: 'gpiod' may be used uninitialized in this 
>> function [-Wmaybe-uninitialized]
 return (long) ptr;
^~
   drivers/net//phy/mdio_bus.c:52:20: note: 'gpiod' was declared here
 struct gpio_desc *gpiod;
   ^

vim +/gpiod +31 include/linux/err.h

^1da177e Linus Torvalds 2005-04-16  28  
e7152b97 Dan Carpenter  2013-07-03  29  static inline long __must_check 
PTR_ERR(__force const void *ptr)
^1da177e Linus Torvalds 2005-04-16  30  {
^1da177e Linus Torvalds 2005-04-16 @31  return (long) ptr;
^1da177e Linus Torvalds 2005-04-16  32  }
^1da177e Linus Torvalds 2005-04-16  33  

:: The code at line 31 was first introduced by commit
:: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:: TO: Linus Torvalds 
:: CC: Linus Torvalds 

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/renesas-overlays 17/88] drivers/of/unittest.c:2037:8: error: implicit declaration of function 'of_overlay_create_target_root'; did you mean 'of_overlay_apply_target_root'?

2017-11-28 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   1b3280e42a0063f04f3ab7c9f8bbe4b5c65c51d9
commit: a9f6ad767d6992a45c4d7ff331f6e796efe78d4d [17/88] of: unittest: 
Unit-tests for target root overlays.
config: i386-randconfig-x076-201748 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
git checkout a9f6ad767d6992a45c4d7ff331f6e796efe78d4d
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/of/unittest.c: In function 'of_unittest_overlay_16':
   drivers/of/unittest.c:1970:8: error: implicit declaration of function 
'of_overlay_create_indirect'; did you mean 'of_overlay_apply_indirect'? 
[-Werror=implicit-function-declaration]
 ret = of_overlay_create_indirect(np, "unittest16");
   ^~
   of_overlay_apply_indirect
   drivers/of/unittest.c: In function 'of_unittest_overlay_17':
>> drivers/of/unittest.c:2037:8: error: implicit declaration of function 
>> 'of_overlay_create_target_root'; did you mean 
>> 'of_overlay_apply_target_root'? [-Werror=implicit-function-declaration]
 ret = of_overlay_create_target_root(np, target_root);
   ^
   of_overlay_apply_target_root
   cc1: some warnings being treated as errors

vim +2037 drivers/of/unittest.c

  1941  
  1942  static void of_unittest_overlay_16(void)
  1943  {
  1944  int ret;
  1945  int overlay_nr = 16;
  1946  int unittest_nr = 16;
  1947  enum overlay_type ovtype = PDEV_OVERLAY;
  1948  int before = 0;
  1949  int after = 1;
  1950  struct device_node *np = NULL;
  1951  int id = -1;
  1952  
  1953  /* unittest device must not be in before state */
  1954  if (of_unittest_device_exists(unittest_nr, ovtype) != before) {
  1955  unittest(0, "overlay @\"%s\" with device @\"%s\" %s\n",
  1956  overlay_path(overlay_nr),
  1957  unittest_path(unittest_nr, ovtype),
  1958  !before ? "enabled" : "disabled");
  1959  return;
  1960  }
  1961  
  1962  np = of_find_node_by_path(overlay_path(overlay_nr));
  1963  if (np == NULL) {
  1964  unittest(0, "could not find overlay node @\"%s\"\n",
  1965  overlay_path(overlay_nr));
  1966  ret = -EINVAL;
  1967  goto out;
  1968  }
  1969  
> 1970  ret = of_overlay_create_indirect(np, "unittest16");
  1971  if (ret < 0) {
  1972  unittest(0, "could not create overlay from \"%s\"\n",
  1973  overlay_path(overlay_nr));
  1974  goto out;
  1975  }
  1976  id = ret;
  1977  of_unittest_track_overlay(id);
  1978  
  1979  ret = 0;
  1980  
  1981  out:
  1982  of_node_put(np);
  1983  
  1984  if (ret)
  1985  return;
  1986  
  1987  /* unittest device must be to set to after state */
  1988  if (of_unittest_device_exists(unittest_nr, ovtype) != after) {
  1989  unittest(0, "overlay @\"%s\" failed to create @\"%s\" 
%s\n",
  1990  overlay_path(overlay_nr),
  1991  unittest_path(unittest_nr, ovtype),
  1992  !after ? "enabled" : "disabled");
  1993  return;
  1994  }
  1995  
  1996  unittest(1, "overlay test %d passed\n", 16);
  1997  }
  1998  
  1999  static void of_unittest_overlay_17(void)
  2000  {
  2001  int ret;
  2002  int overlay_nr = 17;
  2003  int unittest_nr = 17;
  2004  enum overlay_type ovtype = PDEV_OVERLAY;
  2005  int before = 0;
  2006  int after = 1;
  2007  const char *root_path;
  2008  struct device_node *np = NULL, *target_root = NULL;
  2009  int id = -1;
  2010  
  2011  /* unittest device must not be in before state */
  2012  if (of_unittest_device_exists(unittest_nr, ovtype) != before) {
  2013  unittest(0, "overlay @\"%s\" with device @\"%s\" %s\n",
  2014  overlay_path(overlay_nr),
  2015  unittest_path(unittest_nr, ovtype),
  2016  !before ? "enabled" : "disabled");
  2017  return;
  2018  }
  2019  
  2020  np = of_find_node_by_path(overlay_path(overlay_nr));
  2021  if (np == NULL) {
  2022  unittest(0, "could not find overlay node @\"%s\"\n",
  2023  overlay_path(overlay_nr));
  2024  ret = -EINVAL;
  2025   

[renesas-drivers:topic/renesas-overlays 17/88] drivers/of/unittest.c:2037:2: error: implicit declaration of function 'of_overlay_create_target_root'

2017-11-28 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   1b3280e42a0063f04f3ab7c9f8bbe4b5c65c51d9
commit: a9f6ad767d6992a45c4d7ff331f6e796efe78d4d [17/88] of: unittest: 
Unit-tests for target root overlays.
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.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 a9f6ad767d6992a45c4d7ff331f6e796efe78d4d
# save the attached .config to linux build tree
make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   drivers/of/unittest.c: In function 'of_unittest_overlay_16':
   drivers/of/unittest.c:1970:2: error: implicit declaration of function 
'of_overlay_create_indirect' [-Werror=implicit-function-declaration]
 ret = of_overlay_create_indirect(np, "unittest16");
 ^
   drivers/of/unittest.c: In function 'of_unittest_overlay_17':
>> drivers/of/unittest.c:2037:2: error: implicit declaration of function 
>> 'of_overlay_create_target_root' [-Werror=implicit-function-declaration]
 ret = of_overlay_create_target_root(np, target_root);
 ^
   cc1: some warnings being treated as errors

vim +/of_overlay_create_target_root +2037 drivers/of/unittest.c

  1941  
  1942  static void of_unittest_overlay_16(void)
  1943  {
  1944  int ret;
  1945  int overlay_nr = 16;
  1946  int unittest_nr = 16;
  1947  enum overlay_type ovtype = PDEV_OVERLAY;
  1948  int before = 0;
  1949  int after = 1;
  1950  struct device_node *np = NULL;
  1951  int id = -1;
  1952  
  1953  /* unittest device must not be in before state */
  1954  if (of_unittest_device_exists(unittest_nr, ovtype) != before) {
  1955  unittest(0, "overlay @\"%s\" with device @\"%s\" %s\n",
  1956  overlay_path(overlay_nr),
  1957  unittest_path(unittest_nr, ovtype),
  1958  !before ? "enabled" : "disabled");
  1959  return;
  1960  }
  1961  
  1962  np = of_find_node_by_path(overlay_path(overlay_nr));
  1963  if (np == NULL) {
  1964  unittest(0, "could not find overlay node @\"%s\"\n",
  1965  overlay_path(overlay_nr));
  1966  ret = -EINVAL;
  1967  goto out;
  1968  }
  1969  
> 1970  ret = of_overlay_create_indirect(np, "unittest16");
  1971  if (ret < 0) {
  1972  unittest(0, "could not create overlay from \"%s\"\n",
  1973  overlay_path(overlay_nr));
  1974  goto out;
  1975  }
  1976  id = ret;
  1977  of_unittest_track_overlay(id);
  1978  
  1979  ret = 0;
  1980  
  1981  out:
  1982  of_node_put(np);
  1983  
  1984  if (ret)
  1985  return;
  1986  
  1987  /* unittest device must be to set to after state */
  1988  if (of_unittest_device_exists(unittest_nr, ovtype) != after) {
  1989  unittest(0, "overlay @\"%s\" failed to create @\"%s\" 
%s\n",
  1990  overlay_path(overlay_nr),
  1991  unittest_path(unittest_nr, ovtype),
  1992  !after ? "enabled" : "disabled");
  1993  return;
  1994  }
  1995  
  1996  unittest(1, "overlay test %d passed\n", 16);
  1997  }
  1998  
  1999  static void of_unittest_overlay_17(void)
  2000  {
  2001  int ret;
  2002  int overlay_nr = 17;
  2003  int unittest_nr = 17;
  2004  enum overlay_type ovtype = PDEV_OVERLAY;
  2005  int before = 0;
  2006  int after = 1;
  2007  const char *root_path;
  2008  struct device_node *np = NULL, *target_root = NULL;
  2009  int id = -1;
  2010  
  2011  /* unittest device must not be in before state */
  2012  if (of_unittest_device_exists(unittest_nr, ovtype) != before) {
  2013  unittest(0, "overlay @\"%s\" with device @\"%s\" %s\n",
  2014  overlay_path(overlay_nr),
  2015  unittest_path(unittest_nr, ovtype),
  2016  !before ? "enabled" : "disabled");
  2017  return;
  2018  }
  2019  
  2020  np = of_find_node_by_path(overlay_path(overlay_nr));
  2021  if (np == NULL) {
  2022  unittest(0, "could not find overlay node @\"%s\"\n",
  2023  overlay_path(overlay_nr));
  2024  ret = -EINVAL;
  2025  goto out;
  2026  }
  2027  
  2028  

[renesas-drivers:topic/renesas-overlays 14/88] drivers//of/unittest.c:1970:8: error: implicit declaration of function 'of_overlay_create_indirect'; did you mean 'of_overlay_apply_indirect'?

2017-11-28 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   1b3280e42a0063f04f3ab7c9f8bbe4b5c65c51d9
commit: 71f8b1178fc334bfb92d8f2c6296a6c83c276b18 [14/88] of: unittest: Add 
indirect overlay target test
config: i386-randconfig-x076-201748 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
git checkout 71f8b1178fc334bfb92d8f2c6296a6c83c276b18
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers//of/unittest.c: In function 'of_unittest_overlay_16':
>> drivers//of/unittest.c:1970:8: error: implicit declaration of function 
>> 'of_overlay_create_indirect'; did you mean 'of_overlay_apply_indirect'? 
>> [-Werror=implicit-function-declaration]
 ret = of_overlay_create_indirect(np, "unittest16");
   ^~
   of_overlay_apply_indirect
   cc1: some warnings being treated as errors

vim +1970 drivers//of/unittest.c

  1941  
  1942  static void of_unittest_overlay_16(void)
  1943  {
  1944  int ret;
  1945  int overlay_nr = 16;
  1946  int unittest_nr = 16;
  1947  enum overlay_type ovtype = PDEV_OVERLAY;
  1948  int before = 0;
  1949  int after = 1;
  1950  struct device_node *np = NULL;
  1951  int id = -1;
  1952  
  1953  /* unittest device must not be in before state */
  1954  if (of_unittest_device_exists(unittest_nr, ovtype) != before) {
  1955  unittest(0, "overlay @\"%s\" with device @\"%s\" %s\n",
  1956  overlay_path(overlay_nr),
  1957  unittest_path(unittest_nr, ovtype),
  1958  !before ? "enabled" : "disabled");
  1959  return;
  1960  }
  1961  
  1962  np = of_find_node_by_path(overlay_path(overlay_nr));
  1963  if (np == NULL) {
  1964  unittest(0, "could not find overlay node @\"%s\"\n",
  1965  overlay_path(overlay_nr));
  1966  ret = -EINVAL;
  1967  goto out;
  1968  }
  1969  
> 1970  ret = of_overlay_create_indirect(np, "unittest16");
  1971  if (ret < 0) {
  1972  unittest(0, "could not create overlay from \"%s\"\n",
  1973  overlay_path(overlay_nr));
  1974  goto out;
  1975  }
  1976  id = ret;
  1977  of_unittest_track_overlay(id);
  1978  
  1979  ret = 0;
  1980  
  1981  out:
  1982  of_node_put(np);
  1983  
  1984  if (ret)
  1985  return;
  1986  
  1987  /* unittest device must be to set to after state */
  1988  if (of_unittest_device_exists(unittest_nr, ovtype) != after) {
  1989  unittest(0, "overlay @\"%s\" failed to create @\"%s\" 
%s\n",
  1990  overlay_path(overlay_nr),
  1991  unittest_path(unittest_nr, ovtype),
  1992  !after ? "enabled" : "disabled");
  1993  return;
  1994  }
  1995  
  1996  unittest(1, "overlay test %d passed\n", 16);
  1997  }
  1998  

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/renesas-overlays 14/88] drivers//of/unittest.c:1970:2: error: implicit declaration of function 'of_overlay_create_indirect'

2017-11-28 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   1b3280e42a0063f04f3ab7c9f8bbe4b5c65c51d9
commit: 71f8b1178fc334bfb92d8f2c6296a6c83c276b18 [14/88] of: unittest: Add 
indirect overlay target test
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.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 71f8b1178fc334bfb92d8f2c6296a6c83c276b18
# save the attached .config to linux build tree
make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   drivers//of/unittest.c: In function 'of_unittest_overlay_16':
>> drivers//of/unittest.c:1970:2: error: implicit declaration of function 
>> 'of_overlay_create_indirect' [-Werror=implicit-function-declaration]
 ret = of_overlay_create_indirect(np, "unittest16");
 ^
   cc1: some warnings being treated as errors

vim +/of_overlay_create_indirect +1970 drivers//of/unittest.c

  1941  
  1942  static void of_unittest_overlay_16(void)
  1943  {
  1944  int ret;
  1945  int overlay_nr = 16;
  1946  int unittest_nr = 16;
  1947  enum overlay_type ovtype = PDEV_OVERLAY;
  1948  int before = 0;
  1949  int after = 1;
  1950  struct device_node *np = NULL;
  1951  int id = -1;
  1952  
  1953  /* unittest device must not be in before state */
  1954  if (of_unittest_device_exists(unittest_nr, ovtype) != before) {
  1955  unittest(0, "overlay @\"%s\" with device @\"%s\" %s\n",
  1956  overlay_path(overlay_nr),
  1957  unittest_path(unittest_nr, ovtype),
  1958  !before ? "enabled" : "disabled");
  1959  return;
  1960  }
  1961  
  1962  np = of_find_node_by_path(overlay_path(overlay_nr));
  1963  if (np == NULL) {
  1964  unittest(0, "could not find overlay node @\"%s\"\n",
  1965  overlay_path(overlay_nr));
  1966  ret = -EINVAL;
  1967  goto out;
  1968  }
  1969  
> 1970  ret = of_overlay_create_indirect(np, "unittest16");
  1971  if (ret < 0) {
  1972  unittest(0, "could not create overlay from \"%s\"\n",
  1973  overlay_path(overlay_nr));
  1974  goto out;
  1975  }
  1976  id = ret;
  1977  of_unittest_track_overlay(id);
  1978  
  1979  ret = 0;
  1980  
  1981  out:
  1982  of_node_put(np);
  1983  
  1984  if (ret)
  1985  return;
  1986  
  1987  /* unittest device must be to set to after state */
  1988  if (of_unittest_device_exists(unittest_nr, ovtype) != after) {
  1989  unittest(0, "overlay @\"%s\" failed to create @\"%s\" 
%s\n",
  1990  overlay_path(overlay_nr),
  1991  unittest_path(unittest_nr, ovtype),
  1992  !after ? "enabled" : "disabled");
  1993  return;
  1994  }
  1995  
  1996  unittest(1, "overlay test %d passed\n", 16);
  1997  }
  1998  

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


.config.gz
Description: application/gzip


[renesas-drivers:master 11/47] drivers/gpu/drm/amd/include/amd_shared.h:34:2: error: redeclaration of enumerator 'CHIP_TAHITI'

2017-10-31 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git master
head:   cdf382160c46b29ce99532ed4378ddc044a5a1c9
commit: e3aba27754ed0dbfd3390be1e783a99b220a4e23 [11/47] Merge remote-tracking 
branch 'drm/drm-next' into renesas-drivers
config: x86_64-randconfig-i0-201744 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout e3aba27754ed0dbfd3390be1e783a99b220a4e23
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36:0,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
>> drivers/gpu/drm/amd/include/amd_shared.h:33:6: error: nested redefinition of 
>> 'enum amd_asic_type'
enum amd_asic_type {
 ^
>> drivers/gpu/drm/amd/include/amd_shared.h:33:6: error: redeclaration of 'enum 
>> amd_asic_type'
   In file included from drivers/gpu/drm/amd/include/amd_shared.h:26:0,
from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
   include/drm/amd_asic_type.h:28:6: note: originally defined here
enum amd_asic_type {
 ^
   In file included from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36:0,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
>> drivers/gpu/drm/amd/include/amd_shared.h:34:2: error: redeclaration of 
>> enumerator 'CHIP_TAHITI'
 CHIP_TAHITI = 0,
 ^
   In file included from drivers/gpu/drm/amd/include/amd_shared.h:26:0,
from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
   include/drm/amd_asic_type.h:29:2: note: previous definition of 'CHIP_TAHITI' 
was here
 CHIP_TAHITI = 0,
 ^
   In file included from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36:0,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
>> drivers/gpu/drm/amd/include/amd_shared.h:35:2: error: redeclaration of 
>> enumerator 'CHIP_PITCAIRN'
 CHIP_PITCAIRN,
 ^
   In file included from drivers/gpu/drm/amd/include/amd_shared.h:26:0,
from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
   include/drm/amd_asic_type.h:30:2: note: previous definition of 
'CHIP_PITCAIRN' was here
 CHIP_PITCAIRN,
 ^
   In file included from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36:0,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
>> drivers/gpu/drm/amd/include/amd_shared.h:36:2: error: redeclaration of 
>> enumerator 'CHIP_VERDE'
 CHIP_VERDE,
 ^
   In file included from drivers/gpu/drm/amd/include/amd_shared.h:26:0,
from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
   include/drm/amd_asic_type.h:31:2: note: previous definition of 'CHIP_VERDE' 
was here
 CHIP_VERDE,
 ^
   In file included from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36:0,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
>> drivers/gpu/drm/amd/include/amd_shared.h:37:2: error: redeclaration of 
>> enumerator 'CHIP_OLAND'
 CHIP_OLAND,
 ^
   In file included from drivers/gpu/drm/amd/include/amd_shared.h:26:0,
from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
   include/drm/amd_asic_type.h:32:2: note: previous definition of 'CHIP_OLAND' 
was here
 CHIP_OLAND,
 ^
   In file included from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36:0,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
>> drivers/gpu/drm/amd/include/amd_shared.h:38:2: error: redeclaration of 
>> enumerator 'CHIP_HAINAN'
 CHIP_HAINAN,
 ^
   In file included from drivers/gpu/drm/amd/include/amd_shared.h:26:0,
from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
   include/drm/amd_asic_type.h:33:2: note: previous definition of 'CHIP_HAINAN' 
was here
 CHIP_HAINAN,
 ^
   In file included from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36:0,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
>> drivers/gpu/drm/amd/include/amd_shared.h:39:2: error: redeclaration of 
>> enumerator 'CHIP_BONAIRE'
 CHIP_BONAIRE,
 ^
   In file included from drivers/gpu/drm/amd/include/amd_shared.h:26:0,
from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
   include/drm/amd_asic_type.h:34:2: note: previous definition of 
'CHIP_BONAIRE' was here
 CHIP_BONAIRE,
 ^
   In file included from drivers/gpu/drm/amd/amdkfd/kfd_priv.h:36:0,
from drivers/gpu/drm/amd/amdkfd/kfd_module.c:27:
>> drivers/gpu/drm/amd/include/amd_shared.h:40:2: error: 

[renesas-drivers:master 11/47] drivers/gpu/drm/i915/i915_gem.c:3093:16: error: unused variable 'flags'

2017-10-31 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git master
head:   cdf382160c46b29ce99532ed4378ddc044a5a1c9
commit: e3aba27754ed0dbfd3390be1e783a99b220a4e23 [11/47] Merge remote-tracking 
branch 'drm/drm-next' into renesas-drivers
config: i386-randconfig-s0-201744 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout e3aba27754ed0dbfd3390be1e783a99b220a4e23
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/i915_gem.c: In function 'nop_submit_request':
>> drivers/gpu/drm/i915/i915_gem.c:3093:16: error: unused variable 'flags' 
>> [-Werror=unused-variable]
 unsigned long flags;
   ^
   cc1: all warnings being treated as errors

vim +/flags +3093 drivers/gpu/drm/i915/i915_gem.c

d80270931 Chris Wilson  2017-02-08  3090  
821ed7df6 Chris Wilson  2016-09-09  3091  static void nop_submit_request(struct 
drm_i915_gem_request *request)
821ed7df6 Chris Wilson  2016-09-09  3092  {
b85577b72 Chris Wilson  2017-10-06 @3093unsigned long flags;
b85577b72 Chris Wilson  2017-10-06  3094  
bf2eac3be Chris Wilson  2017-07-21  3095
GEM_BUG_ON(!i915_terminally_wedged(>i915->gpu_error));
3cd9442f6 Chris Wilson  2017-01-10  3096
dma_fence_set_error(>fence, -EIO);
b85577b72 Chris Wilson  2017-10-06  3097  
af7a8ffad Daniel Vetter 2017-10-11  3098
i915_gem_request_submit(request);
af7a8ffad Daniel Vetter 2017-10-11  3099  }
af7a8ffad Daniel Vetter 2017-10-11  3100  

:: The code at line 3093 was first introduced by commit
:: b85577b72837ee8d9213e93d2c8b67ef78a47803 drm/i915: Order two completing 
nop_submit_request

:: TO: Chris Wilson 
:: CC: Rodrigo Vivi 

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/phy-reset-v3 1/4] drivers//of/of_mdio.c:60:10: error: implicit declaration of function 'fwnode_get_named_gpiod'

2017-10-31 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/phy-reset-v3
head:   a1d46e588cf5f3554d849614ae91db6f30933ea5
commit: 155bdea9cfe35268946786014dc01998acb7edbd [1/4] phylib: Add device reset 
GPIO support
config: powerpc-mpc8315_rdb_defconfig (attached as .config)
compiler: powerpc-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 155bdea9cfe35268946786014dc01998acb7edbd
# save the attached .config to linux build tree
make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   drivers//of/of_mdio.c: In function 'of_mdiobus_register_phy':
>> drivers//of/of_mdio.c:60:10: error: implicit declaration of function 
>> 'fwnode_get_named_gpiod' [-Werror=implicit-function-declaration]
 gpiod = fwnode_get_named_gpiod(>fwnode, "reset-gpios", 0,
 ^~
>> drivers//of/of_mdio.c:61:12: error: 'GPIOD_OUT_LOW' undeclared (first use in 
>> this function)
   GPIOD_OUT_LOW, "PHY reset");
   ^
   drivers//of/of_mdio.c:61:12: note: each undeclared identifier is reported 
only once for each function it appears in
   drivers//of/of_mdio.c:65:10: warning: 'return' with a value, in function 
returning void
  return PTR_ERR(gpiod);
 ^~
   drivers//of/of_mdio.c:47:13: note: declared here
static void of_mdiobus_register_phy(struct mii_bus *mdio,
^~~
>> drivers//of/of_mdio.c:73:2: error: implicit declaration of function 
>> 'gpiod_set_value' [-Werror=implicit-function-declaration]
 gpiod_set_value(gpiod, 1);
 ^~~
   drivers//of/of_mdio.c: In function 'of_mdiobus_register_device':
>> drivers//of/of_mdio.c:126:12: error: 'GPIOD_ASIS' undeclared (first use in 
>> this function)
   GPIOD_ASIS, "PHY reset");
   ^~
   drivers//of/of_mdio.c:130:10: warning: 'return' with a value, in function 
returning void
  return PTR_ERR(gpiod);
 ^~
   drivers//of/of_mdio.c:108:13: note: declared here
static void of_mdiobus_register_device(struct mii_bus *mdio,
^~
   drivers//of/of_mdio.c:130:10: warning: ignoring return value of 'PTR_ERR', 
declared with attribute warn_unused_result [-Wunused-result]
  return PTR_ERR(gpiod);
 ^~
   drivers//of/of_mdio.c: In function 'of_mdiobus_register_phy':
   drivers//of/of_mdio.c:65:10: warning: ignoring return value of 'PTR_ERR', 
declared with attribute warn_unused_result [-Wunused-result]
  return PTR_ERR(gpiod);
 ^~
   cc1: some warnings being treated as errors

vim +/fwnode_get_named_gpiod +60 drivers//of/of_mdio.c

46  
  > 47  static void of_mdiobus_register_phy(struct mii_bus *mdio,
48  struct device_node *child, u32 addr)
49  {
50  struct gpio_desc *gpiod;
51  struct phy_device *phy;
52  bool is_c45;
53  int rc;
54  u32 phy_id;
55  
56  is_c45 = of_device_is_compatible(child,
57   "ethernet-phy-ieee802.3-c45");
58  
59  /* Deassert the optional reset signal */
  > 60  gpiod = fwnode_get_named_gpiod(>fwnode, "reset-gpios", 0,
  > 61 GPIOD_OUT_LOW, "PHY reset");
62  if (PTR_ERR(gpiod) == -ENOENT)
63  gpiod = NULL;
64  else if (IS_ERR(gpiod))
65  return PTR_ERR(gpiod);
66  
67  if (!is_c45 && !of_get_phy_id(child, _id))
68  phy = phy_device_create(mdio, addr, phy_id, 0, NULL);
69  else
70  phy = get_phy_device(mdio, addr, is_c45);
71  
72  /* Assert the reset signal again */
  > 73  gpiod_set_value(gpiod, 1);
74  
75  if (IS_ERR(phy))
76  return;
77  
78  rc = irq_of_parse_and_map(child, 0);
79  if (rc > 0) {
80  phy->irq = rc;
81  mdio->irq[addr] = rc;
82  } else {
83  phy->irq = mdio->irq[addr];
84  }
85  
86  if (of_property_read_bool(child, "broken-turn-around"))
87  mdio->phy_ignore_ta_mask |= 1 << addr;
88  
89  /* Associate the OF node with the device structure so it
90   * can be looked up later */
91  of_node_get(child);
92  phy->mdio.dev.of_node = child;
93  phy->mdio.reset = gpiod;
94  
95  /* All data is now stored in the phy struct;
96   * register it */
97  rc = phy_device_register(phy);

[renesas-drivers:topic/phy-reset-v3 1/4] drivers/of/of_mdio.c:65:10: warning: 'return' with a value, in function returning void

2017-10-31 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/phy-reset-v3
head:   a1d46e588cf5f3554d849614ae91db6f30933ea5
commit: 155bdea9cfe35268946786014dc01998acb7edbd [1/4] phylib: Add device reset 
GPIO support
config: x86_64-randconfig-x019-201744 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 155bdea9cfe35268946786014dc01998acb7edbd
# save the attached .config to linux build tree
make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/of/of_mdio.c: In function 'of_mdiobus_register_phy':
>> drivers/of/of_mdio.c:65:10: warning: 'return' with a value, in function 
>> returning void
  return PTR_ERR(gpiod);
 ^~
   drivers/of/of_mdio.c:47:13: note: declared here
static void of_mdiobus_register_phy(struct mii_bus *mdio,
^~~
   drivers/of/of_mdio.c: In function 'of_mdiobus_register_device':
   drivers/of/of_mdio.c:130:10: warning: 'return' with a value, in function 
returning void
  return PTR_ERR(gpiod);
 ^~
   drivers/of/of_mdio.c:108:13: note: declared here
static void of_mdiobus_register_device(struct mii_bus *mdio,
^~
>> drivers/of/of_mdio.c:130:10: warning: ignoring return value of 'PTR_ERR', 
>> declared with attribute warn_unused_result [-Wunused-result]
  return PTR_ERR(gpiod);
 ^~
   drivers/of/of_mdio.c: In function 'of_mdiobus_register_phy':
   drivers/of/of_mdio.c:65:10: warning: ignoring return value of 'PTR_ERR', 
declared with attribute warn_unused_result [-Wunused-result]
  return PTR_ERR(gpiod);
 ^~

vim +/return +65 drivers/of/of_mdio.c

46  
47  static void of_mdiobus_register_phy(struct mii_bus *mdio,
48  struct device_node *child, u32 addr)
49  {
50  struct gpio_desc *gpiod;
51  struct phy_device *phy;
52  bool is_c45;
53  int rc;
54  u32 phy_id;
55  
56  is_c45 = of_device_is_compatible(child,
57   "ethernet-phy-ieee802.3-c45");
58  
59  /* Deassert the optional reset signal */
60  gpiod = fwnode_get_named_gpiod(>fwnode, "reset-gpios", 0,
61 GPIOD_OUT_LOW, "PHY reset");
62  if (PTR_ERR(gpiod) == -ENOENT)
63  gpiod = NULL;
64  else if (IS_ERR(gpiod))
  > 65  return PTR_ERR(gpiod);
66  
67  if (!is_c45 && !of_get_phy_id(child, _id))
68  phy = phy_device_create(mdio, addr, phy_id, 0, NULL);
69  else
70  phy = get_phy_device(mdio, addr, is_c45);
71  
72  /* Assert the reset signal again */
73  gpiod_set_value(gpiod, 1);
74  
75  if (IS_ERR(phy))
76  return;
77  
78  rc = irq_of_parse_and_map(child, 0);
79  if (rc > 0) {
80  phy->irq = rc;
81  mdio->irq[addr] = rc;
82  } else {
83  phy->irq = mdio->irq[addr];
84  }
85  
86  if (of_property_read_bool(child, "broken-turn-around"))
87  mdio->phy_ignore_ta_mask |= 1 << addr;
88  
89  /* Associate the OF node with the device structure so it
90   * can be looked up later */
91  of_node_get(child);
92  phy->mdio.dev.of_node = child;
93  phy->mdio.reset = gpiod;
94  
95  /* All data is now stored in the phy struct;
96   * register it */
97  rc = phy_device_register(phy);
98  if (rc) {
99  phy_device_free(phy);
   100  of_node_put(child);
   101  return;
   102  }
   103  
   104  dev_dbg(>dev, "registered phy %s at address %i\n",
   105  child->name, addr);
   106  }
   107  
   108  static void of_mdiobus_register_device(struct mii_bus *mdio,
   109 struct device_node *child, u32 
addr)
   110  {
   111  struct mdio_device *mdiodev;
   112  struct gpio_desc *gpiod;
   113  int rc;
   114  
   115  mdiodev = mdio_device_create(mdio, addr);
   116  if (IS_ERR(mdiodev))
   117  return;
   118  
   119  /* Associate the OF node with the device structure so it
   120   * can be looked up later.
   121   */
   122  of_node_get(child);
   123  mdiodev->dev.of_node = child;
   124  
   125  gpiod = fwnode_get_named_gpiod(>fwnode, "reset-gpios", 0,
   126 GPIOD_ASIS, "PHY reset");
   127  

Re: [PATCH 1/2] drm/rcar-du: Use common error handling code in rcar_du_encoders_init()

2017-10-26 Thread kbuild test robot
Hi Markus,

[auto build test ERROR on drm/drm-next]
[also build test ERROR on v4.14-rc6 next-20171018]
[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/SF-Markus-Elfring/R-Car-Display-Unit-Fine-tuning-for-some-function-implementations/20171026-160928
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All error/warnings (new ones prefixed by >>):

   drivers/gpu/drm/rcar-du/rcar_du_kms.c: In function 'rcar_du_encoders_init':
>> drivers/gpu/drm/rcar-du/rcar_du_kms.c:415:9: error: 'ret' undeclared (first 
>> use in this function)
 return ret;
^~~
   drivers/gpu/drm/rcar-du/rcar_du_kms.c:415:9: note: each undeclared 
identifier is reported only once for each function it appears in
>> drivers/gpu/drm/rcar-du/rcar_du_kms.c:416:1: warning: control reaches end of 
>> non-void function [-Wreturn-type]
}
^

vim +/ret +415 drivers/gpu/drm/rcar-du/rcar_du_kms.c

   362  
   363  static int rcar_du_encoders_init(struct rcar_du_device *rcdu)
   364  {
   365  struct device_node *np = rcdu->dev->of_node;
   366  struct device_node *ep_node;
   367  unsigned int num_encoders = 0;
   368  
   369  /*
   370   * Iterate over the endpoints and create one encoder for each 
output
   371   * pipeline.
   372   */
   373  for_each_endpoint_of_node(np, ep_node) {
   374  enum rcar_du_output output;
   375  struct of_endpoint ep;
   376  unsigned int i;
   377  int ret;
   378  
   379  ret = of_graph_parse_endpoint(ep_node, );
   380  if (ret < 0)
   381  goto put_node;
   382  
   383  /* Find the output route corresponding to the port 
number. */
   384  for (i = 0; i < RCAR_DU_OUTPUT_MAX; ++i) {
   385  if (rcdu->info->routes[i].possible_crtcs &&
   386  rcdu->info->routes[i].port == ep.port) {
   387  output = i;
   388  break;
   389  }
   390  }
   391  
   392  if (i == RCAR_DU_OUTPUT_MAX) {
   393  dev_warn(rcdu->dev,
   394   "port %u references unexisting output, 
skipping\n",
   395   ep.port);
   396  continue;
   397  }
   398  
   399  /* Process the output pipeline. */
   400  ret = rcar_du_encoders_init_one(rcdu, output, );
   401  if (ret < 0) {
   402  if (ret == -EPROBE_DEFER)
   403  goto put_node;
   404  
   405  continue;
   406  }
   407  
   408  num_encoders++;
   409  }
   410  
   411  return num_encoders;
   412  
   413  put_node:
   414  of_node_put(ep_node);
 > 415  return ret;
 > 416  }
   417  

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


.config.gz
Description: application/gzip


[renesas:topic/rcar-gen3-z-clk-v3 2/6] rcar-gen3-cpg.c:undefined reference to `__ffsdi2'

2017-10-05 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git 
topic/rcar-gen3-z-clk-v3
head:   4b41ea6e92cdc7fce15ba99b02c40938a134cff7
commit: fda8dbe29dd1f04b61c443147a106962cf5d3f14 [2/6] clk: renesas: rcar-gen3: 
Add Z2 clock divider support
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout fda8dbe29dd1f04b61c443147a106962cf5d3f14
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/clk/renesas/rcar-gen3-cpg.o: In function `cpg_z_clk_set_rate':
>> rcar-gen3-cpg.c:(.text+0x289): undefined reference to `__ffsdi2'

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/vsp1/tlb-optimise-v2-rebased1 6/8] drivers/media/platform/vsp1/vsp1_video.c:808:8: error: implicit declaration of function 'vsp1_dl_list_get_body'

2017-09-19 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/vsp1/tlb-optimise-v2-rebased1
head:   b027d5857edb7bc9fa19b8605fb6b98f6479a05e
commit: a7855204b1ca49db2543fb861fa852ce8d280fd0 [6/8] v4l: vsp1: Adapt 
entities to configure into a body
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout a7855204b1ca49db2543fb861fa852ce8d280fd0
# save the attached .config to linux build tree
make.cross ARCH=arm64 

Note: the renesas-drivers/topic/vsp1/tlb-optimise-v2-rebased1 HEAD 
b027d5857edb7bc9fa19b8605fb6b98f6479a05e builds fine.
  It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

   drivers/media/platform/vsp1/vsp1_video.c: In function 
'vsp1_video_setup_pipeline':
>> drivers/media/platform/vsp1/vsp1_video.c:808:8: error: implicit declaration 
>> of function 'vsp1_dl_list_get_body' [-Werror=implicit-function-declaration]
 dlb = vsp1_dl_list_get_body(pipe->dl);
   ^
>> drivers/media/platform/vsp1/vsp1_video.c:808:6: warning: assignment makes 
>> pointer from integer without a cast [-Wint-conversion]
 dlb = vsp1_dl_list_get_body(pipe->dl);
 ^
   cc1: some warnings being treated as errors

vim +/vsp1_dl_list_get_body +808 drivers/media/platform/vsp1/vsp1_video.c

   790  
   791  static int vsp1_video_setup_pipeline(struct vsp1_pipeline *pipe)
   792  {
   793  struct vsp1_entity *entity;
   794  struct vsp1_dl_body *dlb;
   795  int ret;
   796  
   797  /* Determine this pipelines sizes for image partitioning 
support. */
   798  ret = vsp1_video_pipeline_setup_partitions(pipe);
   799  if (ret < 0)
   800  return ret;
   801  
   802  /* Prepare the display list. */
   803  pipe->dl = vsp1_dl_list_get(pipe->output->dlm);
   804  if (!pipe->dl)
   805  return -ENOMEM;
   806  
   807  /* Retrieve the default DLB from the list */
 > 808  dlb = vsp1_dl_list_get_body(pipe->dl);
   809  
   810  if (pipe->uds) {
   811  struct vsp1_uds *uds = to_uds(>uds->subdev);
   812  
   813  /*
   814   * If a BRU or BRS is present in the pipeline before 
the UDS,
   815   * the alpha component doesn't need to be scaled as the 
BRU and
   816   * BRS output alpha value is fixed to 255. Otherwise we 
need to
   817   * scale the alpha component only when available at the 
input
   818   * RPF.
   819   */
   820  if (pipe->uds_input->type == VSP1_ENTITY_BRU ||
   821  pipe->uds_input->type == VSP1_ENTITY_BRS) {
   822  uds->scale_alpha = false;
   823  } else {
   824  struct vsp1_rwpf *rpf =
   825  to_rwpf(>uds_input->subdev);
   826  
   827  uds->scale_alpha = rpf->fmtinfo->alpha;
   828  }
   829  }
   830  
   831  list_for_each_entry(entity, >entities, list_pipe) {
   832  vsp1_entity_route_setup(entity, pipe, dlb);
   833  vsp1_entity_prepare(entity, pipe, dlb);
   834  }
   835  
   836  return 0;
   837  }
   838  

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


.config.gz
Description: application/gzip


[renesas:arm64-dt-for-v4.15 47/48] Error: arch/arm64/boot/dts/renesas/r8a77995.dtsi:153.27-28 syntax error

2017-09-15 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git 
arm64-dt-for-v4.15
head:   815e3b5923c6a8c6614d0d4d3bcba532402b1de4
commit: ddd7da4b39f805a8050ee662cc72a2c7f53160f5 [47/48] arm64: dts: renesas: 
r8a77995: add GPIO device nodes
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ddd7da4b39f805a8050ee662cc72a2c7f53160f5
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

>> Error: arch/arm64/boot/dts/renesas/r8a77995.dtsi:153.27-28 syntax error
   FATAL ERROR: Unable to parse input tree

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/r8a7794-smp-v2 2/3] arch/arm/mach-shmobile/headsmp-apmu.S:24: Error: selected processor does not support `isb' in ARM mode

2017-08-29 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/r8a7794-smp-v2
head:   28ff1a758639895fd5cea127ba16f92ff3f30628
commit: 0cc5e107f08f1835b8fcd6bddf91a7259a7298ae [2/3] ARM: shmobile: 
rcar-gen2: Make sure CNTVOFF is initialized on CA7/15
config: arm-allmodconfig (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 0cc5e107f08f1835b8fcd6bddf91a7259a7298ae
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   arch/arm/mach-shmobile/headsmp-apmu.S: Assembler messages:
>> arch/arm/mach-shmobile/headsmp-apmu.S:24: Error: selected processor does not 
>> support `isb' in ARM mode
   arch/arm/mach-shmobile/headsmp-apmu.S:27: Error: selected processor does not 
support `isb' in ARM mode
   arch/arm/mach-shmobile/headsmp-apmu.S:29: Error: selected processor does not 
support `isb' in ARM mode

vim +24 arch/arm/mach-shmobile/headsmp-apmu.S

13  
14  ENTRY(shmobile_init_cntvoff)
15  /*
16   * CNTVOFF has to be initialized either from non-secure 
Hypervisor
17   * mode or secure Monitor mode with SCR.NS==1. If TrustZone is 
enabled
18   * then it should be handled by the secure code
19   */
20  cps #MON_MODE
21  mrc p15, 0, r1, c1, c1, 0   /* Get Secure Config */
22  orr r0, r1, #1
23  mcr p15, 0, r0, c1, c1, 0   /* Set Non Secure bit */
  > 24  isb
25  mov r0, #0
26  mcrrp15, 4, r0, r0, c14 /* CNTVOFF = 0 */
27  isb
28  mcr p15, 0, r1, c1, c1, 0   /* Set Secure bit */
29  isb
30  cps #SVC_MODE
31  ret lr
32  ENDPROC(shmobile_init_cntvoff)
33  

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/rcar2-cpg-mssr-dt-v2 2/9] arch/arm/boot/dts/r8a7791.dtsi:13:48: fatal error: dt-bindings/clock/r8a7791-cpg-mssr.h: No such file or directory

2017-07-19 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/rcar2-cpg-mssr-dt-v2
head:   719d66878b5366748b076ab8b7e3a0ed6012033c
commit: 00dc7a102c7df46d30520d53002c77d9c75ce862 [2/9] ARM: dts: r8a7791: 
Convert to new CPG/MSSR bindings
config: arm-at91_dt_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 00dc7a102c7df46d30520d53002c77d9c75ce862
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   In file included from arch/arm/boot/dts/r8a7791-porter.dts:23:0:
>> arch/arm/boot/dts/r8a7791.dtsi:13:48: fatal error: 
>> dt-bindings/clock/r8a7791-cpg-mssr.h: No such file or directory
#include 
   ^
   compilation terminated.

vim +13 arch/arm/boot/dts/r8a7791.dtsi

  > 13  #include 
14  #include 
15  #include 
16  #include 
17  

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/rcar2-cpg-mssr-dt-v2 1/9] arch/arm/boot/dts/r8a7790.dtsi:13:48: fatal error: dt-bindings/clock/r8a7790-cpg-mssr.h: No such file or directory

2017-07-19 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/rcar2-cpg-mssr-dt-v2
head:   719d66878b5366748b076ab8b7e3a0ed6012033c
commit: 09edb9fc52b0323c57747413da258d35f6a80495 [1/9] ARM: dts: r8a7790: 
Convert to new CPG/MSSR bindings
config: arm-at91_dt_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 09edb9fc52b0323c57747413da258d35f6a80495
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   In file included from arch/arm/boot/dts/r8a7790-lager.dts:42:0:
>> arch/arm/boot/dts/r8a7790.dtsi:13:48: fatal error: 
>> dt-bindings/clock/r8a7790-cpg-mssr.h: No such file or directory
#include 
   ^
   compilation terminated.

vim +13 arch/arm/boot/dts/r8a7790.dtsi

  > 13  #include 
14  #include 
15  #include 
16  #include 
17  

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/renesas-overlays 1/86] drivers//of/configfs.c:48:2: error: implicit declaration of function 'of_fdt_unflatten_tree'

2017-07-17 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   8361d7e7432d1937f94e1863211fb3f852e37f36
commit: 1ba23467c1d052c0b5c35436c034f0fb7103eeaf [1/86] OF: DT-Overlay configfs 
interface (v7)
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-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 1ba23467c1d052c0b5c35436c034f0fb7103eeaf
# save the attached .config to linux build tree
make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   drivers//of/configfs.c: In function 'create_overlay':
>> drivers//of/configfs.c:48:2: error: implicit declaration of function 
>> 'of_fdt_unflatten_tree' [-Werror=implicit-function-declaration]
 of_fdt_unflatten_tree(blob, NULL, >overlay);
 ^
   cc1: some warnings being treated as errors

vim +/of_fdt_unflatten_tree +48 drivers//of/configfs.c

42  
43  static int create_overlay(struct cfs_overlay_item *overlay, void *blob)
44  {
45  int err;
46  
47  /* unflatten the tree */
  > 48  of_fdt_unflatten_tree(blob, NULL, >overlay);
49  if (overlay->overlay == NULL) {
50  pr_err("%s: failed to unflatten tree\n", __func__);
51  err = -EINVAL;
52  goto out_err;
53  }
54  pr_debug("%s: unflattened OK\n", __func__);
55  
56  /* mark it as detached */
57  of_node_set_flag(overlay->overlay, OF_DETACHED);
58  
59  /* perform resolution */
60  err = of_resolve_phandles(overlay->overlay);
61  if (err != 0) {
62  pr_err("%s: Failed to resolve tree\n", __func__);
63  goto out_err;
64  }
65  pr_debug("%s: resolved OK\n", __func__);
66  
67  err = of_overlay_create(overlay->overlay);
68  if (err < 0) {
69  pr_err("%s: Failed to create overlay (err=%d)\n",
70  __func__, err);
71  goto out_err;
72  }
73  overlay->ov_id = err;
74  
75  out_err:
76  return err;
77  }
78  

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/renesas-overlays 20/86] drivers//of/unittest.c:2586:3: error: implicit declaration of function '__of_attach_node_sysfs'

2017-07-17 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   21b4ee226c68bdaba9db7f6fc7cbdfab58db40b9
commit: 3b480353c59beefd9537feca3febda56339bbb21 [20/86] of: rename 
*_node_sysfs to _node_post
config: x86_64-randconfig-x013-201729 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 3b480353c59beefd9537feca3febda56339bbb21
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers//of/unittest.c: In function 'of_unittest_overlay_high_level':
>> drivers//of/unittest.c:2586:3: error: implicit declaration of function 
>> '__of_attach_node_sysfs' [-Werror=implicit-function-declaration]
  __of_attach_node_sysfs(np);
  ^~
   In file included from include/linux/err.h:4:0,
from include/linux/clk.h:15,
from drivers//of/unittest.c:7:
   drivers//of/unittest.c: At top level:
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'strcpy' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:390:2: note: in expansion of macro 'if'
 if (p_size == (size_t)-1 && q_size == (size_t)-1)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'kmemdup' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:380:2: note: in expansion of macro 'if'
 if (p_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'kmemdup' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:378:2: note: in expansion of macro 'if'
 if (__builtin_constant_p(size) && p_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'memchr_inv' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:369:2: note: in expansion of macro 'if'
 if (p_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'memchr_inv' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:367:2: note: in expansion of macro 'if'
 if (__builtin_constant_p(size) && p_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'memchr' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:358:2: note: in expansion of macro 'if'
 if (p_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'memchr' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:356:2: note: in expansion of macro 'if'
 if (__builtin_constant_p(size) && p_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'memcmp' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:348:2: note: in expansion of macro 'if'
 if (p_size < size || q_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'memcmp' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~

Re: [PATCH 3/3] ARM: dts: iwg20m: Add MMCIF0 support

2017-07-12 Thread kbuild test robot
Hi Chris,

[auto build test ERROR on renesas/next]
[also build test ERROR on next-20170712]
[cannot apply to v4.12]
[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/Chris-Paterson/Add-MMCIF0-support-for-r8a7743-iwg20m/20170713-042814
base:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git next
config: arm-at91_dt_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
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

>> Error: arch/arm/boot/dts/r8a7743-iwg20m.dtsi:40.1-5 Label or path pfc not 
>> found
   FATAL ERROR: Syntax error parsing input tree

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/sdhi-gen3-dma-2017-v2-rebased1 3/4] drivers/mmc//host/renesas_sdhi_internal_dmac.c:96:2: error: implicit declaration of function 'writeq'

2017-06-27 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/sdhi-gen3-dma-2017-v2-rebased1
head:   bcf4bf9f75e02e84971693bce04e5c3775b0f97e
commit: 6e76773921ebc2c58d7878a8cb3cb26e57f5ed06 [3/4] mmc: renesas-sdhi: add 
support for R-Car Gen3 SDHI DMAC
config: arm-allmodconfig (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 6e76773921ebc2c58d7878a8cb3cb26e57f5ed06
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/mmc//host/renesas_sdhi_internal_dmac.c: In function 
'renesas_sdhi_internal_dmac_dm_write':
>> drivers/mmc//host/renesas_sdhi_internal_dmac.c:96:2: error: implicit 
>> declaration of function 'writeq' [-Werror=implicit-function-declaration]
 writeq(val, host->ctl + addr);
 ^~
   cc1: some warnings being treated as errors

vim +/writeq +96 drivers/mmc//host/renesas_sdhi_internal_dmac.c

80  /* Gen3 SDHI DMAC can handle 0x blk count, but seg = 1 
*/
81  .max_blk_count  = 0x,
82  .max_segs   = 1,
83  };
84  
85  static const struct of_device_id renesas_sdhi_internal_dmac_of_match[] 
= {
86  { .compatible = "renesas,sdhi-r8a7795", .data = 
_rcar_gen3_compatible, },
87  { .compatible = "renesas,sdhi-r8a7796", .data = 
_rcar_gen3_compatible, },
88  {},
89  };
90  MODULE_DEVICE_TABLE(of, renesas_sdhi_internal_dmac_of_match);
91  
92  static void
93  renesas_sdhi_internal_dmac_dm_write(struct tmio_mmc_host *host,
94  int addr, u64 val)
95  {
  > 96  writeq(val, host->ctl + addr);
97  }
98  
99  static void
   100  renesas_sdhi_internal_dmac_enable_dma(struct tmio_mmc_host *host, bool 
enable)
   101  {
   102  if (!host->chan_tx || !host->chan_rx)
   103  return;
   104  

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


.config.gz
Description: application/gzip


[renesas:drivers-for-v4.13 3/3] drivers/soc/renesas/rcar-sysc.c:209:19: error: 'GENPD_FLAG_ALWAYS_ON' undeclared

2017-06-14 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git 
drivers-for-v4.13
head:   895c7e91d84c0f0e207ad909482ed70b5f3c806f
commit: 895c7e91d84c0f0e207ad909482ed70b5f3c806f [3/3] soc: renesas: rcar-sysc: 
Use GENPD_FLAG_ALWAYS_ON
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 895c7e91d84c0f0e207ad909482ed70b5f3c806f
# save the attached .config to linux build tree
make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   drivers/soc/renesas/rcar-sysc.c: In function 'rcar_sysc_pd_setup':
>> drivers/soc/renesas/rcar-sysc.c:209:19: error: 'GENPD_FLAG_ALWAYS_ON' 
>> undeclared (first use in this function)
  genpd->flags |= GENPD_FLAG_ALWAYS_ON;
  ^~~~
   drivers/soc/renesas/rcar-sysc.c:209:19: note: each undeclared identifier is 
reported only once for each function it appears in

vim +/GENPD_FLAG_ALWAYS_ON +209 drivers/soc/renesas/rcar-sysc.c

   203  if (pd->flags & PD_CPU) {
   204  /*
   205   * This domain contains a CPU core and therefore it 
should
   206   * only be turned off if the CPU is not in use.
   207   */
   208  pr_debug("PM domain %s contains %s\n", name, "CPU");
 > 209  genpd->flags |= GENPD_FLAG_ALWAYS_ON;
   210  } else if (pd->flags & PD_SCU) {
   211  /*
   212   * This domain contains an SCU and cache-controller, and

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


.config.gz
Description: application/gzip


Re: [PATCH v2] net: phy: Make phy_ethtool_ksettings_get return void

2017-06-12 Thread kbuild test robot
Hi Yuval,

[auto build test ERROR on net-next/master]
[also build test ERROR on next-20170609]
[cannot apply to v4.12-rc5]
[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/Yuval-Shaia/net-phy-Make-phy_ethtool_ksettings_get-return-void/20170613-005407
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c: In function 
'xgene_get_link_ksettings':
>> drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c:134:10: error: void 
>> value not ignored as it ought to be
  return phy_ethtool_ksettings_get(phydev, cmd);
 ^~
   drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c:140:11: error: void 
value not ignored as it ought to be
   return phy_ethtool_ksettings_get(phydev, cmd);
  ^~
--
   drivers/net/ethernet/apm/xgene-v2/ethtool.c: In function 
'xge_get_link_ksettings':
>> drivers/net/ethernet/apm/xgene-v2/ethtool.c:160:9: error: void value not 
>> ignored as it ought to be
 return phy_ethtool_ksettings_get(phydev, cmd);
^~
   drivers/net/ethernet/apm/xgene-v2/ethtool.c:161:1: warning: control reaches 
end of non-void function [-Wreturn-type]
}
^

vim +134 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c

e6ad7673 Iyappan Subramanian 2014-08-07  118strcpy(info->version, 
XGENE_DRV_VERSION);
e6ad7673 Iyappan Subramanian 2014-08-07  119snprintf(info->fw_version, 
ETHTOOL_FWVERS_LEN, "N/A");
e6ad7673 Iyappan Subramanian 2014-08-07  120sprintf(info->bus_info, "%s", 
pdev->name);
e6ad7673 Iyappan Subramanian 2014-08-07  121  }
e6ad7673 Iyappan Subramanian 2014-08-07  122  
36a19b29 Philippe Reynes 2016-09-11  123  static int 
xgene_get_link_ksettings(struct net_device *ndev,
36a19b29 Philippe Reynes 2016-09-11  124
struct ethtool_link_ksettings *cmd)
e6ad7673 Iyappan Subramanian 2014-08-07  125  {
e6ad7673 Iyappan Subramanian 2014-08-07  126struct xgene_enet_pdata *pdata 
= netdev_priv(ndev);
971d3a44 Philippe Reynes 2016-09-11  127struct phy_device *phydev = 
ndev->phydev;
36a19b29 Philippe Reynes 2016-09-11  128u32 supported;
e6ad7673 Iyappan Subramanian 2014-08-07  129  
326dde3e Iyappan Subramanian 2017-05-18  130if 
(phy_interface_mode_is_rgmii(pdata->phy_mode)) {
e6ad7673 Iyappan Subramanian 2014-08-07  131if (phydev == NULL)
e6ad7673 Iyappan Subramanian 2014-08-07  132return -ENODEV;
e6ad7673 Iyappan Subramanian 2014-08-07  133  
36a19b29 Philippe Reynes 2016-09-11 @134return 
phy_ethtool_ksettings_get(phydev, cmd);
5e6a024b Iyappan Subramanian 2014-10-13  135} else if (pdata->phy_mode == 
PHY_INTERFACE_MODE_SGMII) {
52d1fd99 Iyappan Subramanian 2016-07-25  136if (pdata->mdio_driver) 
{
52d1fd99 Iyappan Subramanian 2016-07-25  137if (!phydev)
52d1fd99 Iyappan Subramanian 2016-07-25  138return 
-ENODEV;
52d1fd99 Iyappan Subramanian 2016-07-25  139  
36a19b29 Philippe Reynes 2016-09-11  140return 
phy_ethtool_ksettings_get(phydev, cmd);
52d1fd99 Iyappan Subramanian 2016-07-25  141}
52d1fd99 Iyappan Subramanian 2016-07-25  142  

:: The code at line 134 was first introduced by commit
:: 36a19b299536746f5c01d7716dac962f831e4d38 net: ethernet: apm: xgene: use 
new api ethtool_{get|set}_link_ksettings

:: TO: Philippe Reynes 
:: CC: David S. Miller 

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


.config.gz
Description: application/gzip


Re: [PATCH v6 7/7] media: platform: rcar_drif: Add DRIF support

2017-05-31 Thread kbuild test robot
Hi Ramesh,

[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on v4.12-rc3 next-20170531]
[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/Ramesh-Shanmugasundaram/Add-V4L2-SDR-DRIF-MAX2175-driver/20170531-231937
base:   git://linuxtv.org/media_tree.git master
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-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
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   drivers/media//platform/rcar_drif.c: In function 'rcar_drif_notify_bound':
>> drivers/media//platform/rcar_drif.c:1110:23: error: 'union ' has 
>> no member named 'fwnode'
 if (sdr->ep.asd.match.fwnode.fwnode !=
  ^
   drivers/media//platform/rcar_drif.c: In function 'rcar_drif_parse_subdevs':
   drivers/media//platform/rcar_drif.c:1232:19: error: 'union ' has 
no member named 'fwnode'
 sdr->ep.asd.match.fwnode.fwnode = fwnode;
  ^
>> drivers/media//platform/rcar_drif.c:1233:27: error: 
>> 'V4L2_ASYNC_MATCH_FWNODE' undeclared (first use in this function)
 sdr->ep.asd.match_type = V4L2_ASYNC_MATCH_FWNODE;
  ^~~
   drivers/media//platform/rcar_drif.c:1233:27: note: each undeclared 
identifier is reported only once for each function it appears in

vim +/V4L2_ASYNC_MATCH_FWNODE +1233 drivers/media//platform/rcar_drif.c

  1104 struct v4l2_subdev *subdev,
  1105 struct v4l2_async_subdev *asd)
  1106  {
  1107  struct rcar_drif_sdr *sdr =
  1108  container_of(notifier, struct rcar_drif_sdr, notifier);
  1109  
> 1110  if (sdr->ep.asd.match.fwnode.fwnode !=
    of_fwnode_handle(subdev->dev->of_node)) {
  1112  rdrif_err(sdr, "subdev %s cannot bind\n", subdev->name);
  1113  return -EINVAL;
  1114  }
  1115  
  1116  v4l2_set_subdev_hostdata(subdev, sdr);
  1117  sdr->ep.subdev = subdev;
  1118  rdrif_dbg(sdr, "bound asd %s\n", subdev->name);
  1119  
  1120  return 0;
  1121  }
  1122  
  1123  /* Sub-device unbind callback */
  1124  static void rcar_drif_notify_unbind(struct v4l2_async_notifier 
*notifier,
  1125 struct v4l2_subdev *subdev,
  1126 struct v4l2_async_subdev *asd)
  1127  {
  1128  struct rcar_drif_sdr *sdr =
  1129  container_of(notifier, struct rcar_drif_sdr, notifier);
  1130  
  1131  if (sdr->ep.subdev != subdev) {
  1132  rdrif_err(sdr, "subdev %s is not bound\n", 
subdev->name);
  1133  return;
  1134  }
  1135  
  1136  /* Free ctrl handler if initialized */
  1137  v4l2_ctrl_handler_free(>ctrl_hdl);
  1138  sdr->v4l2_dev.ctrl_handler = NULL;
  1139  sdr->ep.subdev = NULL;
  1140  
  1141  rcar_drif_sdr_unregister(sdr);
  1142  rdrif_dbg(sdr, "unbind asd %s\n", subdev->name);
  1143  }
  1144  
  1145  /* Sub-device registered notification callback */
  1146  static int rcar_drif_notify_complete(struct v4l2_async_notifier 
*notifier)
  1147  {
  1148  struct rcar_drif_sdr *sdr =
  1149  container_of(notifier, struct rcar_drif_sdr, notifier);
  1150  int ret;
  1151  
  1152  /*
  1153   * The subdev tested at this point uses 4 controls. Using 10 as 
a worst
  1154   * case scenario hint. When less controls are needed there will 
be some
  1155   * unused memory and when more controls are needed the 
framework uses
  1156   * hash to manage controls within this number.
  1157   */
  1158  ret = v4l2_ctrl_handler_init(>ctrl_hdl, 10);
  1159  if (ret)
  1160  return -ENOMEM;
  1161  
  1162  sdr->v4l2_dev.ctrl_handler = >ctrl_hdl;
  1163  ret = v4l2_device_register_subdev_nodes(>v4l2_dev);
  1164  if (ret) {
  1165  rdrif_err(sdr, "failed: register subdev nodes ret 
%d\n", ret);
  1166  goto error;
  1167  }
  1168  
  1169  ret = v4l2_ctrl_add_handler(>ctrl_hdl,
  1170  sdr->ep.subdev->ctrl_handler, NULL);
  1171  if (ret) {
  1172  rdrif_err(sdr, "failed: ctrl add hdlr ret %d\n", ret);
  1173  goto error;
  1174  }
  1175  
  1176  ret = rcar_drif_sdr_register(sdr);
  1177  if (ret)
  1178  goto error;
  1179  
  1180  return ret;
  1181  
  

[renesas-drivers:test/rcar2-cpg-mssr-v2 22/51] (.text+0x1916e): multiple definition of `clk_get'

2017-05-18 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
test/rcar2-cpg-mssr-v2
head:   e073b349f98d3db06a54d26904561ab78c02767b
commit: 8cc60e1ad7c6850d1a0be02a3d1606cecb298602 [22/51] [TEST] m68k: Enable 
COMMON_CLK
config: m68k-m5475evb_defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 8cc60e1ad7c6850d1a0be02a3d1606cecb298602
# save the attached .config to linux build tree
make.cross ARCH=m68k 

All errors (new ones prefixed by >>):

   drivers/built-in.o: In function `clk_get':
>> (.text+0x1916e): multiple definition of `clk_get'
   arch/m68k/coldfire/built-in.o:(.text+0x7e): first defined here
   drivers/built-in.o: In function `clk_get_rate':
>> (.text+0x1ab4e): multiple definition of `clk_get_rate'
   arch/m68k/coldfire/built-in.o:(.text+0x74): first defined here
   drivers/built-in.o: In function `clk_put':
>> (.text+0x191b0): multiple definition of `clk_put'
   arch/m68k/coldfire/built-in.o:(.text+0xf4): first defined here
   drivers/built-in.o: In function `clk_disable':
>> (.text+0x19d10): multiple definition of `clk_disable'
   arch/m68k/coldfire/built-in.o:(.text+0x3a): first defined here
   drivers/built-in.o: In function `clk_enable':
>> (.text+0x19de0): multiple definition of `clk_enable'
   arch/m68k/coldfire/built-in.o:(.text+0x0): first defined here

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


.config.gz
Description: application/gzip


[renesas:topic/sdhi-refactor-v2+sdhi-cmd23 6/7] ERROR: "renesas_sdhi_remove" [drivers/mmc/host/renesas_sdhi_sys_dmac.ko] undefined!

2017-05-16 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git 
topic/sdhi-refactor-v2+sdhi-cmd23
head:   799c8fd6d9386e2ea6880a89c9de3fbb7a7994f7
commit: 2156a07053f52c85fba8b715116b0241d5fca25b [6/7] mmc: renesas-sdhi: make 
renesas_sdhi_sys_dmac main module file
config: arm-allmodconfig (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 2156a07053f52c85fba8b715116b0241d5fca25b
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

>> ERROR: "renesas_sdhi_remove" [drivers/mmc/host/renesas_sdhi_sys_dmac.ko] 
>> undefined!
>> ERROR: "renesas_sdhi_probe" [drivers/mmc/host/renesas_sdhi_sys_dmac.ko] 
>> undefined!

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


.config.gz
Description: application/gzip


[renesas-drivers:master 101/531] drivers/media//platform/vsp1/vsp1_video.c:951:30: warning: missing braces around initializer

2017-05-16 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git master
head:   1e9588d83e43b54a15094cd0fa125f8a5645d6ea
commit: 5debeb08338b520f52577ca6cf9be815a54c07ea [101/531] v4l: vsp1: Provide a 
writeback video device
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5debeb08338b520f52577ca6cf9be815a54c07ea
# save the attached .config to linux build tree
make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   drivers/media//platform/vsp1/vsp1_video.c: In function 
'vsp1_video_wb_process_buffer':
>> drivers/media//platform/vsp1/vsp1_video.c:951:30: warning: missing braces 
>> around initializer [-Wmissing-braces]
  video->rwpf->mem = (struct vsp1_rwpf_memory) { 0 };
 ^
   drivers/media//platform/vsp1/vsp1_video.c:951:30: warning: (near 
initialization for '(anonymous).addr') [-Wmissing-braces]
   drivers/media//platform/vsp1/vsp1_video.c: In function 
'vsp1_video_wb_stop_streaming':
   drivers/media//platform/vsp1/vsp1_video.c:1013:22: warning: missing braces 
around initializer [-Wmissing-braces]
 rwpf->mem = (struct vsp1_rwpf_memory) { 0 };
 ^
   drivers/media//platform/vsp1/vsp1_video.c:1013:22: warning: (near 
initialization for '(anonymous).addr') [-Wmissing-braces]

vim +951 drivers/media//platform/vsp1/vsp1_video.c

   935  }
   936  
   937  buf = list_first_entry_or_null(>wbqueue, struct 
vsp1_vb2_buffer,
   938  queue);
   939  
   940  if (buf) {
   941  video->rwpf->mem = buf->mem;
   942  
   943  /*
   944   * Store this buffer as pending. It will commence at 
the next
   945   * frame start interrupt
   946   */
   947  video->pending = buf;
   948  list_del(>queue);
   949  } else {
   950  /* Disable writeback with no buffer */
 > 951  video->rwpf->mem = (struct vsp1_rwpf_memory) { 0 };
   952  }
   953  
   954  spin_unlock_irqrestore(>irqlock, flags);
   955  }
   956  
   957  static void vsp1_video_wb_frame_end(struct vsp1_pipeline *pipe)
   958  {
   959  struct vsp1_video *video = pipe->output->video;

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


.config.gz
Description: application/gzip


[renesas-drivers:master 20/49] drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:552:6: error: passing argument 2 of 'cfg80211_roamed' from incompatible pointer type

2017-05-13 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git master
head:   f450c3063cab84ac09ee89bca35eaf1356257864
commit: 3b5d5fb32a22ad019ba0e9012bd7e70020f639b6 [20/49] Merge remote-tracking 
branch 'staging/staging-next' into renesas-drivers
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 3b5d5fb32a22ad019ba0e9012bd7e70020f639b6
# save the attached .config to linux build tree
make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c: In function 
'rtw_cfg80211_indicate_connect':
>> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:552:6: error: passing 
>> argument 2 of 'cfg80211_roamed' from incompatible pointer type 
>> [-Werror=incompatible-pointer-types]
   , notify_channel
 ^~
   In file included from 
drivers/staging/rtl8723bs/include/osdep_service_linux.h:50:0,
from drivers/staging/rtl8723bs/include/osdep_service.h:23,
from drivers/staging/rtl8723bs/include/drv_types.h:29,
from drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:17:
   include/net/cfg80211.h:5435:6: note: expected 'struct cfg80211_roam_info *' 
but argument is of type 'struct ieee80211_channel *'
void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info 
*info,
 ^~~
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:553:6: warning: passing 
argument 3 of 'cfg80211_roamed' makes integer from pointer without a cast 
[-Wint-conversion]
   , cur_network->network.MacAddress
 ^~~
   In file included from 
drivers/staging/rtl8723bs/include/osdep_service_linux.h:50:0,
from drivers/staging/rtl8723bs/include/osdep_service.h:23,
from drivers/staging/rtl8723bs/include/drv_types.h:29,
from drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:17:
   include/net/cfg80211.h:5435:6: note: expected 'gfp_t {aka unsigned int}' but 
argument is of type 'unsigned char *'
void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info 
*info,
 ^~~
>> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:551:3: error: too many 
>> arguments to function 'cfg80211_roamed'
  cfg80211_roamed(padapter->pnetdev
  ^~~
   In file included from 
drivers/staging/rtl8723bs/include/osdep_service_linux.h:50:0,
from drivers/staging/rtl8723bs/include/osdep_service.h:23,
from drivers/staging/rtl8723bs/include/drv_types.h:29,
from drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:17:
   include/net/cfg80211.h:5435:6: note: declared here
void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info 
*info,
 ^~~
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c: In function 
'rtw_cfg80211_preinit_wiphy':
>> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3409:18: error: 
>> 'WIPHY_FLAG_SUPPORTS_SCHED_SCAN' undeclared (first use in this function)
 wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN;
 ^~
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3409:18: note: each 
undeclared identifier is reported only once for each function it appears in
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c: At top level:
>> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3426:25: error: 
>> initialization from incompatible pointer type 
>> [-Werror=incompatible-pointer-types]
 .change_virtual_intf = cfg80211_rtw_change_iface,
^
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3426:25: note: (near 
initialization for 'rtw_cfg80211_ops.change_virtual_intf')
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3445:22: error: 
initialization from incompatible pointer type 
[-Werror=incompatible-pointer-types]
 .add_virtual_intf = cfg80211_rtw_add_virtual_intf,
 ^
   drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3445:22: note: (near 
initialization for 'rtw_cfg80211_ops.add_virtual_intf')
   cc1: some warnings being treated as errors

vim +/cfg80211_roamed +552 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c

554c0a3a Hans de Goede 2017-03-29  545  
554c0a3a Hans de Goede 2017-03-29  546  freq = 
rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ);
554c0a3a Hans de Goede 2017-03-29  547  
554c0a3a Hans de Goede 2017-03-29  548  notify_channel = 
ieee80211_get_channel(wiphy, freq);
554c0a3a Hans de Goede 2017-03-29  549  
554c0a3a Hans de Goede 2017-03-29  550  DBG_871X(FUNC_ADPT_FMT" 
call cfg80211_roamed\n", 

[renesas:topic/sdhi-refactor-v2+sdhi-cmd23 5/7] ERROR: "renesas_sdhi_get_dma_ops" [drivers/mmc/host/renesas_sdhi_core.ko] undefined!

2017-05-11 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git 
topic/sdhi-refactor-v2+sdhi-cmd23
head:   799c8fd6d9386e2ea6880a89c9de3fbb7a7994f7
commit: d683af706a3513d05245107b6b42d8b4da1f59c2 [5/7] mmc: renesas-sdhi: 
rename sh_mobile_sdhi.c => renesas_sdhi_core.c
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-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 d683af706a3513d05245107b6b42d8b4da1f59c2
# save the attached .config to linux build tree
make.cross ARCH=arm64 

Note: the renesas/topic/sdhi-refactor-v2+sdhi-cmd23 HEAD 
799c8fd6d9386e2ea6880a89c9de3fbb7a7994f7 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

>> ERROR: "renesas_sdhi_get_dma_ops" [drivers/mmc/host/renesas_sdhi_core.ko] 
>> undefined!

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/renesas-overlays 1/89] drivers/of/configfs.c:48:2: error: implicit declaration of function 'of_fdt_unflatten_tree'

2017-05-04 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   85464a2def291406ca925e116563279dcfbc39ad
commit: 80ff838084a7bff831cf17bd939dc736b48d6a12 [1/89] OF: DT-Overlay configfs 
interface (v7)
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-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 80ff838084a7bff831cf17bd939dc736b48d6a12
# save the attached .config to linux build tree
make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   drivers/of/configfs.c: In function 'create_overlay':
>> drivers/of/configfs.c:48:2: error: implicit declaration of function 
>> 'of_fdt_unflatten_tree' [-Werror=implicit-function-declaration]
 of_fdt_unflatten_tree(blob, NULL, >overlay);
 ^
   In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/kobject.h:20,
from include/linux/device.h:17,
from include/linux/node.h:17,
from include/linux/cpu.h:16,
from drivers/of/configfs.c:12:
   drivers/of/configfs.c: In function 'cfs_overlay_item_dtbo_read':
   drivers/of/configfs.c:153:11: warning: format '%u' expects argument of type 
'unsigned int', but argument 5 has type 'size_t {aka long unsigned int}' 
[-Wformat=]
 pr_debug("%s: buf=%p max_count=%u\n", __func__,
  ^
   include/linux/printk.h:285:21: note: in definition of macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
   include/linux/printk.h:333:2: note: in expansion of macro 'dynamic_pr_debug'
 dynamic_pr_debug(fmt, ##__VA_ARGS__)
 ^~~~
   drivers/of/configfs.c:153:2: note: in expansion of macro 'pr_debug'
 pr_debug("%s: buf=%p max_count=%u\n", __func__,
 ^~~~
   cc1: some warnings being treated as errors

vim +/of_fdt_unflatten_tree +48 drivers/of/configfs.c

42  
43  static int create_overlay(struct cfs_overlay_item *overlay, void *blob)
44  {
45  int err;
46  
47  /* unflatten the tree */
  > 48  of_fdt_unflatten_tree(blob, NULL, >overlay);
49  if (overlay->overlay == NULL) {
50  pr_err("%s: failed to unflatten tree\n", __func__);
51  err = -EINVAL;

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/rcar2-cpg-mssr 5/32] arch/mips//lantiq/clk.c:163:13: error: redefinition of 'of_clk_get_from_provider'

2017-04-26 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/rcar2-cpg-mssr
head:   bd948f4b8c455dfdbc8175b5c2bc29c91b048971
commit: 647a9d3c4f83250fd1f4e6519cf785319c9afe4c [5/32] clk: Provide dummy 
of_clk_get_from_provider() for compile-testing
config: mips-xway_defconfig (attached as .config)
compiler: mips-linux-gnu-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 647a9d3c4f83250fd1f4e6519cf785319c9afe4c
# save the attached .config to linux build tree
make.cross ARCH=mips 

All errors (new ones prefixed by >>):

>> arch/mips//lantiq/clk.c:163:13: error: redefinition of 
>> 'of_clk_get_from_provider'
struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec)
^~~~
   In file included from arch/mips//lantiq/clk.c:14:0:
   include/linux/clk.h:542:27: note: previous definition of 
'of_clk_get_from_provider' was here
static inline struct clk *of_clk_get_from_provider(struct of_phandle_args 
*clkspec)
  ^~~~

vim +/of_clk_get_from_provider +163 arch/mips//lantiq/clk.c

287e3f3f John Crispin 2012-04-17  157  
287e3f3f John Crispin 2012-04-17  158   if (clk->deactivate)
287e3f3f John Crispin 2012-04-17  159   clk->deactivate(clk);
287e3f3f John Crispin 2012-04-17  160  }
287e3f3f John Crispin 2012-04-17  161  EXPORT_SYMBOL(clk_deactivate);
287e3f3f John Crispin 2012-04-17  162  
b902d9a9 John Crispin 2012-07-22 @163  struct clk 
*of_clk_get_from_provider(struct of_phandle_args *clkspec)
b902d9a9 John Crispin 2012-07-22  164  {
b902d9a9 John Crispin 2012-07-22  165   return NULL;
b902d9a9 John Crispin 2012-07-22  166  }

:: The code at line 163 was first introduced by commit
:: b902d9a98e2bd0d3a2b7ddf7bca850b7f853569a MIPS: Lantiq: Platform specific 
CLK fixup

:: TO: John Crispin 
:: CC: Ralf Baechle 

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/rcar2-cpg-mssr 11/32] drivers/soc/renesas/rcar-sysc.c:141:11: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int'

2017-04-25 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/rcar2-cpg-mssr
head:   bd948f4b8c455dfdbc8175b5c2bc29c91b048971
commit: 2cf8d523ad52acbc77845a2634c229a55e849762 [11/32] [RFC] soc: renesas: 
Rework Kconfig and Makefile logic
config: m32r-allyesconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 6.2.0
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 2cf8d523ad52acbc77845a2634c229a55e849762
# save the attached .config to linux build tree
make.cross ARCH=m32r 

All warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:13:0,
from include/linux/delay.h:21,
from drivers/soc/renesas/rcar-sysc.c:13:
   drivers/soc/renesas/rcar-sysc.c: In function 'rcar_sysc_power':
>> drivers/soc/renesas/rcar-sysc.c:141:11: warning: format '%x' expects 
>> argument of type 'unsigned int', but argument 5 has type 'long unsigned int' 
>> [-Wformat=]
 pr_debug("sysc power %s domain %d: %08x -> %d\n", on ? "on" : "off",
  ^
   include/linux/printk.h:285:21: note: in definition of macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
   include/linux/printk.h:333:2: note: in expansion of macro 'dynamic_pr_debug'
 dynamic_pr_debug(fmt, ##__VA_ARGS__)
 ^~~~
>> drivers/soc/renesas/rcar-sysc.c:141:2: note: in expansion of macro 'pr_debug'
 pr_debug("sysc power %s domain %d: %08x -> %d\n", on ? "on" : "off",
 ^~~~

vim +141 drivers/soc/renesas/rcar-sysc.c

a6557eb7 arch/arm/mach-shmobile/pm-rcar.c Magnus Damm2014-01-157   
* This file is subject to the terms and conditions of the GNU General Public
a6557eb7 arch/arm/mach-shmobile/pm-rcar.c Magnus Damm2014-01-158   
* License.  See the file "COPYING" in the main directory of this archive
a6557eb7 arch/arm/mach-shmobile/pm-rcar.c Magnus Damm2014-01-159   
* for more details.
a6557eb7 arch/arm/mach-shmobile/pm-rcar.c Magnus Damm2014-01-15   10   
*/
a6557eb7 arch/arm/mach-shmobile/pm-rcar.c Magnus Damm2014-01-15   11  
1c8c77f5 drivers/soc/renesas/rcar-sysc.c  Geert Uytterhoeven 2016-04-20   12  
#include 
a6557eb7 arch/arm/mach-shmobile/pm-rcar.c Magnus Damm2014-01-15  @13  
#include 
a6557eb7 arch/arm/mach-shmobile/pm-rcar.c Magnus Damm2014-01-15   14  
#include 
a6557eb7 arch/arm/mach-shmobile/pm-rcar.c Magnus Damm2014-01-15   15  
#include 
dcc09fd1 drivers/soc/renesas/rcar-sysc.c  Geert Uytterhoeven 2016-04-20   16  
#include 
dcc09fd1 drivers/soc/renesas/rcar-sysc.c  Geert Uytterhoeven 2016-04-20   17  
#include 
dcc09fd1 drivers/soc/renesas/rcar-sysc.c  Geert Uytterhoeven 2016-04-20   18  
#include 
a6557eb7 arch/arm/mach-shmobile/pm-rcar.c Magnus Damm2014-01-15   19  
#include 
2584cf83 arch/arm/mach-shmobile/pm-rcar.c Dan Williams   2015-08-10   20  
#include 
be32bcbb drivers/soc/renesas/rcar-sysc.c  Geert Uytterhoeven 2016-04-20   21  
#include 
a6557eb7 arch/arm/mach-shmobile/pm-rcar.c Magnus Damm2014-01-15   22  
dcc09fd1 drivers/soc/renesas/rcar-sysc.c  Geert Uytterhoeven 2016-04-20   23  
#include "rcar-sysc.h"
dcc09fd1 drivers/soc/renesas/rcar-sysc.c  Geert Uytterhoeven 2016-04-20   24  
577d104d arch/arm/mach-shmobile/pm-rcar.c Geert Uytterhoeven 2015-06-04   25  
/* SYSC Common */
577d104d arch/arm/mach-shmobile/pm-rcar.c Geert Uytterhoeven 2015-06-04   26  
#define SYSCSR0x00/* SYSC Status Register */
577d104d arch/arm/mach-shmobile/pm-rcar.c Geert Uytterhoeven 2015-06-04   27  
#define SYSCISR   0x04/* Interrupt Status Register */
577d104d arch/arm/mach-shmobile/pm-rcar.c Geert Uytterhoeven 2015-06-04   28  
#define SYSCISCR  0x08/* Interrupt Status Clear Register */
577d104d arch/arm/mach-shmobile/pm-rcar.c Geert Uytterhoeven 2015-06-04   29  
#define SYSCIER   0x0c/* Interrupt Enable Register */
577d104d arch/arm/mach-shmobile/pm-rcar.c Geert Uytterhoeven 2015-06-04   30  
#define SYSCIMR   0x10/* Interrupt Mask Register */
577d104d arch/arm/mach-shmobile/pm-rcar.c Geert Uytterhoeven 2015-06-04   31  
577d104d arch/arm/mach-shmobile/pm-rcar.c Geert Uytterhoeven 2015-06-04   32  
/* SYSC Status Register */
577d104d arch/arm/mach-shmobile/pm-rcar.c Geert Uytterhoeven 2015-06-04   33  
#define SYSCSR_PONENB 1   /* Ready for power resume requests */
577d104d arch/arm/mach-shmobile/pm-rcar.c Geert Uytterhoeven 2015-06-04   34  
#define SYSCSR_POFFENB0   /* Ready for power shutoff requests */
577d104d arch/arm/mach-shmobile/pm-rcar.c Geert Uytterhoeven 2015-06-04   35  
577d104d arch/arm/mach-shmobile/pm-rcar.c Geert Uytterhoeven 2015-06-04   36  /*
577d104d arch/arm/mach-shmobile/pm-rcar.c Geert Uytterhoeven 2015-06-04   37   
* Power 

[renesas-drivers:topic/rcar2-cpg-mssr 10/32] drivers/clk/renesas/renesas-cpg-mssr.c:323:14-21: ERROR: PTR_ERR applied after initialization to constant on line 260

2017-04-25 Thread kbuild test robot
Hi Geert,

First bad commit (maybe != root cause):

tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/rcar2-cpg-mssr
head:   bd948f4b8c455dfdbc8175b5c2bc29c91b048971
commit: bb107dc7b20e9c63fb44a9fa132d6581a6b69944 [10/32] [RFC] clk: renesas: 
Rework Kconfig and Makefile logic
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout bb107dc7b20e9c63fb44a9fa132d6581a6b69944
# save the attached .config to linux build tree
make ARCH=i386 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   drivers/clk/renesas/clk-sh73a0.c: In function 'sh73a0_cpg_clocks_init':
>> drivers/clk/renesas/clk-sh73a0.c:155:10: warning: 'parent_name' may be used 
>> uninitialized in this function [-Wmaybe-uninitialized]
  return clk_register_fixed_factor(NULL, name, parent_name, 0,
 ^
   mult, div);
   ~~
   drivers/clk/renesas/clk-sh73a0.c:82:14: note: 'parent_name' was declared here
 const char *parent_name;
 ^~~

coccinelle warnings: (new ones prefixed by >>)

>> drivers/clk/renesas/renesas-cpg-mssr.c:323:14-21: ERROR: PTR_ERR applied 
>> after initialization to constant on line 260

vim +323 drivers/clk/renesas/renesas-cpg-mssr.c

f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
254  }
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
255  
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
256  static void __init cpg_mssr_register_core_clk(const struct cpg_core_clk 
*core,
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
257   const struct cpg_mssr_info *info,
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
258   struct cpg_mssr_priv *priv)
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
259  {
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16 
@260 struct clk *clk = NULL, *parent;
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
261 struct device *dev = priv->dev;
5d3927f6 drivers/clk/renesas/renesas-cpg-mssr.c  Wolfram Sang   2016-03-30  
262 unsigned int id = core->id, div = core->div;
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
263 const char *parent_name;
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
264  
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
265 WARN_DEBUG(id >= priv->num_core_clks);
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
266 WARN_DEBUG(PTR_ERR(priv->clks[id]) != -ENOENT);
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
267  
48d0341e drivers/clk/renesas/renesas-cpg-mssr.c  Geert Uytterhoeven 2016-09-29  
268 if (!core->name) {
48d0341e drivers/clk/renesas/renesas-cpg-mssr.c  Geert Uytterhoeven 2016-09-29  
269 /* Skip NULLified clock */
48d0341e drivers/clk/renesas/renesas-cpg-mssr.c  Geert Uytterhoeven 2016-09-29  
270 return;
48d0341e drivers/clk/renesas/renesas-cpg-mssr.c  Geert Uytterhoeven 2016-09-29  
271 }
48d0341e drivers/clk/renesas/renesas-cpg-mssr.c  Geert Uytterhoeven 2016-09-29  
272  
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
273 switch (core->type) {
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
274 case CLK_TYPE_IN:
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
275 clk = of_clk_get_by_name(priv->dev->of_node, core->name);
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
276 break;
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
277  
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
278 case CLK_TYPE_FF:
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
279 case CLK_TYPE_DIV6P1:
5d3927f6 drivers/clk/renesas/renesas-cpg-mssr.c  Wolfram Sang   2016-03-30  
280 case CLK_TYPE_DIV6_RO:
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
281 WARN_DEBUG(core->parent >= priv->num_core_clks);
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
282 parent = priv->clks[core->parent];
f793d1e5 drivers/clk/shmobile/renesas-cpg-mssr.c Geert Uytterhoeven 2015-10-16  
283 if (IS_ERR(parent)) {
f793d1e5 

[renesas-drivers:topic/renesas-overlays 17/88] (.text+0x21): multiple definition of `of_changeset_add_property_copy'

2017-03-07 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   b4a161ee9ee38a2396d64d3ed345341410b71ac1
commit: 5ec47e147859cf571034795c7ff5b01013a40a89 [17/88] of: changesets: 
Introduce changeset helper methods
config: i386-tinyconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 5ec47e147859cf571034795c7ff5b01013a40a89
# save the attached .config to linux build tree
make ARCH=i386 

Note: the renesas-drivers/topic/renesas-overlays HEAD 
b4a161ee9ee38a2396d64d3ed345341410b71ac1 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   init/mounts.o: In function `of_changeset_add_property_copy':
>> (.text+0x21): multiple definition of `of_changeset_add_property_copy'
   init/main.o:main.c:(.text+0x19): first defined here
   init/mounts.o: In function `of_changeset_add_property_string':
>> (.text+0x27): multiple definition of `of_changeset_add_property_string'
   init/main.o:main.c:(.text+0x1f): first defined here

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/drm-du-hdmi-2017-01-10-rebased2 9/61] drivers/tty/serial/st-asc.c:578:12: error: implicit declaration of function 'devm_get_gpiod_from_child'

2017-02-26 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/drm-du-hdmi-2017-01-10-rebased2
head:   b0fbd5b1a47540958fc4fbefb2a8765caf16f62b
commit: 84b0e3b21d957717dcc028b4a0332c33bb46fef3 [9/61] Merge remote-tracking 
branch 'tty/tty-next' into renesas-drivers
config: i386-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 84b0e3b21d957717dcc028b4a0332c33bb46fef3
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/tty/serial/st-asc.c: In function 'asc_set_termios':
>> drivers/tty/serial/st-asc.c:578:12: error: implicit declaration of function 
>> 'devm_get_gpiod_from_child' [-Werror=implicit-function-declaration]
   gpiod = devm_get_gpiod_from_child(port->dev, "rts",
   ^
   drivers/tty/serial/st-asc.c:578:10: warning: assignment makes pointer from 
integer without a cast [-Wint-conversion]
   gpiod = devm_get_gpiod_from_child(port->dev, "rts",
 ^
   cc1: some warnings being treated as errors

vim +/devm_get_gpiod_from_child +578 drivers/tty/serial/st-asc.c

d7356256 Lee Jones 2017-02-03  572  } else {
d7356256 Lee Jones 2017-02-03  573  /* If flow-control disabled, 
it's safe to handle RTS manually */
d7356256 Lee Jones 2017-02-03  574  if (!ascport->rts && 
ascport->states[NO_HW_FLOWCTRL]) {
d7356256 Lee Jones 2017-02-03  575  
pinctrl_select_state(ascport->pinctrl,
d7356256 Lee Jones 2017-02-03  576   
ascport->states[NO_HW_FLOWCTRL]);
d7356256 Lee Jones 2017-02-03  577  
d7356256 Lee Jones 2017-02-03 @578  gpiod = 
devm_get_gpiod_from_child(port->dev, "rts",
d7356256 Lee Jones 2017-02-03  579  
  >fwnode);
d7356256 Lee Jones 2017-02-03  580  if (!IS_ERR(gpiod)) {
d7356256 Lee Jones 2017-02-03  581  
gpiod_direction_output(gpiod, 0);

:: The code at line 578 was first introduced by commit
:: d7356256488c544b8fdc2c3a775ce069546d7933 serial: st-asc: (De)Register 
GPIOD and swap Pinctrl profiles

:: TO: Lee Jones 
:: CC: Greg Kroah-Hartman 

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/dma-attr-force-contiguous-v4 53/53] drivers/tty/serial/sh-sci.c:1346:6: error: implicit declaration of function 'dma_to_phys'

2017-02-14 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/dma-attr-force-contiguous-v4
head:   eed2b654e58fdefff043be4464cc3963725e6415
commit: eed2b654e58fdefff043be4464cc3963725e6415 [53/53] [TEST] 
DMA_ATTR_FORCE_CONTIGUOUS test code
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-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 eed2b654e58fdefff043be4464cc3963725e6415
# save the attached .config to linux build tree
make.cross ARCH=alpha 

All errors (new ones prefixed by >>):

   drivers/tty/serial/sh-sci.c: In function '__test_dma_attr_force_contiguous':
>> drivers/tty/serial/sh-sci.c:1346:6: error: implicit declaration of function 
>> 'dma_to_phys' [-Werror=implicit-function-declaration]
   : dma_to_phys(dev, iova);
 ^~~
   cc1: some warnings being treated as errors

vim +/dma_to_phys +1346 drivers/tty/serial/sh-sci.c

  1340  goto fail;
  1341  }
  1342  
  1343  virt = virt_base;
  1344  iova = iova_base;
  1345  phys = domain ? iommu_iova_to_phys(domain, iova)
> 1346  : dma_to_phys(dev, iova);
  1347  pr_info("[0] virt 0x%p phys %pa iova %pad\n", virt, , 
);
  1348  for (i = 0; i < pages; i++) {
  1349  phys_addr_t p = domain ? iommu_iova_to_phys(domain, 
iova)

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


.config.gz
Description: application/gzip


Re: [PATCH 1/2] dma-mapping: let arch know origin of dma range passed to arch_setup_dma_ops()

2017-01-13 Thread kbuild test robot
Hi Nikita,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc3 next-20170112]
[cannot apply to arm64/for-next/core]
[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/Nikita-Yushchenko/dma-mapping-let-arch-know-origin-of-dma-range-passed-to-arch_setup_dma_ops/20170113-152733
config: x86_64-randconfig-u0-01131618 (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 errors (new ones prefixed by >>):

   drivers/acpi/scan.c: In function 'acpi_dma_configure':
>> drivers/acpi/scan.c:1388:2: error: too many arguments to function 
>> 'arch_setup_dma_ops'
 arch_setup_dma_ops(dev, 0, dev->coherent_dma_mask + 1, false, iommu,
 ^~
   In file included from drivers/acpi/scan.c:15:0:
   include/linux/dma-mapping.h:611:20: note: declared here
static inline void arch_setup_dma_ops(struct device *dev, u64 dma_base,
   ^~

vim +/arch_setup_dma_ops +1388 drivers/acpi/scan.c

  1382  iommu = iort_iommu_configure(dev);
  1383  
  1384  /*
  1385   * Assume dma valid range starts at 0 and covers the whole
  1386   * coherent_dma_mask.
  1387   */
> 1388  arch_setup_dma_ops(dev, 0, dev->coherent_dma_mask + 1, false, 
> iommu,
  1389 attr == DEV_DMA_COHERENT);
  1390  }
  1391  EXPORT_SYMBOL_GPL(acpi_dma_configure);

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


.config.gz
Description: application/gzip


Re: [PATCH 2/2] arm64: avoid increasing DMA masks above what hardware supports

2017-01-13 Thread kbuild test robot
Hi Nikita,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc3 next-20170112]
[cannot apply to arm64/for-next/core]
[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/Nikita-Yushchenko/dma-mapping-let-arch-know-origin-of-dma-range-passed-to-arch_setup_dma_ops/20170113-152733
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-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
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   arch/arm64/mm/dma-mapping.c: In function 'dma_set_mask':
>> arch/arm64/mm/dma-mapping.c:210:6: error: 'mask' undeclared (first use in 
>> this function)
 if (mask > dev->archdata.parent_dma_mask)
 ^~~~
   arch/arm64/mm/dma-mapping.c:210:6: note: each undeclared identifier is 
reported only once for each function it appears in

vim +/mask +210 arch/arm64/mm/dma-mapping.c

   204  }
   205  
   206  int dma_set_mask(struct device *dev, u64 dma_mask)
   207  {
   208  const struct dma_map_ops *ops = get_dma_ops(dev);
   209  
 > 210  if (mask > dev->archdata.parent_dma_mask)
   211  mask = dev->archdata.parent_dma_mask;
   212  
   213  if (ops->set_dma_mask)

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/renesas-overlays 33/89] WARNING: drivers/clk/built-in.o(.text+0xaa9c): Section mismatch in reference from the function generic_fixed_clk_probe() to the function .init.text:of_fi

2016-12-27 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   692ce4d39051a7c3f7be831fc62956c7a9876c45
commit: 775b662de839bc8ed8825a403f41dc258ba10547 [33/89] clk: add generic 
driver for fixed rate clock
config: arm-allyesconfig (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 775b662de839bc8ed8825a403f41dc258ba10547
# save the attached .config to linux build tree
make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

>> WARNING: drivers/clk/built-in.o(.text+0xaa9c): Section mismatch in reference 
>> from the function generic_fixed_clk_probe() to the function 
>> .init.text:of_fixed_clk_setup()
   The function generic_fixed_clk_probe() references
   the function __init of_fixed_clk_setup().
   This is often because generic_fixed_clk_probe lacks a __init
   annotation or the annotation of of_fixed_clk_setup is wrong.

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/renesas-overlays 33/89] ERROR: "of_fixed_clk_setup" [drivers/clk/clk-generic-fixed.ko] undefined!

2016-12-27 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   692ce4d39051a7c3f7be831fc62956c7a9876c45
commit: 775b662de839bc8ed8825a403f41dc258ba10547 [33/89] clk: add generic 
driver for fixed rate clock
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 775b662de839bc8ed8825a403f41dc258ba10547
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

>> ERROR: "of_fixed_clk_setup" [drivers/clk/clk-generic-fixed.ko] undefined!

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/renesas-overlays 18/89] (.text+0x21): multiple definition of `of_changeset_add_property_copy'

2016-12-27 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   692ce4d39051a7c3f7be831fc62956c7a9876c45
commit: 5350bc00df5ea64d628b596f967526641605d91b [18/89] of: changesets: 
Introduce changeset helper methods
config: i386-tinyconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 5350bc00df5ea64d628b596f967526641605d91b
# save the attached .config to linux build tree
make ARCH=i386 

Note: the renesas-drivers/topic/renesas-overlays HEAD 
692ce4d39051a7c3f7be831fc62956c7a9876c45 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   init/mounts.o: In function `of_changeset_add_property_copy':
>> (.text+0x21): multiple definition of `of_changeset_add_property_copy'
   init/main.o:main.c:(.text+0x19): first defined here
   init/mounts.o: In function `of_changeset_add_property_string':
>> (.text+0x27): multiple definition of `of_changeset_add_property_string'
   init/main.o:main.c:(.text+0x1f): first defined here

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


.config.gz
Description: application/gzip


[renesas:soc-for-v4.11 3/8] make[4]: *** No rule to make target 'drivers/soc/renesas/renesas-soc.o', needed by 'drivers/soc/renesas/built-in.o'.

2016-12-07 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git 
soc-for-v4.11
head:   d22b40a6a05125debadedf78d35ce172e92b96f5
commit: 68122e60d3a6d1e7e312909108b8459489393894 [3/8] Merge branch 'rcar-rst' 
of https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers into 
soc-for-v4.11
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 68122e60d3a6d1e7e312909108b8459489393894
# save the attached .config to linux build tree
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

>> make[4]: *** No rule to make target 'drivers/soc/renesas/renesas-soc.o', 
>> needed by 'drivers/soc/renesas/built-in.o'.
   make[4]: Target '__build' not remade because of errors.

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


.config.gz
Description: application/gzip


Re: [PATCH pci/next] PCI: rcar: Add gen3 fallback compatibility string for pcie-rcar

2016-12-02 Thread kbuild test robot
Hi Simon,

[auto build test ERROR on pci/next]

url:
https://github.com/0day-ci/linux/commits/Simon-Horman/PCI-rcar-Add-gen3-fallback-compatibility-string-for-pcie-rcar/20161203-030440
base:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-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
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

>> drivers/pci/host/pcie-rcar.c:1081:12: error: 'rcar_pcie_hw_init_hw_init' 
>> undeclared here (not in a function)
   .data = rcar_pcie_hw_init_hw_init },
   ^

vim +/rcar_pcie_hw_init_hw_init +1081 drivers/pci/host/pcie-rcar.c

  1075.data = rcar_pcie_hw_init_gen2 },
  1076  { .compatible = "renesas,pcie-r8a7790",
  1077.data = rcar_pcie_hw_init_gen2 },
  1078  { .compatible = "renesas,pcie-r8a7791",
  1079.data = rcar_pcie_hw_init_gen2 },
  1080  { .compatible = "renesas,pcie-rcar-gen3",
> 1081.data = rcar_pcie_hw_init_hw_init },
  1082  { .compatible = "renesas,pcie-r8a7795", .data = 
rcar_pcie_hw_init },
  1083  {},
  1084  };

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/renesas-overlays 33/89] WARNING: drivers/built-in.o(.text+0x20268f): Section mismatch in reference from the function generic_fixed_clk_probe() to the function .init.text:of_fixe

2016-11-21 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   a1cbc059d0a208214bf7f30d522f2b642ba1a928
commit: 4cdd484c2b8423c10ecd22e98cd2f6998ce81e22 [33/89] clk: add generic 
driver for fixed rate clock
config: i386-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 4cdd484c2b8423c10ecd22e98cd2f6998ce81e22
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

>> WARNING: drivers/built-in.o(.text+0x20268f): Section mismatch in reference 
>> from the function generic_fixed_clk_probe() to the function 
>> .init.text:of_fixed_clk_setup()
   The function generic_fixed_clk_probe() references
   the function __init of_fixed_clk_setup().
   This is often because generic_fixed_clk_probe lacks a __init
   annotation or the annotation of of_fixed_clk_setup is wrong.

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/renesas-overlays 2/89] drivers/of/configfs.c:48:2: error: implicit declaration of function 'of_fdt_unflatten_tree'

2016-11-21 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   a1cbc059d0a208214bf7f30d522f2b642ba1a928
commit: 1aa3421a4ea92f3a107ffea0663c920fb8c18097 [2/89] OF: DT-Overlay configfs 
interface (v7)
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-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 1aa3421a4ea92f3a107ffea0663c920fb8c18097
# save the attached .config to linux build tree
make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   drivers/of/configfs.c: In function 'create_overlay':
>> drivers/of/configfs.c:48:2: error: implicit declaration of function 
>> 'of_fdt_unflatten_tree' [-Werror=implicit-function-declaration]
 of_fdt_unflatten_tree(blob, NULL, >overlay);
 ^
   In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/kobject.h:20,
from include/linux/device.h:17,
from include/linux/node.h:17,
from include/linux/cpu.h:16,
from drivers/of/configfs.c:12:
   drivers/of/configfs.c: In function 'cfs_overlay_item_dtbo_read':
   drivers/of/configfs.c:153:11: warning: format '%u' expects argument of type 
'unsigned int', but argument 5 has type 'size_t {aka long unsigned int}' 
[-Wformat=]
 pr_debug("%s: buf=%p max_count=%u\n", __func__,
  ^
   include/linux/printk.h:261:21: note: in definition of macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
   include/linux/printk.h:309:2: note: in expansion of macro 'dynamic_pr_debug'
 dynamic_pr_debug(fmt, ##__VA_ARGS__)
 ^~~~
   drivers/of/configfs.c:153:2: note: in expansion of macro 'pr_debug'
 pr_debug("%s: buf=%p max_count=%u\n", __func__,
 ^~~~
   cc1: some warnings being treated as errors

vim +/of_fdt_unflatten_tree +48 drivers/of/configfs.c

42  
43  static int create_overlay(struct cfs_overlay_item *overlay, void *blob)
44  {
45  int err;
46  
47  /* unflatten the tree */
  > 48  of_fdt_unflatten_tree(blob, NULL, >overlay);
49  if (overlay->overlay == NULL) {
50  pr_err("%s: failed to unflatten tree\n", __func__);
51  err = -EINVAL;

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/renesas-overlays 18/89] (.text+0x21): multiple definition of `of_changeset_add_property_copy'

2016-11-21 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   a1cbc059d0a208214bf7f30d522f2b642ba1a928
commit: 238a29fd337541df2445f9768a551e47ea81c572 [18/89] of: changesets: 
Introduce changeset helper methods
config: i386-tinyconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 238a29fd337541df2445f9768a551e47ea81c572
# save the attached .config to linux build tree
make ARCH=i386 

Note: the renesas-drivers/topic/renesas-overlays HEAD 
a1cbc059d0a208214bf7f30d522f2b642ba1a928 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   init/mounts.o: In function `of_changeset_add_property_copy':
>> (.text+0x21): multiple definition of `of_changeset_add_property_copy'
   init/main.o:main.c:(.text+0x19): first defined here
   init/mounts.o: In function `of_changeset_add_property_string':
>> (.text+0x27): multiple definition of `of_changeset_add_property_string'
   init/main.o:main.c:(.text+0x1f): first defined here

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/gen3-latest 15/23] htmldocs: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.

2016-10-18 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/gen3-latest
head:   16609b0b44ac7ad775224e727c53e208336836e4
commit: c12058c404f2b908e86c6f6fe80d7112987b0941 [15/23] Merge branch 
'histogram' of https://git.ragnatech.se/linux into renesas-drivers
reproduce: make htmldocs

All warnings (new ones prefixed by >>):

>> warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
   include/linux/init.h:1: warning: no structured comments found
   include/linux/workqueue.h:392: warning: No description found for parameter 
'...'
   include/linux/workqueue.h:392: warning: Excess function parameter 'args' 
description in 'alloc_workqueue'
   include/linux/workqueue.h:413: warning: No description found for parameter 
'...'
   include/linux/workqueue.h:413: warning: Excess function parameter 'args' 
description in 'alloc_ordered_workqueue'
   include/linux/kthread.h:26: warning: No description found for parameter '...'
   kernel/sys.c:1: warning: no structured comments found
   drivers/dma-buf/seqno-fence.c:1: warning: no structured comments found
   include/linux/fence-array.h:61: warning: No description found for parameter 
'fence'
   include/sound/core.h:324: warning: No description found for parameter '...'
   include/sound/core.h:335: warning: No description found for parameter '...'
   include/sound/core.h:388: warning: No description found for parameter '...'
   include/media/media-entity.h:1054: warning: No description found for 
parameter '...'

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/renesas-overlays 2/85] drivers/of/configfs.c:48:2: error: implicit declaration of function 'of_fdt_unflatten_tree'

2016-10-15 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   0315c3f86cfcdd4575fc47ffd28e03a96bab4c49
commit: a01d53666eca78c35c67fd6facbd89116b7d9edc [2/85] OF: DT-Overlay configfs 
interface (v7)
config: sparc-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-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 a01d53666eca78c35c67fd6facbd89116b7d9edc
# save the attached .config to linux build tree
make.cross ARCH=sparc 

All errors (new ones prefixed by >>):

   drivers/of/configfs.c: In function 'create_overlay':
>> drivers/of/configfs.c:48:2: error: implicit declaration of function 
>> 'of_fdt_unflatten_tree' [-Werror=implicit-function-declaration]
 of_fdt_unflatten_tree(blob, NULL, >overlay);
 ^
   In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/kobject.h:20,
from include/linux/device.h:17,
from include/linux/node.h:17,
from include/linux/cpu.h:16,
from drivers/of/configfs.c:12:
   drivers/of/configfs.c: In function 'cfs_overlay_item_dtbo_read':
   drivers/of/configfs.c:153:11: warning: format '%u' expects argument of type 
'unsigned int', but argument 5 has type 'size_t {aka long unsigned int}' 
[-Wformat=]
 pr_debug("%s: buf=%p max_count=%u\n", __func__,
  ^
   include/linux/printk.h:260:21: note: in definition of macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
   include/linux/printk.h:308:2: note: in expansion of macro 'dynamic_pr_debug'
 dynamic_pr_debug(fmt, ##__VA_ARGS__)
 ^~~~
   drivers/of/configfs.c:153:2: note: in expansion of macro 'pr_debug'
 pr_debug("%s: buf=%p max_count=%u\n", __func__,
 ^~~~
   cc1: some warnings being treated as errors

vim +/of_fdt_unflatten_tree +48 drivers/of/configfs.c

42  
43  static int create_overlay(struct cfs_overlay_item *overlay, void *blob)
44  {
45  int err;
46  
47  /* unflatten the tree */
  > 48  of_fdt_unflatten_tree(blob, NULL, >overlay);
49  if (overlay->overlay == NULL) {
50  pr_err("%s: failed to unflatten tree\n", __func__);
51  err = -EINVAL;

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/gen3-latest 12/52] drivers/gpu/drm/i915/intel_ddi.c:453:3: error: 'n_hdmi_entries' undeclared

2016-09-20 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/gen3-latest
head:   c78265667b735cc07e53731abd2140d1bf4e7a41
commit: 8c26677f9f655eea278f4fc5395a3a0251db9c65 [12/52] Merge remote-tracking 
branch 'drm/drm-next' into renesas-drivers
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 8c26677f9f655eea278f4fc5395a3a0251db9c65
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/intel_ddi.c: In function 'intel_prepare_dp_ddi_buffers':
>> drivers/gpu/drm/i915/intel_ddi.c:453:3: error: 'n_hdmi_entries' undeclared 
>> (first use in this function)
  n_hdmi_entries = ARRAY_SIZE(bdw_ddi_translations_hdmi);
  ^~
   drivers/gpu/drm/i915/intel_ddi.c:453:3: note: each undeclared identifier is 
reported only once for each function it appears in

vim +/n_hdmi_entries +453 drivers/gpu/drm/i915/intel_ddi.c

f8896f5d David Weinehall 2015-06-25  437ddi_translations_edp =
78ab0bae Ville Syrjälä   2015-12-08  438
skl_get_buf_trans_edp(dev_priv, _edp_entries);
32bdc400 Ville Syrjälä   2016-07-12  439  
75067dde Antti Koskipaa  2015-07-10  440/* If we're boosting 
the current, set bit 31 of trans1 */
1edaaa2f Ville Syrjälä   2016-07-12  441if 
(dev_priv->vbt.ddi_port_info[port].dp_boost_level)
c110ae6c Ville Syrjälä   2016-07-12  442iboost_bit = 
DDI_BUF_BALANCE_LEG_ENABLE;
10afa0b6 Ville Syrjälä   2015-12-08  443  
ceccad59 Ville Syrjälä   2016-01-12  444if 
(WARN_ON(encoder->type == INTEL_OUTPUT_EDP &&
ceccad59 Ville Syrjälä   2016-01-12  445port != 
PORT_A && port != PORT_E &&
ceccad59 Ville Syrjälä   2016-01-12  446
n_edp_entries > 9))
10afa0b6 Ville Syrjälä   2015-12-08  447n_edp_entries = 
9;
78ab0bae Ville Syrjälä   2015-12-08  448} else if 
(IS_BROADWELL(dev_priv)) {
e58623cb Art Runyan  2013-11-02  449ddi_translations_fdi = 
bdw_ddi_translations_fdi;
e58623cb Art Runyan  2013-11-02  450ddi_translations_dp = 
bdw_ddi_translations_dp;
a930acd9 Ville Syrjälä   2016-07-12  451ddi_translations_edp = 
bdw_get_buf_trans_edp(dev_priv, _edp_entries);
7ad14a29 Sonika Jindal   2015-02-25  452n_dp_entries = 
ARRAY_SIZE(bdw_ddi_translations_dp);
10122051 Jani Nikula 2014-08-27 @453n_hdmi_entries = 
ARRAY_SIZE(bdw_ddi_translations_hdmi);
78ab0bae Ville Syrjälä   2015-12-08  454} else if 
(IS_HASWELL(dev_priv)) {
e58623cb Art Runyan  2013-11-02  455ddi_translations_fdi = 
hsw_ddi_translations_fdi;
e58623cb Art Runyan  2013-11-02  456ddi_translations_dp = 
hsw_ddi_translations_dp;
300644c7 Paulo Zanoni2013-11-02  457ddi_translations_edp = 
hsw_ddi_translations_dp;
7ad14a29 Sonika Jindal   2015-02-25  458n_dp_entries = 
n_edp_entries = ARRAY_SIZE(hsw_ddi_translations_dp);
10122051 Jani Nikula 2014-08-27  459n_hdmi_entries = 
ARRAY_SIZE(hsw_ddi_translations_hdmi);
e58623cb Art Runyan  2013-11-02  460} else {
e58623cb Art Runyan  2013-11-02  461WARN(1, "ddi 
translation table missing\n");

:: The code at line 453 was first introduced by commit
:: 1012205182fb9470a1bd1620872103a09f566225 drm/i915/ddi: use struct for 
ddi buf translation tables

:: TO: Jani Nikula 
:: CC: Daniel Vetter 

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


.config.gz
Description: application/gzip


[renesas-drivers:topic/renesas-overlays 2/85] drivers/of/configfs.c:48:2: error: implicit declaration of function 'of_fdt_unflatten_tree'

2016-09-13 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   c62872358e9767f9b0d00fa4b023484d59e4ba65
commit: 3cc2e4a7426c6f0d2e4de08283737840ed495779 [2/85] OF: DT-Overlay configfs 
interface (v7)
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
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 3cc2e4a7426c6f0d2e4de08283737840ed495779
# save the attached .config to linux build tree
make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   drivers/of/configfs.c: In function 'create_overlay':
>> drivers/of/configfs.c:48:2: error: implicit declaration of function 
>> 'of_fdt_unflatten_tree' [-Werror=implicit-function-declaration]
 of_fdt_unflatten_tree(blob, NULL, >overlay);
 ^
   In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/kobject.h:20,
from include/linux/device.h:17,
from include/linux/node.h:17,
from include/linux/cpu.h:16,
from drivers/of/configfs.c:12:
   drivers/of/configfs.c: In function 'cfs_overlay_item_dtbo_read':
   drivers/of/configfs.c:153:11: warning: format '%u' expects argument of type 
'unsigned int', but argument 5 has type 'size_t {aka long unsigned int}' 
[-Wformat=]
 pr_debug("%s: buf=%p max_count=%u\n", __func__,
  ^
   include/linux/printk.h:260:21: note: in definition of macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^
   include/linux/printk.h:326:2: note: in expansion of macro 'dynamic_pr_debug'
 dynamic_pr_debug(fmt, ##__VA_ARGS__)
 ^
   drivers/of/configfs.c:153:2: note: in expansion of macro 'pr_debug'
 pr_debug("%s: buf=%p max_count=%u\n", __func__,
 ^
   cc1: some warnings being treated as errors

vim +/of_fdt_unflatten_tree +48 drivers/of/configfs.c

42  
43  static int create_overlay(struct cfs_overlay_item *overlay, void *blob)
44  {
45  int err;
46  
47  /* unflatten the tree */
  > 48  of_fdt_unflatten_tree(blob, NULL, >overlay);
49  if (overlay->overlay == NULL) {
50  pr_err("%s: failed to unflatten tree\n", __func__);
51  err = -EINVAL;

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


.config.gz
Description: Binary data


[renesas-drivers:topic/spi-slave-v2-integration 5/8] ERROR: "signal_wake_up_state" [drivers/spi/spi-sh-msiof.ko] undefined!

2016-09-12 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/spi-slave-v2-integration
head:   99f79882624a9a1c94c784d6359426069ed62c2e
commit: 688a353f485dbed2c5c415b54170ebfa76677310 [5/8] [RFC] spi: sh-msiof: Add 
slave mode support
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
git checkout 688a353f485dbed2c5c415b54170ebfa76677310
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

>> ERROR: "signal_wake_up_state" [drivers/spi/spi-sh-msiof.ko] undefined!

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


.config.gz
Description: Binary data


[renesas-drivers:topic/gen3-latest 941/3738] drivers/media/i2c/adv7482.c:1368:25: error: 'adv7482_of_ids' undeclared here (not in a function)

2016-09-06 Thread kbuild test robot
Hi Niklas,

FYI, the error/warning still remains.

tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/gen3-latest
head:   5922f3ba5fa117f3a148a87644eb101abf9a1623
commit: c585bda5a818d6c75430e57587c7e529395ddfbf [941/3738] [media] i2c: 
adv7482: add adv7482 driver
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
git checkout c585bda5a818d6c75430e57587c7e529395ddfbf
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from drivers/media/i2c/adv7482.c:15:0:
>> drivers/media/i2c/adv7482.c:1368:25: error: 'adv7482_of_ids' undeclared here 
>> (not in a function)
MODULE_DEVICE_TABLE(of, adv7482_of_ids);
^
   include/linux/module.h:213:21: note: in definition of macro 
'MODULE_DEVICE_TABLE'
extern const typeof(name) __mod_##type##__##name##_device_table  \
^~~~
>> include/linux/module.h:213:27: error: 
>> '__mod_of__adv7482_of_ids_device_table' aliased to undefined symbol 
>> 'adv7482_of_ids'
extern const typeof(name) __mod_##type##__##name##_device_table  \
  ^
   drivers/media/i2c/adv7482.c:1368:1: note: in expansion of macro 
'MODULE_DEVICE_TABLE'
MODULE_DEVICE_TABLE(of, adv7482_of_ids);
^~~
   drivers/media/i2c/adv7482.c:807:12: warning: 'adv7482_query_dv_timings' 
defined but not used [-Wunused-function]
static int adv7482_query_dv_timings(struct v4l2_subdev *sd,
   ^~~~
   drivers/media/i2c/adv7482.c:795:12: warning: 'adv7482_g_dv_timings' defined 
but not used [-Wunused-function]
static int adv7482_g_dv_timings(struct v4l2_subdev *sd,
   ^~~~
   drivers/media/i2c/adv7482.c:761:12: warning: 'adv7482_s_dv_timings' defined 
but not used [-Wunused-function]
static int adv7482_s_dv_timings(struct v4l2_subdev *sd,
   ^~~~

vim +/adv7482_of_ids +1368 drivers/media/i2c/adv7482.c

  1362  };
  1363  
  1364  static const struct of_device_id adv7482_of_table[] = {
  1365  { .compatible = "adi,adv7482", },
  1366  { }
  1367  };
> 1368  MODULE_DEVICE_TABLE(of, adv7482_of_ids);
  1369  
  1370  static struct i2c_driver adv7482_driver = {
  1371  .driver = {

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


.config.gz
Description: Binary data


[renesas:topic/sdhi-gen3-dma-v3.rebase 5/6] ERROR: "sdhi_internal_dmac_init_dma" [drivers/mmc/host/sh_mobile_sdhi.ko] undefined!

2016-09-05 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git 
topic/sdhi-gen3-dma-v3.rebase
head:   7865a530e8363ec2eaa051cd969bc82705213d03
commit: 2298d8ff39cb6422a70e2168b9622a069497b490 [5/6] mmc: renesas_sdhi: add 
support for R-Car Gen3 SDHI DMAC
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
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 2298d8ff39cb6422a70e2168b9622a069497b490
# save the attached .config to linux build tree
make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   ERROR: "sdhi_sys_dmac_init_dma" [drivers/mmc/host/sh_mobile_sdhi.ko] 
undefined!
>> ERROR: "sdhi_internal_dmac_init_dma" [drivers/mmc/host/sh_mobile_sdhi.ko] 
>> undefined!

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


.config.gz
Description: Binary data


[renesas-drivers:topic/salvator-x-hdmi-prototype-2016-08-30-v4.8-rc4 915/2661] drivers/media/i2c/adv7482.c:1368:1: error: '__mod_of__adv7482_of_ids_device_table' aliased to undefined symbol 'adv7482_o

2016-08-30 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/salvator-x-hdmi-prototype-2016-08-30-v4.8-rc4
head:   734ea84d5f5e0cb742993e87fb99f934b5719d38
commit: c585bda5a818d6c75430e57587c7e529395ddfbf [915/2661] [media] i2c: 
adv7482: add adv7482 driver
config: tile-allmodconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
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 c585bda5a818d6c75430e57587c7e529395ddfbf
# save the attached .config to linux build tree
make.cross ARCH=tile 

All errors (new ones prefixed by >>):

   drivers/media/i2c/adv7482.c:1368:1: error: 'adv7482_of_ids' undeclared here 
(not in a function)
   drivers/media/i2c/adv7482.c:761:12: warning: 'adv7482_s_dv_timings' defined 
but not used [-Wunused-function]
   drivers/media/i2c/adv7482.c:795:12: warning: 'adv7482_g_dv_timings' defined 
but not used [-Wunused-function]
   drivers/media/i2c/adv7482.c:807:12: warning: 'adv7482_query_dv_timings' 
defined but not used [-Wunused-function]
>> drivers/media/i2c/adv7482.c:1368:1: error: 
>> '__mod_of__adv7482_of_ids_device_table' aliased to undefined symbol 
>> 'adv7482_of_ids'

vim +1368 drivers/media/i2c/adv7482.c

  1362  };
  1363  
  1364  static const struct of_device_id adv7482_of_table[] = {
  1365  { .compatible = "adi,adv7482", },
  1366  { }
  1367  };
> 1368  MODULE_DEVICE_TABLE(of, adv7482_of_ids);
  1369  
  1370  static struct i2c_driver adv7482_driver = {
  1371  .driver = {

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


.config.gz
Description: Binary data


[renesas-drivers:topic/salvator-x-hdmi-prototype-v3 14233/14988] drivers/media/i2c/adv7482.c:1368:25: error: 'adv7482_of_ids' undeclared here (not in a function)

2016-08-22 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/salvator-x-hdmi-prototype-v3
head:   9c8bcea840842aa5160e89e4bfd450021c26f524
commit: c585bda5a818d6c75430e57587c7e529395ddfbf [14233/14988] [media] i2c: 
adv7482: add adv7482 driver
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
git checkout c585bda5a818d6c75430e57587c7e529395ddfbf
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from drivers/media/i2c/adv7482.c:15:0:
>> drivers/media/i2c/adv7482.c:1368:25: error: 'adv7482_of_ids' undeclared here 
>> (not in a function)
MODULE_DEVICE_TABLE(of, adv7482_of_ids);
^
   include/linux/module.h:213:21: note: in definition of macro 
'MODULE_DEVICE_TABLE'
extern const typeof(name) __mod_##type##__##name##_device_table  \
^~~~
>> include/linux/module.h:213:27: error: 
>> '__mod_of__adv7482_of_ids_device_table' aliased to undefined symbol 
>> 'adv7482_of_ids'
extern const typeof(name) __mod_##type##__##name##_device_table  \
  ^
   drivers/media/i2c/adv7482.c:1368:1: note: in expansion of macro 
'MODULE_DEVICE_TABLE'
MODULE_DEVICE_TABLE(of, adv7482_of_ids);
^~~
   drivers/media/i2c/adv7482.c:807:12: warning: 'adv7482_query_dv_timings' 
defined but not used [-Wunused-function]
static int adv7482_query_dv_timings(struct v4l2_subdev *sd,
   ^~~~
   drivers/media/i2c/adv7482.c:795:12: warning: 'adv7482_g_dv_timings' defined 
but not used [-Wunused-function]
static int adv7482_g_dv_timings(struct v4l2_subdev *sd,
   ^~~~
   drivers/media/i2c/adv7482.c:761:12: warning: 'adv7482_s_dv_timings' defined 
but not used [-Wunused-function]
static int adv7482_s_dv_timings(struct v4l2_subdev *sd,
   ^~~~

vim +/adv7482_of_ids +1368 drivers/media/i2c/adv7482.c

  1362  };
  1363  
  1364  static const struct of_device_id adv7482_of_table[] = {
  1365  { .compatible = "adi,adv7482", },
  1366  { }
  1367  };
> 1368  MODULE_DEVICE_TABLE(of, adv7482_of_ids);
  1369  
  1370  static struct i2c_driver adv7482_driver = {
  1371  .driver = {

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


.config.gz
Description: Binary data


[renesas-drivers:topic/renesas-overlays 18/87] (.text+0x21): multiple definition of `of_changeset_add_property_copy'

2016-08-16 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   1bebb616e30100a487cc295752fc575bbb35ef5e
commit: 4787d76c83e84701506d2df7f08fb194dd7cf1c4 [18/87] of: changesets: 
Introduce changeset helper methods
config: i386-tinyconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
git checkout 4787d76c83e84701506d2df7f08fb194dd7cf1c4
# save the attached .config to linux build tree
make ARCH=i386 

Note: the renesas-drivers/topic/renesas-overlays HEAD 
1bebb616e30100a487cc295752fc575bbb35ef5e builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   init/mounts.o: In function `of_changeset_add_property_copy':
>> (.text+0x21): multiple definition of `of_changeset_add_property_copy'
   init/main.o:main.c:(.text+0x19): first defined here
   init/mounts.o: In function `of_changeset_add_property_string':
>> (.text+0x27): multiple definition of `of_changeset_add_property_string'
   init/main.o:main.c:(.text+0x1f): first defined here

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


.config.gz
Description: Binary data


  1   2   >