Re: [PATCH v4] signal: add taskfd_send_signal() syscall

2018-12-08 Thread kbuild test robot
Hi Christian,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc5]
[cannot apply to next-20181207]
[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/Christian-Brauner/signal-add-taskfd_send_signal-syscall/20181209-044342
config: ia64-allnoconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.1.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
GCC_VERSION=8.1.0 make.cross ARCH=ia64 

All warnings (new ones prefixed by >>):

   :1185:2: warning: #warning syscall perf_event_open not implemented 
[-Wcpp]
   :1239:2: warning: #warning syscall seccomp not implemented [-Wcpp]
   :1317:2: warning: #warning syscall pkey_mprotect not implemented 
[-Wcpp]
   :1320:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp]
   :1323:2: warning: #warning syscall pkey_free not implemented [-Wcpp]
   :1326:2: warning: #warning syscall statx not implemented [-Wcpp]
   :1332:2: warning: #warning syscall io_pgetevents not implemented 
[-Wcpp]
   :1335:2: warning: #warning syscall rseq not implemented [-Wcpp]
>> :1338:2: warning: #warning syscall taskfd_send_signal not implemented 
>> [-Wcpp]

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


.config.gz
Description: application/gzip


arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints

2018-12-07 Thread kbuild test robot
Hi Juergen,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   5f179793f0a73965681db6a3203fa1baabd9b3c3
commit: 6da63eb241a05b0e676d68975e793c0521387141 x86/paravirt: Move the 
pv_irq_ops under the PARAVIRT_XXL umbrella
date:   3 months ago
config: i386-randconfig-sb0-12081226 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout 6da63eb241a05b0e676d68975e793c0521387141
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/atomic.h:8:0,
from arch/x86/include/asm/msr.h:67,
from arch/x86/include/asm/processor.h:21,
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/mm.h:10,
from mm/slub.c:13:
   mm/slub.c: In function '__slab_free.isra.74':
>> arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible 
>> constraints
 asm volatile(pfx "cmpxchg%c4b %2; sete %0"   \
 ^
   arch/x86/include/asm/cmpxchg.h:254:2: note: in expansion of macro 
'__cmpxchg_double'
 __cmpxchg_double(LOCK_PREFIX, p1, p2, o1, o2, n1, n2)
 ^
   include/asm-generic/atomic-instrumented.h:457:2: note: in expansion of macro 
'arch_cmpxchg_double'
 arch_cmpxchg_double(__ai_p1, (p2), (o1), (o2), (n1), (n2)); \
 ^
   mm/slub.c:403:7: note: in expansion of macro 'cmpxchg_double'
  if (cmpxchg_double(>freelist, >counters,
  ^

vim +/asm +245 arch/x86/include/asm/cmpxchg.h

3d94ae0c Jeremy Fitzhardinge 2011-09-28  235  
cdcd6298 Jan Beulich 2012-01-02  236  #define __cmpxchg_double(pfx, p1, 
p2, o1, o2, n1, n2) \
cdcd6298 Jan Beulich 2012-01-02  237  ({
\
cdcd6298 Jan Beulich 2012-01-02  238bool __ret; 
\
cdcd6298 Jan Beulich 2012-01-02  239__typeof__(*(p1)) __old1 = 
(o1), __new1 = (n1); \
cdcd6298 Jan Beulich 2012-01-02  240__typeof__(*(p2)) __old2 = 
(o2), __new2 = (n2); \
cdcd6298 Jan Beulich 2012-01-02  241BUILD_BUG_ON(sizeof(*(p1)) != 
sizeof(long));\
cdcd6298 Jan Beulich 2012-01-02  242BUILD_BUG_ON(sizeof(*(p2)) != 
sizeof(long));\
cdcd6298 Jan Beulich 2012-01-02  243VM_BUG_ON((unsigned long)(p1) % 
(2 * sizeof(long)));\
cdcd6298 Jan Beulich 2012-01-02  244VM_BUG_ON((unsigned long)((p1) 
+ 1) != (unsigned long)(p2));\
cdcd6298 Jan Beulich 2012-01-02 @245asm volatile(pfx "cmpxchg%c4b 
%2; sete %0"  \
cdcd6298 Jan Beulich 2012-01-02  246 : "=a" (__ret), 
"+d" (__old2), \
cdcd6298 Jan Beulich 2012-01-02  247   "+m" (*(p1)), 
"+m" (*(p2))   \
cdcd6298 Jan Beulich 2012-01-02  248 : "i" (2 * 
sizeof(long)), "a" (__old1),\
cdcd6298 Jan Beulich 2012-01-02  249   "b" (__new1), 
"c" (__new2)); \
cdcd6298 Jan Beulich 2012-01-02  250__ret;  
\
cdcd6298 Jan Beulich 2012-01-02  251  })
cdcd6298 Jan Beulich 2012-01-02  252  

:: The code at line 245 was first introduced by commit
:: cdcd629869fabcd38ebd24a03b0a05ec1cbcafb0 x86: Fix and improve 
cmpxchg_double{,_local}()

:: TO: Jan Beulich 
:: CC: Ingo Molnar 

---
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 perf,bpf 1/3] perf, bpf: Introduce PERF_RECORD_BPF_EVENT

2018-12-06 Thread kbuild test robot
Hi Song,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on tip/perf/core]
[also build test ERROR on v4.20-rc5 next-20181206]
[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/Song-Liu/perf-bpf-Introduce-PERF_RECORD_BPF_EVENT/20181207-083615
config: i386-randconfig-x070-201848 (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 error/warnings (new ones prefixed by >>):

   kernel/events/core.c: In function 'perf_event_bpf_output':
>> kernel/events/core.c:7694:2: error: implicit declaration of function 
>> 'bpf_get_prog_name'; did you mean 'bpf_prog_free'? 
>> [-Werror=implicit-function-declaration]
 bpf_get_prog_name(bpf_event->prog, name);
 ^
 bpf_prog_free
   kernel/events/core.c: In function 'perf_event_bpf_event_subprog':
>> kernel/events/core.c:7737:12: warning: cast from pointer to integer of 
>> different size [-Wpointer-to-int-cast]
   .addr = (u64)prog->bpf_func,
   ^
   cc1: some warnings being treated as errors

vim +7694 kernel/events/core.c

  7679  
  7680  static void perf_event_bpf_output(struct perf_event *event,
  7681 void *data)
  7682  {
  7683  struct perf_bpf_event *bpf_event = data;
  7684  struct perf_output_handle handle;
  7685  struct perf_sample_data sample;
  7686  char name[KSYM_NAME_LEN];
  7687  int name_len;
  7688  int ret;
  7689  
  7690  if (!perf_event_bpf_match(event))
  7691  return;
  7692  
  7693  /* get prog name and round up to 64 bit aligned */
> 7694  bpf_get_prog_name(bpf_event->prog, name);
  7695  name_len = strlen(name) + 1;
  7696  while (!IS_ALIGNED(name_len, sizeof(u64)))
  7697  name[name_len++] = '\0';
  7698  bpf_event->event_id.len += name_len;
  7699  
  7700  perf_event_header__init_id(_event->event_id.header, 
, event);
  7701  ret = perf_output_begin(, event,
  7702  bpf_event->event_id.header.size);
  7703  if (ret)
  7704  return;
  7705  
  7706  perf_output_put(, bpf_event->event_id);
  7707  
  7708  __output_copy(, name, name_len);
  7709  
  7710  perf_event__output_id_sample(event, , );
  7711  
  7712  perf_output_end();
  7713  }
  7714  
  7715  static void perf_event_bpf(struct perf_bpf_event *bpf_event)
  7716  {
  7717  perf_iterate_sb(perf_event_bpf_output,
  7718 bpf_event,
  7719 NULL);
  7720  }
  7721  
  7722  static void perf_event_bpf_event_subprog(
  7723  enum perf_bpf_event_type type,
  7724  struct bpf_prog *prog, u32 id, u32 sub_id)
  7725  {
  7726  struct perf_bpf_event bpf_event = (struct perf_bpf_event){
  7727  .prog = prog,
  7728  .event_id = {
  7729  .header = {
  7730  .type = PERF_RECORD_BPF_EVENT,
  7731  .size = sizeof(bpf_event.event_id),
  7732  },
  7733  .type = type,
  7734  /* .flags = 0 */
  7735  .id = id,
  7736  .sub_id = sub_id,
> 7737  .addr = (u64)prog->bpf_func,
  7738  .len = prog->jited_len,
  7739  },
  7740  };
  7741  
  7742  memcpy(bpf_event.event_id.tag, prog->tag, BPF_TAG_SIZE);
  7743  perf_event_bpf(_event);
  7744  }
  7745  

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


.config.gz
Description: application/gzip


Re: [PATCH] ASoC: adau1761: Ensure DSP_RUN and DSP_ENABLE are disabled

2018-12-06 Thread kbuild test robot
Hi Niklas,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on asoc/for-next]
[also build test ERROR on v4.20-rc5 next-20181206]
[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/Niklas-Carlsson/ASoC-adau1761-Ensure-DSP_RUN-and-DSP_ENABLE-are-disabled/20181130-061515
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 
for-next
config: nds32-allyesconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 6.4.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
GCC_VERSION=6.4.0 make.cross ARCH=nds32 

All errors (new ones prefixed by >>):

   sound/soc//codecs/adau1761.c: In function 'adau1761_set_bias_level':
>> sound/soc//codecs/adau1761.c:484:8: error: implicit declaration of function 
>> 'adau17x1_has_dsp' [-Werror=implicit-function-declaration]
   if (adau17x1_has_dsp(adau)) {
   ^~~~
   cc1: some warnings being treated as errors

vim +/adau17x1_has_dsp +484 sound/soc//codecs/adau1761.c

   447  
   448  static int adau1761_set_bias_level(struct snd_soc_component *component,
   449   enum snd_soc_bias_level level)
   450  {
   451  struct adau *adau = snd_soc_component_get_drvdata(component);
   452  
   453  switch (level) {
   454  case SND_SOC_BIAS_ON:
   455  break;
   456  case SND_SOC_BIAS_PREPARE:
   457  break;
   458  case SND_SOC_BIAS_STANDBY:
   459  regcache_cache_only(adau->regmap, false);
   460  regmap_update_bits(adau->regmap, ADAU17X1_CLOCK_CONTROL,
   461  ADAU17X1_CLOCK_CONTROL_SYSCLK_EN,
   462  ADAU17X1_CLOCK_CONTROL_SYSCLK_EN);
   463  if (snd_soc_component_get_bias_level(component) ==
   464  SND_SOC_BIAS_OFF) {
   465  /*
   466   * When going OFF -> STANDBY, the device can be 
in two
   467   * states:
   468   * 1) Power-cycled and reset
   469   * 2) Soft reboot
   470   * In the case of soft reboot, we need to sync 
the HW
   471   * registers even if our regmap reports default 
values.
   472   * Marking the cache as dirty ensures that both 
cases
   473   * are handled.
   474   */
   475  regcache_mark_dirty(adau->regmap);
   476  regcache_sync(adau->regmap);
   477  /*
   478   * In order for FW to load correctly, the 
device needs
   479   * DSP_RUN and DSP_ENABLE to be 0. This might 
not be the
   480   * case for soft reboots. Ensure that DSP_RUN 
and
   481   * DSP_ENABLE is 0 by bypassing the cache and 
write
   482   * directly to HW when going OFF -> STANDBY.
   483   */
 > 484  if (adau17x1_has_dsp(adau)) {
   485  regcache_cache_bypass(adau->regmap, 
true);
   486  regmap_write(adau->regmap, 
ADAU17X1_DSP_RUN, 0);
   487  regmap_write(adau->regmap,
   488  ADAU17X1_DSP_ENABLE, 0);
   489  regcache_cache_bypass(adau->regmap, 
false);
   490  }
   491  }
   492  break;
   493  case SND_SOC_BIAS_OFF:
   494  regmap_update_bits(adau->regmap, ADAU17X1_CLOCK_CONTROL,
   495  ADAU17X1_CLOCK_CONTROL_SYSCLK_EN, 0);
   496  regcache_cache_only(adau->regmap, true);
   497  break;
   498  
   499  }
   500  return 0;
   501  }
   502  

---
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] signal: add procfd_send_signal() syscall

2018-12-05 Thread kbuild test robot
Hi Christian,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc5]
[cannot apply to next-20181205]
[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/Christian-Brauner/signal-add-procfd_send_signal-syscall/20181205-174512
config: sh-titan_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
GCC_VERSION=7.2.0 make.cross ARCH=sh 

All warnings (new ones prefixed by >>):

   :1317:2: warning: #warning syscall pkey_mprotect not implemented 
[-Wcpp]
   :1320:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp]
   :1323:2: warning: #warning syscall pkey_free not implemented [-Wcpp]
   :1326:2: warning: #warning syscall statx not implemented [-Wcpp]
   :1332:2: warning: #warning syscall io_pgetevents not implemented 
[-Wcpp]
   :1335:2: warning: #warning syscall rseq not implemented [-Wcpp]
>> :1338:2: warning: #warning syscall procfd_send_signal not implemented 
>> [-Wcpp]

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


.config.gz
Description: application/gzip


Re: [PATCH] clk: rockchip: add clock gate of ACODEC for rk3328

2018-12-05 Thread kbuild test robot
Hi Katsuhiro,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on rockchip/for-next]
[also build test ERROR on v4.20-rc5]
[cannot apply to next-20181204]
[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/Katsuhiro-Suzuki/clk-rockchip-add-clock-gate-of-ACODEC-for-rk3328/20181126-085855
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git 
for-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
GCC_VERSION=7.2.0 make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   In file included from drivers/clk/rockchip/clk-rk3328.c:21:0:
>> drivers/clk/rockchip/clk-rk3328.c:807:7: error: 'PCLK_ACODECPHY' undeclared 
>> here (not in a function); did you mean 'PCLK_HDMIPHY'?
 GATE(PCLK_ACODECPHY, "pclk_acodecphy", "pclk_phy_pre", 0, 
RK3328_CLKGATE_CON(17), 5, GFLAGS),
  ^
   drivers/clk/rockchip/clk.h:666:10: note: in definition of macro 'GATE'
  .id  = _id,\
 ^~~

vim +807 drivers/clk/rockchip/clk-rk3328.c

   242  
   243  static struct rockchip_clk_branch rk3328_i2s0_fracmux __initdata =
   244  MUX(0, "i2s0_pre", mux_i2s0_p, CLK_SET_RATE_PARENT,
   245  RK3328_CLKSEL_CON(6), 8, 2, MFLAGS);
   246  
   247  static struct rockchip_clk_branch rk3328_i2s1_fracmux __initdata =
   248  MUX(0, "i2s1_pre", mux_i2s1_p, CLK_SET_RATE_PARENT,
   249  RK3328_CLKSEL_CON(8), 8, 2, MFLAGS);
   250  
   251  static struct rockchip_clk_branch rk3328_i2s2_fracmux __initdata =
   252  MUX(0, "i2s2_pre", mux_i2s2_p, CLK_SET_RATE_PARENT,
   253  RK3328_CLKSEL_CON(10), 8, 2, MFLAGS);
   254  
   255  static struct rockchip_clk_branch rk3328_spdif_fracmux __initdata =
   256  MUX(SCLK_SPDIF, "sclk_spdif", mux_spdif_p, CLK_SET_RATE_PARENT,
   257  RK3328_CLKSEL_CON(12), 8, 2, MFLAGS);
   258  
   259  static struct rockchip_clk_branch rk3328_uart0_fracmux __initdata =
   260  MUX(SCLK_UART0, "sclk_uart0", mux_uart0_p, CLK_SET_RATE_PARENT,
   261  RK3328_CLKSEL_CON(14), 8, 2, MFLAGS);
   262  
   263  static struct rockchip_clk_branch rk3328_uart1_fracmux __initdata =
   264  MUX(SCLK_UART1, "sclk_uart1", mux_uart1_p, CLK_SET_RATE_PARENT,
   265  RK3328_CLKSEL_CON(16), 8, 2, MFLAGS);
   266  
   267  static struct rockchip_clk_branch rk3328_uart2_fracmux __initdata =
   268  MUX(SCLK_UART2, "sclk_uart2", mux_uart2_p, CLK_SET_RATE_PARENT,
   269  RK3328_CLKSEL_CON(18), 8, 2, MFLAGS);
   270  
   271  static struct rockchip_clk_branch rk3328_clk_branches[] __initdata = {
   272  /*
   273   * Clock-Architecture Diagram 1
   274   */
   275  
   276  DIV(0, "clk_24m", "xin24m", CLK_IGNORE_UNUSED,
   277  RK3328_CLKSEL_CON(2), 8, 5, DFLAGS),
   278  COMPOSITE(SCLK_RTC32K, "clk_rtc32k", mux_2plls_xin24m_p, 0,
   279  RK3328_CLKSEL_CON(38), 14, 2, MFLAGS, 0, 14, 
DFLAGS,
   280  RK3328_CLKGATE_CON(0), 11, GFLAGS),
   281  
   282  /* PD_MISC */
   283  MUX(HDMIPHY, "hdmiphy", mux_hdmiphy_p, CLK_SET_RATE_PARENT,
   284  RK3328_MISC_CON, 13, 1, MFLAGS),
   285  MUX(USB480M, "usb480m", mux_usb480m_p, CLK_SET_RATE_PARENT,
   286  RK3328_MISC_CON, 15, 1, MFLAGS),
   287  
   288  /*
   289   * Clock-Architecture Diagram 2
   290   */
   291  
   292  /* PD_CORE */
   293  GATE(0, "apll_core", "apll", CLK_IGNORE_UNUSED,
   294  RK3328_CLKGATE_CON(0), 0, GFLAGS),
   295  GATE(0, "gpll_core", "gpll", CLK_IGNORE_UNUSED,
   296  RK3328_CLKGATE_CON(0), 2, GFLAGS),
   297  GATE(0, "dpll_core", "dpll", CLK_IGNORE_UNUSED,
   298  RK3328_CLKGATE_CON(0), 1, GFLAGS),
   299  GATE(0, "npll_core", "npll", CLK_IGNORE_UNUSED,
   300  RK3328_CLKGATE_CON(0), 12, GFLAGS),
   301  COMPOSITE_NOMUX(0, "pclk_dbg", "armclk", CLK_IGNORE_UNUSED,
   302  RK3328_CLKSEL_CON(1), 0, 4, DFLAGS | 
CLK_DIVIDER_READ_ONLY,
   303  RK3328_CLKGATE_CON(7), 0, GFLAGS),
   304  COMPOSITE_NOMUX(0, "aclk_core", "armclk", CLK_IGNORE_UNUSED,
   305  RK3328_CLKSEL_CON(1), 4, 3, DFLAGS | 
CLK_DIVIDER_READ_ONLY,
   306  RK3328_CLKGATE_CON(7), 1, GFLAGS),
   307 

Re: [PATCH v5 2/2] rtc: support for the Amlogic Meson RTC

2018-12-05 Thread kbuild test robot
Hi Martin,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on abelloni/rtc-next]
[also build test ERROR on v4.20-rc5 next-20181204]
[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/Martin-Blumenstingl/Amlogic-Meson6-8-8b-8m2-SoC-RTC-driver/20181204-002803
base:   https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git 
rtc-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
GCC_VERSION=7.2.0 make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   drivers/rtc/rtc-meson.c: In function 'meson_rtc_probe':
>> drivers/rtc/rtc-meson.c:288:11: error: 'SZ_16' undeclared (first use in this 
>> function); did you mean 'SF_L6'?
  .size = SZ_16,
  ^
  SF_L6
   drivers/rtc/rtc-meson.c:288:11: note: each undeclared identifier is reported 
only once for each function it appears in

vim +288 drivers/rtc/rtc-meson.c

   281  
   282  static int meson_rtc_probe(struct platform_device *pdev)
   283  {
   284  struct nvmem_config meson_rtc_nvmem_config = {
   285  .name = "meson-rtc-regmem",
   286  .word_size = 4,
   287  .stride = 4,
 > 288  .size = SZ_16,
   289  .reg_read = meson_rtc_regmem_read,
   290  .reg_write = meson_rtc_regmem_write,
   291  };
   292  struct device *dev = >dev;
   293  struct meson_rtc *rtc;
   294  struct resource *res;
   295  void __iomem *base;
   296  int ret;
   297  u32 tm;
   298  
   299  rtc = devm_kzalloc(dev, sizeof(struct meson_rtc), GFP_KERNEL);
   300  if (!rtc)
   301  return -ENOMEM;
   302  
   303  rtc->rtc = devm_rtc_allocate_device(dev);
   304  if (IS_ERR(rtc->rtc))
   305  return PTR_ERR(rtc->rtc);
   306  
   307  platform_set_drvdata(pdev, rtc);
   308  
   309  rtc->dev = dev;
   310  
   311  rtc->rtc->ops = _rtc_ops;
   312  rtc->rtc->range_max = U32_MAX;
   313  
   314  res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
   315  base = devm_ioremap_resource(dev, res);
   316  if (IS_ERR(base))
   317  return PTR_ERR(base);
   318  
   319  rtc->peripheral = devm_regmap_init_mmio(dev, base,
   320  
_rtc_peripheral_regmap_config);
   321  if (IS_ERR(rtc->peripheral)) {
   322  dev_err(dev, "failed to create peripheral regmap\n");
   323  return PTR_ERR(rtc->peripheral);
   324  }
   325  
   326  rtc->reset = devm_reset_control_get(dev, NULL);
   327  if (IS_ERR(rtc->reset)) {
   328  dev_err(dev, "missing reset line\n");
   329  return PTR_ERR(rtc->reset);
   330  }
   331  
   332  rtc->vdd = devm_regulator_get(dev, "vdd");
   333  if (IS_ERR(rtc->vdd)) {
   334  dev_err(dev, "failed to get the vdd-supply\n");
   335  return PTR_ERR(rtc->vdd);
   336  }
   337  
   338  ret = regulator_enable(rtc->vdd);
   339  if (ret) {
   340  dev_err(dev, "failed to enable vdd-supply\n");
   341  return ret;
   342  }
   343  
   344  ret = meson_rtc_write_static(rtc, MESON_STATIC_DEFAULT);
   345  if (ret) {
   346  dev_err(dev, "failed to set static values\n");
   347  goto out_disable_vdd;
   348  }
   349  
   350  rtc->serial = devm_regmap_init(dev, _rtc_serial_bus, rtc,
   351 _rtc_serial_regmap_config);
   352  if (IS_ERR(rtc->serial)) {
   353  dev_err(dev, "failed to create serial regmap\n");
   354  ret = PTR_ERR(rtc->serial);
   355  goto out_disable_vdd;
   356  }
   357  
   358  /*
   359   * check if we can read RTC counter, if not then the RTC is 
probably
   360   * not functional. If it isn't probably best to not bind.
   361   */
   362  ret = regmap_read(rtc->serial, RTC_COUNTER, );
   363  if (ret) {
   364  dev_err(dev, "cannot read RTC counter, RTC not 
functional\n");
   365  goto out_disable_vdd;
   366  }
   367  
   368  meson_rtc_nvmem_config.priv = rtc;
   369  ret = rtc_nvmem_register(rtc->rtc, _rtc_nvmem_config);
   370  if (ret)
   371  goto 

drivers/mfd/madera-core.c:158:2-3: Unneeded semicolon

2018-12-05 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   0072a0c14d5b7cb72c611d396f143f5dcd73ebe2
commit: b04e68d16605dcde1c21b5df5f86a5372e53ae97 mfd: madera: Don't use 
regmap_read_poll_timeout to poll for BOOT_DONE
date:   6 weeks ago


coccinelle warnings: (new ones prefixed by >>)

>> drivers/mfd/madera-core.c:158:2-3: Unneeded semicolon

vim +158 drivers/mfd/madera-core.c

   137  
   138  static int madera_wait_for_boot(struct madera *madera)
   139  {
   140  ktime_t timeout;
   141  unsigned int val;
   142  int ret = 0;
   143  
   144  /*
   145   * We can't use an interrupt as we need to runtime resume to do 
so,
   146   * so we poll the status bit. This won't race with the interrupt
   147   * handler because it will be blocked on runtime resume.
   148   * The chip could NAK a read request while it is booting so 
ignore
   149   * errors from regmap_read.
   150   */
   151  timeout = ktime_add_us(ktime_get(), 
MADERA_BOOT_POLL_TIMEOUT_USEC);
   152  regmap_read(madera->regmap, MADERA_IRQ1_RAW_STATUS_1, );
   153  while (!(val & MADERA_BOOT_DONE_STS1) &&
   154 !ktime_after(ktime_get(), timeout)) {
   155  usleep_range(MADERA_BOOT_POLL_INTERVAL_USEC / 2,
   156   MADERA_BOOT_POLL_INTERVAL_USEC);
   157  regmap_read(madera->regmap, MADERA_IRQ1_RAW_STATUS_1, 
);
 > 158  };
   159  
   160  if (!(val & MADERA_BOOT_DONE_STS1)) {
   161  dev_err(madera->dev, "Polling BOOT_DONE_STS timed 
out\n");
   162  ret = -ETIMEDOUT;
   163  }
   164  
   165  /*
   166   * BOOT_DONE defaults to unmasked on boot so we must ack it.
   167   * Do this even after a timeout to avoid interrupt storms.
   168   */
   169  regmap_write(madera->regmap, MADERA_IRQ1_STATUS_1,
   170   MADERA_BOOT_DONE_EINT1);
   171  
   172  pm_runtime_mark_last_busy(madera->dev);
   173  
   174  return ret;
   175  }
   176  

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


Re: [PATCH v9 2/4] seccomp: switch system call argument type to void *

2018-12-03 Thread kbuild test robot
Hi Tycho,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc5 next-20181203]
[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/Tycho-Andersen/seccomp-hoist-struct-seccomp_data-recalculation-higher/20181204-013450
config: i386-randconfig-x005-201848 (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 >>):

   In file included from kernel/seccomp.c:28:0:
>> include/linux/syscalls.h:239:18: error: conflicting types for 'sys_seccomp'
 asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
 ^
   include/linux/syscalls.h:225:2: note: in expansion of macro 
'__SYSCALL_DEFINEx'
 __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
 ^
   include/linux/syscalls.h:216:36: note: in expansion of macro 
'SYSCALL_DEFINEx'
#define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
   ^~~
   kernel/seccomp.c:946:1: note: in expansion of macro 'SYSCALL_DEFINE3'
SYSCALL_DEFINE3(seccomp, unsigned int, op, unsigned int, flags,
^~~
   In file included from kernel/seccomp.c:28:0:
   include/linux/syscalls.h:881:17: note: previous declaration of 'sys_seccomp' 
was here
asmlinkage long sys_seccomp(unsigned int op, unsigned int flags,
^~~

vim +/sys_seccomp +239 include/linux/syscalls.h

1bd21c6c2 Dominik Brodowski   2018-04-05  228  
e145242ea Dominik Brodowski   2018-04-09  229  /*
e145242ea Dominik Brodowski   2018-04-09  230   * The asmlinkage stub is 
aliased to a function named __se_sys_*() which
e145242ea Dominik Brodowski   2018-04-09  231   * sign-extends 32-bit ints to 
longs whenever needed. The actual work is
e145242ea Dominik Brodowski   2018-04-09  232   * done within __do_sys_*().
e145242ea Dominik Brodowski   2018-04-09  233   */
1bd21c6c2 Dominik Brodowski   2018-04-05  234  #ifndef __SYSCALL_DEFINEx
bed1ffca0 Frederic Weisbecker 2009-03-13  235  #define __SYSCALL_DEFINEx(x, 
name, ...)  \
bee200317 Arnd Bergmann   2018-06-19  236   __diag_push();  
\
bee200317 Arnd Bergmann   2018-06-19  237   __diag_ignore(GCC, 8, 
"-Wattribute-alias",  \
bee200317 Arnd Bergmann   2018-06-19  238 "Type aliasing is 
used to sanitize syscall arguments");\
83460ec8d Andi Kleen  2013-11-12 @239   asmlinkage long 
sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))   \
e145242ea Dominik Brodowski   2018-04-09  240   
__attribute__((alias(__stringify(__se_sys##name;\
c9a211951 Howard McLauchlan   2018-03-21  241   
ALLOW_ERROR_INJECTION(sys##name, ERRNO);\
e145242ea Dominik Brodowski   2018-04-09  242   static inline long 
__do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__));\
e145242ea Dominik Brodowski   2018-04-09  243   asmlinkage long 
__se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \
e145242ea Dominik Brodowski   2018-04-09  244   asmlinkage long 
__se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__))  \
1a94bc347 Heiko Carstens  2009-01-14  245   {   
\
e145242ea Dominik Brodowski   2018-04-09  246   long ret = 
__do_sys##name(__MAP(x,__SC_CAST,__VA_ARGS__));\
07fe6e00f Al Viro 2013-01-21  247   
__MAP(x,__SC_TEST,__VA_ARGS__); \
2cf096668 Al Viro 2013-01-21  248   __PROTECT(x, 
ret,__MAP(x,__SC_ARGS,__VA_ARGS__));   \
2cf096668 Al Viro 2013-01-21  249   return ret; 
\
1a94bc347 Heiko Carstens  2009-01-14  250   }   
\
bee200317 Arnd Bergmann   2018-06-19  251   __diag_pop();   
\
e145242ea Dominik Brodowski   2018-04-09  252   static inline long 
__do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__))
1bd21c6c2 Dominik Brodowski   2018-04-05  253  #endif /* __SYSCALL_DEFINEx */
1a94bc347 Heiko Carstens  2009-01-14  254  

:: The code at line 239 was first introduced by commit
:: 83460ec8dcac14142e7860a01fa59c267ac4657c syscalls.h: use gcc alias 
instead of assembler aliases for syscalls

:: TO: Andi Kleen 
:: 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


Re: [PATCH v1 2/2] mtd: spi-nor: add NPCM FIU controller driver

2018-12-03 Thread kbuild test robot
Hi Tomer,

I love your patch! Yet something to improve:

[auto build test ERROR on mtd/spi-nor/next]
[also build test ERROR on v4.20-rc5 next-20181203]
[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/Tomer-Maimon/dt-binding-mtd-add-NPCM-FIU-controller/20181203-201804
base:   git://git.infradead.org/linux-mtd.git spi-nor/next
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/mtd/spi-nor/npcm-fiu.c:25:10: fatal error: asm/sizes.h: No such file 
>> or directory
#include 
 ^
   compilation terminated.

vim +25 drivers/mtd/spi-nor/npcm-fiu.c

24  
  > 25  #include 
26  #include 
27  

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


.config.gz
Description: application/gzip


ERROR: "__udivdi3" [drivers/md/dm-thin-pool.ko] undefined!

2018-12-02 Thread kbuild test robot
Hi Joe,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   4b78317679c4f3782a3cff0ddb269c1fcfde7621
commit: 3ab91828166895600efd9cdc3a0eb32001f7204a dm thin metadata: try to avoid 
ever aborting transactions
date:   3 months ago
config: i386-randconfig-j0-12020939 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout 3ab91828166895600efd9cdc3a0eb32001f7204a
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

>> ERROR: "__udivdi3" [drivers/md/dm-thin-pool.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 1/1] stackleak: Register the 'stackleak_cleanup' pass before the 'mach' pass

2018-12-02 Thread kbuild test robot
Hi Alexander,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc4 next-20181130]
[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/Alexander-Popov/stackleak-Register-the-stackleak_cleanup-pass-before-the-mach-pass/20181201-092818
config: x86_64-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=x86_64 

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

>> drivers/scsi/fnic/fnic_fcs.c:38:37: error: invalid initializer
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   drivers/scsi/fnic/cq_enet_desc.h:142:39: warning: restricted __le16 degrades 
to integer
   include/scsi/fc/fc_fcoe.h:101:36: warning: cast truncates bits from constant 
value (efc becomes fc)
   include/scsi/fc/fc_fcoe.h:102:23: warning: cast truncates bits from constant 
value (efc00 becomes 0)
   drivers/scsi/fnic/fnic_fcs.c:1316:6: warning: context imbalance in 
'fnic_handle_fip_timer' - different lock contexts for basic block
--
   drivers/soc/qcom/smem.c:413:16: warning: incorrect type in assignment 
(different address spaces)
   drivers/soc/qcom/smem.c:413:16:expected struct smem_header *header
   drivers/soc/qcom/smem.c:413:16:got void [noderef] *virt_base
   drivers/soc/qcom/smem.c:498:16: warning: incorrect type in assignment 
(different address spaces)
   drivers/soc/qcom/smem.c:498:16:expected struct smem_header *header
   drivers/soc/qcom/smem.c:498:16:got void [noderef] *virt_base
   drivers/soc/qcom/smem.c:511:50: warning: incorrect type in return expression 
(different address spaces)
   drivers/soc/qcom/smem.c:511:50:expected void *
   drivers/soc/qcom/smem.c:511:50:got void [noderef] *
   drivers/soc/qcom/smem.c:646:24: warning: incorrect type in assignment 
(different address spaces)
   drivers/soc/qcom/smem.c:646:24:expected struct smem_header *header
   drivers/soc/qcom/smem.c:646:24:got void [noderef] *virt_base
>> drivers/soc/qcom/smem.c:668:23: error: incompatible types in comparison 
>> expression (different address spaces)
   drivers/soc/qcom/smem.c:670:23: error: incompatible types in comparison 
expression (different address spaces)
>> drivers/soc/qcom/smem.c:671:40: error: subtraction of different types can't 
>> work (different address spaces)
   drivers/soc/qcom/smem.c:686:16: warning: incorrect type in assignment 
(different address spaces)
   drivers/soc/qcom/smem.c:686:16:expected struct smem_header *header
   drivers/soc/qcom/smem.c:686:16:got void [noderef] *virt_base
   drivers/soc/qcom/smem.c:697:16: warning: incorrect type in assignment 
(different address spaces)
   drivers/soc/qcom/smem.c:697:16:expected struct smem_ptable *ptable
   drivers/soc/qcom/smem.c:697:16:got void [noderef] *
   drivers/soc/qcom/smem.c:719:57: warning: restricted __le32 degrades to 
integer
   drivers/soc/qcom/smem.c:738:16: warning: incorrect type in assignment 
(different address spaces)
   drivers/soc/qcom/smem.c:738:16:expected struct smem_partition_header 
*header
   drivers/soc/qcom/smem.c:738:16:got void [noderef] *
   drivers/soc/qcom/smem.c:933:16: warning: incorrect type in assignment 
(different address spaces)
   drivers/soc/qcom/smem.c:933:16:expected struct smem_header *header
   drivers/soc/qcom/smem.c:933:16:got void [noderef] *virt_base
--
   kernel//trace/ftrace.c:1073:43:expected struct ftrace_hash [noderef] 
*filter_hash
   kernel//trace/ftrace.c:1073:43:got struct ftrace_hash *
   include/linux/slab.h:332:43: warning: dubious: x & !y
   kernel//trace/ftrace.c:1295:40: warning: incorrect type in argument 1 
(different address spaces)
   kernel//trace/ftrace.c:1295:40:expected struct ftrace_hash *hash
   kernel//trace/ftrace.c:1295:40:got struct ftrace_hash [noderef] 
*filter_hash
   kernel//trace/ftrace.c:1296:40: warning: incorrect type in argument 1 
(different address spaces)
   kernel//trace/ftrace.c:1296:40:expected struct ftrace_hash *hash
   kernel//trace/ftrace.c:1296:40:got struct ftrace_hash [noderef] 
*notrace_hash
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   kernel//trace/ftrace.c:1957:54: warning: incorrect type in initializer 
(different address spaces)
   kernel//trace/ftrace.c:1957:54:expected struct ftrace_hash *old_hash
   kernel//trace/ftrace.c:1957:54:got struct ftrace_hash [noderef] 
*filter_hash
   kernel//trace/ftrace.c:1488:39: warning: incorrect type in argument 1 
(different address spaces)
   kernel//trace/ftrace.c:1488:39:expected struct ftrace_hash *hash
   kernel//trace/ftrace.c:1488:39:got struct 

Re: [PATCH v2 -next] platform/x86: intel-ips: fix 'passing zero to PTR_ERR()' warning

2018-12-01 Thread kbuild test robot
Hi YueHaibing,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on next-20181126]

url:
https://github.com/0day-ci/linux/commits/YueHaibing/platform-x86-intel-ips-fix-passing-zero-to-PTR_ERR-warning/20181126-213205
config: x86_64-rhel-7.2-clear (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=x86_64 

All errors (new ones prefixed by >>):

   drivers/platform/x86/intel_ips.c: In function 'ips_debugfs_init':
>> drivers/platform/x86/intel_ips.c:1315:3: error: expected ';' before 'return'
  return;
  ^~

vim +1315 drivers/platform/x86/intel_ips.c

aa7ffc01 Jesse Barnes 2010-05-14  1307  
aa7ffc01 Jesse Barnes 2010-05-14  1308  static void ips_debugfs_init(struct 
ips_driver *ips)
aa7ffc01 Jesse Barnes 2010-05-14  1309  {
aa7ffc01 Jesse Barnes 2010-05-14  1310  int i;
aa7ffc01 Jesse Barnes 2010-05-14  1311  
aa7ffc01 Jesse Barnes 2010-05-14  1312  ips->debug_root = 
debugfs_create_dir("ips", NULL);
aa7ffc01 Jesse Barnes 2010-05-14  1313  if (!ips->debug_root) {
895c026e YueHaibing   2018-11-26  1314  dev_err(ips->dev, 
"failed to create debugfs entries\n")
aa7ffc01 Jesse Barnes 2010-05-14 @1315  return;
aa7ffc01 Jesse Barnes 2010-05-14  1316  }
aa7ffc01 Jesse Barnes 2010-05-14  1317  
aa7ffc01 Jesse Barnes 2010-05-14  1318  for (i = 0; i < 
ARRAY_SIZE(ips_debug_files); i++) {
aa7ffc01 Jesse Barnes 2010-05-14  1319  struct dentry *ent;
aa7ffc01 Jesse Barnes 2010-05-14  1320  struct ips_debugfs_node 
*node = _debug_files[i];
aa7ffc01 Jesse Barnes 2010-05-14  1321  
aa7ffc01 Jesse Barnes 2010-05-14  1322  node->ips = ips;
aa7ffc01 Jesse Barnes 2010-05-14  1323  ent = 
debugfs_create_file(node->name, S_IFREG | S_IRUGO,
aa7ffc01 Jesse Barnes 2010-05-14  1324  
  ips->debug_root, node,
aa7ffc01 Jesse Barnes 2010-05-14  1325  
  _debugfs_ops);
aa7ffc01 Jesse Barnes 2010-05-14  1326  if (!ent) {
895c026e YueHaibing   2018-11-26  1327  
dev_err(ips->dev, "failed to create debug file\n");
aa7ffc01 Jesse Barnes 2010-05-14  1328  goto 
err_cleanup;
aa7ffc01 Jesse Barnes 2010-05-14  1329  }
aa7ffc01 Jesse Barnes 2010-05-14  1330  }
aa7ffc01 Jesse Barnes 2010-05-14  1331  
aa7ffc01 Jesse Barnes 2010-05-14  1332  return;
aa7ffc01 Jesse Barnes 2010-05-14  1333  
aa7ffc01 Jesse Barnes 2010-05-14  1334  err_cleanup:
aa7ffc01 Jesse Barnes 2010-05-14  1335  ips_debugfs_cleanup(ips);
aa7ffc01 Jesse Barnes 2010-05-14  1336  return;
aa7ffc01 Jesse Barnes 2010-05-14  1337  }
aa7ffc01 Jesse Barnes 2010-05-14  1338  #endif /* CONFIG_DEBUG_FS */
aa7ffc01 Jesse Barnes 2010-05-14  1339  

:: The code at line 1315 was first introduced by commit
:: aa7ffc01d254c91a36bf854d57a14049c6134c72 x86 platform driver: 
intelligent power sharing driver

:: TO: Jesse Barnes 
:: CC: Matthew Garrett 

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


.config.gz
Description: application/gzip


Re: [PATCH] mtd: remove DEBUGFS_RO_ATTR()

2018-12-01 Thread kbuild test robot
Hi Yangtao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on mtd/master]
[also build test ERROR on v4.20-rc4 next-20181130]
[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/Yangtao-Li/mtd-remove-DEBUGFS_RO_ATTR/20181202-065958
base:   git://git.infradead.org/linux-mtd.git master
config: nds32-allyesconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 6.4.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
GCC_VERSION=6.4.0 make.cross ARCH=nds32 

All errors (new ones prefixed by >>):

   drivers/mtd/devices/docg3.c:1679:1: warning: data definition has no type or 
storage class
DEBUGFS_RO_ATTR(device_id, dbg_device_id_show);
^~~
   drivers/mtd/devices/docg3.c:1679:1: error: type defaults to 'int' in 
declaration of 'DEBUGFS_RO_ATTR' [-Werror=implicit-int]
   drivers/mtd/devices/docg3.c:1679:1: warning: parameter names (without types) 
in function declaration
   drivers/mtd/devices/docg3.c: In function 'doc_dbg_register':
>> drivers/mtd/devices/docg3.c:1752:9: error: 'device_id_fops' undeclared 
>> (first use in this function)
   _id_fops);
^~
   drivers/mtd/devices/docg3.c:1752:9: note: each undeclared identifier is 
reported only once for each function it appears in
   At top level:
   drivers/mtd/devices/docg3.c:1667:12: warning: 'dbg_device_id_show' defined 
but not used [-Wunused-function]
static int dbg_device_id_show(struct seq_file *s, void *p)
   ^~
   cc1: some warnings being treated as errors

vim +/device_id_fops +1752 drivers/mtd/devices/docg3.c

efa2ca73 Robert Jarzmik  2011-10-05  1666  
efa2ca73 Robert Jarzmik  2011-10-05  1667  static int dbg_device_id_show(struct 
seq_file *s, void *p)
efa2ca73 Robert Jarzmik  2011-10-05  1668  {
efa2ca73 Robert Jarzmik  2011-10-05  1669   struct docg3 *docg3 = (struct 
docg3 *)s->private;
7b0e67f6 Robert Jarzmik  2012-03-22  1670   int id;
7b0e67f6 Robert Jarzmik  2012-03-22  1671  
7b0e67f6 Robert Jarzmik  2012-03-22  1672   
mutex_lock(>cascade->lock);
7b0e67f6 Robert Jarzmik  2012-03-22  1673   id = doc_register_readb(docg3, 
DOC_DEVICESELECT);
7b0e67f6 Robert Jarzmik  2012-03-22  1674   
mutex_unlock(>cascade->lock);
efa2ca73 Robert Jarzmik  2011-10-05  1675  
8c98d255 Joe Perches 2014-09-29  1676   seq_printf(s, "DeviceId = 
%d\n", id);
8c98d255 Joe Perches 2014-09-29  1677   return 0;
efa2ca73 Robert Jarzmik  2011-10-05  1678  }
efa2ca73 Robert Jarzmik  2011-10-05 @1679  DEBUGFS_RO_ATTR(device_id, 
dbg_device_id_show);
efa2ca73 Robert Jarzmik  2011-10-05  1680  
34e778aa Yangtao Li  2018-12-01  1681  static int protection_show(struct 
seq_file *s, void *p)
efa2ca73 Robert Jarzmik  2011-10-05  1682  {
efa2ca73 Robert Jarzmik  2011-10-05  1683   struct docg3 *docg3 = (struct 
docg3 *)s->private;
dbc26d98 Robert Jarzmik  2011-11-19  1684   int protect, dps0, dps0_low, 
dps0_high, dps1, dps1_low, dps1_high;
dbc26d98 Robert Jarzmik  2011-11-19  1685  
7b0e67f6 Robert Jarzmik  2012-03-22  1686   
mutex_lock(>cascade->lock);
dbc26d98 Robert Jarzmik  2011-11-19  1687   protect = 
doc_register_readb(docg3, DOC_PROTECTION);
dbc26d98 Robert Jarzmik  2011-11-19  1688   dps0 = 
doc_register_readb(docg3, DOC_DPS0_STATUS);
dbc26d98 Robert Jarzmik  2011-11-19  1689   dps0_low = 
doc_register_readw(docg3, DOC_DPS0_ADDRLOW);
dbc26d98 Robert Jarzmik  2011-11-19  1690   dps0_high = 
doc_register_readw(docg3, DOC_DPS0_ADDRHIGH);
dbc26d98 Robert Jarzmik  2011-11-19  1691   dps1 = 
doc_register_readb(docg3, DOC_DPS1_STATUS);
dbc26d98 Robert Jarzmik  2011-11-19  1692   dps1_low = 
doc_register_readw(docg3, DOC_DPS1_ADDRLOW);
dbc26d98 Robert Jarzmik  2011-11-19  1693   dps1_high = 
doc_register_readw(docg3, DOC_DPS1_ADDRHIGH);
7b0e67f6 Robert Jarzmik  2012-03-22  1694   
mutex_unlock(>cascade->lock);
efa2ca73 Robert Jarzmik  2011-10-05  1695  
8c98d255 Joe Perches 2014-09-29  1696   seq_printf(s, "Protection = 
0x%02x (", protect);
efa2ca73 Robert Jarzmik  2011-10-05  1697   if (protect & 
DOC_PROTECT_FOUNDRY_OTP_LOCK)
8c98d255 Joe Perches 2014-09-29  1698   seq_puts(s, 
"FOUNDRY_OTP_LOCK,");
efa2ca73 Robert Jarzmik  2011-10-05  1699   if (protect & 
DOC_PROTECT_CUSTOMER_OTP_LOCK)
8c98d255 Joe Perches 2014-09-29  1700   seq_puts(s, 
"CUSTOMER_OTP_LOCK,");
efa2ca73 Robert Jarzmik  2011-10-05  1701   if (protect & 
DOC_PROTECT_LOCK_INPUT)
8c98d255 Joe Perches 2014-09-29  1702   seq_puts(s, 
"LOCK_INPUT,");
efa2ca73 Robert Jarzmik  2011-10-05  1703   if (protect & 
DOC_PROTECT_STICKY_LOCK)
8c98d255 Joe Perches 2014-09-29  1704 

Re: [PATCH] mtd: remove DEBUGFS_RO_ATTR()

2018-12-01 Thread kbuild test robot
Hi Yangtao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on mtd/master]
[also build test ERROR on v4.20-rc4 next-20181130]
[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/Yangtao-Li/mtd-remove-DEBUGFS_RO_ATTR/20181202-065958
base:   git://git.infradead.org/linux-mtd.git master
config: x86_64-randconfig-x013-201848 (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=x86_64 

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

>> drivers/mtd/devices/docg3.c:1679:1: warning: data definition has no type or 
>> storage class
DEBUGFS_RO_ATTR(device_id, dbg_device_id_show);
^~~
>> drivers/mtd/devices/docg3.c:1679:1: error: type defaults to 'int' in 
>> declaration of 'DEBUGFS_RO_ATTR' [-Werror=implicit-int]
>> drivers/mtd/devices/docg3.c:1679:1: warning: parameter names (without types) 
>> in function declaration
   drivers/mtd/devices/docg3.c: In function 'doc_dbg_register':
>> drivers/mtd/devices/docg3.c:1752:9: error: 'device_id_fops' undeclared 
>> (first use in this function); did you mean 'device_add_groups'?
   _id_fops);
^~
device_add_groups
   drivers/mtd/devices/docg3.c:1752:9: note: each undeclared identifier is 
reported only once for each function it appears in
   At top level:
   drivers/mtd/devices/docg3.c:1667:12: warning: 'dbg_device_id_show' defined 
but not used [-Wunused-function]
static int dbg_device_id_show(struct seq_file *s, void *p)
   ^~
   cc1: some warnings being treated as errors

vim +1679 drivers/mtd/devices/docg3.c

efa2ca73 Robert Jarzmik  2011-10-05  1666  
efa2ca73 Robert Jarzmik  2011-10-05  1667  static int dbg_device_id_show(struct 
seq_file *s, void *p)
efa2ca73 Robert Jarzmik  2011-10-05  1668  {
efa2ca73 Robert Jarzmik  2011-10-05  1669   struct docg3 *docg3 = (struct 
docg3 *)s->private;
7b0e67f6 Robert Jarzmik  2012-03-22  1670   int id;
7b0e67f6 Robert Jarzmik  2012-03-22  1671  
7b0e67f6 Robert Jarzmik  2012-03-22  1672   
mutex_lock(>cascade->lock);
7b0e67f6 Robert Jarzmik  2012-03-22  1673   id = doc_register_readb(docg3, 
DOC_DEVICESELECT);
7b0e67f6 Robert Jarzmik  2012-03-22  1674   
mutex_unlock(>cascade->lock);
efa2ca73 Robert Jarzmik  2011-10-05  1675  
8c98d255 Joe Perches 2014-09-29  1676   seq_printf(s, "DeviceId = 
%d\n", id);
8c98d255 Joe Perches 2014-09-29  1677   return 0;
efa2ca73 Robert Jarzmik  2011-10-05  1678  }
efa2ca73 Robert Jarzmik  2011-10-05 @1679  DEBUGFS_RO_ATTR(device_id, 
dbg_device_id_show);
efa2ca73 Robert Jarzmik  2011-10-05  1680  
34e778aa Yangtao Li  2018-12-01  1681  static int protection_show(struct 
seq_file *s, void *p)
efa2ca73 Robert Jarzmik  2011-10-05  1682  {
efa2ca73 Robert Jarzmik  2011-10-05  1683   struct docg3 *docg3 = (struct 
docg3 *)s->private;
dbc26d98 Robert Jarzmik  2011-11-19  1684   int protect, dps0, dps0_low, 
dps0_high, dps1, dps1_low, dps1_high;
dbc26d98 Robert Jarzmik  2011-11-19  1685  
7b0e67f6 Robert Jarzmik  2012-03-22  1686   
mutex_lock(>cascade->lock);
dbc26d98 Robert Jarzmik  2011-11-19  1687   protect = 
doc_register_readb(docg3, DOC_PROTECTION);
dbc26d98 Robert Jarzmik  2011-11-19  1688   dps0 = 
doc_register_readb(docg3, DOC_DPS0_STATUS);
dbc26d98 Robert Jarzmik  2011-11-19  1689   dps0_low = 
doc_register_readw(docg3, DOC_DPS0_ADDRLOW);
dbc26d98 Robert Jarzmik  2011-11-19  1690   dps0_high = 
doc_register_readw(docg3, DOC_DPS0_ADDRHIGH);
dbc26d98 Robert Jarzmik  2011-11-19  1691   dps1 = 
doc_register_readb(docg3, DOC_DPS1_STATUS);
dbc26d98 Robert Jarzmik  2011-11-19  1692   dps1_low = 
doc_register_readw(docg3, DOC_DPS1_ADDRLOW);
dbc26d98 Robert Jarzmik  2011-11-19  1693   dps1_high = 
doc_register_readw(docg3, DOC_DPS1_ADDRHIGH);
7b0e67f6 Robert Jarzmik  2012-03-22  1694   
mutex_unlock(>cascade->lock);
efa2ca73 Robert Jarzmik  2011-10-05  1695  
8c98d255 Joe Perches 2014-09-29  1696   seq_printf(s, "Protection = 
0x%02x (", protect);
efa2ca73 Robert Jarzmik  2011-10-05  1697   if (protect & 
DOC_PROTECT_FOUNDRY_OTP_LOCK)
8c98d255 Joe Perches 2014-09-29  1698   seq_puts(s, 
"FOUNDRY_OTP_LOCK,");
efa2ca73 Robert Jarzmik  2011-10-05  1699   if (protect & 
DOC_PROTECT_CUSTOMER_OTP_LOCK)
8c98d255 Joe Perches 2014-09-29  1700   seq_puts(s, 
"CUSTOMER_OTP_LOCK,");
efa2ca73 Robert Jarzmik  2011-10-05  1701   if (protect & 
DOC_PROTECT_LOCK_INPUT)
8c98d255 Joe Perches 2014-09-29  1702   seq_puts(s, 
"LOCK_INPUT,");
efa2ca73 Robert Jarzmik  2011-10-05  1703   if (protect & 
DOC_PROTECT_STICKY_LOCK)
8c98d255 Joe Perches 2014-09-29  1704   seq_puts(s, 
"STICKY_LOCK,");
efa2ca73 Robert Jarzmik  2011-10-05  1705   if 

Re: [PATCH] rpmsg: core: make rpmsg bus DMA capable

2018-12-01 Thread kbuild test robot
Hi Srinivas,

I love your patch! Yet something to improve:

[auto build test ERROR on v4.20-rc4]
[also build test ERROR on next-20181130]
[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/Srinivas-Kandagatla/rpmsg-core-make-rpmsg-bus-DMA-capable/20181201-090353
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.1.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
GCC_VERSION=8.1.0 make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   ERROR: "ia64_delay_loop" [drivers/spi/spi-thunderx.ko] undefined!
>> ERROR: "platform_dma_configure" [drivers/rpmsg/rpmsg_core.ko] undefined!
   ERROR: "numa_slit" [drivers/nvme/host/nvme-core.ko] undefined!
   ERROR: "__sw_hweight8" [drivers/net/wireless/mediatek/mt76/mt76.ko] 
undefined!
   ERROR: "ia64_delay_loop" [drivers/net/phy/mdio-cavium.ko] undefined!

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


.config.gz
Description: application/gzip


sound/pci/hda/patch_ca0132.c:8416:3: error: implicit declaration of function 'pci_iounmap'; did you mean 'pcim_iounmap'?

2018-11-30 Thread kbuild test robot
Hi Takashi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   b6839ef26e549de68c10359d45163b0cfb031183
commit: d99501b8575dc1248bacf1b58d2241cb4b265d49 ALSA: hda/ca0132 - Call 
pci_iounmap() instead of iounmap()
date:   3 weeks ago
config: sh-allmodconfig (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
git checkout d99501b8575dc1248bacf1b58d2241cb4b265d49
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=sh 

All errors (new ones prefixed by >>):

   sound/pci/hda/patch_ca0132.c: In function 'ca0132_free':
>> sound/pci/hda/patch_ca0132.c:8416:3: error: implicit declaration of function 
>> 'pci_iounmap'; did you mean 'pcim_iounmap'? 
>> [-Werror=implicit-function-declaration]
  pci_iounmap(codec->bus->pci, spec->mem_base);
  ^~~
  pcim_iounmap
   sound/pci/hda/patch_ca0132.c: In function 'patch_ca0132':
   sound/pci/hda/patch_ca0132.c:8799:20: error: implicit declaration of 
function 'pci_iomap'; did you mean 'pcim_iomap'? 
[-Werror=implicit-function-declaration]
  spec->mem_base = pci_iomap(codec->bus->pci, 2, 0xC20);
   ^
   pcim_iomap
   sound/pci/hda/patch_ca0132.c:8799:18: warning: assignment makes pointer from 
integer without a cast [-Wint-conversion]
  spec->mem_base = pci_iomap(codec->bus->pci, 2, 0xC20);
 ^
   cc1: some warnings being treated as errors

vim +8416 sound/pci/hda/patch_ca0132.c

  8386  
  8387  static void ca0132_free(struct hda_codec *codec)
  8388  {
  8389  struct ca0132_spec *spec = codec->spec;
  8390  
  8391  cancel_delayed_work_sync(>unsol_hp_work);
  8392  snd_hda_power_up(codec);
  8393  switch (spec->quirk) {
  8394  case QUIRK_SBZ:
  8395  sbz_exit_chip(codec);
  8396  break;
  8397  case QUIRK_ZXR:
  8398  zxr_exit_chip(codec);
  8399  break;
  8400  case QUIRK_R3D:
  8401  r3d_exit_chip(codec);
  8402  break;
  8403  case QUIRK_AE5:
  8404  ae5_exit_chip(codec);
  8405  break;
  8406  case QUIRK_R3DI:
  8407  r3di_gpio_shutdown(codec);
  8408  break;
  8409  }
  8410  
  8411  snd_hda_sequence_write(codec, spec->base_exit_verbs);
  8412  ca0132_exit_chip(codec);
  8413  
  8414  snd_hda_power_down(codec);
  8415  if (spec->mem_base)
> 8416  pci_iounmap(codec->bus->pci, spec->mem_base);
  8417  kfree(spec->spec_init_verbs);
  8418  kfree(codec->spec);
  8419  }
  8420  

---
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/4] clk: core: link consumer with clock driver

2018-11-30 Thread kbuild test robot
Hi Miquel,

I love your patch! Yet something to improve:

[auto build test ERROR on clk/clk-next]
[also build test ERROR on v4.20-rc4 next-20181130]
[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/Miquel-Raynal/Add-device-links-to-clocks/20181201-074305
base:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: i386-randconfig-x071-201847 (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//clk/clkdev.c:115:13: error: static declaration of 
>> 'clk_link_consumer' follows non-static declaration
static void clk_link_consumer(struct device *consumer, struct clk *clk) {}
^
   In file included from drivers//clk/clkdev.c:22:0:
   include/linux/clk-provider.h:784:6: note: previous declaration of 
'clk_link_consumer' was here
void clk_link_consumer(struct device *consumer, struct clk *clk);
 ^
>> drivers//clk/clkdev.c:116:13: error: static declaration of 
>> 'clk_unlink_consumer' follows non-static declaration
static void clk_unlink_consumer(struct clk *clk) {}
^~~
   In file included from drivers//clk/clkdev.c:22:0:
   include/linux/clk-provider.h:785:6: note: previous declaration of 
'clk_unlink_consumer' was here
void clk_unlink_consumer(struct clk *clk);
 ^~~

vim +/clk_link_consumer +115 drivers//clk/clkdev.c

   114  
 > 115  static void clk_link_consumer(struct device *consumer, struct clk *clk) 
 > {}
 > 116  static void clk_unlink_consumer(struct clk *clk) {}
   117  

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


.config.gz
Description: application/gzip


Re: [PATCH] HID: input: support Microsoft wireless radio control hotkey

2018-11-30 Thread kbuild test robot
Hi Chris,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc4 next-20181130]
[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-Chiu/HID-input-support-Microsoft-wireless-radio-control-hotkey/20181130-150723
config: i386-defconfig (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 warnings (new ones prefixed by >>):

   In file included from drivers/hid/usbhid/hiddev.c:35:0:
   drivers/hid/usbhid/hiddev.c: In function 'hiddev_connect':
   include/linux/hid.h:839:99: error: expected expression before '||' token
#define IS_INPUT_APPLICATION(a) (((a >= 0x0001) && (a <= 0x00010008)) 
|| (a == 0x00010080) || || (a == 0x0001000c) || (a == 0x000c0001) || ((a >= 
0x000d0002) && (a <= 0x000d0006)))

  ^
>> drivers/hid/usbhid/hiddev.c:906:9: note: in expansion of macro 
>> 'IS_INPUT_APPLICATION'
   !IS_INPUT_APPLICATION(hid->collection[i].usage))
^~~~

vim +/IS_INPUT_APPLICATION +906 drivers/hid/usbhid/hiddev.c

^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  891  
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  892  /*
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  893   * 
This is where hid.c calls us to connect a hid device to the hiddev driver
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  894   */
93c10132 drivers/hid/usbhid/hiddev.c Jiri Slaby 2008-06-27  895  int 
hiddev_connect(struct hid_device *hid, unsigned int force)
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  896  {
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  897 
struct hiddev *hiddev;
4916b3a5 drivers/usb/input/hiddev.c  Jiri Kosina2006-12-08  898 
struct usbhid_device *usbhid = hid->driver_data;
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  899 
int retval;
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  900  
93c10132 drivers/hid/usbhid/hiddev.c Jiri Slaby 2008-06-27  901 
if (!force) {
93c10132 drivers/hid/usbhid/hiddev.c Jiri Slaby 2008-06-27  902 
unsigned int i;
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  903 
for (i = 0; i < hid->maxcollection; i++)
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  904 
if (hid->collection[i].type ==
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  905 
HID_COLLECTION_APPLICATION &&
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16 @906 
!IS_INPUT_APPLICATION(hid->collection[i].usage))
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  907 
break;
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  908  
93c10132 drivers/hid/usbhid/hiddev.c Jiri Slaby 2008-06-27  909 
if (i == hid->maxcollection)
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  910 
return -1;
93c10132 drivers/hid/usbhid/hiddev.c Jiri Slaby 2008-06-27  911 
}
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  912  
bbdb7daf drivers/usb/input/hiddev.c  Oliver Neukum  2006-01-06  913 
if (!(hiddev = kzalloc(sizeof(struct hiddev), GFP_KERNEL)))
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  914 
return -1;
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  915  
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  916 
init_waitqueue_head(>wait);
826d5982 drivers/usb/input/hiddev.c  Dmitry Torokhov2006-07-19  917 
INIT_LIST_HEAD(>list);
cdcb44e8 drivers/hid/usbhid/hiddev.c Jiri Kosina2007-05-10  918 
spin_lock_init(>list_lock);
07903407 drivers/hid/usbhid/hiddev.c Oliver Neukum  2008-12-16  919 
mutex_init(>existancelock);
76052749 drivers/hid/usbhid/hiddev.c Jiri Kosina2009-01-07  920 
hid->hiddev = hiddev;
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  921 
hiddev->hid = hid;
^1da177e drivers/usb/input/hiddev.c  Linus Torvalds 2005-04-16  922 
hiddev->exist = 1;
07903407 drivers/hid/usbhid/hiddev.c Oliver Neukum  2008-12-16  923 
retval = usb_register_dev(usbhid->intf, _class);
07903407 drivers/hid/usbhid/hiddev.c Oliver Neukum  2008-12-16  924 
if (retval) {
4291ee30 drivers/hid/usbhid/hiddev.c Joe Perches2010-12-09  

Re: [PATCH 5/6] ARM: dts: meson8b: add the ARM TWD timer

2018-11-30 Thread kbuild test robot
Hi Martin,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on v4.20-rc4 next-20181130]
[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/Martin-Blumenstingl/32-bit-Meson-add-the-ARM-TWD-and-Global-Timers/20181124-133849
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: arm-multi_v7_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
GCC_VERSION=7.2.0 make.cross ARCH=arm 

All errors (new ones prefixed by >>):

>> Error: arch/arm/boot/dts/meson8b.dtsi:348.19-20 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 3/6] ARM: dts: meson8: add the ARM TWD timer

2018-11-30 Thread kbuild test robot
Hi Martin,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on v4.20-rc4 next-20181130]
[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/Martin-Blumenstingl/32-bit-Meson-add-the-ARM-TWD-and-Global-Timers/20181124-133849
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: arm-multi_v7_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
GCC_VERSION=7.2.0 make.cross ARCH=arm 

All errors (new ones prefixed by >>):

>> Error: arch/arm/boot/dts/meson8.dtsi:358.19-20 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] HID: input: support Microsoft wireless radio control hotkey

2018-11-30 Thread kbuild test robot
Hi Chris,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc4 next-20181130]
[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-Chiu/HID-input-support-Microsoft-wireless-radio-control-hotkey/20181130-150723
config: m68k-sun3_defconfig (attached as .config)
compiler: m68k-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
GCC_VERSION=7.2.0 make.cross ARCH=m68k 

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

   In file included from drivers/hid/hid-input.c:32:0:
   drivers/hid/hid-input.c: In function 'hidinput_connect':
>> include/linux/hid.h:839:99: error: expected expression before '||' token
#define IS_INPUT_APPLICATION(a) (((a >= 0x0001) && (a <= 0x00010008)) 
|| (a == 0x00010080) || || (a == 0x0001000c) || (a == 0x000c0001) || ((a >= 
0x000d0002) && (a <= 0x000d0006)))

  ^
>> drivers/hid/hid-input.c:1737:9: note: in expansion of macro 
>> 'IS_INPUT_APPLICATION'
if (IS_INPUT_APPLICATION(col->usage))
^~~~
--
   In file included from drivers//hid/hid-input.c:32:0:
   drivers//hid/hid-input.c: In function 'hidinput_connect':
>> include/linux/hid.h:839:99: error: expected expression before '||' token
#define IS_INPUT_APPLICATION(a) (((a >= 0x0001) && (a <= 0x00010008)) 
|| (a == 0x00010080) || || (a == 0x0001000c) || (a == 0x000c0001) || ((a >= 
0x000d0002) && (a <= 0x000d0006)))

  ^
   drivers//hid/hid-input.c:1737:9: note: in expansion of macro 
'IS_INPUT_APPLICATION'
if (IS_INPUT_APPLICATION(col->usage))
^~~~

vim +839 include/linux/hid.h

   836  
   837  /* Applications from HID Usage Tables 4/8/99 Version 1.1 */
   838  /* We ignore a few input applications that are not widely used */
 > 839  #define IS_INPUT_APPLICATION(a) (((a >= 0x0001) && (a <= 
 > 0x00010008)) || (a == 0x00010080) || || (a == 0x0001000c) || (a == 
 > 0x000c0001) || ((a >= 0x000d0002) && (a <= 0x000d0006)))
   840  

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


.config.gz
Description: application/gzip


make[2]: *** No rule to make target 'arch/sh/boot/dts/.dtb.S', needed by 'arch/sh/boot/dts/.dtb.o'.

2018-11-30 Thread kbuild test robot
Hi Rob,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   94f371cb73944b410a269d570d6946c042f2ddd0
commit: 37c8a5fafa3bb7dcdd51774be353be6cb2912b86 kbuild: consolidate Devicetree 
dtb build rules
date:   8 weeks ago
config: sh-j2_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
git checkout 37c8a5fafa3bb7dcdd51774be353be6cb2912b86
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=sh 

All errors (new ones prefixed by >>):

>> make[2]: *** No rule to make target 'arch/sh/boot/dts/.dtb.S', needed by 
>> 'arch/sh/boot/dts/.dtb.o'.
   make[2]: 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


arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints

2018-11-29 Thread kbuild test robot
Hi Juergen,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   94f371cb73944b410a269d570d6946c042f2ddd0
commit: 6da63eb241a05b0e676d68975e793c0521387141 x86/paravirt: Move the 
pv_irq_ops under the PARAVIRT_XXL umbrella
date:   3 months ago
config: i386-randconfig-sb0-11301144 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout 6da63eb241a05b0e676d68975e793c0521387141
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/atomic.h:8:0,
from arch/x86/include/asm/msr.h:67,
from arch/x86/include/asm/processor.h:21,
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/mm.h:10,
from mm/slub.c:13:
   mm/slub.c: In function '__slab_free':
>> arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible 
>> constraints
 asm volatile(pfx "cmpxchg%c4b %2; sete %0"   \
 ^
   arch/x86/include/asm/cmpxchg.h:254:2: note: in expansion of macro 
'__cmpxchg_double'
 __cmpxchg_double(LOCK_PREFIX, p1, p2, o1, o2, n1, n2)
 ^
   include/asm-generic/atomic-instrumented.h:457:2: note: in expansion of macro 
'arch_cmpxchg_double'
 arch_cmpxchg_double(__ai_p1, (p2), (o1), (o2), (n1), (n2)); \
 ^
   mm/slub.c:403:7: note: in expansion of macro 'cmpxchg_double'
  if (cmpxchg_double(>freelist, >counters,
  ^

vim +/asm +245 arch/x86/include/asm/cmpxchg.h

3d94ae0c Jeremy Fitzhardinge 2011-09-28  235  
cdcd6298 Jan Beulich 2012-01-02  236  #define __cmpxchg_double(pfx, p1, 
p2, o1, o2, n1, n2) \
cdcd6298 Jan Beulich 2012-01-02  237  ({
\
cdcd6298 Jan Beulich 2012-01-02  238bool __ret; 
\
cdcd6298 Jan Beulich 2012-01-02  239__typeof__(*(p1)) __old1 = 
(o1), __new1 = (n1); \
cdcd6298 Jan Beulich 2012-01-02  240__typeof__(*(p2)) __old2 = 
(o2), __new2 = (n2); \
cdcd6298 Jan Beulich 2012-01-02  241BUILD_BUG_ON(sizeof(*(p1)) != 
sizeof(long));\
cdcd6298 Jan Beulich 2012-01-02  242BUILD_BUG_ON(sizeof(*(p2)) != 
sizeof(long));\
cdcd6298 Jan Beulich 2012-01-02  243VM_BUG_ON((unsigned long)(p1) % 
(2 * sizeof(long)));\
cdcd6298 Jan Beulich 2012-01-02  244VM_BUG_ON((unsigned long)((p1) 
+ 1) != (unsigned long)(p2));\
cdcd6298 Jan Beulich 2012-01-02 @245asm volatile(pfx "cmpxchg%c4b 
%2; sete %0"  \
cdcd6298 Jan Beulich 2012-01-02  246 : "=a" (__ret), 
"+d" (__old2), \
cdcd6298 Jan Beulich 2012-01-02  247   "+m" (*(p1)), 
"+m" (*(p2))   \
cdcd6298 Jan Beulich 2012-01-02  248 : "i" (2 * 
sizeof(long)), "a" (__old1),\
cdcd6298 Jan Beulich 2012-01-02  249   "b" (__new1), 
"c" (__new2)); \
cdcd6298 Jan Beulich 2012-01-02  250__ret;  
\
cdcd6298 Jan Beulich 2012-01-02  251  })
cdcd6298 Jan Beulich 2012-01-02  252  

:: The code at line 245 was first introduced by commit
:: cdcd629869fabcd38ebd24a03b0a05ec1cbcafb0 x86: Fix and improve 
cmpxchg_double{,_local}()

:: TO: Jan Beulich 
:: CC: Ingo Molnar 

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


.config.gz
Description: application/gzip


Re: [PATCH] ASoC: adau1761: Ensure DSP_RUN and DSP_ENABLE are disabled

2018-11-29 Thread kbuild test robot
Hi Niklas,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on asoc/for-next]
[also build test ERROR on v4.20-rc4 next-20181129]
[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/Niklas-Carlsson/ASoC-adau1761-Ensure-DSP_RUN-and-DSP_ENABLE-are-disabled/20181130-061515
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 
for-next
config: x86_64-randconfig-ws0-11300754 (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=x86_64 

All errors (new ones prefixed by >>):

   sound/soc/codecs/adau1761.c: In function 'adau1761_set_bias_level':
>> sound/soc/codecs/adau1761.c:484:8: error: implicit declaration of function 
>> 'adau17x1_has_dsp'; did you mean 'adau17x1_resume'? 
>> [-Werror=implicit-function-declaration]
   if (adau17x1_has_dsp(adau)) {
   ^~~~
   adau17x1_resume
   cc1: some warnings being treated as errors

vim +484 sound/soc/codecs/adau1761.c

   447  
   448  static int adau1761_set_bias_level(struct snd_soc_component *component,
   449   enum snd_soc_bias_level level)
   450  {
   451  struct adau *adau = snd_soc_component_get_drvdata(component);
   452  
   453  switch (level) {
   454  case SND_SOC_BIAS_ON:
   455  break;
   456  case SND_SOC_BIAS_PREPARE:
   457  break;
   458  case SND_SOC_BIAS_STANDBY:
   459  regcache_cache_only(adau->regmap, false);
   460  regmap_update_bits(adau->regmap, ADAU17X1_CLOCK_CONTROL,
   461  ADAU17X1_CLOCK_CONTROL_SYSCLK_EN,
   462  ADAU17X1_CLOCK_CONTROL_SYSCLK_EN);
   463  if (snd_soc_component_get_bias_level(component) ==
   464  SND_SOC_BIAS_OFF) {
   465  /*
   466   * When going OFF -> STANDBY, the device can be 
in two
   467   * states:
   468   * 1) Power-cycled and reset
   469   * 2) Soft reboot
   470   * In the case of soft reboot, we need to sync 
the HW
   471   * registers even if our regmap reports default 
values.
   472   * Marking the cache as dirty ensures that both 
cases
   473   * are handled.
   474   */
   475  regcache_mark_dirty(adau->regmap);
   476  regcache_sync(adau->regmap);
   477  /*
   478   * In order for FW to load correctly, the 
device needs
   479   * DSP_RUN and DSP_ENABLE to be 0. This might 
not be the
   480   * case for soft reboots. Ensure that DSP_RUN 
and
   481   * DSP_ENABLE is 0 by bypassing the cache and 
write
   482   * directly to HW when going OFF -> STANDBY.
   483   */
 > 484  if (adau17x1_has_dsp(adau)) {
   485  regcache_cache_bypass(adau->regmap, 
true);
   486  regmap_write(adau->regmap, 
ADAU17X1_DSP_RUN, 0);
   487  regmap_write(adau->regmap,
   488  ADAU17X1_DSP_ENABLE, 0);
   489  regcache_cache_bypass(adau->regmap, 
false);
   490  }
   491  }
   492  break;
   493  case SND_SOC_BIAS_OFF:
   494  regmap_update_bits(adau->regmap, ADAU17X1_CLOCK_CONTROL,
   495  ADAU17X1_CLOCK_CONTROL_SYSCLK_EN, 0);
   496  regcache_cache_only(adau->regmap, true);
   497  break;
   498  
   499  }
   500  return 0;
   501  }
   502  

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


.config.gz
Description: application/gzip


sound/pci/hda/patch_ca0132.c:8416:3: error: implicit declaration of function 'pci_iounmap'; did you mean 'pcim_iounmap'?

2018-11-29 Thread kbuild test robot
Hi Takashi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   94f371cb73944b410a269d570d6946c042f2ddd0
commit: d99501b8575dc1248bacf1b58d2241cb4b265d49 ALSA: hda/ca0132 - Call 
pci_iounmap() instead of iounmap()
date:   3 weeks ago
config: sh-allmodconfig (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
git checkout d99501b8575dc1248bacf1b58d2241cb4b265d49
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=sh 

All errors (new ones prefixed by >>):

   sound/pci/hda/patch_ca0132.c: In function 'ca0132_free':
>> sound/pci/hda/patch_ca0132.c:8416:3: error: implicit declaration of function 
>> 'pci_iounmap'; did you mean 'pcim_iounmap'? 
>> [-Werror=implicit-function-declaration]
  pci_iounmap(codec->bus->pci, spec->mem_base);
  ^~~
  pcim_iounmap
   sound/pci/hda/patch_ca0132.c: In function 'patch_ca0132':
   sound/pci/hda/patch_ca0132.c:8799:20: error: implicit declaration of 
function 'pci_iomap'; did you mean 'pcim_iomap'? 
[-Werror=implicit-function-declaration]
  spec->mem_base = pci_iomap(codec->bus->pci, 2, 0xC20);
   ^
   pcim_iomap
   sound/pci/hda/patch_ca0132.c:8799:18: warning: assignment makes pointer from 
integer without a cast [-Wint-conversion]
  spec->mem_base = pci_iomap(codec->bus->pci, 2, 0xC20);
 ^
   cc1: some warnings being treated as errors

vim +8416 sound/pci/hda/patch_ca0132.c

  8386  
  8387  static void ca0132_free(struct hda_codec *codec)
  8388  {
  8389  struct ca0132_spec *spec = codec->spec;
  8390  
  8391  cancel_delayed_work_sync(>unsol_hp_work);
  8392  snd_hda_power_up(codec);
  8393  switch (spec->quirk) {
  8394  case QUIRK_SBZ:
  8395  sbz_exit_chip(codec);
  8396  break;
  8397  case QUIRK_ZXR:
  8398  zxr_exit_chip(codec);
  8399  break;
  8400  case QUIRK_R3D:
  8401  r3d_exit_chip(codec);
  8402  break;
  8403  case QUIRK_AE5:
  8404  ae5_exit_chip(codec);
  8405  break;
  8406  case QUIRK_R3DI:
  8407  r3di_gpio_shutdown(codec);
  8408  break;
  8409  }
  8410  
  8411  snd_hda_sequence_write(codec, spec->base_exit_verbs);
  8412  ca0132_exit_chip(codec);
  8413  
  8414  snd_hda_power_down(codec);
  8415  if (spec->mem_base)
> 8416  pci_iounmap(codec->bus->pci, spec->mem_base);
  8417  kfree(spec->spec_init_verbs);
  8418  kfree(codec->spec);
  8419  }
  8420  

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


.config.gz
Description: application/gzip


Re: [PATCH v8 07/20] powerpc/mm: add helpers to get/set mm.context->pte_frag

2018-11-29 Thread kbuild test robot
Hi Christophe,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on powerpc/next]
[also build test ERROR on v4.20-rc4]
[cannot apply to next-20181129]
[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/Christophe-Leroy/powerpc-book3s32-Remove-CONFIG_BOOKE-dependent-code/20181129-210058
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-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
GCC_VERSION=7.2.0 make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:24:0,
from arch/powerpc/include/asm/book3s/64/mmu.h:39,
from arch/powerpc/include/asm/mmu.h:328,
from arch/powerpc/include/asm/lppaca.h:36,
from arch/powerpc/include/asm/paca.h:21,
from arch/powerpc/include/asm/hw_irq.h:64,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/linux/spinlock.h:54,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from include/linux/crypto.h:24,
from include/crypto/algapi.h:15,
from include/crypto/internal/hash.h:16,
from arch/powerpc/crypto/md5-glue.c:15:
>> arch/powerpc/include/asm/book3s/64/pgtable.h:219:21: error: "__pte_frag_nr" 
>> is not defined, evaluates to 0 [-Werror=undef]
#define PTE_FRAG_NR __pte_frag_nr
^
   arch/powerpc/include/asm/pgtable.h:123:5: note: in expansion of macro 
'PTE_FRAG_NR'
#if PTE_FRAG_NR != 1
^~~
   cc1: all warnings being treated as errors

vim +/__pte_frag_nr +219 arch/powerpc/include/asm/book3s/64/pgtable.h

5ed7ecd0 Aneesh Kumar K.V 2016-04-29  217  
5ed7ecd0 Aneesh Kumar K.V 2016-04-29  218  extern unsigned long __pte_frag_nr;
5ed7ecd0 Aneesh Kumar K.V 2016-04-29 @219  #define PTE_FRAG_NR __pte_frag_nr
5ed7ecd0 Aneesh Kumar K.V 2016-04-29  220  extern unsigned long 
__pte_frag_size_shift;
5ed7ecd0 Aneesh Kumar K.V 2016-04-29  221  #define PTE_FRAG_SIZE_SHIFT 
__pte_frag_size_shift
5ed7ecd0 Aneesh Kumar K.V 2016-04-29  222  #define PTE_FRAG_SIZE (1UL << 
PTE_FRAG_SIZE_SHIFT)
dd1842a2 Aneesh Kumar K.V 2016-04-29  223  

:: The code at line 219 was first introduced by commit
:: 5ed7ecd08a0807d6d616c3d958402f9c723bb048 powerpc/mm: pte_frag abstraction

:: TO: Aneesh Kumar K.V 
:: CC: Michael Ellerman 

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


.config.gz
Description: application/gzip


Re: [PATCH] ASoC: adau1761: Ensure DSP_RUN and DSP_ENABLE are disabled

2018-11-29 Thread kbuild test robot
Hi Niklas,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on asoc/for-next]
[also build test WARNING on v4.20-rc4 next-20181129]
[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/niklas-morberg-axis-com/ASoC-adau1761-Ensure-DSP_RUN-and-DSP_ENABLE-are-disabled/20181129-183313
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 
for-next
config: i386-randconfig-x002-201847 (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 warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:10:0,
from include/linux/list.h:9,
from include/linux/module.h:9,
from sound/soc/codecs/adau1761.c:10:
   sound/soc/codecs/adau1761.c: In function 'adau1761_set_bias_level':
   sound/soc/codecs/adau1761.c:484:8: error: implicit declaration of function 
'adau17x1_has_dsp'; did you mean 'adau17x1_resume'? 
[-Werror=implicit-function-declaration]
   if (adau17x1_has_dsp(adau)) {
   ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> sound/soc/codecs/adau1761.c:484:4: note: in expansion of macro 'if'
   if (adau17x1_has_dsp(adau)) {
   ^~
   cc1: some warnings being treated as errors

vim +/if +484 sound/soc/codecs/adau1761.c

   447  
   448  static int adau1761_set_bias_level(struct snd_soc_component *component,
   449   enum snd_soc_bias_level level)
   450  {
   451  struct adau *adau = snd_soc_component_get_drvdata(component);
   452  
   453  switch (level) {
   454  case SND_SOC_BIAS_ON:
   455  break;
   456  case SND_SOC_BIAS_PREPARE:
   457  break;
   458  case SND_SOC_BIAS_STANDBY:
   459  regcache_cache_only(adau->regmap, false);
   460  regmap_update_bits(adau->regmap, ADAU17X1_CLOCK_CONTROL,
   461  ADAU17X1_CLOCK_CONTROL_SYSCLK_EN,
   462  ADAU17X1_CLOCK_CONTROL_SYSCLK_EN);
   463  if (snd_soc_component_get_bias_level(component) ==
   464  SND_SOC_BIAS_OFF) {
   465  /*
   466   * When going OFF -> STANDBY, the device can be 
in two
   467   * states:
   468   * 1) Power-cycled and reset
   469   * 2) Soft reboot
   470   * In the case of soft reboot, we need to sync 
the HW
   471   * registers even if our regmap reports default 
values.
   472   * Marking the cache as dirty ensures that both 
cases
   473   * are handled.
   474   */
   475  regcache_mark_dirty(adau->regmap);
   476  regcache_sync(adau->regmap);
   477  /*
   478   * In order for FW to load correctly, the 
device needs
   479   * DSP_RUN and DSP_ENABLE to be 0. This might 
not be the
   480   * case for soft reboots. Ensure that DSP_RUN 
and
   481   * DSP_ENABLE is 0 by bypassing the cache and 
write
   482   * directly to HW when going OFF -> STANDBY.
   483   */
 > 484  if (adau17x1_has_dsp(adau)) {
   485  regcache_cache_bypass(adau->regmap, 
true);
   486  regmap_write(adau->regmap, 
ADAU17X1_DSP_RUN, 0);
   487  regmap_write(adau->regmap,
   488  ADAU17X1_DSP_ENABLE, 0);
   489  regcache_cache_bypass(adau->regmap, 
false);
   490  }
   491  }
   492  break;
   493  case SND_SOC_BIAS_OFF:
   494  regmap_update_bits(adau->regmap, ADAU17X1_CLOCK_CONTROL,
   495  ADAU17X1_CLOCK_CONTROL_SYSCLK_EN, 0);
   496  regcache_cache_only(adau->regmap, true);
   497  break;
   498  
   499  }
   500  return 0;
   501  }
   502  

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


.config.gz
Description: application/gzip


Re: [PATCH] ASoC: adau1761: Ensure DSP_RUN and DSP_ENABLE are disabled

2018-11-29 Thread kbuild test robot
Hi Niklas,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on asoc/for-next]
[also build test ERROR on v4.20-rc4 next-20181129]
[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/niklas-morberg-axis-com/ASoC-adau1761-Ensure-DSP_RUN-and-DSP_ENABLE-are-disabled/20181129-183313
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 
for-next
config: x86_64-randconfig-x019-201847 (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=x86_64 

All errors (new ones prefixed by >>):

   sound/soc/codecs/adau1761.c: In function 'adau1761_set_bias_level':
>> sound/soc/codecs/adau1761.c:484:8: error: implicit declaration of function 
>> 'adau17x1_has_dsp'; did you mean 'adau17x1_resume'? 
>> [-Werror=implicit-function-declaration]
   if (adau17x1_has_dsp(adau)) {
   ^~~~
   adau17x1_resume
   cc1: some warnings being treated as errors

vim +484 sound/soc/codecs/adau1761.c

   447  
   448  static int adau1761_set_bias_level(struct snd_soc_component *component,
   449   enum snd_soc_bias_level level)
   450  {
   451  struct adau *adau = snd_soc_component_get_drvdata(component);
   452  
   453  switch (level) {
   454  case SND_SOC_BIAS_ON:
   455  break;
   456  case SND_SOC_BIAS_PREPARE:
   457  break;
   458  case SND_SOC_BIAS_STANDBY:
   459  regcache_cache_only(adau->regmap, false);
   460  regmap_update_bits(adau->regmap, ADAU17X1_CLOCK_CONTROL,
   461  ADAU17X1_CLOCK_CONTROL_SYSCLK_EN,
   462  ADAU17X1_CLOCK_CONTROL_SYSCLK_EN);
   463  if (snd_soc_component_get_bias_level(component) ==
   464  SND_SOC_BIAS_OFF) {
   465  /*
   466   * When going OFF -> STANDBY, the device can be 
in two
   467   * states:
   468   * 1) Power-cycled and reset
   469   * 2) Soft reboot
   470   * In the case of soft reboot, we need to sync 
the HW
   471   * registers even if our regmap reports default 
values.
   472   * Marking the cache as dirty ensures that both 
cases
   473   * are handled.
   474   */
   475  regcache_mark_dirty(adau->regmap);
   476  regcache_sync(adau->regmap);
   477  /*
   478   * In order for FW to load correctly, the 
device needs
   479   * DSP_RUN and DSP_ENABLE to be 0. This might 
not be the
   480   * case for soft reboots. Ensure that DSP_RUN 
and
   481   * DSP_ENABLE is 0 by bypassing the cache and 
write
   482   * directly to HW when going OFF -> STANDBY.
   483   */
 > 484  if (adau17x1_has_dsp(adau)) {
   485  regcache_cache_bypass(adau->regmap, 
true);
   486  regmap_write(adau->regmap, 
ADAU17X1_DSP_RUN, 0);
   487  regmap_write(adau->regmap,
   488  ADAU17X1_DSP_ENABLE, 0);
   489  regcache_cache_bypass(adau->regmap, 
false);
   490  }
   491  }
   492  break;
   493  case SND_SOC_BIAS_OFF:
   494  regmap_update_bits(adau->regmap, ADAU17X1_CLOCK_CONTROL,
   495  ADAU17X1_CLOCK_CONTROL_SYSCLK_EN, 0);
   496  regcache_cache_only(adau->regmap, true);
   497  break;
   498  
   499  }
   500  return 0;
   501  }
   502  

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


.config.gz
Description: application/gzip


fs/ubifs/tnc.c:493: undefined reference to `ubifs_bad_hash'

2018-11-29 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   60b548237fed4b4164bab13c994dd9615f6c4323
commit: 16a26b20d2afd0cf063816725b45b12e78d5bb31 ubifs: authentication: Add 
hashes to index nodes
date:   5 weeks ago
config: i386-randconfig-x0-11291730 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
reproduce:
git checkout 16a26b20d2afd0cf063816725b45b12e78d5bb31
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   fs/ubifs/tnc.o: In function `try_read_node':
>> fs/ubifs/tnc.c:493: undefined reference to `ubifs_bad_hash'
   fs/ubifs/tnc.o: In function `validate_data_node':
   fs/ubifs/tnc.c:1724: undefined reference to `ubifs_bad_hash'
   fs/ubifs/tnc_misc.o: In function `read_znode':
>> fs/ubifs/tnc_misc.c:298: undefined reference to `ubifs_bad_hash'
   fs/ubifs/tnc_misc.o: In function `ubifs_tnc_read_node':
   fs/ubifs/tnc_misc.c:509: undefined reference to `ubifs_bad_hash'

vim +493 fs/ubifs/tnc.c

   430  
   431  /**
   432   * try_read_node - read a node if it is a node.
   433   * @c: UBIFS file-system description object
   434   * @buf: buffer to read to
   435   * @type: node type
   436   * @zbr: the zbranch describing the node to read
   437   *
   438   * This function tries to read a node of known type and length, checks 
it and
   439   * stores it in @buf. This function returns %1 if a node is present and 
%0 if
   440   * a node is not present. A negative error code is returned for I/O 
errors.
   441   * This function performs that same function as ubifs_read_node except 
that
   442   * it does not require that there is actually a node present and instead
   443   * the return code indicates if a node was read.
   444   *
   445   * Note, this function does not check CRC of data nodes if 
@c->no_chk_data_crc
   446   * is true (it is controlled by corresponding mount option). However, if
   447   * @c->mounting or @c->remounting_rw is true (we are mounting or 
re-mounting to
   448   * R/W mode), @c->no_chk_data_crc is ignored and CRC is checked. This is
   449   * because during mounting or re-mounting from R/O mode to R/W mode we 
may read
   450   * journal nodes (when replying the journal or doing the recovery) and 
the
   451   * journal nodes may potentially be corrupted, so checking is required.
   452   */
   453  static int try_read_node(const struct ubifs_info *c, void *buf, int 
type,
   454   struct ubifs_zbranch *zbr)
   455  {
   456  int len = zbr->len;
   457  int lnum = zbr->lnum;
   458  int offs = zbr->offs;
   459  int err, node_len;
   460  struct ubifs_ch *ch = buf;
   461  uint32_t crc, node_crc;
   462  
   463  dbg_io("LEB %d:%d, %s, length %d", lnum, offs, dbg_ntype(type), 
len);
   464  
   465  err = ubifs_leb_read(c, lnum, buf, offs, len, 1);
   466  if (err) {
   467  ubifs_err(c, "cannot read node type %d from LEB %d:%d, 
error %d",
   468type, lnum, offs, err);
   469  return err;
   470  }
   471  
   472  if (le32_to_cpu(ch->magic) != UBIFS_NODE_MAGIC)
   473  return 0;
   474  
   475  if (ch->node_type != type)
   476  return 0;
   477  
   478  node_len = le32_to_cpu(ch->len);
   479  if (node_len != len)
   480  return 0;
   481  
   482  if (type == UBIFS_DATA_NODE && c->no_chk_data_crc && 
!c->mounting &&
   483  !c->remounting_rw)
   484  return 1;
   485  
   486  crc = crc32(UBIFS_CRC32_INIT, buf + 8, node_len - 8);
   487  node_crc = le32_to_cpu(ch->crc);
   488  if (crc != node_crc)
   489  return 0;
   490  
   491  err = ubifs_node_check_hash(c, buf, zbr->hash);
   492  if (err) {
 > 493  ubifs_bad_hash(c, buf, zbr->hash, lnum, offs);
   494  return 0;
   495  }
   496  
   497  return 1;
   498  }
   499  

---
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] tty: serial: qcom_geni_serial: Fix softlock

2018-11-29 Thread kbuild test robot
Hi Ryan,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on tty/tty-testing]
[also build test WARNING on v4.20-rc4 next-20181129]
[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/Ryan-Case/tty-serial-qcom_geni_serial-Fix-softlock/20181129-174407
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git 
tty-testing
config: mips-allyesconfig (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
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=mips 

All warnings (new ones prefixed by >>):

   In file included from include/linux/clk.h:16:0,
from drivers/tty/serial/qcom_geni_serial.c:8:
   drivers/tty/serial/qcom_geni_serial.c: In function 
'qcom_geni_serial_handle_tx':
   include/linux/kernel.h:845:29: warning: comparison of distinct pointer types 
lacks a cast
  (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
   include/linux/kernel.h:859:4: note: in expansion of macro '__typecheck'
  (__typecheck(x, y) && __no_side_effects(x, y))
   ^~~
   include/linux/kernel.h:869:24: note: in expansion of macro '__safe_cmp'
 __builtin_choose_expr(__safe_cmp(x, y), \
   ^~
   include/linux/kernel.h:878:19: note: in expansion of macro '__careful_cmp'
#define min(x, y) __careful_cmp(x, y, <)
  ^
   include/linux/kernel.h:893:23: note: in expansion of macro 'min'
#define min3(x, y, z) min((typeof(x))min(x, y), z)
  ^~~
>> drivers/tty/serial/qcom_geni_serial.c:746:10: note: in expansion of macro 
>> 'min3'
 chunk = min3(avail, pending, (UART_XMIT_SIZE - tail));
 ^~~~

vim +/min3 +746 drivers/tty/serial/qcom_geni_serial.c

   714  
   715  static void qcom_geni_serial_handle_tx(struct uart_port *uport, bool 
done,
   716  bool active)
   717  {
   718  struct qcom_geni_serial_port *port = to_dev_port(uport, uport);
   719  struct circ_buf *xmit = >state->xmit;
   720  size_t avail;
   721  size_t remaining;
   722  size_t pending;
   723  int i;
   724  u32 status;
   725  unsigned int chunk;
   726  int tail;
   727  
   728  status = readl_relaxed(uport->membase + SE_GENI_TX_FIFO_STATUS);
   729  
   730  /* Complete the current tx command before taking newly added 
data */
   731  if (active)
   732  pending = port->tx_remaining;
   733  else
   734  pending = uart_circ_chars_pending(xmit);
   735  
   736  /* All data has been transmitted and acknowledged as received */
   737  if (!pending && !status && done) {
   738  qcom_geni_serial_stop_tx(uport);
   739  goto out_write_wakeup;
   740  }
   741  
   742  avail = port->tx_fifo_depth - (status & TX_FIFO_WC);
   743  avail *= port->tx_bytes_pw;
   744  
   745  tail = xmit->tail;
 > 746  chunk = min3(avail, pending, (UART_XMIT_SIZE - tail));
   747  if (!chunk)
   748  goto out_write_wakeup;
   749  
   750  if (!port->tx_remaining) {
   751  qcom_geni_serial_setup_tx(uport, pending);
   752  port->tx_remaining = pending;
   753  }
   754  
   755  remaining = chunk;
   756  for (i = 0; i < chunk; ) {
   757  unsigned int tx_bytes;
   758  u8 buf[sizeof(u32)];
   759  int c;
   760  
   761  memset(buf, 0, ARRAY_SIZE(buf));
   762  tx_bytes = min_t(size_t, remaining, port->tx_bytes_pw);
   763  for (c = 0; c < tx_bytes ; c++)
   764  buf[c] = xmit->buf[tail + c];
   765  
   766  iowrite32_rep(uport->membase + SE_GENI_TX_FIFOn, buf, 
1);
   767  
   768  i += tx_bytes;
   769  tail += tx_bytes;
   770  uport->icount.tx += tx_bytes;
   771  remaining -= tx_bytes;
   772  port->tx_remaining -= tx_bytes;
   773  }
   774  
   775  xmit->tail = tail & (UART_XMIT_SIZE - 1);
   776  out_write_wakeup:
   777  if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
   778  uart_write_wakeup(uport);
   779  }
   780  

---
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/3] dt-bindings: reset: imx7: Document usage on i.MX8MQ SoCs

2018-11-28 Thread kbuild test robot
Hi Andrey,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on pza/reset/next]
[also build test WARNING on v4.20-rc4 next-20181128]
[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/Andrey-Smirnov/Reset-controller-support-for-i-MX8MQ/20181128-143936
base:   git://git.pengutronix.de/git/pza/linux reset/next
config: x86_64-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=x86_64 

All warnings (new ones prefixed by >>):

>> drivers/reset/reset-imx7.c:265:26: warning: incorrect type in assignment 
>> (different modifiers)
   drivers/reset/reset-imx7.c:265:26:expected struct imx7_src_variant 
*variant
   drivers/reset/reset-imx7.c:265:26:got void const *
   drivers/reset/reset-imx7.c: In function 'imx7_reset_probe':
   drivers/reset/reset-imx7.c:265:19: warning: assignment discards 'const' 
qualifier from pointer target type [-Wdiscarded-qualifiers]
 imx7src->variant = of_device_get_match_data(dev);
  ^

vim +265 drivers/reset/reset-imx7.c

abf97755 Andrey Smirnov 2017-02-21  254  
abf97755 Andrey Smirnov 2017-02-21  255  static int imx7_reset_probe(struct 
platform_device *pdev)
abf97755 Andrey Smirnov 2017-02-21  256  {
abf97755 Andrey Smirnov 2017-02-21  257 struct imx7_src *imx7src;
abf97755 Andrey Smirnov 2017-02-21  258 struct device *dev = >dev;
abf97755 Andrey Smirnov 2017-02-21  259 struct regmap_config config = { 
.name = "src" };
abf97755 Andrey Smirnov 2017-02-21  260  
abf97755 Andrey Smirnov 2017-02-21  261 imx7src = devm_kzalloc(dev, 
sizeof(*imx7src), GFP_KERNEL);
abf97755 Andrey Smirnov 2017-02-21  262 if (!imx7src)
abf97755 Andrey Smirnov 2017-02-21  263 return -ENOMEM;
abf97755 Andrey Smirnov 2017-02-21  264  
1c775d7a Andrey Smirnov 2018-11-27 @265 imx7src->variant = 
of_device_get_match_data(dev);
abf97755 Andrey Smirnov 2017-02-21  266 imx7src->regmap = 
syscon_node_to_regmap(dev->of_node);
abf97755 Andrey Smirnov 2017-02-21  267 if (IS_ERR(imx7src->regmap)) {
abf97755 Andrey Smirnov 2017-02-21  268 dev_err(dev, "Unable to 
get imx7-src regmap");
abf97755 Andrey Smirnov 2017-02-21  269 return 
PTR_ERR(imx7src->regmap);
abf97755 Andrey Smirnov 2017-02-21  270 }
abf97755 Andrey Smirnov 2017-02-21  271 regmap_attach_dev(dev, 
imx7src->regmap, );
abf97755 Andrey Smirnov 2017-02-21  272  
abf97755 Andrey Smirnov 2017-02-21  273 imx7src->rcdev.owner = 
THIS_MODULE;
1c775d7a Andrey Smirnov 2018-11-27  274 imx7src->rcdev.nr_resets = 
imx7src->variant->signals_num;
abf97755 Andrey Smirnov 2017-02-21  275 imx7src->rcdev.ops   = 
_reset_ops;
abf97755 Andrey Smirnov 2017-02-21  276 imx7src->rcdev.of_node   = 
dev->of_node;
abf97755 Andrey Smirnov 2017-02-21  277  
abf97755 Andrey Smirnov 2017-02-21  278 return 
devm_reset_controller_register(dev, >rcdev);
abf97755 Andrey Smirnov 2017-02-21  279  }
abf97755 Andrey Smirnov 2017-02-21  280  

:: The code at line 265 was first introduced by commit
:: 1c775d7a1dd30912f65ebba68a638eb4c604b7f2 reset: imx7: Add plubming to 
support multiple IP variants

:: TO: Andrey Smirnov 
:: 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 v5 2/2] platform: Add reset button device for PC Engines APU boards

2018-11-28 Thread kbuild test robot
Hi Florian,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on gpio/for-next]
[also build test ERROR on v4.20-rc4 next-20181128]
[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/Florian-Eckert/Add-device-driver-for-APU2-APU3-GPIOs/20181128-045043
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git 
for-next
config: x86_64-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=x86_64 

All errors (new ones prefixed by >>):

>> drivers/gpio/gpio-apu.c:163:1: error: Expected ; at end of declaration
>> drivers/gpio/gpio-apu.c:163:1: error: got extern
   In file included from drivers/gpio/gpio-apu.c:13:0:
   include/linux/module.h:213:1: error: expected ',' or ';' before 'extern'
extern typeof(name) __mod_##type##__##name##_device_table  \
^
   drivers/gpio/gpio-apu.c:163:1: note: in expansion of macro 
'MODULE_DEVICE_TABLE'
MODULE_DEVICE_TABLE(dmi, apu2_gpio_dmi_table);
^~~

vim +163 drivers/gpio/gpio-apu.c

4c30b3d4 Florian Eckert 2018-11-27  135  
4c30b3d4 Florian Eckert 2018-11-27  136  static const struct dmi_system_id 
apu2_gpio_dmi_table[] __initconst = {
4c30b3d4 Florian Eckert 2018-11-27  137 /* PC Engines APU2 with 
"Legacy" bios < 4.0.8 */
4c30b3d4 Florian Eckert 2018-11-27  138 {
4c30b3d4 Florian Eckert 2018-11-27  139 .ident = "apu2",
4c30b3d4 Florian Eckert 2018-11-27  140 .matches = {
4c30b3d4 Florian Eckert 2018-11-27  141 
DMI_MATCH(DMI_SYS_VENDOR, "PC Engines"),
4c30b3d4 Florian Eckert 2018-11-27  142 
DMI_MATCH(DMI_BOARD_NAME, "APU2")
4c30b3d4 Florian Eckert 2018-11-27  143 }
4c30b3d4 Florian Eckert 2018-11-27  144 },
4c30b3d4 Florian Eckert 2018-11-27  145 /* PC Engines APU2 with 
"Legacy" bios >= 4.0.8 */
4c30b3d4 Florian Eckert 2018-11-27  146 {
4c30b3d4 Florian Eckert 2018-11-27  147 .ident = "apu2",
4c30b3d4 Florian Eckert 2018-11-27  148 .matches = {
4c30b3d4 Florian Eckert 2018-11-27  149 
DMI_MATCH(DMI_SYS_VENDOR, "PC Engines"),
4c30b3d4 Florian Eckert 2018-11-27  150 
DMI_MATCH(DMI_BOARD_NAME, "apu2")
4c30b3d4 Florian Eckert 2018-11-27  151 }
4c30b3d4 Florian Eckert 2018-11-27  152 },
4c30b3d4 Florian Eckert 2018-11-27  153 /* PC Engines APU2 with 
"Mainline" bios */
4c30b3d4 Florian Eckert 2018-11-27  154 {
4c30b3d4 Florian Eckert 2018-11-27  155 .ident = "apu2",
4c30b3d4 Florian Eckert 2018-11-27  156 .matches = {
4c30b3d4 Florian Eckert 2018-11-27  157 
DMI_MATCH(DMI_SYS_VENDOR, "PC Engines"),
4c30b3d4 Florian Eckert 2018-11-27  158 
DMI_MATCH(DMI_BOARD_NAME, "PC Engines apu2")
4c30b3d4 Florian Eckert 2018-11-27  159 }
4c30b3d4 Florian Eckert 2018-11-27  160 },
4c30b3d4 Florian Eckert 2018-11-27  161 {}
4c30b3d4 Florian Eckert 2018-11-27  162  }
4c30b3d4 Florian Eckert 2018-11-27 @163  MODULE_DEVICE_TABLE(dmi, 
apu2_gpio_dmi_table);
4c30b3d4 Florian Eckert 2018-11-27  164  

:: The code at line 163 was first introduced by commit
:: 4c30b3d47204299cdb436562e2099c4a72427db7 gpio: Add driver for PC Engines 
APU boards

:: TO: Florian Eckert 
:: 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


drivers/acpi/.tmp_acpi_processor.o: warning: objtool: acpi_duplicate_processor_id()+0x49: stack state mismatch: cfa1=7+8 cfa2=6+16

2018-11-28 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   ef78e5ec9214376c5cb989f5da70b02d0c117b66
commit: 10e9ae9fabaf96c8e5227c1cd4827d58b3aa406d gcc-plugins: Add STACKLEAK 
plugin for tracking the kernel stack
date:   3 months ago
config: x86_64-randconfig-g0-11281534 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout 10e9ae9fabaf96c8e5227c1cd4827d58b3aa406d
# save the attached .config to linux build tree
make ARCH=x86_64 

All warnings (new ones prefixed by >>):

>> drivers/acpi/.tmp_acpi_processor.o: warning: objtool: 
>> acpi_duplicate_processor_id()+0x49: stack state mismatch: cfa1=7+8 cfa2=6+16

---
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/3] reset: imx7: Add plubming to support multiple IP variants

2018-11-28 Thread kbuild test robot
Hi Andrey,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on pza/reset/next]
[also build test WARNING on v4.20-rc4 next-20181127]
[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/Andrey-Smirnov/Reset-controller-support-for-i-MX8MQ/20181128-143936
base:   git://git.pengutronix.de/git/pza/linux reset/next
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 8.1.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
GCC_VERSION=8.1.0 make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   drivers//reset/reset-imx7.c: In function 'imx7_reset_probe':
>> drivers//reset/reset-imx7.c:160:19: warning: assignment discards 'const' 
>> qualifier from pointer target type [-Wdiscarded-qualifiers]
 imx7src->variant = of_device_get_match_data(dev);
  ^

vim +/const +160 drivers//reset/reset-imx7.c

   149  
   150  static int imx7_reset_probe(struct platform_device *pdev)
   151  {
   152  struct imx7_src *imx7src;
   153  struct device *dev = >dev;
   154  struct regmap_config config = { .name = "src" };
   155  
   156  imx7src = devm_kzalloc(dev, sizeof(*imx7src), GFP_KERNEL);
   157  if (!imx7src)
   158  return -ENOMEM;
   159  
 > 160  imx7src->variant = of_device_get_match_data(dev);
   161  imx7src->regmap = syscon_node_to_regmap(dev->of_node);
   162  if (IS_ERR(imx7src->regmap)) {
   163  dev_err(dev, "Unable to get imx7-src regmap");
   164  return PTR_ERR(imx7src->regmap);
   165  }
   166  regmap_attach_dev(dev, imx7src->regmap, );
   167  
   168  imx7src->rcdev.owner = THIS_MODULE;
   169  imx7src->rcdev.nr_resets = imx7src->variant->signals_num;
   170  imx7src->rcdev.ops   = _reset_ops;
   171  imx7src->rcdev.of_node   = dev->of_node;
   172  
   173  return devm_reset_controller_register(dev, >rcdev);
   174  }
   175  

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


.config.gz
Description: application/gzip


Re: [PATCH v5 1/2] gpio: Add driver for PC Engines APU boards

2018-11-27 Thread kbuild test robot
Hi Florian,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on gpio/for-next]
[also build test ERROR on v4.20-rc4 next-20181127]
[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/Florian-Eckert/Add-device-driver-for-APU2-APU3-GPIOs/20181128-045043
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git 
for-next
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 error/warnings (new ones prefixed by >>):

   In file included from drivers/gpio/gpio-apu.c:13:0:
>> include/linux/module.h:213:1: error: expected ',' or ';' before 'extern'
extern typeof(name) __mod_##type##__##name##_device_table  \
^
>> drivers/gpio/gpio-apu.c:163:1: note: in expansion of macro 
>> 'MODULE_DEVICE_TABLE'
MODULE_DEVICE_TABLE(dmi, apu2_gpio_dmi_table);
^~~

vim +213 include/linux/module.h

^1da177e Linus Torvalds2005-04-16  209  
cff26a51 Rusty Russell 2014-02-03  210  #ifdef MODULE
cff26a51 Rusty Russell 2014-02-03  211  /* Creates an alias so file2alias.c 
can find device table. */
^1da177e Linus Torvalds2005-04-16  212  #define MODULE_DEVICE_TABLE(type, 
name) \
0bf8bf50 Matthias Kaehlcke 2017-07-24 @213  extern typeof(name) 
__mod_##type##__##name##_device_table   \
cff26a51 Rusty Russell 2014-02-03  214__attribute__ ((unused, 
alias(__stringify(name
cff26a51 Rusty Russell 2014-02-03  215  #else  /* !MODULE */
cff26a51 Rusty Russell 2014-02-03  216  #define MODULE_DEVICE_TABLE(type, 
name)
cff26a51 Rusty Russell 2014-02-03  217  #endif
^1da177e Linus Torvalds2005-04-16  218  

:: The code at line 213 was first introduced by commit
:: 0bf8bf50eddc7511b52461bae798cbfaa0157a34 module: Remove const attribute 
from alias for MODULE_DEVICE_TABLE

:: TO: Matthias Kaehlcke 
:: CC: Jessica Yu 

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


.config.gz
Description: application/gzip


[PATCH] regulator: mcp16502: fix platform_no_drv_owner.cocci warnings

2018-11-27 Thread kbuild test robot
From: kbuild test robot 

drivers/regulator/mcp16502.c:530: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: 9199c277faeb ("regulator: mcp16502: add regulator driver for MCP16502")
CC: andrei.stefane...@microchip.com 
Signed-off-by: kbuild test robot 
---

url:
https://github.com/0day-ci/linux/commits/Andrei-Stefanescu-microchip-com/add-support-for-MCP16502-PMIC/20181128-041809
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git 
for-next

 mcp16502.c |1 -
 1 file changed, 1 deletion(-)

--- a/drivers/regulator/mcp16502.c
+++ b/drivers/regulator/mcp16502.c
@@ -527,7 +527,6 @@ static struct i2c_driver mcp16502_drv =
.probe  = mcp16502_probe,
.driver = {
.name   = "mcp16502-regulator",
-   .owner  = THIS_MODULE,
.of_match_table = of_match_ptr(mcp16502_ids),
.pm = _pm_ops,
},


Re: [PATCH v2 3/3] regulator: mcp16502: add regulator driver for MCP16502

2018-11-27 Thread kbuild test robot
Hi Andrei.Stefanescu,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on regulator/for-next]
[also build test WARNING on v4.20-rc4 next-20181127]
[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/Andrei-Stefanescu-microchip-com/add-support-for-MCP16502-PMIC/20181128-041809
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git 
for-next


coccinelle warnings: (new ones prefixed by >>)

>> drivers/regulator/mcp16502.c:530: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


Re: [PATCH v2 3/3] regulator: mcp16502: add regulator driver for MCP16502

2018-11-27 Thread kbuild test robot
Hi Andrei.Stefanescu,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on regulator/for-next]
[also build test ERROR on v4.20-rc4 next-20181127]
[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/Andrei-Stefanescu-microchip-com/add-support-for-MCP16502-PMIC/20181128-041809
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git 
for-next
config: sh-allyesconfig (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
GCC_VERSION=7.2.0 make.cross ARCH=sh 

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

   drivers//regulator/mcp16502.c: In function 'mcp16502_suspend_get_target_reg':
>> drivers//regulator/mcp16502.c:273:10: error: 'pm_suspend_target_state' 
>> undeclared (first use in this function); did you mean 'pm_suspended_storage'?
 switch (pm_suspend_target_state) {
 ^~~
 pm_suspended_storage
   drivers//regulator/mcp16502.c:273:10: note: each undeclared identifier is 
reported only once for each function it appears in
   drivers//regulator/mcp16502.c: In function 'mcp16502_set_suspend_mode':
   drivers//regulator/mcp16502.c:310:10: error: 'pm_suspend_target_state' 
undeclared (first use in this function); did you mean 'pm_suspended_storage'?
 switch (pm_suspend_target_state) {
 ^~~
 pm_suspended_storage
   drivers//regulator/mcp16502.c: In function 'mcp16502_suspend_get_target_reg':
>> drivers//regulator/mcp16502.c:284:1: warning: control reaches end of 
>> non-void function [-Wreturn-type]
}
^
   drivers//regulator/mcp16502.c: In function 'mcp16502_set_suspend_mode':
   drivers//regulator/mcp16502.c:321:1: warning: control reaches end of 
non-void function [-Wreturn-type]
}
^

vim +273 drivers//regulator/mcp16502.c

   266  
   267  /*
   268   * mcp16502_suspend_get_target_reg() - get the reg of the target 
suspend PMIC
   269   * mode
   270   */
   271  static int mcp16502_suspend_get_target_reg(struct regulator_dev *rdev)
   272  {
 > 273  switch (pm_suspend_target_state) {
   274  case PM_SUSPEND_STANDBY:
   275  return mcp16502_get_reg(rdev, MCP16502_OPMODE_LPM);
   276  case PM_SUSPEND_ON:
   277  case PM_SUSPEND_MEM:
   278  return mcp16502_get_reg(rdev, MCP16502_OPMODE_HIB);
   279  default:
   280  dev_err(>dev, "invalid suspend target: %d\n",
   281  pm_suspend_target_state);
   282  return -EINVAL;
   283  }
 > 284  }
   285  

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


.config.gz
Description: application/gzip


[PATCH] RDMA/uverbs: fix ptr_ret.cocci warnings

2018-11-27 Thread kbuild test robot
From: kbuild test robot 

drivers/infiniband/core/uverbs_cmd.c:1095:1-3: WARNING: PTR_ERR_OR_ZERO can be 
used


 Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

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

Fixes: 7106a9769715 ("RDMA/uverbs: Make write() handlers return 0 on success")
Signed-off-by: kbuild test robot 
---

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma for-next
head:   07f05f40d956d40f32852a7b3ff109a72d254cf9
commit: 7106a9769715bb4c0448927a29aa3b505855871c [31/37] RDMA/uverbs: Make 
write() handlers return 0 on success

 uverbs_cmd.c |5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

--- a/drivers/infiniband/core/uverbs_cmd.c
+++ b/drivers/infiniband/core/uverbs_cmd.c
@@ -1092,10 +1092,7 @@ static int ib_uverbs_create_cq(struct uv
sizeof(cmd.comp_channel), ib_uverbs_create_cq_cb,
NULL);
 
-   if (IS_ERR(obj))
-   return PTR_ERR(obj);
-
-   return 0;
+   return PTR_ERR_OR_ZERO(obj);
 }
 
 static int ib_uverbs_ex_create_cq_cb(struct uverbs_attr_bundle *attrs,


Re: [PATCH 1/2] thermal: imx_sc: add i.MX system controller thermal support

2018-11-27 Thread kbuild test robot
Hi Anson,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on soc-thermal/next]
[also build test ERROR on v4.20-rc4 next-20181126]
[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/Anson-Huang/thermal-imx_sc-add-i-MX-system-controller-thermal-support/20181127-141933
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal.git 
next
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/thermal/imx_sc_thermal.c:12:10: fatal error: 
>> linux/firmware/imx/sci.h: No such file or directory
#include 
 ^~
   compilation terminated.

coccinelle warnings: (new ones prefixed by >>)

>> drivers/thermal/imx_sc_thermal.c:197:1-6: WARNING: invalid free of devm_ 
>> allocated data
   drivers/thermal/imx_sc_thermal.c:199:1-6: WARNING: invalid free of devm_ 
allocated data
--
>> drivers/thermal/imx_sc_thermal.c:173:6-25: WARNING: Unsigned expression 
>> compared with zero: sensor -> resource_id < 0

vim +12 drivers/thermal/imx_sc_thermal.c

  > 12  #include 
13  #include 
14  #include 
15  #include 
16  #include 
17  #include 
18  #include 
19  
20  #include "thermal_core.h"
21  
22  #define IMX_SC_MISC_FUNC_GET_TEMP   13
23  #define IMX_SC_C_TEMP   0
24  
25  struct imx_sc_ipc *thermal_ipc_handle;
26  
27  struct imx_sc_sensor {
28  struct thermal_zone_device *tzd;
29  unsigned int resource_id;
30  };
31  
32  struct imx_sc_thermal_data {
33  struct imx_sc_sensor *sensor;
34  };
35  
36  struct imx_sc_msg_req_misc_get_temp {
37  struct imx_sc_rpc_msg hdr;
38  u16 resource_id;
39  u8 type;
40  } __packed;
41  
42  struct imx_sc_msg_resp_misc_get_temp {
43  struct imx_sc_rpc_msg hdr;
44  u16 celsius;
45  u8 tenths;
46  } __packed;
47  
48  static int imx_sc_thermal_get_temp(void *data, int *temp)
49  {
50  struct imx_sc_msg_resp_misc_get_temp *resp;
51  struct imx_sc_msg_req_misc_get_temp msg;
52  struct imx_sc_rpc_msg *hdr = 
53  struct imx_sc_sensor *sensor = data;
54  int ret;
55  
56  msg.resource_id = sensor->resource_id;
57  msg.type = IMX_SC_C_TEMP;
58  
59  hdr->ver = IMX_SC_RPC_VERSION;
60  hdr->svc = IMX_SC_RPC_SVC_MISC;
61  hdr->func = IMX_SC_MISC_FUNC_GET_TEMP;
62  hdr->size = 2;
63  
64  ret = imx_scu_call_rpc(thermal_ipc_handle, , true);
65  if (ret) {
66  pr_err("read temp sensor %d failed, ret %d\n",
67  sensor->resource_id, ret);
68  return ret;
69  }
70  
71  resp = (struct imx_sc_msg_resp_misc_get_temp *)
72  *temp = resp->celsius * 1000 + resp->tenths * 100;
73  
74  return 0;
75  }
76  
77  static const struct thermal_zone_of_device_ops imx_sc_thermal_ops = {
78  .get_temp = imx_sc_thermal_get_temp,
79  };
80  
81  static int imx_sc_thermal_register_sensor(struct platform_device *pdev,
82struct imx_sc_sensor *sensor)
83  {
84  struct thermal_zone_device *tzd;
85  
86  tzd = devm_thermal_zone_of_sensor_register(>dev,
87 sensor->resource_id,
88 sensor,
89 _sc_thermal_ops);
90  if (IS_ERR(tzd)) {
91  dev_err(>dev, "failed to register sensor: %d\n",
92  sensor->resource_id);
93  return -EINVAL;
94  }
95  
96  sensor->tzd = tzd;
97  
98  return 0;
99  }
   100  
   101  static int imx_sc_thermal_get_sensor_id(struct device_node *sensor_np)
   102  {
   103  struct of_phandle_args sensor_specs;
   104  int ret;
   105  
   106  ret = of_parse_phandle_with_args(sensor_np, "thermal-sensors",
   107  "#thermal-sensor-cells",
   108  0, _specs);
   109  if (ret)
   110  return ret;
   111  
   112  if (sensor_specs.args_count >= 1) {
   113  ret = sensor_specs.args[0];
   114  WARN(sensor_specs.args_count > 1,
   115  "%pOFn: too many cells in sensor 

[PATCH] clk: mediatek: fix platform_no_drv_owner.cocci warnings

2018-11-27 Thread kbuild test robot
From: kbuild test robot 

drivers/clk/mediatek/clk-mt8183.c:1295: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: 14926375ef78 ("clk: mediatek: Add MT8183 clock support")
CC: Weiyi Lu 
Signed-off-by: kbuild test robot 
---

url:
https://github.com/0day-ci/linux/commits/Weiyi-Lu/Mediatek-MT8183-clock-and-scpsys-support/20181127-114621
base:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next

 clk-mt8183.c |1 -
 1 file changed, 1 deletion(-)

--- a/drivers/clk/mediatek/clk-mt8183.c
+++ b/drivers/clk/mediatek/clk-mt8183.c
@@ -1292,7 +1292,6 @@ static struct platform_driver clk_mt8183
.probe = clk_mt8183_probe,
.driver = {
.name = "clk-mt8183",
-   .owner = THIS_MODULE,
.of_match_table = of_match_clk_mt8183,
},
 };


Re: [PATCH v2 08/11] clk: mediatek: Add MT8183 clock support

2018-11-27 Thread kbuild test robot
Hi Weiyi,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on clk/clk-next]
[also build test WARNING on v4.20-rc4 next-20181126]
[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/Weiyi-Lu/Mediatek-MT8183-clock-and-scpsys-support/20181127-114621
base:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next


coccinelle warnings: (new ones prefixed by >>)

>> drivers/clk/mediatek/clk-mt8183.c:1295: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


[rcu:dev.2018.11.15a 28/34] htmldocs: include/linux/rcupdate.h:892: warning: Function parameter or member 'f' not described in 'rcu_head_after_call_rcu'

2018-11-26 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git 
dev.2018.11.15a
head:   4bf88a0cb428c6118bd92984bc3a2db93917
commit: 89501eaefe1cbf2a0789cb0e9588ec47aa3b0a79 [28/34] rcu: Docbook for 
rcu_head_init() and rcu_head_after_call_rcu()
reproduce: make htmldocs

All warnings (new ones prefixed by >>):

   WARNING: convert(1) not found, for SVG to PDF conversion install ImageMagick 
(https://www.imagemagick.org)
   kernel/resource.c:337: warning: Function parameter or member 'start' not 
described in 'find_next_iomem_res'
   kernel/resource.c:337: warning: Function parameter or member 'end' not 
described in 'find_next_iomem_res'
   kernel/resource.c:337: warning: Function parameter or member 'flags' not 
described in 'find_next_iomem_res'
   kernel/resource.c:337: warning: Function parameter or member 'desc' not 
described in 'find_next_iomem_res'
   kernel/resource.c:337: warning: Function parameter or member 'first_lvl' not 
described in 'find_next_iomem_res'
   kernel/resource.c:337: warning: Function parameter or member 'res' not 
described in 'find_next_iomem_res'
   kernel/resource.c:409: warning: Function parameter or member 'arg' not 
described in 'walk_iomem_res_desc'
   kernel/resource.c:409: warning: Function parameter or member 'func' not 
described in 'walk_iomem_res_desc'
   kernel/resource.c:409: warning: Function parameter or member 'arg' not 
described in 'walk_iomem_res_desc'
   kernel/resource.c:409: warning: Function parameter or member 'func' not 
described in 'walk_iomem_res_desc'
>> include/linux/rcupdate.h:892: warning: Function parameter or member 'f' not 
>> described in 'rcu_head_after_call_rcu'
   include/linux/rcupdate.h:892: warning: Excess function parameter 'func' 
description in 'rcu_head_after_call_rcu'
   include/linux/rcupdate_wait.h:1: warning: no structured comments found
   include/linux/rcutree.h:1: warning: no structured comments found
   kernel/rcu/tree.c:710: warning: Excess function parameter 'irq' description 
in 'rcu_nmi_exit'
   include/linux/gfp.h:1: warning: no structured comments found
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:4439: warning: Function parameter or member 
'wext.ibss' not described in 'wireless_dev'
   include/net/cfg80211.h:4439: warning: Function parameter or member 
'wext.connect' not described in 'wireless_dev'
   include/net/cfg80211.h:4439: warning: Function parameter or member 
'wext.keys' not described in 'wireless_dev'
   include/net/cfg80211.h:4439: warning: Function parameter or member 'wext.ie' 
not described in 'wireless_dev'
   include/net/cfg80211.h:4439: warning: Function parameter or member 
'wext.ie_len' not described in 'wireless_dev'
   include/net/cfg80211.h:4439: warning: Function parameter or member 
'wext.bssid' not described in 'wireless_dev'
   include/net/cfg80211.h:4439: warning: Function parameter or member 
'wext.ssid' not described in 'wireless_dev'
   include/net/cfg80211.h:4439: warning: Function parameter or member 
'wext.default_key' not described in 'wireless_dev'
   include/net/cfg80211.h:4439: warning: Function parameter or member 
'wext.default_mgmt_key' not described in 'wireless_dev'
   include/net/cfg80211.h:4439: warning: Function parameter or member 
'wext.prev_bssid_valid' not described in 'wireless_dev'
   include/net/cfg80211.h:2838: warning: cannot understand function prototype: 
'struct cfg80211_ftm_responder_stats '
   include/net/cfg80211.h:2838: warning: cannot 

Re: [PATCH 2/2] kconfig: tests: test reverse dependency with tristate if-conditional

2018-11-26 Thread kbuild test robot
Hi Masahiro,

I love your patch! Yet something to improve:

[auto build test ERROR on masahiroy/kconfig]
[also build test ERROR on v4.20-rc4 next-20181126]
[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/Masahiro-Yamada/kconfig-fix-reverse-dependency-with-tristate-if-conditional/20181126-152716
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git 
kconfig
config: x86_64-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=x86_64 

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

   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
>> drivers/input/mouse/synaptics.c:1754:16: error: undefined identifier 
>> 'psmouse_smbus_init'
   drivers/input/mouse/synaptics.c: In function 'synaptics_create_intertouch':
   drivers/input/mouse/synaptics.c:1754:9: error: implicit declaration of 
function 'psmouse_smbus_init'; did you mean 'psmouse_smbus_cleanup'? 
[-Werror=implicit-function-declaration]
 return psmouse_smbus_init(psmouse, _board,
^~
psmouse_smbus_cleanup
   cc1: some warnings being treated as errors
--
>> drivers/input/mouse/elantech.c:1786:16: error: undefined identifier 
>> 'psmouse_smbus_init'
   include/linux/slab.h:332:43: warning: dubious: x & !y
   drivers/input/mouse/elantech.c: In function 'elantech_create_smbus':
   drivers/input/mouse/elantech.c:1786:9: error: implicit declaration of 
function 'psmouse_smbus_init'; did you mean 'psmouse_smbus_cleanup'? 
[-Werror=implicit-function-declaration]
 return psmouse_smbus_init(psmouse, _board, NULL, 0, false,
^~
psmouse_smbus_cleanup
   cc1: some warnings being treated as errors
--
   sound/soc/intel/skylake/skl-topology.c:2474:39:got restricted __le32 
[usertype] value
   sound/soc/intel/skylake/skl-topology.c:2478:41: warning: incorrect type in 
assignment (different base types)
   sound/soc/intel/skylake/skl-topology.c:2478:41:expected unsigned int 
[unsigned] [usertype] instance_id
   sound/soc/intel/skylake/skl-topology.c:2478:41:got restricted __le32 
[usertype] value
   sound/soc/intel/skylake/skl-topology.c:2493:34: warning: incorrect type in 
assignment (different base types)
   sound/soc/intel/skylake/skl-topology.c:2493:34:expected unsigned int 
[unsigned] [usertype] vbus_id
   sound/soc/intel/skylake/skl-topology.c:2493:34:got restricted __le32 
[usertype] value
   sound/soc/intel/skylake/skl-topology.c:2497:39: warning: incorrect type in 
assignment (different base types)
   sound/soc/intel/skylake/skl-topology.c:2497:39:expected unsigned int 
[unsigned] [usertype] params_fixup
   sound/soc/intel/skylake/skl-topology.c:2497:39:got restricted __le32 
[usertype] value
   sound/soc/intel/skylake/skl-topology.c:2501:36: warning: incorrect type in 
assignment (different base types)
   sound/soc/intel/skylake/skl-topology.c:2501:36:expected unsigned int 
[unsigned] [usertype] converter
   sound/soc/intel/skylake/skl-topology.c:2501:36:got restricted __le32 
[usertype] value
   sound/soc/intel/skylake/skl-topology.c:2505:36: warning: incorrect type in 
assignment (different base types)
   sound/soc/intel/skylake/skl-topology.c:2505:36:expected unsigned int 
enum d0i3_capability [unsigned] d0i3_caps
   sound/soc/intel/skylake/skl-topology.c:2505:36:got restricted __le32 
[usertype] value
   sound/soc/intel/skylake/skl-topology.c:2523:26: warning: incorrect type in 
assignment (different base types)
   sound/soc/intel/skylake/skl-topology.c:2523:26:expected int static 
[signed] conf_idx
   sound/soc/intel/skylake/skl-topology.c:2523:26:got restricted __le32 
[usertype] value
   sound/soc/intel/skylake/skl-topology.c:2534:49: warning: incorrect type in 
argument 3 (different base types)
   sound/soc/intel/skylake/skl-topology.c:2534:49:expected unsigned int 
[unsigned] [usertype] tkn
   sound/soc/intel/skylake/skl-topology.c:2534:49:got restricted __le32 
[usertype] token
   sound/soc/intel/skylake/skl-topology.c:2534:66: warning: incorrect type in 
argument 4 (different base types)
   sound/soc/intel/skylake/skl-topology.c:2534:66:expected unsigned int 
[unsigned] [usertype] tkn_val
   sound/soc/intel/skylake/skl-topology.c:2534:66:got restricted __le32 
[usertype] value
   sound/soc/intel/skylake/skl-topology.c:2547:49: warning: incorrect type in 
argument 3 (different base types)
   sound/soc/intel/skylake/skl-topology.c:2547:49:expected unsigned int 
[unsigned] [usertype] tkn
   sound/soc/intel/skylake/skl-topology.c:2547:49:got restricted __le32 
[usertype] token
   sound/soc/intel/skylake/skl-topology.c:2547:66: warning: incorrect type in 
argument 4 (different base types)
   

Re: [PATCH 2/2] drm/vkms: Add PRIME support by converting to Noralf's shmem helpers.

2018-11-26 Thread kbuild test robot
Hi Eric,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc4 next-20181126]
[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/Eric-Anholt/drm-vkms-Drop-custom-vkms_dumb_map/20181127-072142
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/gpu/drm/vkms/vkms_drv.c:22:10: fatal error: 
>> drm/drm_gem_shmem_helper.h: No such file or directory
#include 
 ^~~~
   compilation terminated.
--
>> drivers/gpu/drm/vkms/vkms_plane.c:14:10: fatal error: 
>> drm/drm_gem_shmem_helper.h: No such file or directory
#include 
 ^~~~
   compilation terminated.
--
>> drivers/gpu/drm/vkms/vkms_gem.c:10:10: fatal error: 
>> drm/drm_gem_shmem_helper.h: No such file or directory
#include 
 ^~~~
   compilation terminated.
--
>> drivers/gpu/drm/vkms/vkms_crc.c:7:10: fatal error: 
>> drm/drm_gem_shmem_helper.h: No such file or directory
#include 
 ^~~~
   compilation terminated.

vim +22 drivers/gpu/drm/vkms/vkms_drv.c

  > 22  #include 
23  #include 
24  #include "vkms_drv.h"
25  

---
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 -next] platform/x86: intel-ips: fix 'passing zero to PTR_ERR()' warning

2018-11-26 Thread kbuild test robot
Hi YueHaibing,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on next-20181126]

url:
https://github.com/0day-ci/linux/commits/YueHaibing/platform-x86-intel-ips-fix-passing-zero-to-PTR_ERR-warning/20181126-213205
config: x86_64-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=x86_64 

All errors (new ones prefixed by >>):

>> drivers/platform/x86/intel_ips.c:1315:17: error: Expected ; at end of 
>> statement
>> drivers/platform/x86/intel_ips.c:1315:17: error: got return

vim +1315 drivers/platform/x86/intel_ips.c

aa7ffc01 Jesse Barnes 2010-05-14  1307  
aa7ffc01 Jesse Barnes 2010-05-14  1308  static void ips_debugfs_init(struct 
ips_driver *ips)
aa7ffc01 Jesse Barnes 2010-05-14  1309  {
aa7ffc01 Jesse Barnes 2010-05-14  1310  int i;
aa7ffc01 Jesse Barnes 2010-05-14  1311  
aa7ffc01 Jesse Barnes 2010-05-14  1312  ips->debug_root = 
debugfs_create_dir("ips", NULL);
aa7ffc01 Jesse Barnes 2010-05-14  1313  if (!ips->debug_root) {
895c026e YueHaibing   2018-11-26  1314  dev_err(ips->dev, 
"failed to create debugfs entries\n")
aa7ffc01 Jesse Barnes 2010-05-14 @1315  return;
aa7ffc01 Jesse Barnes 2010-05-14  1316  }
aa7ffc01 Jesse Barnes 2010-05-14  1317  
aa7ffc01 Jesse Barnes 2010-05-14  1318  for (i = 0; i < 
ARRAY_SIZE(ips_debug_files); i++) {
aa7ffc01 Jesse Barnes 2010-05-14  1319  struct dentry *ent;
aa7ffc01 Jesse Barnes 2010-05-14  1320  struct ips_debugfs_node 
*node = _debug_files[i];
aa7ffc01 Jesse Barnes 2010-05-14  1321  
aa7ffc01 Jesse Barnes 2010-05-14  1322  node->ips = ips;
aa7ffc01 Jesse Barnes 2010-05-14  1323  ent = 
debugfs_create_file(node->name, S_IFREG | S_IRUGO,
aa7ffc01 Jesse Barnes 2010-05-14  1324  
  ips->debug_root, node,
aa7ffc01 Jesse Barnes 2010-05-14  1325  
  _debugfs_ops);
aa7ffc01 Jesse Barnes 2010-05-14  1326  if (!ent) {
895c026e YueHaibing   2018-11-26  1327  
dev_err(ips->dev, "failed to create debug file\n");
aa7ffc01 Jesse Barnes 2010-05-14  1328  goto 
err_cleanup;
aa7ffc01 Jesse Barnes 2010-05-14  1329  }
aa7ffc01 Jesse Barnes 2010-05-14  1330  }
aa7ffc01 Jesse Barnes 2010-05-14  1331  
aa7ffc01 Jesse Barnes 2010-05-14  1332  return;
aa7ffc01 Jesse Barnes 2010-05-14  1333  
aa7ffc01 Jesse Barnes 2010-05-14  1334  err_cleanup:
aa7ffc01 Jesse Barnes 2010-05-14  1335  ips_debugfs_cleanup(ips);
aa7ffc01 Jesse Barnes 2010-05-14  1336  return;
aa7ffc01 Jesse Barnes 2010-05-14  1337  }
aa7ffc01 Jesse Barnes 2010-05-14  1338  #endif /* CONFIG_DEBUG_FS */
aa7ffc01 Jesse Barnes 2010-05-14  1339  

:: The code at line 1315 was first introduced by commit
:: aa7ffc01d254c91a36bf854d57a14049c6134c72 x86 platform driver: 
intelligent power sharing driver

:: TO: Jesse Barnes 
:: CC: Matthew Garrett 

---
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/8] mfd / platform: cros_ec: move vbc attributes to its own driver.

2018-11-26 Thread kbuild test robot
Hi Enric,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc4 next-20181126]
[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/Enric-Balletbo-i-Serra/mfd-platform-cros_ec-move-cros_ec-sysfs-attributes-to-its-own-drivers/20181127-032421
config: x86_64-randconfig-x017-201847 (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=x86_64 

Note: the 
linux-review/Enric-Balletbo-i-Serra/mfd-platform-cros_ec-move-cros_ec-sysfs-attributes-to-its-own-drivers/20181127-032421
 HEAD 08af4d071e30b3c486bdef3b3834f0f106f98187 builds fine.
  It only hurts bisectibility.

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

   drivers//mfd/cros_ec_dev.c: In function 'ec_device_probe':
>> drivers//mfd/cros_ec_dev.c:487:2: error: 'node' undeclared (first use in 
>> this function); did you mean 'inode'?
 node = ec->ec_dev->dev->of_node;
 ^~~~
 inode
   drivers//mfd/cros_ec_dev.c:487:2: note: each undeclared identifier is 
reported only once for each function it appears in
>> drivers//mfd/cros_ec_dev.c:488:6: error: implicit declaration of function 
>> 'of_property_read_bool' [-Werror=implicit-function-declaration]
 if (of_property_read_bool(node, "google,has-vbc-nvram")) {
 ^
>> drivers//mfd/cros_ec_dev.c:490:7: error: 'cros_ec_vbc_cells' undeclared 
>> (first use in this function); did you mean 'cros_ec_rtc_cells'?
  cros_ec_vbc_cells,
  ^
  cros_ec_rtc_cells
   In file included from include/linux/kernel.h:15:0,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from drivers//mfd/cros_ec_dev.c:20:
>> include/linux/build_bug.h:29:45: error: bit-field '' width not an 
>> integer constant
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))
^
   include/linux/compiler.h:379:28: note: in expansion of macro 
'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
   ^
   include/linux/kernel.h:72:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + 
__must_be_array(arr))
  ^~~
>> drivers//mfd/cros_ec_dev.c:491:7: note: in expansion of macro 'ARRAY_SIZE'
  ARRAY_SIZE(cros_ec_vbc_cells),
  ^~
   cc1: some warnings being treated as errors
--
   drivers/mfd/cros_ec_dev.c: In function 'ec_device_probe':
   drivers/mfd/cros_ec_dev.c:487:2: error: 'node' undeclared (first use in this 
function); did you mean 'inode'?
 node = ec->ec_dev->dev->of_node;
 ^~~~
 inode
   drivers/mfd/cros_ec_dev.c:487:2: note: each undeclared identifier is 
reported only once for each function it appears in
   drivers/mfd/cros_ec_dev.c:488:6: error: implicit declaration of function 
'of_property_read_bool' [-Werror=implicit-function-declaration]
 if (of_property_read_bool(node, "google,has-vbc-nvram")) {
 ^
   drivers/mfd/cros_ec_dev.c:490:7: error: 'cros_ec_vbc_cells' undeclared 
(first use in this function); did you mean 'cros_ec_rtc_cells'?
  cros_ec_vbc_cells,
  ^
  cros_ec_rtc_cells
   In file included from include/linux/kernel.h:15:0,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from drivers/mfd/cros_ec_dev.c:20:
>> include/linux/build_bug.h:29:45: error: bit-field '' width not an 
>> integer constant
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))
^
   include/linux/compiler.h:379:28: note: in expansion of macro 
'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
   ^
   include/linux/kernel.h:72:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + 
__must_be_array(arr))
  ^~~
   drivers/mfd/cros_ec_dev.c:491:7: note: in expansion of macro 'ARRAY_SIZE'
  ARRAY_SIZE(cros_ec_vbc_cells),
  ^~
   cc1: some warnings being treated as errors

vim +/of_property_read_bool +488 drivers//mfd/cros_ec_dev.c

   395  
   396  static int ec_device_probe(struct platform_device *pdev)
   397  {
   398  

Re: [PATCH v3 4/4] arm64: dts: actions: s700-cubieboard7: Enable SIRQ

2018-11-26 Thread kbuild test robot
Hi Parthiban,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on tip/irq/core]
[also build test ERROR on v4.20-rc4 next-20181126]
[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/Parthiban-Nallathambi/Add-Actions-Semi-Owl-family-sirq-support/20181126-181439
config: arm64-allmodconfig (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
GCC_VERSION=7.2.0 make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

>> Error: arch/arm64/boot/dts/actions/s700-cubieboard7.dts:46.1-9 Label or path 
>> pinctrl 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 -next] platform/x86: intel-ips: fix 'passing zero to ERR_PTR()' warning

2018-11-26 Thread kbuild test robot
Hi YueHaibing,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on next-20181126]

url:
https://github.com/0day-ci/linux/commits/YueHaibing/platform-x86-intel-ips-fix-passing-zero-to-ERR_PTR-warning/20181126-211845
config: x86_64-randconfig-x019-201847 (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=x86_64 

All errors (new ones prefixed by >>):

   drivers/platform/x86/intel_ips.c: In function 'ips_debugfs_init':
>> drivers/platform/x86/intel_ips.c:1315:3: error: expected ';' before 'return'
  return;
  ^~

vim +1315 drivers/platform/x86/intel_ips.c

aa7ffc01 Jesse Barnes 2010-05-14  1307  
aa7ffc01 Jesse Barnes 2010-05-14  1308  static void ips_debugfs_init(struct 
ips_driver *ips)
aa7ffc01 Jesse Barnes 2010-05-14  1309  {
aa7ffc01 Jesse Barnes 2010-05-14  1310  int i;
aa7ffc01 Jesse Barnes 2010-05-14  1311  
aa7ffc01 Jesse Barnes 2010-05-14  1312  ips->debug_root = 
debugfs_create_dir("ips", NULL);
aa7ffc01 Jesse Barnes 2010-05-14  1313  if (!ips->debug_root) {
d18c8b17 YueHaibing   2018-11-26  1314  dev_err(ips->dev, 
"failed to create debugfs entries\n")
aa7ffc01 Jesse Barnes 2010-05-14 @1315  return;
aa7ffc01 Jesse Barnes 2010-05-14  1316  }
aa7ffc01 Jesse Barnes 2010-05-14  1317  
aa7ffc01 Jesse Barnes 2010-05-14  1318  for (i = 0; i < 
ARRAY_SIZE(ips_debug_files); i++) {
aa7ffc01 Jesse Barnes 2010-05-14  1319  struct dentry *ent;
aa7ffc01 Jesse Barnes 2010-05-14  1320  struct ips_debugfs_node 
*node = _debug_files[i];
aa7ffc01 Jesse Barnes 2010-05-14  1321  
aa7ffc01 Jesse Barnes 2010-05-14  1322  node->ips = ips;
aa7ffc01 Jesse Barnes 2010-05-14  1323  ent = 
debugfs_create_file(node->name, S_IFREG | S_IRUGO,
aa7ffc01 Jesse Barnes 2010-05-14  1324  
  ips->debug_root, node,
aa7ffc01 Jesse Barnes 2010-05-14  1325  
  _debugfs_ops);
aa7ffc01 Jesse Barnes 2010-05-14  1326  if (!ent) {
d18c8b17 YueHaibing   2018-11-26  1327  
dev_err(ips->dev, "failed to create debug file\n");
aa7ffc01 Jesse Barnes 2010-05-14  1328  goto 
err_cleanup;
aa7ffc01 Jesse Barnes 2010-05-14  1329  }
aa7ffc01 Jesse Barnes 2010-05-14  1330  }
aa7ffc01 Jesse Barnes 2010-05-14  1331  
aa7ffc01 Jesse Barnes 2010-05-14  1332  return;
aa7ffc01 Jesse Barnes 2010-05-14  1333  
aa7ffc01 Jesse Barnes 2010-05-14  1334  err_cleanup:
aa7ffc01 Jesse Barnes 2010-05-14  1335  ips_debugfs_cleanup(ips);
aa7ffc01 Jesse Barnes 2010-05-14  1336  return;
aa7ffc01 Jesse Barnes 2010-05-14  1337  }
aa7ffc01 Jesse Barnes 2010-05-14  1338  #endif /* CONFIG_DEBUG_FS */
aa7ffc01 Jesse Barnes 2010-05-14  1339  

:: The code at line 1315 was first introduced by commit
:: aa7ffc01d254c91a36bf854d57a14049c6134c72 x86 platform driver: 
intelligent power sharing driver

:: TO: Jesse Barnes 
:: CC: Matthew Garrett 

---
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] kconfig: fix reverse dependency with tristate if-conditional

2018-11-26 Thread kbuild test robot
Hi Masahiro,

I love your patch! Yet something to improve:

[auto build test ERROR on masahiroy/kconfig]
[also build test ERROR on v4.20-rc4 next-20181123]
[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/Masahiro-Yamada/kconfig-fix-reverse-dependency-with-tristate-if-conditional/20181126-152716
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git 
kconfig
config: i386-randconfig-s3-201847 (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=i386 

All errors (new ones prefixed by >>):

   arch/x86/kernel/dumpstack.o: In function `touch_nmi_watchdog':
>> include/linux/nmi.h:135: undefined reference to `touch_softlockup_watchdog'
   arch/x86/kernel/nmi.o: In function `touch_nmi_watchdog':
>> include/linux/nmi.h:135: undefined reference to `touch_softlockup_watchdog'
   arch/x86/kernel/kvm.o: In function `kvm_guest_init':
>> arch/x86/kernel/kvm.c:664: undefined reference to 
>> `hardlockup_detector_disable'
   arch/x86/kernel/pvclock.o: In function `pvclock_touch_watchdogs':
>> arch/x86/kernel/pvclock.c:52: undefined reference to 
>> `touch_softlockup_watchdog_sync'
   kernel/panic.o: In function `touch_nmi_watchdog':
>> include/linux/nmi.h:135: undefined reference to `touch_softlockup_watchdog'
>> include/linux/nmi.h:135: undefined reference to `touch_softlockup_watchdog'
>> include/linux/nmi.h:135: undefined reference to `touch_softlockup_watchdog'
   kernel/panic.o: In function `panic':
>> kernel/panic.c:300: undefined reference to `touch_softlockup_watchdog'
   kernel/workqueue.o: In function `touch_nmi_watchdog':
>> include/linux/nmi.h:135: undefined reference to `touch_softlockup_watchdog'
   kernel/workqueue.o:include/linux/nmi.h:135: more undefined references to 
`touch_softlockup_watchdog' follow
   kernel/sched/core.o: In function `show_state_filter':
>> kernel/sched/core.c:5341: undefined reference to 
>> `touch_all_softlockup_watchdogs'
   kernel/power/hibernate.o: In function `resume_target_kernel':
>> kernel/power/hibernate.c:480: undefined reference to 
>> `touch_softlockup_watchdog'
   kernel/power/snapshot.o: In function `rtree_next_node':
>> kernel/power/snapshot.c:847: undefined reference to 
>> `touch_softlockup_watchdog'
   kernel/printk/printk.o: In function `touch_nmi_watchdog':
>> include/linux/nmi.h:135: undefined reference to `touch_softlockup_watchdog'
   kernel/time/timekeeping.o: In function `timekeeping_resume':
>> kernel/time/timekeeping.c:1731: undefined reference to 
>> `touch_softlockup_watchdog'
   kernel/time/timer_list.o: In function `touch_nmi_watchdog':
>> include/linux/nmi.h:135: undefined reference to `touch_softlockup_watchdog'
   kernel/time/timer_list.o:include/linux/nmi.h:135: more undefined references 
to `touch_softlockup_watchdog' follow
   drivers/tty/serial/earlycon.o: In function `parse_options':
>> drivers/tty/serial/earlycon.c:94: undefined reference to 
>> `uart_parse_earlycon'
   drivers/tty/serial/8250/8250_core.o: In function `univ8250_console_match':
>> drivers/tty/serial/8250/8250_core.c:640: undefined reference to 
>> `uart_parse_earlycon'
   drivers/tty/serial/8250/8250_core.o: In function `serial8250_suspend':
>> drivers/tty/serial/8250/8250_core.c:865: undefined reference to 
>> `uart_suspend_port'
   drivers/tty/serial/8250/8250_core.o: In function 
`serial8250_find_match_or_unused':
>> drivers/tty/serial/8250/8250_core.c:916: undefined reference to 
>> `uart_match_port'
   drivers/tty/serial/8250/8250_core.o: In function 
`serial8250_register_8250_port':
>> drivers/tty/serial/8250/8250_core.c:971: undefined reference to 
>> `uart_remove_one_port'

vim +135 include/linux/nmi.h

6592ad2f Thomas Gleixner  2017-09-12  124  
^1da177e Linus Torvalds   2005-04-16  125  /**
^1da177e Linus Torvalds   2005-04-16  126   * touch_nmi_watchdog - restart NMI 
watchdog timeout.
^1da177e Linus Torvalds   2005-04-16  127   *
^1da177e Linus Torvalds   2005-04-16  128   * If the architecture supports the 
NMI watchdog, touch_nmi_watchdog()
^1da177e Linus Torvalds   2005-04-16  129   * may be used to reset the timeout 
- for code which intentionally
^1da177e Linus Torvalds   2005-04-16  130   * disables interrupts for a long 
time. This call is stateless.
^1da177e Linus Torvalds   2005-04-16  131   */
5d0e600d Ingo Molnar  2007-02-13  132  static inline void 
touch_nmi_watchdog(void)
5d0e600d Ingo Molnar  2007-02-13  133  {
f2e0cff8 Nicholas Piggin  2017-07-12  134   arch_touch_nmi_watchdog();
5d0e600d Ingo Molnar  2007-02-13 @135   touch_softlockup_watchdog();
5d0e600d Ingo Molnar  2007-02-13  136  }
6e7458a6 Ulrich Obergfell 2014-10-13  137  

:: The code at line 135 was first introduced by commit
:: 5d0e600d903caa09e790824cc5812f0d97113b23 [PATCH] x86: fix laptop bootup 
hang in init_acpi()

:: 

Re: [PATCH 1/2] kconfig: fix reverse dependency with tristate if-conditional

2018-11-26 Thread kbuild test robot
Hi Masahiro,

I love your patch! Yet something to improve:

[auto build test ERROR on masahiroy/kconfig]
[also build test ERROR on v4.20-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/Masahiro-Yamada/kconfig-fix-reverse-dependency-with-tristate-if-conditional/20181126-152716
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git 
kconfig
config: i386-randconfig-s1-201847 (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=i386 

All errors (new ones prefixed by >>):

   drivers/input//mouse/synaptics.c: In function 'synaptics_create_intertouch':
>> drivers/input//mouse/synaptics.c:1754:9: error: implicit declaration of 
>> function 'psmouse_smbus_init' [-Werror=implicit-function-declaration]
 return psmouse_smbus_init(psmouse, _board,
^~
   cc1: some warnings being treated as errors

vim +/psmouse_smbus_init +1754 drivers/input//mouse/synaptics.c

e839ffab Benjamin Tissoires 2017-03-02  1728  
e839ffab Benjamin Tissoires 2017-03-02  1729  static int 
synaptics_create_intertouch(struct psmouse *psmouse,
e839ffab Benjamin Tissoires 2017-03-02  1730   
struct synaptics_device_info *info,
e839ffab Benjamin Tissoires 2017-03-02  1731   
bool leave_breadcrumbs)
e839ffab Benjamin Tissoires 2017-03-02  1732  {
e839ffab Benjamin Tissoires 2017-03-02  1733bool topbuttonpad =
e839ffab Benjamin Tissoires 2017-03-02  1734
psmouse_matches_pnp_id(psmouse, topbuttonpad_pnp_ids) &&
e839ffab Benjamin Tissoires 2017-03-02  1735
!SYN_CAP_EXT_BUTTONS_STICK(info->ext_cap_10);
e839ffab Benjamin Tissoires 2017-03-02  1736const struct 
rmi_device_platform_data pdata = {
e839ffab Benjamin Tissoires 2017-03-02  1737.sensor_pdata = {
e839ffab Benjamin Tissoires 2017-03-02  1738.sensor_type = 
rmi_sensor_touchpad,
e839ffab Benjamin Tissoires 2017-03-02  1739
.axis_align.flip_y = true,
2b30297d Andrew Duggan  2017-10-09  1740
.kernel_tracking = false,
e839ffab Benjamin Tissoires 2017-03-02  1741.topbuttonpad = 
topbuttonpad,
e839ffab Benjamin Tissoires 2017-03-02  1742},
e839ffab Benjamin Tissoires 2017-03-02  1743.f30_data = {
e839ffab Benjamin Tissoires 2017-03-02  1744.buttonpad = 
SYN_CAP_CLICKPAD(info->ext_cap_0c),
e839ffab Benjamin Tissoires 2017-03-02  1745
.trackstick_buttons =
e839ffab Benjamin Tissoires 2017-03-02  1746
!!SYN_CAP_EXT_BUTTONS_STICK(info->ext_cap_10),
e839ffab Benjamin Tissoires 2017-03-02  1747},
e839ffab Benjamin Tissoires 2017-03-02  1748};
e839ffab Benjamin Tissoires 2017-03-02  1749const struct i2c_board_info 
intertouch_board = {
e839ffab Benjamin Tissoires 2017-03-02  1750
I2C_BOARD_INFO("rmi4_smbus", 0x2c),
e839ffab Benjamin Tissoires 2017-03-02  1751.flags = 
I2C_CLIENT_HOST_NOTIFY,
e839ffab Benjamin Tissoires 2017-03-02  1752};
e839ffab Benjamin Tissoires 2017-03-02  1753  
e839ffab Benjamin Tissoires 2017-03-02 @1754return 
psmouse_smbus_init(psmouse, _board,
bf232e46 Benjamin Tissoires 2018-05-22  1755  
, sizeof(pdata), true,
e839ffab Benjamin Tissoires 2017-03-02  1756  
leave_breadcrumbs);
e839ffab Benjamin Tissoires 2017-03-02  1757  }
e839ffab Benjamin Tissoires 2017-03-02  1758  

:: The code at line 1754 was first introduced by commit
:: e839ffab028981ac77f650faf8c84f16e1719738 Input: synaptics - add support 
for Intertouch devices

:: TO: Benjamin Tissoires 
:: CC: Dmitry Torokhov 

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


.config.gz
Description: application/gzip


Re: [PATCH 3/3] iio: chemical: sps30: add device tree support

2018-11-25 Thread kbuild test robot
Hi Tomasz,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on iio/togreg]
[also build test WARNING on v4.20-rc4 next-20181123]
[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/Tomasz-Duszynski/add-support-for-Sensirion-SPS30-PM-sensor/20181125-172634
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: x86_64-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=x86_64 

All warnings (new ones prefixed by >>):

>> drivers/iio/chemical/sps30.c:69:26: warning: Variable length array is used.
   drivers/iio/chemical/sps30.c: In function 'sps30_read_raw':
   drivers/iio/chemical/sps30.c:237:7: warning: 'ret' may be used uninitialized 
in this function [-Wmaybe-uninitialized]
   if (ret)
  ^

vim +69 drivers/iio/chemical/sps30.c

0e4f3167f Tomasz Duszynski 2018-11-24   64  
0e4f3167f Tomasz Duszynski 2018-11-24   65  static int 
sps30_write_then_read(struct sps30_state *state, u8 *buf,
0e4f3167f Tomasz Duszynski 2018-11-24   66   int 
buf_size, u8 *data, int data_size)
0e4f3167f Tomasz Duszynski 2018-11-24   67  {
0e4f3167f Tomasz Duszynski 2018-11-24   68  /* every two received data 
bytes are checksummed */
0e4f3167f Tomasz Duszynski 2018-11-24  @69  u8 tmp[data_size + data_size / 
2];
0e4f3167f Tomasz Duszynski 2018-11-24   70  int ret, i;
0e4f3167f Tomasz Duszynski 2018-11-24   71  
0e4f3167f Tomasz Duszynski 2018-11-24   72  /*
0e4f3167f Tomasz Duszynski 2018-11-24   73   * Sensor does not support 
repeated start so instead of
0e4f3167f Tomasz Duszynski 2018-11-24   74   * sending two i2c messages in 
a row we just send one by one.
0e4f3167f Tomasz Duszynski 2018-11-24   75   */
0e4f3167f Tomasz Duszynski 2018-11-24   76  ret = 
i2c_master_send(state->client, buf, buf_size);
0e4f3167f Tomasz Duszynski 2018-11-24   77  if (ret != buf_size)
0e4f3167f Tomasz Duszynski 2018-11-24   78  return ret < 0 ? ret : 
-EIO;
0e4f3167f Tomasz Duszynski 2018-11-24   79  
0e4f3167f Tomasz Duszynski 2018-11-24   80  if (!data)
0e4f3167f Tomasz Duszynski 2018-11-24   81  return 0;
0e4f3167f Tomasz Duszynski 2018-11-24   82  
0e4f3167f Tomasz Duszynski 2018-11-24   83  ret = 
i2c_master_recv(state->client, tmp, sizeof(tmp));
0e4f3167f Tomasz Duszynski 2018-11-24   84  if (ret != sizeof(tmp))
0e4f3167f Tomasz Duszynski 2018-11-24   85  return ret < 0 ? ret : 
-EIO;
0e4f3167f Tomasz Duszynski 2018-11-24   86  
0e4f3167f Tomasz Duszynski 2018-11-24   87  for (i = 0; i < sizeof(tmp); i 
+= 3) {
0e4f3167f Tomasz Duszynski 2018-11-24   88  u8 crc = 
crc8(sps30_crc8_table, [i], 2, CRC8_INIT_VALUE);
0e4f3167f Tomasz Duszynski 2018-11-24   89  
0e4f3167f Tomasz Duszynski 2018-11-24   90  if (crc != tmp[i + 2]) {
0e4f3167f Tomasz Duszynski 2018-11-24   91  
dev_err(>client->dev,
0e4f3167f Tomasz Duszynski 2018-11-24   92  "data 
integrity check failed\n");
0e4f3167f Tomasz Duszynski 2018-11-24   93  return -EIO;
0e4f3167f Tomasz Duszynski 2018-11-24   94  }
0e4f3167f Tomasz Duszynski 2018-11-24   95  
0e4f3167f Tomasz Duszynski 2018-11-24   96  *data++ = tmp[i];
0e4f3167f Tomasz Duszynski 2018-11-24   97  *data++ = tmp[i + 1];
0e4f3167f Tomasz Duszynski 2018-11-24   98  }
0e4f3167f Tomasz Duszynski 2018-11-24   99  
0e4f3167f Tomasz Duszynski 2018-11-24  100  return 0;
0e4f3167f Tomasz Duszynski 2018-11-24  101  }
0e4f3167f Tomasz Duszynski 2018-11-24  102  

:: The code at line 69 was first introduced by commit
:: 0e4f3167f739fa067d7e1ba672f0b46569d04d84 iio: chemical: add support for 
Sensirion SPS30 sensor

:: TO: Tomasz Duszynski 
:: 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


[tip:WIP.x86/pti 23/30] arch/x86/mm/tlb.c:192:51: error: 'LAST_USR_MM_IBPB' undeclared; did you mean 'LAST_USER_MM_IBPB'?

2018-11-25 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/pti
head:   05b3be604144c2f2dc65fcb6e53961834d11
commit: 03b772b5933ba040f9e805f7f82554e64d6344d8 [23/30] x86/speculation: 
Prepare for conditional IBPB in switch_mm()
config: i386-randconfig-x002-201847 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 03b772b5933ba040f9e805f7f82554e64d6344d8
# save the attached .config to linux build tree
make ARCH=i386 

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

   arch/x86/mm/tlb.c: In function 'mm_mangle_tif_spec_ib':
>> arch/x86/mm/tlb.c:192:51: error: 'LAST_USR_MM_IBPB' undeclared (first use in 
>> this function); did you mean 'LAST_USER_MM_IBPB'?
 unsigned long ibpb = (next_tif >> TIF_SPEC_IB) & LAST_USR_MM_IBPB;
  ^~~~
  LAST_USER_MM_IBPB
   arch/x86/mm/tlb.c:192:51: note: each undeclared identifier is reported only 
once for each function it appears in
   In file included from include/linux/init.h:5:0,
from arch/x86/mm/tlb.c:1:
   arch/x86/mm/tlb.c: In function 'cond_ibpb':
   arch/x86/mm/tlb.c:243:51: error: 'LAST_USR_MM_IBPB' undeclared (first use in 
this function); did you mean 'LAST_USER_MM_IBPB'?
  if (next_mm != prev_mm && (next_mm | prev_mm) & LAST_USR_MM_IBPB)
  ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> arch/x86/mm/tlb.c:243:3: note: in expansion of macro 'if'
  if (next_mm != prev_mm && (next_mm | prev_mm) & LAST_USR_MM_IBPB)
  ^~
   In file included from arch/x86/include/asm/preempt.h:6:0,
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/mm.h:10,
from arch/x86/mm/tlb.c:3:
   arch/x86/mm/tlb.c: In function 'initialize_tlbstate_and_flush':
   arch/x86/mm/tlb.c:491:49: error: 'LAST_USR_MM_IBPB' undeclared (first use in 
this function); did you mean 'LAST_USER_MM_IBPB'?
 this_cpu_write(cpu_tlbstate.last_user_mm_ibpb, LAST_USR_MM_IBPB);
^
   arch/x86/include/asm/percpu.h:95:16: note: in definition of macro 
'percpu_to_op'
  pto_tmp__ = (val);   \
   ^~~
   include/linux/percpu-defs.h:377:11: note: in expansion of macro 
'this_cpu_write_1'
  case 1: stem##1(variable, __VA_ARGS__);break;  \
  ^~~~
   include/linux/percpu-defs.h:508:34: note: in expansion of macro 
'__pcpu_size_call'
#define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val)
 ^~~~
>> arch/x86/mm/tlb.c:491:2: note: in expansion of macro 'this_cpu_write'
 this_cpu_write(cpu_tlbstate.last_user_mm_ibpb, LAST_USR_MM_IBPB);
 ^~

vim +192 arch/x86/mm/tlb.c

   > 1  #include 
 2  
 3  #include 
 4  #include 
 5  #include 
 6  #include 
 7  #include 
 8  #include 
 9  #include 
10  
11  #include 
12  #include 
13  #include 
14  #include 
15  #include 
16  #include 
17  
18  /*
19   *  TLB flushing, formerly SMP-only
20   *  c/o Linus Torvalds.
21   *
22   *  These mean you can really definitely utterly forget about
23   *  writing to user space from interrupts. (Its not allowed anyway).
24   *
25   *  Optimizations Manfred Spraul 
26   *
27   *  More scalable flush, from Andi Kleen
28   *
29   *  Implement flush IPI by CALL_FUNCTION_VECTOR, Alex Shi
30   */
31  
32  /*
33   * Use bit 0 to mangle the TIF_SPEC_IB state into the mm pointer which 
is
34   * stored in cpu_tlb_state.last_user_mm_ibpb.
35   */
36  #define LAST_USER_MM_IBPB   0x1UL
37  
38  /*
39   * We get here when we do something requiring a TLB invalidation
40   * but could not go invalidate all of the contexts.  We do the
41   * necessary invalidation by clearing out the 'ctx_id' which
42   * forces a TLB flush when the context is loaded.
43   */
44  static void clear_asid_other(void)
45  {
46  u16 asid;
47  
48  /*
49   * This is only expected to be set if we have disabled
50   * kernel _PAGE_GLOBAL pages.
51   */
52  if (!static_cpu_has(X86_FEATURE_PTI)) {
53  WARN_ON_ONCE(1);
54  return;
55  }
56  
57  for (asid = 0; asid < TLB_NR_DYN_ASIDS; asid++) {
58  /* Do not need to flush the current asid */

Re: [PATCH] ALSA: pcm: Fix starvation on down_write_nonblock()

2018-11-25 Thread kbuild test robot
Hi Chanho,

I love your patch! Yet something to improve:

[auto build test ERROR on sound/for-next]
[also build test ERROR on v4.20-rc3 next-20181123]
[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/Chanho-Min/ALSA-pcm-Fix-starvation-on-down_write_nonblock/20181124-182630
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: x86_64-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=x86_64 

All errors (new ones prefixed by >>):

   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   sound/core/pcm_native.c:590:51: warning: incorrect type in assignment 
(different base types)
   sound/core/pcm_native.c:590:51:expected restricted snd_pcm_state_t 
[usertype] state
   sound/core/pcm_native.c:590:51:got int [signed] state
   sound/core/pcm_native.c:755:38: warning: incorrect type in argument 2 
(different base types)
   sound/core/pcm_native.c:755:38:expected int [signed] state
   sound/core/pcm_native.c:755:38:got restricted snd_pcm_state_t [usertype] 

   sound/core/pcm_native.c:767:38: warning: incorrect type in argument 2 
(different base types)
   sound/core/pcm_native.c:767:38:expected int [signed] state
   sound/core/pcm_native.c:767:38:got restricted snd_pcm_state_t [usertype] 

   sound/core/pcm_native.c:816:38: warning: incorrect type in argument 2 
(different base types)
   sound/core/pcm_native.c:816:38:expected int [signed] state
   sound/core/pcm_native.c:816:38:got restricted snd_pcm_state_t [usertype] 

   sound/core/pcm_native.c:1226:32: warning: incorrect type in assignment 
(different base types)
   sound/core/pcm_native.c:1226:32:expected restricted snd_pcm_state_t 
[usertype] state
   sound/core/pcm_native.c:1226:32:got int [signed] state
   sound/core/pcm_native.c:1250:31: warning: incorrect type in argument 3 
(different base types)
   sound/core/pcm_native.c:1250:31:expected int [signed] state
   sound/core/pcm_native.c:1250:31:got restricted snd_pcm_state_t 
[usertype] 
   sound/core/pcm_native.c:1257:40: warning: incorrect type in argument 3 
(different base types)
   sound/core/pcm_native.c:1257:40:expected int [signed] state
   sound/core/pcm_native.c:1257:40:got restricted snd_pcm_state_t 
[usertype] 
   sound/core/pcm_native.c:1283:28: warning: restricted snd_pcm_state_t 
degrades to integer
   sound/core/pcm_native.c:1285:40: warning: incorrect type in assignment 
(different base types)
   sound/core/pcm_native.c:1285:40:expected restricted snd_pcm_state_t 
[usertype] state
   sound/core/pcm_native.c:1285:40:got int [signed] state
   sound/core/pcm_native.c:1309:64: warning: incorrect type in argument 3 
(different base types)
   sound/core/pcm_native.c:1309:64:expected int [signed] state
   sound/core/pcm_native.c:1309:64:got restricted snd_pcm_state_t 
[usertype] state
   sound/core/pcm_native.c:1325:38: warning: incorrect type in argument 3 
(different base types)
   sound/core/pcm_native.c:1325:38:expected int [signed] state
   sound/core/pcm_native.c:1325:38:got restricted snd_pcm_state_t 
[usertype] 
   sound/core/pcm_native.c:1684:38: warning: incorrect type in argument 2 
(different base types)
   sound/core/pcm_native.c:1684:38:expected int [signed] state
   sound/core/pcm_native.c:1684:38:got restricted snd_pcm_state_t 
[usertype] 
   sound/core/pcm_native.c:1750:61: warning: incorrect type in argument 2 
(different base types)
   sound/core/pcm_native.c:1750:61:expected int [signed] state
   sound/core/pcm_native.c:1750:61:got restricted snd_pcm_state_t 
[usertype] 
   sound/core/pcm_native.c:1751:63: warning: incorrect type in argument 2 
(different base types)
   sound/core/pcm_native.c:1751:63:expected int [signed] state
   sound/core/pcm_native.c:1751:63:got restricted snd_pcm_state_t 
[usertype] 
   sound/core/pcm_native.c:1768:76: warning: incorrect type in initializer 
(different base types)
   sound/core/pcm_native.c:1768:76:expected int [signed] new_state
   sound/core/pcm_native.c:1768:76:got restricted snd_pcm_state_t
   include/linux/slab.h:332:43: warning: dubious: x & !y
>> sound/core/pcm_native.c:99:17: error: undefined identifier 'msleep'
>> sound/core/pcm_native.c:99:23: error: not a function 
   sound/core/pcm_native.c:2089:26: warning: restricted snd_pcm_format_t 
degrades to integer
   sound/core/pcm_native.c:2093:54: warning: incorrect type in argument 1 
(different base types)
   sound/core/pcm_native.c:2093:54:expected restricted snd_pcm_format_t 
[usertype] format
   sound/core/pcm_native.c:2093:54:got unsigned 

Re: [PATCH v5 8/8] pinctrl: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-11-24 Thread kbuild test robot
Hi Charles,

I love your patch! Yet something to improve:

[auto build test ERROR on ljones-mfd/for-mfd-next]
[also build test ERROR on v4.20-rc3]
[cannot apply to next-20181123]
[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/Charles-Keepax/regulator-lochnagar-Move-driver-to-binding-from-DT/20181123-133943
base:   https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
config: x86_64-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=x86_64 

All errors (new ones prefixed by >>):

>> drivers/regulator/lochnagar-regulator.c:115:21: error: undefined identifier 
>> 'LOCHNAGAR2_P2_MICBIAS_SRC_SHIFT'
>> drivers/regulator/lochnagar-regulator.c:116:20: error: undefined identifier 
>> 'LOCHNAGAR2_P1_MICBIAS_SRC_MASK'
>> drivers/regulator/lochnagar-regulator.c:123:23: error: undefined identifier 
>> 'LOCHNAGAR2_ANALOGUE_PATH_CTRL2'
>> drivers/regulator/lochnagar-regulator.c:148:31: error: undefined identifier 
>> 'LOCHNAGAR2_MICVDD_CTRL1'
>> drivers/regulator/lochnagar-regulator.c:149:32: error: undefined identifier 
>> 'LOCHNAGAR2_MICVDD_REG_ENA_MASK'
>> drivers/regulator/lochnagar-regulator.c:150:29: error: undefined identifier 
>> 'LOCHNAGAR2_MICVDD_CTRL2'
>> drivers/regulator/lochnagar-regulator.c:151:30: error: undefined identifier 
>> 'LOCHNAGAR2_MICVDD_VSEL_MASK'
   drivers/regulator/lochnagar-regulator.c:171:31: error: undefined identifier 
'LOCHNAGAR2_ANALOGUE_PATH_CTRL2'
>> drivers/regulator/lochnagar-regulator.c:172:32: error: undefined identifier 
>> 'LOCHNAGAR2_P1_INPUT_BIAS_ENA_MASK'
   drivers/regulator/lochnagar-regulator.c:186:31: error: undefined identifier 
'LOCHNAGAR2_ANALOGUE_PATH_CTRL2'
>> drivers/regulator/lochnagar-regulator.c:187:32: error: undefined identifier 
>> 'LOCHNAGAR2_P2_INPUT_BIAS_ENA_MASK'
>> drivers/regulator/lochnagar-regulator.c:201:31: error: undefined identifier 
>> 'LOCHNAGAR2_VDDCORE_CDC_CTRL1'
>> drivers/regulator/lochnagar-regulator.c:202:32: error: undefined identifier 
>> 'LOCHNAGAR2_VDDCORE_CDC_REG_ENA_MASK'
>> drivers/regulator/lochnagar-regulator.c:203:29: error: undefined identifier 
>> 'LOCHNAGAR2_VDDCORE_CDC_CTRL2'
>> drivers/regulator/lochnagar-regulator.c:204:30: error: undefined identifier 
>> 'LOCHNAGAR2_VDDCORE_CDC_VSEL_MASK'
   drivers/regulator/lochnagar-regulator.c: In function 
'lochnagar_micbias_of_parse':
   drivers/regulator/lochnagar-regulator.c:115:7: error: 
'LOCHNAGAR2_P2_MICBIAS_SRC_SHIFT' undeclared (first use in this function); did 
you mean 'LOCHNAGAR_DEVICE_ID_SHIFT'?
  LOCHNAGAR2_P2_MICBIAS_SRC_SHIFT;
  ^~~
  LOCHNAGAR_DEVICE_ID_SHIFT
   drivers/regulator/lochnagar-regulator.c:115:7: note: each undeclared 
identifier is reported only once for each function it appears in
   drivers/regulator/lochnagar-regulator.c:116:13: error: 
'LOCHNAGAR2_P1_MICBIAS_SRC_MASK' undeclared (first use in this function); did 
you mean 'LOCHNAGAR2_P2_MICBIAS_SRC_SHIFT'?
 int mask = LOCHNAGAR2_P1_MICBIAS_SRC_MASK << shift;
^~
LOCHNAGAR2_P2_MICBIAS_SRC_SHIFT
   In file included from drivers/regulator/lochnagar-regulator.c:18:0:
   drivers/regulator/lochnagar-regulator.c:124:7: error: 
'LOCHNAGAR2_ANALOGUE_PATH_CTRL2' undeclared (first use in this function)
  LOCHNAGAR2_ANALOGUE_PATH_CTRL2,
  ^
   include/linux/regmap.h:77:31: note: in definition of macro 
'regmap_update_bits'
 regmap_update_bits_base(map, reg, mask, val, NULL, false, false)
  ^~~
   drivers/regulator/lochnagar-regulator.c: At top level:
   drivers/regulator/lochnagar-regulator.c:148:17: error: 
'LOCHNAGAR2_MICVDD_CTRL1' undeclared here (not in a function); did you mean 
'LOCHNAGAR_MICVDD'?
  .enable_reg = LOCHNAGAR2_MICVDD_CTRL1,
^~~
LOCHNAGAR_MICVDD
   drivers/regulator/lochnagar-regulator.c:149:18: error: 
'LOCHNAGAR2_MICVDD_REG_ENA_MASK' undeclared here (not in a function); did you 
mean 'LOCHNAGAR2_MICVDD_CTRL1'?
  .enable_mask = LOCHNAGAR2_MICVDD_REG_ENA_MASK,
 ^~
 LOCHNAGAR2_MICVDD_CTRL1
   drivers/regulator/lochnagar-regulator.c:150:15: error: 
'LOCHNAGAR2_MICVDD_CTRL2' undeclared here (not in a function); did you mean 
'LOCHNAGAR2_MICVDD_CTRL1'?
  .vsel_reg = LOCHNAGAR2_MICVDD_CTRL2,
  ^~~
  LOCHNAGAR2_MICVDD_CTRL1
   drivers/regulator/lochnagar-regulator.c:151:16: error: 
'LOCHNAGAR2_MICVDD_VSEL_MASK' undeclared here (not in a function); did you mean 
'LOCHNAGAR2_MICVDD_REG_ENA_MASK'?
  .vsel_mask = LOCHNAGAR2_MICVDD_VSEL_MASK,
   ^~~
   

Re: [PATCH] ALSA: pcm: Fix starvation on down_write_nonblock()

2018-11-24 Thread kbuild test robot
Hi Chanho,

I love your patch! Yet something to improve:

[auto build test ERROR on sound/for-next]
[also build test ERROR on v4.20-rc3 next-20181123]
[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/Chanho-Min/ALSA-pcm-Fix-starvation-on-down_write_nonblock/20181124-182630
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: x86_64-randconfig-x001-201846 (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=x86_64 

All errors (new ones prefixed by >>):

   sound/core/pcm_native.c: In function 'down_write_nonblock':
>> sound/core/pcm_native.c:99:3: error: implicit declaration of function 
>> 'msleep' [-Werror=implicit-function-declaration]
  msleep(1);
  ^~
   cc1: some warnings being treated as errors

vim +/msleep +99 sound/core/pcm_native.c

89  
90  /* Writer in rwsem may block readers even during its waiting in queue,
91   * and this may lead to a deadlock when the code path takes read sem
92   * twice (e.g. one in snd_pcm_action_nonatomic() and another in
93   * snd_pcm_stream_lock()).  As a (suboptimal) workaround, let writer to
94   * spin until it gets the lock.
95   */
96  static inline void down_write_nonblock(struct rw_semaphore *lock)
97  {
98  while (!down_write_trylock(lock))
  > 99  msleep(1);
   100  }
   101  

---
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 15/15] MAINTAINERS: Add entry for RDA Micro SoC architecture

2018-11-24 Thread kbuild test robot
Hi Manivannan,

I love your patch! Perhaps something to improve:

[auto build test WARNING on robh/for-next]
[also build test WARNING on v4.20-rc3 next-20181123]
[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/Manivannan-Sadhasivam/Add-initial-RDA8810PL-SoC-and-Orange-Pi-boards-support/20181123-125507
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: x86_64-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=x86_64 

All warnings (new ones prefixed by >>):

>> drivers/tty/serial/rda-uart.c:619:28: warning: context imbalance in 
>> 'rda_uart_port_write' - unexpected unlock

vim +/rda_uart_port_write +619 drivers/tty/serial/rda-uart.c

efb19753 Manivannan Sadhasivam 2018-11-21  588  
efb19753 Manivannan Sadhasivam 2018-11-21  589  static void 
rda_uart_port_write(struct uart_port *port, const char *s,
efb19753 Manivannan Sadhasivam 2018-11-21  590  
u_int count)
efb19753 Manivannan Sadhasivam 2018-11-21  591  {
efb19753 Manivannan Sadhasivam 2018-11-21  592  u32 old_irq_mask;
efb19753 Manivannan Sadhasivam 2018-11-21  593  unsigned long flags;
efb19753 Manivannan Sadhasivam 2018-11-21  594  int locked;
efb19753 Manivannan Sadhasivam 2018-11-21  595  
efb19753 Manivannan Sadhasivam 2018-11-21  596  local_irq_save(flags);
efb19753 Manivannan Sadhasivam 2018-11-21  597  
efb19753 Manivannan Sadhasivam 2018-11-21  598  if (port->sysrq) {
efb19753 Manivannan Sadhasivam 2018-11-21  599  locked = 0;
efb19753 Manivannan Sadhasivam 2018-11-21  600  } else if 
(oops_in_progress) {
efb19753 Manivannan Sadhasivam 2018-11-21  601  locked = 
spin_trylock(>lock);
efb19753 Manivannan Sadhasivam 2018-11-21  602  } else {
efb19753 Manivannan Sadhasivam 2018-11-21  603  
spin_lock(>lock);
efb19753 Manivannan Sadhasivam 2018-11-21  604  locked = 1;
efb19753 Manivannan Sadhasivam 2018-11-21  605  }
efb19753 Manivannan Sadhasivam 2018-11-21  606  
efb19753 Manivannan Sadhasivam 2018-11-21  607  old_irq_mask = 
rda_uart_read(port, RDA_UART_IRQ_MASK);
efb19753 Manivannan Sadhasivam 2018-11-21  608  rda_uart_write(port, 0, 
RDA_UART_IRQ_MASK);
efb19753 Manivannan Sadhasivam 2018-11-21  609  
efb19753 Manivannan Sadhasivam 2018-11-21  610  
uart_console_write(port, s, count, rda_console_putchar);
efb19753 Manivannan Sadhasivam 2018-11-21  611  
efb19753 Manivannan Sadhasivam 2018-11-21  612  /* wait until all 
contents have been sent out */
efb19753 Manivannan Sadhasivam 2018-11-21  613  while 
(!(rda_uart_read(port, RDA_UART_STATUS) & RDA_UART_TX_FIFO_MASK))
efb19753 Manivannan Sadhasivam 2018-11-21  614  cpu_relax();
efb19753 Manivannan Sadhasivam 2018-11-21  615  
efb19753 Manivannan Sadhasivam 2018-11-21  616  rda_uart_write(port, 
old_irq_mask, RDA_UART_IRQ_MASK);
efb19753 Manivannan Sadhasivam 2018-11-21  617  
efb19753 Manivannan Sadhasivam 2018-11-21  618  if (locked)
efb19753 Manivannan Sadhasivam 2018-11-21 @619  
spin_unlock(>lock);
efb19753 Manivannan Sadhasivam 2018-11-21  620  
efb19753 Manivannan Sadhasivam 2018-11-21  621  
local_irq_restore(flags);
efb19753 Manivannan Sadhasivam 2018-11-21  622  }
efb19753 Manivannan Sadhasivam 2018-11-21  623  

:: The code at line 619 was first introduced by commit
:: efb197538a7e148635e096850a818e3b29b1c4b2 tty: serial: Add RDA8810PL UART 
driver

:: TO: Manivannan Sadhasivam 
:: 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 2/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-11-23 Thread kbuild test robot
Hi Paul,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc3 next-20181123]
[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/Wesley-Sheng/ntb_hw_switchtec-Added-support-of-4G-memory-windows/20181123-231700
config: i386-randconfig-x077-201846 (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 warnings (new ones prefixed by >>):

   drivers/ntb/hw/mscc/ntb_hw_switchtec.c: In function 
'switchtec_ntb_mw_set_direct':
>> drivers/ntb/hw/mscc/ntb_hw_switchtec.c:292:17: warning: right shift count >= 
>> width of type [-Wshift-count-overflow]
 iowrite32(size >> 32, >bar_ext_entry[bar].win_size);
^~
   drivers/ntb/hw/mscc/ntb_hw_switchtec.c: In function 'crosslink_setup_mws':
   drivers/ntb/hw/mscc/ntb_hw_switchtec.c:1061:18: warning: right shift count 
>= width of type [-Wshift-count-overflow]
  iowrite32(size >> 32, >bar_ext_entry[bar].win_size);
 ^~

vim +292 drivers/ntb/hw/mscc/ntb_hw_switchtec.c

   277  
   278  static void switchtec_ntb_mw_set_direct(struct switchtec_ntb *sndev, 
int idx,
   279  dma_addr_t addr, 
resource_size_t size)
   280  {
   281  int xlate_pos = ilog2(size);
   282  int bar = sndev->peer_direct_mw_to_bar[idx];
   283  struct ntb_ctrl_regs __iomem *ctl = sndev->mmio_peer_ctrl;
   284  u32 ctl_val;
   285  
   286  ctl_val = ioread32(>bar_entry[bar].ctl);
   287  ctl_val |= NTB_CTRL_BAR_DIR_WIN_EN;
   288  
   289  iowrite32(ctl_val, >bar_entry[bar].ctl);
   290  iowrite32(xlate_pos | (size & 0xF000),
   291>bar_entry[bar].win_size);
 > 292  iowrite32(size >> 32, >bar_ext_entry[bar].win_size);
   293  iowrite64(sndev->self_partition | addr,
   294>bar_entry[bar].xlate_addr);
   295  }
   296  

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


.config.gz
Description: application/gzip


Re: [PATCH v5 6/8] mfd: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-11-23 Thread kbuild test robot
Hi Charles,

I love your patch! Yet something to improve:

[auto build test ERROR on ljones-mfd/for-mfd-next]
[also build test ERROR on v4.20-rc3]
[cannot apply to next-20181122]
[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/Charles-Keepax/regulator-lochnagar-Move-driver-to-binding-from-DT/20181123-133943
base:   https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
config: sh-allyesconfig (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
GCC_VERSION=7.2.0 make.cross ARCH=sh 

All errors (new ones prefixed by >>):

   In file included from arch/sh/include/asm/string.h:3:0,
from include/linux/string.h:20,
from include/linux/bitmap.h:9,
from include/linux/nodemask.h:95,
from include/linux/mmzone.h:17,
from include/linux/gfp.h:6,
from include/linux/umh.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/staging/media/bcm2048/radio-bcm2048.c:33:
   drivers/staging/media/bcm2048/radio-bcm2048.c: In function 
'bcm2048_vidioc_g_audio':
   arch/sh/include/asm/string_32.h:50:42: warning: array subscript is above 
array bounds [-Warray-bounds]
  : "0" (__dest), "1" (__src), "r" (__src+__n)
~^~~~
   drivers/staging/iio/adc/ad7606_par.c: In function 'ad7606_par16_read_block':
   drivers/staging/iio/adc/ad7606_par.c:22:23: warning: unused variable 'st' 
[-Wunused-variable]
 struct ad7606_state *st = iio_priv(indio_dev);
  ^~
   drivers/staging/iio/adc/ad7606_par.c: In function 'ad7606_par8_read_block':
   drivers/staging/iio/adc/ad7606_par.c:37:23: warning: unused variable 'st' 
[-Wunused-variable]
 struct ad7606_state *st = iio_priv(indio_dev);
  ^~
   drivers/staging/media/bcm2048/radio-bcm2048.c: In function 
'bcm2048_vidioc_g_tuner':
   arch/sh/include/asm/string_32.h:50:42: warning: array subscript is above 
array bounds [-Warray-bounds]
  : "0" (__dest), "1" (__src), "r" (__src+__n)
~^~~~
   drivers/thermal/broadcom/ns-thermal.c: In function 'ns_thermal_remove':
   drivers/thermal/broadcom/ns-thermal.c:81:21: warning: unused variable 
'ns_thermal' [-Wunused-variable]
 struct ns_thermal *ns_thermal = platform_get_drvdata(pdev);
^~
   In file included from arch/sh/include/asm/string.h:3:0,
from include/linux/string.h:20,
from include/linux/bitmap.h:9,
from include/linux/nodemask.h:95,
from include/linux/mmzone.h:17,
from include/linux/gfp.h:6,
from include/linux/umh.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/scsi/ch.c:10:
   drivers/scsi/ch.c: In function 'ch_ioctl':
   arch/sh/include/asm/string_32.h:50:42: warning: array subscript is above 
array bounds [-Warray-bounds]
  : "0" (__dest), "1" (__src), "r" (__src+__n)
~^~~~
   arch/sh/include/asm/string_32.h:50:42: warning: array subscript is above 
array bounds [-Warray-bounds]
  : "0" (__dest), "1" (__src), "r" (__src+__n)
~^~~~
   arch/sh/include/asm/string_32.h:50:42: warning: array subscript is above 
array bounds [-Warray-bounds]
  : "0" (__dest), "1" (__src), "r" (__src+__n)
~^~~~
   arch/sh/include/asm/string_32.h:50:42: warning: array subscript is above 
array bounds [-Warray-bounds]
  : "0" (__dest), "1" (__src), "r" (__src+__n)
~^~~~
   drivers/regulator/lochnagar-regulator.c: In function 
'lochnagar_micbias_of_parse':
>> drivers/regulator/lochnagar-regulator.c:115:7: error: 
>> 'LOCHNAGAR2_P2_MICBIAS_SRC_SHIFT' undeclared (first use in this function); 
>> did you mean 'LOCHNAGAR_DEVICE_ID_SHIFT'?
  LOCHNAGAR2_P2_MICBIAS_SRC_SHIFT;
  ^~~
  LOCHNAGAR_DEVICE_ID_SHIFT
   drivers/regulator/lochnagar-regulator.c:115:7: note: each undeclared 
identifier is reported only once for each function it appears in
>> drivers/regulator/lochnagar-regulator.c:116:13: error: 
>> 'LOCHNAGAR2_P1_MICBIAS_SRC_MASK' undeclared (first use in this function); 
>> did you mean 'LOCHNAGAR2_P2_MICBIAS_SRC_SHIFT'?
 int mask = LOCHNAGAR2_P1_MICBIAS_SRC_MASK << shift;
   

Re: [PATCH 2/2] clk: core: link consumer with clock driver

2018-11-23 Thread kbuild test robot
Hi Miquel,

I love your patch! Yet something to improve:

[auto build test ERROR on clk/clk-next]
[also build test ERROR on v4.20-rc3 next-20181122]
[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/Miquel-Raynal/Link-consumer-with-clock-driver/20181123-113833
base:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: sh-titan_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
GCC_VERSION=7.2.0 make.cross ARCH=sh 

All errors (new ones prefixed by >>):

   drivers//clk/clkdev.c: In function 'clk_get':
>> drivers//clk/clkdev.c:209:3: error: implicit declaration of function 
>> '__clk_device_link'; did you mean '__clk_free_clk'? 
>> [-Werror=implicit-function-declaration]
  __clk_device_link(dev, clk);
  ^
  __clk_free_clk
   drivers//clk/clkdev.c: In function 'clk_put':
>> drivers//clk/clkdev.c:217:2: error: implicit declaration of function 
>> '__clk_device_unlink'; did you mean 'device_online'? 
>> [-Werror=implicit-function-declaration]
 __clk_device_unlink(clk);
 ^~~
 device_online
   cc1: some warnings being treated as errors

vim +209 drivers//clk/clkdev.c

   193  
   194  struct clk *clk_get(struct device *dev, const char *con_id)
   195  {
   196  const char *dev_id = dev ? dev_name(dev) : NULL;
   197  struct clk *clk = NULL;
   198  
   199  if (dev && dev->of_node) {
   200  clk = __of_clk_get_by_name(dev->of_node, dev_id, 
con_id);
   201  if (PTR_ERR(clk) == -EPROBE_DEFER)
   202  return clk;
   203  }
   204  
   205  if (IS_ERR_OR_NULL(clk))
   206  clk = clk_get_sys(dev_id, con_id);
   207  
   208  if (!IS_ERR(clk))
 > 209  __clk_device_link(dev, clk);
   210  
   211  return clk;
   212  }
   213  EXPORT_SYMBOL(clk_get);
   214  
   215  void clk_put(struct clk *clk)
   216  {
 > 217  __clk_device_unlink(clk);
   218  __clk_put(clk);
   219  }
   220  EXPORT_SYMBOL(clk_put);
   221  

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


.config.gz
Description: application/gzip


Re: [PATCH 11/17] soc: ti: pruss: add pruss_get()/put() API

2018-11-22 Thread kbuild test robot
Hi Tero,

I love your patch! Yet something to improve:

[auto build test ERROR on keystone/next]
[also build test ERROR on v4.20-rc3 next-20181122]
[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/Roger-Quadros/Add-support-for-TI-PRU-ICSS/20181123-083903
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone.git 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
GCC_VERSION=7.2.0 make.cross ARCH=arm 

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

   In file included from drivers/soc/ti/pruss_intc.c:16:0:
>> include/linux/pruss.h:39:32: warning: 'struct rproc' declared inside 
>> parameter list will not be visible outside of this definition or declaration
struct pruss *pruss_get(struct rproc *rproc);
   ^
--
   In file included from drivers/soc/ti/pruss.c:15:0:
>> include/linux/pruss.h:39:32: warning: 'struct rproc' declared inside 
>> parameter list will not be visible outside of this definition or declaration
struct pruss *pruss_get(struct rproc *rproc);
   ^
>> drivers/soc/ti/pruss.c:34:15: error: conflicting types for 'pruss_get'
struct pruss *pruss_get(struct rproc *rproc)
  ^
   In file included from drivers/soc/ti/pruss.c:15:0:
   include/linux/pruss.h:39:15: note: previous declaration of 'pruss_get' was 
here
struct pruss *pruss_get(struct rproc *rproc);
  ^
   In file included from include/linux/linkage.h:7:0,
from include/linux/kernel.h:7,
from include/linux/list.h:9,
from include/linux/kobject.h:19,
from include/linux/device.h:16,
from include/linux/dma-mapping.h:7,
from drivers/soc/ti/pruss.c:10:
   drivers/soc/ti/pruss.c:58:19: error: conflicting types for 'pruss_get'
EXPORT_SYMBOL_GPL(pruss_get);
  ^
   include/linux/export.h:79:21: note: in definition of macro '___EXPORT_SYMBOL'
 extern typeof(sym) sym;  \
^~~
>> drivers/soc/ti/pruss.c:58:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
EXPORT_SYMBOL_GPL(pruss_get);
^
   In file included from drivers/soc/ti/pruss.c:15:0:
   include/linux/pruss.h:39:15: note: previous declaration of 'pruss_get' was 
here
struct pruss *pruss_get(struct rproc *rproc);
  ^
--
   In file included from drivers/soc//ti/pruss.c:15:0:
>> include/linux/pruss.h:39:32: warning: 'struct rproc' declared inside 
>> parameter list will not be visible outside of this definition or declaration
struct pruss *pruss_get(struct rproc *rproc);
   ^
   drivers/soc//ti/pruss.c:34:15: error: conflicting types for 'pruss_get'
struct pruss *pruss_get(struct rproc *rproc)
  ^
   In file included from drivers/soc//ti/pruss.c:15:0:
   include/linux/pruss.h:39:15: note: previous declaration of 'pruss_get' was 
here
struct pruss *pruss_get(struct rproc *rproc);
  ^
   In file included from include/linux/linkage.h:7:0,
from include/linux/kernel.h:7,
from include/linux/list.h:9,
from include/linux/kobject.h:19,
from include/linux/device.h:16,
from include/linux/dma-mapping.h:7,
from drivers/soc//ti/pruss.c:10:
   drivers/soc//ti/pruss.c:58:19: error: conflicting types for 'pruss_get'
EXPORT_SYMBOL_GPL(pruss_get);
  ^
   include/linux/export.h:79:21: note: in definition of macro '___EXPORT_SYMBOL'
 extern typeof(sym) sym;  \
^~~
   drivers/soc//ti/pruss.c:58:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
EXPORT_SYMBOL_GPL(pruss_get);
^
   In file included from drivers/soc//ti/pruss.c:15:0:
   include/linux/pruss.h:39:15: note: previous declaration of 'pruss_get' was 
here
struct pruss *pruss_get(struct rproc *rproc);
  ^

vim +/pruss_get +34 drivers/soc/ti/pruss.c

  > 10  #include 
11  #include 
12  #include 
13  #include 
14  #include 
  > 15  #include 
16  #include 
17  
18  #include "pruss.h"
19  
20  /**
21   * pruss_get() - get the pruss for a given PRU remoteproc
22   * @rproc: remoteproc handle of a PRU instance
23   *
24   * Finds the parent pruss device for a PRU given the @rproc handle of 
the
25   * PRU remote processor. This function increments the 

Re: [PATCH] clk: qcom: Move to menuconfig and reduce lines

2018-11-22 Thread kbuild test robot
Hi Stephen,

I love your patch! Yet something to improve:

[auto build test ERROR on agross/for-next]
[also build test ERROR on v4.20-rc3 next-20181122]
[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/Stephen-Boyd/clk-qcom-Move-to-menuconfig-and-reduce-lines/20181123-061930
base:   https://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git 
for-next
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/clk/qcom/clk-krait.c:13:10: fatal error: asm/krait-l2-accessors.h: 
>> No such file or directory
#include 
 ^~
   compilation terminated.

vim +13 drivers/clk/qcom/clk-krait.c

4d7dc77b Stephen Boyd 2018-08-14  12  
4d7dc77b Stephen Boyd 2018-08-14 @13  #include 
4d7dc77b Stephen Boyd 2018-08-14  14  

:: The code at line 13 was first introduced by commit
:: 4d7dc77babfef1d6cb8fd825e2f17dc3384c3272 clk: qcom: Add support for 
Krait clocks

:: TO: Stephen Boyd 
:: 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] mmc: mediatek: add MT8183 SDIO driver support

2018-11-22 Thread kbuild test robot
Hi jjian,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on ulf.hansson-mmc/next]
[also build test ERROR on v4.20-rc3 next-20181122]
[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/Jjian-Zhou/mmc-mediatek-add-MT8183-SDIO-driver-support/20181123-025850
base:   git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git next
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 error/warnings (new ones prefixed by >>):

   drivers/mmc/host/mtk-sd.c: In function 'msdc_drv_probe':
   drivers/mmc/host/mtk-sd.c:2263:12: error: invalid storage class for function 
'msdc_drv_remove'
static int msdc_drv_remove(struct platform_device *pdev)
   ^~~
   drivers/mmc/host/mtk-sd.c:2263:1: warning: ISO C90 forbids mixed 
declarations and code [-Wdeclaration-after-statement]
static int msdc_drv_remove(struct platform_device *pdev)
^~
   drivers/mmc/host/mtk-sd.c:2292:13: error: invalid storage class for function 
'msdc_save_reg'
static void msdc_save_reg(struct msdc_host *host)
^
   drivers/mmc/host/mtk-sd.c:2319:13: error: invalid storage class for function 
'msdc_restore_reg'
static void msdc_restore_reg(struct msdc_host *host)
^~~~
   drivers/mmc/host/mtk-sd.c:2346:12: error: invalid storage class for function 
'msdc_runtime_suspend'
static int msdc_runtime_suspend(struct device *dev)
   ^~~~
   drivers/mmc/host/mtk-sd.c:2356:12: error: invalid storage class for function 
'msdc_runtime_resume'
static int msdc_runtime_resume(struct device *dev)
   ^~~
   In file included from include/linux/device.h:23:0,
from include/linux/dma-mapping.h:7,
from drivers/mmc/host/mtk-sd.c:18:
   drivers/mmc/host/mtk-sd.c:2370:21: error: initializer element is not constant
 SET_RUNTIME_PM_OPS(msdc_runtime_suspend, msdc_runtime_resume, NULL)
^
   include/linux/pm.h:354:21: note: in definition of macro 'SET_RUNTIME_PM_OPS'
 .runtime_suspend = suspend_fn, \
^~
   drivers/mmc/host/mtk-sd.c:2370:21: note: (near initialization for 
'msdc_dev_pm_ops.runtime_suspend')
 SET_RUNTIME_PM_OPS(msdc_runtime_suspend, msdc_runtime_resume, NULL)
^
   include/linux/pm.h:354:21: note: in definition of macro 'SET_RUNTIME_PM_OPS'
 .runtime_suspend = suspend_fn, \
^~
   drivers/mmc/host/mtk-sd.c:2370:43: error: initializer element is not constant
 SET_RUNTIME_PM_OPS(msdc_runtime_suspend, msdc_runtime_resume, NULL)
  ^
   include/linux/pm.h:355:20: note: in definition of macro 'SET_RUNTIME_PM_OPS'
 .runtime_resume = resume_fn, \
   ^
   drivers/mmc/host/mtk-sd.c:2370:43: note: (near initialization for 
'msdc_dev_pm_ops.runtime_resume')
 SET_RUNTIME_PM_OPS(msdc_runtime_suspend, msdc_runtime_resume, NULL)
  ^
   include/linux/pm.h:355:20: note: in definition of macro 'SET_RUNTIME_PM_OPS'
 .runtime_resume = resume_fn, \
   ^
   drivers/mmc/host/mtk-sd.c:2375:12: error: initializer element is not constant
 .remove = msdc_drv_remove,
   ^~~
   drivers/mmc/host/mtk-sd.c:2375:12: note: (near initialization for 
'mt_msdc_driver.remove')
   In file included from include/linux/dma-mapping.h:7:0,
from drivers/mmc/host/mtk-sd.c:18:
   drivers/mmc/host/mtk-sd.c:2383:24: error: invalid storage class for function 
'mt_msdc_driver_init'
module_platform_driver(mt_msdc_driver);
   ^
   include/linux/device.h:1611:19: note: in definition of macro 'module_driver'
static int __init __driver##_init(void) \
  ^~~~
   drivers/mmc/host/mtk-sd.c:2383:1: note: in expansion of macro 
'module_platform_driver'
module_platform_driver(mt_msdc_driver);
^~
   In file included from drivers/mmc/host/mtk-sd.c:15:0:
>> include/linux/module.h:130:42: error: invalid storage class for function 
>> '__inittest'
 static inline initcall_t __maybe_unused __inittest(void)  \
 ^
   include/linux/device.h:1615:1: note: in expansion of macro 'module_init'
module_init(__driver##_init); \
^~~
   include/linux/platform_device.h:229:2: note: in expansion of macro 
'module_driver'
 module_driver(__platform_driver, platform_driver_register, \
 ^
   drivers/mmc/host/mtk-sd.c:2383:1: note: in expansion of macro 
'module_platform_driver'

Re: [PATCH] mmc: mediatek: add MT8183 SDIO driver support

2018-11-22 Thread kbuild test robot
Hi jjian,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on ulf.hansson-mmc/next]
[also build test ERROR on v4.20-rc3 next-20181122]
[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/Jjian-Zhou/mmc-mediatek-add-MT8183-SDIO-driver-support/20181123-025850
base:   git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git next
config: x86_64-randconfig-u0-11230408 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

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

   drivers/mmc/host/mtk-sd.c: In function 'msdc_drv_probe':
>> drivers/mmc/host/mtk-sd.c:2263:12: error: invalid storage class for function 
>> 'msdc_drv_remove'
static int msdc_drv_remove(struct platform_device *pdev)
   ^
>> drivers/mmc/host/mtk-sd.c:2263:1: warning: ISO C90 forbids mixed 
>> declarations and code [-Wdeclaration-after-statement]
static int msdc_drv_remove(struct platform_device *pdev)
^
>> drivers/mmc/host/mtk-sd.c:2292:13: error: invalid storage class for function 
>> 'msdc_save_reg'
static void msdc_save_reg(struct msdc_host *host)
^
>> drivers/mmc/host/mtk-sd.c:2319:13: error: invalid storage class for function 
>> 'msdc_restore_reg'
static void msdc_restore_reg(struct msdc_host *host)
^
>> drivers/mmc/host/mtk-sd.c:2346:12: error: invalid storage class for function 
>> 'msdc_runtime_suspend'
static int msdc_runtime_suspend(struct device *dev)
   ^
>> drivers/mmc/host/mtk-sd.c:2356:12: error: invalid storage class for function 
>> 'msdc_runtime_resume'
static int msdc_runtime_resume(struct device *dev)
   ^
   In file included from include/linux/device.h:23:0,
from include/linux/dma-mapping.h:7,
from drivers/mmc/host/mtk-sd.c:18:
>> drivers/mmc/host/mtk-sd.c:2370:21: error: initializer element is not constant
 SET_RUNTIME_PM_OPS(msdc_runtime_suspend, msdc_runtime_resume, NULL)
^
   include/linux/pm.h:354:21: note: in definition of macro 'SET_RUNTIME_PM_OPS'
 .runtime_suspend = suspend_fn, \
^
   drivers/mmc/host/mtk-sd.c:2370:21: note: (near initialization for 
'msdc_dev_pm_ops.runtime_suspend')
 SET_RUNTIME_PM_OPS(msdc_runtime_suspend, msdc_runtime_resume, NULL)
^
   include/linux/pm.h:354:21: note: in definition of macro 'SET_RUNTIME_PM_OPS'
 .runtime_suspend = suspend_fn, \
^
   drivers/mmc/host/mtk-sd.c:2370:43: error: initializer element is not constant
 SET_RUNTIME_PM_OPS(msdc_runtime_suspend, msdc_runtime_resume, NULL)
  ^
   include/linux/pm.h:355:20: note: in definition of macro 'SET_RUNTIME_PM_OPS'
 .runtime_resume = resume_fn, \
   ^
   drivers/mmc/host/mtk-sd.c:2370:43: note: (near initialization for 
'msdc_dev_pm_ops.runtime_resume')
 SET_RUNTIME_PM_OPS(msdc_runtime_suspend, msdc_runtime_resume, NULL)
  ^
   include/linux/pm.h:355:20: note: in definition of macro 'SET_RUNTIME_PM_OPS'
 .runtime_resume = resume_fn, \
   ^
   drivers/mmc/host/mtk-sd.c:2375:12: error: initializer element is not constant
 .remove = msdc_drv_remove,
   ^
   drivers/mmc/host/mtk-sd.c:2375:12: note: (near initialization for 
'mt_msdc_driver.remove')
   In file included from include/linux/dma-mapping.h:7:0,
from drivers/mmc/host/mtk-sd.c:18:
>> drivers/mmc/host/mtk-sd.c:2383:24: error: invalid storage class for function 
>> 'mt_msdc_driver_init'
module_platform_driver(mt_msdc_driver);
   ^
   include/linux/device.h:1611:19: note: in definition of macro 'module_driver'
static int __init __driver##_init(void) \
  ^
>> drivers/mmc/host/mtk-sd.c:2383:1: note: in expansion of macro 
>> 'module_platform_driver'
module_platform_driver(mt_msdc_driver);
^
   In file included from include/linux/kernel.h:10:0,
from include/linux/list.h:9,
from include/linux/module.h:9,
from drivers/mmc/host/mtk-sd.c:15:
>> include/linux/compiler.h:285:44: error: initializer element is not constant
  __PASTE(__addressable_##sym, __LINE__) = (void *)
   ^
   include/linux/init.h:187:2: note: in expansion of macro '__ADDRESSABLE'
 __ADDRESSABLE(fn) \
 ^
   include/linux/init.h:198:35: note: in expansion of macro '___define_initcall'
#define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id)
  ^
   include/linux/init.h:227:30: note: in expansion of macro '__define_initcall'

Re: [PATCH net-next] ptp: Fix pass zero to ERR_PTR() in ptp_clock_register

2018-11-22 Thread kbuild test robot
Hi YueHaibing,

Thank you for the patch! Perhaps something to improve:

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

url:
https://github.com/0day-ci/linux/commits/YueHaibing/ptp-Fix-pass-zero-to-ERR_PTR-in-ptp_clock_register/20181123-010251
config: x86_64-randconfig-x017-201846 (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=x86_64 

All warnings (new ones prefixed by >>):

   drivers/ptp/ptp_clock.c: In function 'ptp_clock_register':
>> drivers/ptp/ptp_clock.c:269:18: warning: passing argument 1 of 'PTR_ERR' 
>> makes pointer from integer without a cast [-Wint-conversion]
   err = PTR_ERR(-EINVAL);
 ^
   In file included from arch/x86/include/asm/processor.h:32:0,
from arch/x86/include/asm/cpufeature.h:8,
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/radix-tree.h:27,
from include/linux/idr.h:15,
from drivers/ptp/ptp_clock.c:20:
   include/linux/err.h:29:33: note: expected 'const void *' but argument is of 
type 'int'
static inline long __must_check PTR_ERR(__force const void *ptr)
^~~
   Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64
   Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
   Cyclomatic Complexity 1 include/linux/math64.h:div_u64_rem
   Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
   Cyclomatic Complexity 3 include/linux/string.h:memset
   Cyclomatic Complexity 1 include/linux/err.h:ERR_PTR
   Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR
   Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irqrestore
   Cyclomatic Complexity 1 include/linux/ktime.h:ktime_to_ns
   Cyclomatic Complexity 1 include/linux/slab.h:kmalloc_type
   Cyclomatic Complexity 28 include/linux/slab.h:kmalloc_index
   Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 4 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
   Cyclomatic Complexity 2 drivers/ptp/ptp_private.h:queue_cnt
   Cyclomatic Complexity 1 drivers/ptp/ptp_clock.c:queue_free
   Cyclomatic Complexity 2 drivers/ptp/ptp_clock.c:enqueue_external_timestamp
   Cyclomatic Complexity 1 drivers/ptp/ptp_clock.c:scaled_ppm_to_ppb
   Cyclomatic Complexity 1 drivers/ptp/ptp_clock.c:ptp_clock_getres
   Cyclomatic Complexity 1 drivers/ptp/ptp_clock.c:ptp_clock_settime
   Cyclomatic Complexity 2 drivers/ptp/ptp_clock.c:ptp_clock_gettime
   Cyclomatic Complexity 1 drivers/ptp/ptp_clock.c:delete_ptp_clock
   Cyclomatic Complexity 2 drivers/ptp/ptp_clock.c:ptp_aux_kworker
   Cyclomatic Complexity 2 include/linux/ktime.h:ktime_set
   Cyclomatic Complexity 1 include/linux/ktime.h:timespec64_to_ktime
   Cyclomatic Complexity 9 drivers/ptp/ptp_clock.c:ptp_clock_adjtime
   Cyclomatic Complexity 1 include/linux/err.h:IS_ERR
   Cyclomatic Complexity 1 include/linux/pps_kernel.h:pps_get_ts
   Cyclomatic Complexity 1 drivers/ptp/ptp_clock.c:ptp_exit
   Cyclomatic Complexity 3 drivers/ptp/ptp_clock.c:ptp_init
   Cyclomatic Complexity 13 drivers/ptp/ptp_clock.c:ptp_clock_register
   Cyclomatic Complexity 3 drivers/ptp/ptp_clock.c:ptp_clock_unregister
   Cyclomatic Complexity 4 drivers/ptp/ptp_clock.c:ptp_clock_event
   Cyclomatic Complexity 1 drivers/ptp/ptp_clock.c:ptp_clock_index
   Cyclomatic Complexity 5 drivers/ptp/ptp_clock.c:ptp_find_pin
   Cyclomatic Complexity 1 drivers/ptp/ptp_clock.c:ptp_schedule_worker

vim +/PTR_ERR +269 drivers/ptp/ptp_clock.c

   205  
   206  struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info,
   207   struct device *parent)
   208  {
   209  struct ptp_clock *ptp;
   210  int err = 0, index, major = MAJOR(ptp_devt);
   211  
   212  if (info->n_alarm > PTP_MAX_ALARMS)
   213  return ERR_PTR(-EINVAL);
   214  
   215  /* Initialize a clock structure. */
   216  err = -ENOMEM;
   217  ptp = kzalloc(sizeof(struct ptp_clock), GFP_KERNEL);
   218  if (ptp == NULL)
   219  goto no_memory;
   220  
   221  index = ida_simple_get(_clocks_map, 0, MINORMASK + 1, 
GFP_KERNEL);
   222  if (index < 0) {
   223  err = index;
   224  goto no_slot;
   225  }
   226  
   227  ptp->clock.ops = ptp_clock_ops;
   228  ptp->clock.release = delete_ptp_clock;
   229  ptp->info = info;
   230  

[tip:x86/cleanups 1/2] arch/arm64/include/asm/efi.h:102:20: error: static declaration of 'efifb_setup_from_dmi' follows non-static declaration

2018-11-22 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cleanups
head:   c382986fe178d02abdfcd6f4e7b9783c2922872c
commit: d37904c5b14317a2c76efec6b9e4dbcaa17380e5 [1/2] x86/headers: Fix 
-Wmissing-prototypes warning
config: arm64-allmodconfig (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 d37904c5b14317a2c76efec6b9e4dbcaa17380e5
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   In file included from arch/arm64/kernel/setup.c:62:0:
>> arch/arm64/include/asm/efi.h:102:20: error: static declaration of 
>> 'efifb_setup_from_dmi' follows non-static declaration
static inline void efifb_setup_from_dmi(struct screen_info *si, const char 
*opt)
   ^~~~
   In file included from arch/arm64/kernel/setup.c:40:0:
   include/linux/efi.h:1056:13: note: previous declaration of 
'efifb_setup_from_dmi' was here
extern void efifb_setup_from_dmi(struct screen_info *si, const char *opt);
^~~~

vim +/efifb_setup_from_dmi +102 arch/arm64/include/asm/efi.h

760b61d76 Ard Biesheuvel 2017-08-18  101  
9822504c1 Ard Biesheuvel 2016-04-25 @102  static inline void 
efifb_setup_from_dmi(struct screen_info *si, const char *opt)
9822504c1 Ard Biesheuvel 2016-04-25  103  {
9822504c1 Ard Biesheuvel 2016-04-25  104  }
9822504c1 Ard Biesheuvel 2016-04-25  105  

:: The code at line 102 was first introduced by commit
:: 9822504c1fa5c557ea8776765f03fd16eb4de4c9 efifb: Enable the 
efi-framebuffer platform driver for ARM and arm64

:: TO: Ard Biesheuvel 
:: CC: Ingo Molnar 

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


.config.gz
Description: application/gzip


[tip:x86/cleanups 1/2] arch/arm/include/asm/efi.h:70:20: error: static declaration of 'efifb_setup_from_dmi' follows non-static declaration

2018-11-22 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cleanups
head:   c382986fe178d02abdfcd6f4e7b9783c2922872c
commit: d37904c5b14317a2c76efec6b9e4dbcaa17380e5 [1/2] x86/headers: Fix 
-Wmissing-prototypes warning
config: arm-multi_v4t_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
git checkout d37904c5b14317a2c76efec6b9e4dbcaa17380e5
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   In file included from arch/arm/kernel/setup.c:39:0:
>> arch/arm/include/asm/efi.h:70:20: error: static declaration of 
>> 'efifb_setup_from_dmi' follows non-static declaration
static inline void efifb_setup_from_dmi(struct screen_info *si, const char 
*opt)
   ^~~~
   In file included from arch/arm/kernel/setup.c:10:0:
   include/linux/efi.h:1056:13: note: previous declaration of 
'efifb_setup_from_dmi' was here
extern void efifb_setup_from_dmi(struct screen_info *si, const char *opt);
^~~~

vim +/efifb_setup_from_dmi +70 arch/arm/include/asm/efi.h

801820be Ard Biesheuvel 2016-04-25  69  
9822504c Ard Biesheuvel 2016-04-25 @70  static inline void 
efifb_setup_from_dmi(struct screen_info *si, const char *opt)
9822504c Ard Biesheuvel 2016-04-25  71  {
9822504c Ard Biesheuvel 2016-04-25  72  }
9822504c Ard Biesheuvel 2016-04-25  73  

:: The code at line 70 was first introduced by commit
:: 9822504c1fa5c557ea8776765f03fd16eb4de4c9 efifb: Enable the 
efi-framebuffer platform driver for ARM and arm64

:: TO: Ard Biesheuvel 
:: CC: Ingo Molnar 

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


.config.gz
Description: application/gzip


Re: [PATCH] mm: use this_cpu_cmpxchg_double in put_cpu_partial

2018-11-21 Thread kbuild test robot
Hi Wengang,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc3 next-20181121]
[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/Wengang-Wang/mm-use-this_cpu_cmpxchg_double-in-put_cpu_partial/20181119-215159
config: x86_64-randconfig-e2-11191630 (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=x86_64 

All warnings (new ones prefixed by >>):

>> mm/slub.o: warning: objtool: ___slab_alloc.constprop.72()+0x5be: unreachable 
>> instruction

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


.config.gz
Description: application/gzip


[tip:WIP.x86/pti 12/26] include/linux/sched/topology.h:41:9: error: implicit declaration of function 'static_branch_likely'

2018-11-21 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/pti
head:   1dbc1eb4f898d3df3b663ce1d938693554877fd6
commit: fa8d301b556b3b60a680feae724597decb8e8632 [12/26] sched/smt: Expose 
sched_smt_present static key
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.1.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 fa8d301b556b3b60a680feae724597decb8e8632
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   In file included from include/linux/cpuset.h:13,
from kernel/cgroup/cpuset.c:27:
   include/linux/sched/topology.h: In function 'sched_smt_active':
>> include/linux/sched/topology.h:41:9: error: implicit declaration of function 
>> 'static_branch_likely' [-Werror=implicit-function-declaration]
 return static_branch_likely(_smt_present);
^~~~
   cc1: some warnings being treated as errors

vim +/static_branch_likely +41 include/linux/sched/topology.h

38  
39  static __always_inline bool sched_smt_active(void)
40  {
  > 41  return static_branch_likely(_smt_present);
42  }
43  

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


.config.gz
Description: application/gzip


[tip:WIP.x86/pti 26/26] arch/x86/kernel/cpu/bugs.c:343:4: error: 'app2app_mode' undeclared; did you mean 'x2apic_mode'?

2018-11-21 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/pti
head:   1dbc1eb4f898d3df3b663ce1d938693554877fd6
commit: 1dbc1eb4f898d3df3b663ce1d938693554877fd6 [26/26] x86/speculation: Add 
'seccomp' Spectre v2 app to app protection mode
config: x86_64-randconfig-x016-201846 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 1dbc1eb4f898d3df3b663ce1d938693554877fd6
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   arch/x86/kernel/cpu/bugs.c: In function 
'spectre_v2_app2app_select_mitigation':
>> arch/x86/kernel/cpu/bugs.c:343:4: error: 'app2app_mode' undeclared (first 
>> use in this function); did you mean 'x2apic_mode'?
   app2app_mode = SPECTRE_V2_APP2APP_SECCOMP;
   ^~~~
   x2apic_mode
   arch/x86/kernel/cpu/bugs.c:343:4: note: each undeclared identifier is 
reported only once for each function it appears in

vim +343 arch/x86/kernel/cpu/bugs.c

   317  
   318  static void __init
   319  spectre_v2_app2app_select_mitigation(enum spectre_v2_mitigation_cmd 
v2_cmd)
   320  {
   321  enum spectre_v2_app2app_mitigation mode = 
SPECTRE_V2_APP2APP_NONE;
   322  bool smt_possible = IS_ENABLED(CONFIG_SMP);
   323  
   324  if (!boot_cpu_has(X86_FEATURE_IBPB) && 
!boot_cpu_has(X86_FEATURE_STIBP))
   325  return;
   326  
   327  if (cpu_smt_control == CPU_SMT_FORCE_DISABLED ||
   328  cpu_smt_control == CPU_SMT_NOT_SUPPORTED)
   329  smt_possible = false;
   330  
   331  switch (spectre_v2_parse_app2app_cmdline(v2_cmd)) {
   332  case SPECTRE_V2_APP2APP_CMD_NONE:
   333  goto set_mode;
   334  case SPECTRE_V2_APP2APP_CMD_FORCE:
   335 mode = SPECTRE_V2_APP2APP_STRICT;
   336 break;
   337  case SPECTRE_V2_APP2APP_CMD_PRCTL:
   338  mode = SPECTRE_V2_APP2APP_PRCTL;
   339  break;
   340  case SPECTRE_V2_APP2APP_CMD_AUTO:
   341  case SPECTRE_V2_APP2APP_CMD_SECCOMP:
   342  if (IS_ENABLED(CONFIG_SECCOMP))
 > 343  app2app_mode = SPECTRE_V2_APP2APP_SECCOMP;
   344  else
   345  app2app_mode = SPECTRE_V2_APP2APP_PRCTL;
   346  break;
   347  }
   348  
   349  /* Initialize Indirect Branch Prediction Barrier */
   350  if (boot_cpu_has(X86_FEATURE_IBPB)) {
   351  setup_force_cpu_cap(X86_FEATURE_USE_IBPB);
   352  
   353  switch (mode) {
   354  case SPECTRE_V2_APP2APP_STRICT:
   355  static_branch_enable(_to_always_ibpb);
   356  break;
   357  case SPECTRE_V2_APP2APP_PRCTL:
   358  case SPECTRE_V2_APP2APP_SECCOMP:
   359  static_branch_enable(_to_cond_ibpb);
   360  break;
   361  default:
   362  break;
   363  }
   364  
   365  pr_info("mitigation: Enabling %s Indirect Branch 
Prediction Barrier\n",
   366  mode == SPECTRE_V2_APP2APP_STRICT ? "forced" : 
"conditional");
   367  }
   368  
   369  /* If enhanced IBRS is enabled no STIPB required */
   370  if (spectre_v2_enabled == SPECTRE_V2_IBRS_ENHANCED)
   371  return;
   372  
   373  /*
   374   * If STIBP is not available or SMT is not possible clear the 
STIPB
   375   * mode.
   376   */
   377  if (!smt_possible || !boot_cpu_has(X86_FEATURE_STIBP))
   378  mode = SPECTRE_V2_APP2APP_NONE;
   379  set_mode:
   380  spectre_v2_app2app = mode;
   381  /* Only print the STIBP mode when SMT possible */
   382  if (smt_possible)
   383  pr_info("%s\n", spectre_v2_app2app_strings[mode]);
   384  }
   385  

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


.config.gz
Description: application/gzip


[tip:WIP.x86/pti 26/26] arch/x86//kernel/cpu/bugs.c:343:4: error: 'app2app_mode' undeclared; did you mean 'app2app_options'?

2018-11-21 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/pti
head:   1dbc1eb4f898d3df3b663ce1d938693554877fd6
commit: 1dbc1eb4f898d3df3b663ce1d938693554877fd6 [26/26] x86/speculation: Add 
'seccomp' Spectre v2 app to app protection mode
config: i386-randconfig-x002-201846 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 1dbc1eb4f898d3df3b663ce1d938693554877fd6
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   arch/x86//kernel/cpu/bugs.c: In function 
'spectre_v2_app2app_select_mitigation':
>> arch/x86//kernel/cpu/bugs.c:343:4: error: 'app2app_mode' undeclared (first 
>> use in this function); did you mean 'app2app_options'?
   app2app_mode = SPECTRE_V2_APP2APP_SECCOMP;
   ^~~~
   app2app_options
   arch/x86//kernel/cpu/bugs.c:343:4: note: each undeclared identifier is 
reported only once for each function it appears in

vim +343 arch/x86//kernel/cpu/bugs.c

   317  
   318  static void __init
   319  spectre_v2_app2app_select_mitigation(enum spectre_v2_mitigation_cmd 
v2_cmd)
   320  {
   321  enum spectre_v2_app2app_mitigation mode = 
SPECTRE_V2_APP2APP_NONE;
   322  bool smt_possible = IS_ENABLED(CONFIG_SMP);
   323  
   324  if (!boot_cpu_has(X86_FEATURE_IBPB) && 
!boot_cpu_has(X86_FEATURE_STIBP))
   325  return;
   326  
   327  if (cpu_smt_control == CPU_SMT_FORCE_DISABLED ||
   328  cpu_smt_control == CPU_SMT_NOT_SUPPORTED)
   329  smt_possible = false;
   330  
   331  switch (spectre_v2_parse_app2app_cmdline(v2_cmd)) {
   332  case SPECTRE_V2_APP2APP_CMD_NONE:
   333  goto set_mode;
   334  case SPECTRE_V2_APP2APP_CMD_FORCE:
   335 mode = SPECTRE_V2_APP2APP_STRICT;
   336 break;
   337  case SPECTRE_V2_APP2APP_CMD_PRCTL:
   338  mode = SPECTRE_V2_APP2APP_PRCTL;
   339  break;
   340  case SPECTRE_V2_APP2APP_CMD_AUTO:
   341  case SPECTRE_V2_APP2APP_CMD_SECCOMP:
   342  if (IS_ENABLED(CONFIG_SECCOMP))
 > 343  app2app_mode = SPECTRE_V2_APP2APP_SECCOMP;
   344  else
   345  app2app_mode = SPECTRE_V2_APP2APP_PRCTL;
   346  break;
   347  }
   348  
   349  /* Initialize Indirect Branch Prediction Barrier */
   350  if (boot_cpu_has(X86_FEATURE_IBPB)) {
   351  setup_force_cpu_cap(X86_FEATURE_USE_IBPB);
   352  
   353  switch (mode) {
   354  case SPECTRE_V2_APP2APP_STRICT:
   355  static_branch_enable(_to_always_ibpb);
   356  break;
   357  case SPECTRE_V2_APP2APP_PRCTL:
   358  case SPECTRE_V2_APP2APP_SECCOMP:
   359  static_branch_enable(_to_cond_ibpb);
   360  break;
   361  default:
   362  break;
   363  }
   364  
   365  pr_info("mitigation: Enabling %s Indirect Branch 
Prediction Barrier\n",
   366  mode == SPECTRE_V2_APP2APP_STRICT ? "forced" : 
"conditional");
   367  }
   368  
   369  /* If enhanced IBRS is enabled no STIPB required */
   370  if (spectre_v2_enabled == SPECTRE_V2_IBRS_ENHANCED)
   371  return;
   372  
   373  /*
   374   * If STIBP is not available or SMT is not possible clear the 
STIPB
   375   * mode.
   376   */
   377  if (!smt_possible || !boot_cpu_has(X86_FEATURE_STIBP))
   378  mode = SPECTRE_V2_APP2APP_NONE;
   379  set_mode:
   380  spectre_v2_app2app = mode;
   381  /* Only print the STIBP mode when SMT possible */
   382  if (smt_possible)
   383  pr_info("%s\n", spectre_v2_app2app_strings[mode]);
   384  }
   385  

---
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] thermal: imx: fix for dependency on cpu-freq

2018-11-20 Thread kbuild test robot
Hi Anson,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on soc-thermal/next]
[also build test WARNING on v4.20-rc3 next-20181120]
[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/Anson-Huang/thermal-imx-fix-for-dependency-on-cpu-freq/20181121-124056
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal.git 
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
GCC_VERSION=7.2.0 make.cross ARCH=sparc64 

All warnings (new ones prefixed by >>):

   drivers//thermal/imx_thermal.c: In function 
'imx_thermal_unregister_legacy_cooling':
>> drivers//thermal/imx_thermal.c:685:1: warning: no return statement in 
>> function returning non-void [-Wreturn-type]
}
^

vim +685 drivers//thermal/imx_thermal.c

   680  
   681  static int imx_thermal_unregister_legacy_cooling(struct 
imx_thermal_data *data)
   682  {
   683  cpufreq_cooling_unregister(data->cdev);
   684  cpufreq_cpu_put(data->policy);
 > 685  }
   686  #else
   687  static inline int imx_thermal_register_legacy_cooling(struct 
imx_thermal_data *data)
   688  {
   689  return 0;
   690  }
   691  

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


.config.gz
Description: application/gzip


Re: [PATCH] mtd: spi-nor: parse SFDP 4-byte Address Instruction Table

2018-11-20 Thread kbuild test robot
Hi Cyrille,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on mtd/spi-nor/next]
[also build test ERROR on v4.20-rc3 next-20181120]
[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/Tudor-Ambarus-microchip-com/mtd-spi-nor-parse-SFDP-4-byte-Address-Instruction-Table/20181120-223821
base:   git://git.infradead.org/linux-mtd.git spi-nor/next
config: nds32-allyesconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 6.4.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
GCC_VERSION=6.4.0 make.cross ARCH=nds32 

All errors (new ones prefixed by >>):

   drivers/mtd//spi-nor/spi-nor.c: In function 'spi_nor_parse_4bait':
>> drivers/mtd//spi-nor/spi-nor.c:3165:15: error: implicit declaration of 
>> function 'spi_nor_sort_erase_mask' [-Werror=implicit-function-declaration]
 erase_mask = spi_nor_sort_erase_mask(map, erase_mask);
  ^~~
   cc1: some warnings being treated as errors

vim +/spi_nor_sort_erase_mask +3165 drivers/mtd//spi-nor/spi-nor.c

  3053  
  3054  /**
  3055   * spi_nor_parse_4bait() - parse the 4-Byte Address Instruction Table
  3056   * @nor:pointer to a 'struct spi_nor'.
  3057   * @param_header:   pointer to the 'struct sfdp_parameter_header' 
describing
  3058   *  the 4-Byte Address Instruction Table length and 
version.
  3059   * @params: pointer to the 'struct spi_nor_flash_parameter' 
to be.
  3060   *
  3061   * Return: 0 on success, -errno otherwise.
  3062   */
  3063  static int spi_nor_parse_4bait(struct spi_nor *nor,
  3064 const struct sfdp_parameter_header 
*param_header,
  3065 struct spi_nor_flash_parameter *params)
  3066  {
  3067  static const struct sfdp_4bait reads[] = {
  3068  { SNOR_HWCAPS_READ, BIT(0) },
  3069  { SNOR_HWCAPS_READ_FAST,BIT(1) },
  3070  { SNOR_HWCAPS_READ_1_1_2,   BIT(2) },
  3071  { SNOR_HWCAPS_READ_1_2_2,   BIT(3) },
  3072  { SNOR_HWCAPS_READ_1_1_4,   BIT(4) },
  3073  { SNOR_HWCAPS_READ_1_4_4,   BIT(5) },
  3074  { SNOR_HWCAPS_READ_1_1_1_DTR,   BIT(13) },
  3075  { SNOR_HWCAPS_READ_1_2_2_DTR,   BIT(14) },
  3076  { SNOR_HWCAPS_READ_1_4_4_DTR,   BIT(15) },
  3077  };
  3078  static const struct sfdp_4bait programs[] = {
  3079  { SNOR_HWCAPS_PP,   BIT(6) },
  3080  { SNOR_HWCAPS_PP_1_1_4, BIT(7) },
  3081  { SNOR_HWCAPS_PP_1_4_4, BIT(8) },
  3082  };
  3083  static const struct sfdp_4bait erases[SNOR_ERASE_TYPE_MAX] = {
  3084  { 0u /* not used */,BIT(9) },
  3085  { 0u /* not used */,BIT(10) },
  3086  { 0u /* not used */,BIT(11) },
  3087  { 0u /* not used */,BIT(12) },
  3088  };
  3089  struct spi_nor_pp_command *params_pp = params->page_programs;
  3090  struct spi_nor_erase_map *map = >erase_map;
  3091  struct spi_nor_erase_type *erase_type = map->erase_type;
  3092  u32 *dwords;
  3093  size_t len;
  3094  u32 addr, discard_hwcaps, read_hwcaps, pp_hwcaps, erase_mask;
  3095  int i, ret;
  3096  
  3097  if (param_header->major != SFDP_JESD216_MAJOR ||
  3098  param_header->length < SFDP_4BAIT_DWORD_MAX)
  3099  return -EINVAL;
  3100  
  3101  /* Read the 4-byte Address Instruction Table. */
  3102  len = sizeof(*dwords) * SFDP_4BAIT_DWORD_MAX;
  3103  
  3104  /* Use a kmalloc'ed bounce buffer to guarantee it is DMA-able. 
*/
  3105  dwords = kmalloc(len, GFP_KERNEL);
  3106  if (!dwords)
  3107  return -ENOMEM;
  3108  
  3109  addr = SFDP_PARAM_HEADER_PTP(param_header);
  3110  ret = spi_nor_read_sfdp(nor, addr, len, dwords);
  3111  if (ret)
  3112  return ret;
  3113  
  3114  /* Fix endianness of the 4BAIT DWORDs. */
  3115  for (i = 0; i < SFDP_4BAIT_DWORD_MAX; i++)
  3116  dwords[i] = le32_to_cpu(dwords[i]);
  3117  
  3118  /*
  3119   * Compute the subset of (Fast) Read commands for which the 
4-byte
  3120   * version is supported.
  3121   */
  3122  discard_hwcaps = 0;
  3123  read_hwcaps = 0;
  3124  for (i = 0; i < ARRAY_SIZE(reads); i++) {
  3125  const struct sfdp_4bait *read = 

Re: [PATCH] mtd: spi-nor: parse SFDP 4-byte Address Instruction Table

2018-11-20 Thread kbuild test robot
Hi Cyrille,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on mtd/spi-nor/next]
[also build test ERROR on v4.20-rc3 next-20181120]
[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/Tudor-Ambarus-microchip-com/mtd-spi-nor-parse-SFDP-4-byte-Address-Instruction-Table/20181120-223821
base:   git://git.infradead.org/linux-mtd.git spi-nor/next
config: i386-randconfig-x005-201846 (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/mtd//spi-nor/spi-nor.c: In function 'spi_nor_parse_4bait':
>> drivers/mtd//spi-nor/spi-nor.c:3165:15: error: implicit declaration of 
>> function 'spi_nor_sort_erase_mask'; did you mean 'spi_nor_set_erase_type'? 
>> [-Werror=implicit-function-declaration]
 erase_mask = spi_nor_sort_erase_mask(map, erase_mask);
  ^~~
  spi_nor_set_erase_type
   Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
   Cyclomatic Complexity 1 include/linux/err.h:ERR_PTR
   Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:ffs
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls
   Cyclomatic Complexity 2 include/asm-generic/bitops/fls64.h:fls64
   Cyclomatic Complexity 1 arch/x86/include/asm/arch_hweight.h:__arch_hweight32
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u32
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64
   Cyclomatic Complexity 3 include/linux/log2.h:is_power_of_2
   Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
   Cyclomatic Complexity 1 include/linux/list.h:__list_add_valid
   Cyclomatic Complexity 1 include/linux/list.h:__list_del_entry_valid
   Cyclomatic Complexity 2 include/linux/list.h:__list_add
   Cyclomatic Complexity 1 include/linux/list.h:list_add_tail
   Cyclomatic Complexity 1 include/linux/list.h:__list_del
   Cyclomatic Complexity 2 include/linux/list.h:__list_del_entry
   Cyclomatic Complexity 1 include/linux/list.h:list_del
   Cyclomatic Complexity 2 arch/x86/include/asm/div64.h:div_u64_rem
   Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
   Cyclomatic Complexity 1 include/linux/kobject.h:kobject_name
   Cyclomatic Complexity 2 include/linux/device.h:dev_name
   Cyclomatic Complexity 1 include/linux/device.h:dev_of_node
   Cyclomatic Complexity 67 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 3 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 1 include/linux/mtd/mtd.h:mtd_get_of_node
   Cyclomatic Complexity 1 
include/linux/mtd/spi-nor.h:spi_nor_get_protocol_data_nbits
   Cyclomatic Complexity 1 
include/linux/mtd/spi-nor.h:spi_nor_get_protocol_width
   Cyclomatic Complexity 1 include/linux/mtd/spi-nor.h:spi_nor_region_is_last
   Cyclomatic Complexity 1 include/linux/mtd/spi-nor.h:spi_nor_region_end
   Cyclomatic Complexity 1 include/linux/mtd/spi-nor.h:spi_nor_region_mark_end
   Cyclomatic Complexity 1 
include/linux/mtd/spi-nor.h:spi_nor_region_mark_overlay
   Cyclomatic Complexity 1 include/linux/mtd/spi-nor.h:spi_nor_has_uniform_erase
   Cyclomatic Complexity 1 include/linux/mtd/spi-nor.h:spi_nor_get_flash_node
   Cyclomatic Complexity 1 drivers/mtd//spi-nor/spi-nor.c:write_sr
   Cyclomatic Complexity 1 drivers/mtd//spi-nor/spi-nor.c:write_enable
   Cyclomatic Complexity 1 drivers/mtd//spi-nor/spi-nor.c:write_disable
   Cyclomatic Complexity 1 drivers/mtd//spi-nor/spi-nor.c:mtd_to_spi_nor
   Cyclomatic Complexity 3 drivers/mtd//spi-nor/spi-nor.c:spi_nor_convert_opcode
   Cyclomatic Complexity 1 
drivers/mtd//spi-nor/spi-nor.c:spi_nor_convert_3to4_read
   Cyclomatic Complexity 1 
drivers/mtd//spi-nor/spi-nor.c:spi_nor_convert_3to4_program
   Cyclomatic Complexity 1 
drivers/mtd//spi-nor/spi-nor.c:spi_nor_convert_3to4_erase
   Cyclomatic Complexity 4 
drivers/mtd//spi-nor/spi-nor.c:spi_nor_set_4byte_opcodes
   Cyclomatic Complexity 8 drivers/mtd//spi-nor/spi-nor.c:set_4byte
   Cyclomatic Complexity 1 drivers/mtd//spi-nor/spi-nor.c:erase_chip
   Cyclomatic Complexity 2 
drivers/mtd//spi-nor/spi-nor.c:spi_nor_s3an_addr_convert
   Cyclomatic Complexity 4 drivers/mtd//spi-nor/spi-nor.c:spi_nor_erase_sector
   Cyclomatic Complexity 1 
drivers/mtd//spi-nor/spi-nor.c:spi_nor_div_by_erase_size
   Cyclomatic Complexity 6 
drivers/mtd//spi-nor/spi-nor.c:spi_nor_find_best_erase_type
   Cyclomatic Complexity 2 drivers/mtd//spi-nor/spi-nor.c:spi_nor_region_next
   Cyclomatic Complexity 3 
drivers/mtd//spi-nor/spi-nor.c:spi_nor_find_erase_region
   Cyclomatic Complexity 3 drivers/mtd//spi-nor/spi-nor.c:spi_nor_init_erase_cmd
   Cyclomatic Complexity 4 drivers/mtd//spi-nor/spi-nor.c:stm_get_locked_range
   Cyclomatic Complexity 7 
drivers/mtd//spi-nor/spi-nor.c:stm_check_lock_status_sr
   Cyclomatic 

arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints

2018-11-20 Thread kbuild test robot
Hi Juergen,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f2ce1065e767fc7da106a5f5381d1e8f842dc6f4
commit: 6da63eb241a05b0e676d68975e793c0521387141 x86/paravirt: Move the 
pv_irq_ops under the PARAVIRT_XXL umbrella
date:   3 months ago
config: i386-randconfig-h0-11201559 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout 6da63eb241a05b0e676d68975e793c0521387141
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/atomic.h:8:0,
from arch/x86/include/asm/msr.h:67,
from arch/x86/include/asm/processor.h:21,
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/mm.h:10,
from mm/slub.c:13:
   mm/slub.c: In function '__slab_free':
>> arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible 
>> constraints
 asm volatile(pfx "cmpxchg%c4b %2; sete %0"   \
 ^
   arch/x86/include/asm/cmpxchg.h:254:2: note: in expansion of macro 
'__cmpxchg_double'
 __cmpxchg_double(LOCK_PREFIX, p1, p2, o1, o2, n1, n2)
 ^
   include/asm-generic/atomic-instrumented.h:457:2: note: in expansion of macro 
'arch_cmpxchg_double'
 arch_cmpxchg_double(__ai_p1, (p2), (o1), (o2), (n1), (n2)); \
 ^
   mm/slub.c:403:7: note: in expansion of macro 'cmpxchg_double'
  if (cmpxchg_double(>freelist, >counters,
  ^

vim +/asm +245 arch/x86/include/asm/cmpxchg.h

3d94ae0c Jeremy Fitzhardinge 2011-09-28  235  
cdcd6298 Jan Beulich 2012-01-02  236  #define __cmpxchg_double(pfx, p1, 
p2, o1, o2, n1, n2) \
cdcd6298 Jan Beulich 2012-01-02  237  ({
\
cdcd6298 Jan Beulich 2012-01-02  238bool __ret; 
\
cdcd6298 Jan Beulich 2012-01-02  239__typeof__(*(p1)) __old1 = 
(o1), __new1 = (n1); \
cdcd6298 Jan Beulich 2012-01-02  240__typeof__(*(p2)) __old2 = 
(o2), __new2 = (n2); \
cdcd6298 Jan Beulich 2012-01-02  241BUILD_BUG_ON(sizeof(*(p1)) != 
sizeof(long));\
cdcd6298 Jan Beulich 2012-01-02  242BUILD_BUG_ON(sizeof(*(p2)) != 
sizeof(long));\
cdcd6298 Jan Beulich 2012-01-02  243VM_BUG_ON((unsigned long)(p1) % 
(2 * sizeof(long)));\
cdcd6298 Jan Beulich 2012-01-02  244VM_BUG_ON((unsigned long)((p1) 
+ 1) != (unsigned long)(p2));\
cdcd6298 Jan Beulich 2012-01-02 @245asm volatile(pfx "cmpxchg%c4b 
%2; sete %0"  \
cdcd6298 Jan Beulich 2012-01-02  246 : "=a" (__ret), 
"+d" (__old2), \
cdcd6298 Jan Beulich 2012-01-02  247   "+m" (*(p1)), 
"+m" (*(p2))   \
cdcd6298 Jan Beulich 2012-01-02  248 : "i" (2 * 
sizeof(long)), "a" (__old1),\
cdcd6298 Jan Beulich 2012-01-02  249   "b" (__new1), 
"c" (__new2)); \
cdcd6298 Jan Beulich 2012-01-02  250__ret;  
\
cdcd6298 Jan Beulich 2012-01-02  251  })
cdcd6298 Jan Beulich 2012-01-02  252  

:: The code at line 245 was first introduced by commit
:: cdcd629869fabcd38ebd24a03b0a05ec1cbcafb0 x86: Fix and improve 
cmpxchg_double{,_local}()

:: TO: Jan Beulich 
:: CC: Ingo Molnar 

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


.config.gz
Description: application/gzip


make[2]: *** No rule to make target 'arch/sh/boot/dts/.dtb.S', needed by 'arch/sh/boot/dts/.dtb.o'.

2018-11-19 Thread kbuild test robot
Hi Rob,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f2ce1065e767fc7da106a5f5381d1e8f842dc6f4
commit: 37c8a5fafa3bb7dcdd51774be353be6cb2912b86 kbuild: consolidate Devicetree 
dtb build rules
date:   7 weeks ago
config: sh-j2_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
git checkout 37c8a5fafa3bb7dcdd51774be353be6cb2912b86
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=sh 

All errors (new ones prefixed by >>):

>> make[2]: *** No rule to make target 'arch/sh/boot/dts/.dtb.S', needed by 
>> 'arch/sh/boot/dts/.dtb.o'.
   make[2]: 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


ERROR: "numa_slit" [drivers/nvme/host/nvme-core.ko] undefined!

2018-11-19 Thread kbuild test robot
Hi Matias,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f2ce1065e767fc7da106a5f5381d1e8f842dc6f4
commit: 73569e11032fc5a9b314b6351632cfca7793afd5 lightnvm: remove dependencies 
on BLK_DEV_NVME and PCI
date:   6 weeks ago
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.1.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 73569e11032fc5a9b314b6351632cfca7793afd5
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   ERROR: "ia64_delay_loop" [drivers/spi/spi-thunderx.ko] undefined!
>> ERROR: "numa_slit" [drivers/nvme/host/nvme-core.ko] undefined!
   ERROR: "__sw_hweight8" [drivers/net/wireless/mediatek/mt76/mt76.ko] 
undefined!
   ERROR: "ia64_delay_loop" [drivers/net/phy/mdio-cavium.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] mm: use this_cpu_cmpxchg_double in put_cpu_partial

2018-11-19 Thread kbuild test robot
Hi Wengang,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc3 next-20181119]
[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/Wengang-Wang/mm-use-this_cpu_cmpxchg_double-in-put_cpu_partial/20181119-215159
config: x86_64-kexec (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=x86_64 

All warnings (new ones prefixed by >>):

>> mm/slub.o: warning: objtool: get_partial_node.isra.19()+0x27e: unreachable 
>> instruction

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


.config.gz
Description: application/gzip


Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread kbuild test robot
Hi Christian,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc3]
[cannot apply to next-20181119]
[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/Christian-Brauner/proc-allow-signaling-processes-via-file-descriptors/20181120-063836
config: riscv-tinyconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 8.1.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
GCC_VERSION=8.1.0 make.cross ARCH=riscv 

All warnings (new ones prefixed by >>):

>> :1338:2: warning: #warning syscall procfd_signal not implemented 
>> [-Wcpp]

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


.config.gz
Description: application/gzip


Re: [PATCH v1 2/2] signal: add procfd_signal() syscall

2018-11-19 Thread kbuild test robot
Hi Christian,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc3]
[cannot apply to next-20181119]
[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/Christian-Brauner/proc-allow-signaling-processes-via-file-descriptors/20181120-063836
config: riscv-tinyconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 8.1.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
GCC_VERSION=8.1.0 make.cross ARCH=riscv 

All errors (new ones prefixed by >>):

   kernel/signal.c: In function '__do_sys_procfd_signal':
>> kernel/signal.c:3341:7: error: implicit declaration of function 
>> 'proc_is_procfd'; did you mean 'clockid_to_fd'? 
>> [-Werror=implicit-function-declaration]
 if (!proc_is_procfd(f.file))
  ^~
  clockid_to_fd
   cc1: some warnings being treated as errors

vim +3341 kernel/signal.c

  3314  
  3315  /**
  3316   *  sys_procfd_signal - send a signal to a process through a process 
file
  3317   *  descriptor
  3318   *  @fd: the file descriptor of the process
  3319   *  @sig: signal to be sent
  3320   *  @info: the signal info
  3321   *  @flags: future flags to be passed
  3322   */
  3323  SYSCALL_DEFINE4(procfd_signal, int, fd, int, sig, siginfo_t __user *, 
info,
  3324  int, flags)
  3325  {
  3326  int ret;
  3327  struct pid *pid;
  3328  kernel_siginfo_t kinfo;
  3329  struct fd f;
  3330  
  3331  /* Enforce flags be set to 0 until we add an extension. */
  3332  if (flags)
    return -EINVAL;
  3334  
  3335  f = fdget_raw(fd);
  3336  if (!f.file)
  3337  return -EBADF;
  3338  
  3339  ret = -EINVAL;
  3340  /* Is this a process file descriptor? */
> 3341  if (!proc_is_procfd(f.file))
  3342  goto err;
  3343  
  3344  pid = f.file->private_data;
  3345  if (!pid)
  3346  goto err;
  3347  
  3348  if (info) {
  3349  ret = __copy_siginfo_from_user(sig, , info);
  3350  if (unlikely(ret))
  3351  goto err;
  3352  /*
  3353   * Not even root can pretend to send signals from the 
kernel.
  3354   * Nor can they impersonate a kill()/tgkill(), which 
adds
  3355   * source info.
  3356   */
  3357  ret = -EPERM;
  3358  if ((kinfo.si_code >= 0 || kinfo.si_code == SI_TKILL) &&
  3359  (task_pid(current) != pid))
  3360  goto err;
  3361  } else {
  3362  prepare_kill_siginfo(sig, );
  3363  }
  3364  
  3365  ret = kill_pid_info(sig, , pid);
  3366  
  3367  err:
  3368  fdput(f);
  3369  return ret;
  3370  }
  3371  

---
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] phy: core: Add phy_pm_runtime_enabled

2018-11-19 Thread kbuild test robot
Hi Tony,

I love your patch! Yet something to improve:

[auto build test ERROR on phy/next]
[also build test ERROR on v4.20-rc3 next-20181119]
[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/Tony-Lindgren/Improve-phy-mapphone-pm/20181119-222603
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux-phy.git 
next
config: riscv-tinyconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 8.1.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
GCC_VERSION=8.1.0 make.cross ARCH=riscv 

All errors (new ones prefixed by >>):

   In file included from include/linux/usb/otg.h:13,
from include/linux/usb/of.h:12,
from drivers/usb/phy/of.c:9:
   include/linux/phy/phy.h: In function 'phy_pm_runtime_enabled':
>> include/linux/phy/phy.h:246:14: error: expected ';' before '}' token
 return false
 ^
 ;
}
~ 

vim +246 include/linux/phy/phy.h

   243  
   244  static inline bool phy_pm_runtime_enabled(struct phy *phy)
   245  {
 > 246  return false
   247  }
   248  

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


.config.gz
Description: application/gzip


sound/soc/intel/skylake/skl.c:874: undefined reference to `snd_soc_hdac_hda_get_ops'

2018-11-19 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   9ff01193a20d391e8dbce4403dd5ef87c7eaaca6
commit: 6bae5ea9498926440ffc883f3dbceb0adc65e492 ASoC: hdac_hda: add asoc 
extension for legacy HDA codec drivers
date:   3 months ago
config: i386-randconfig-x078-11191627 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 6bae5ea9498926440ffc883f3dbceb0adc65e492
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   sound/soc/intel/skylake/skl.o: In function `skl_create':
>> sound/soc/intel/skylake/skl.c:874: undefined reference to 
>> `snd_soc_hdac_hda_get_ops'

vim +874 sound/soc/intel/skylake/skl.c

   844  
   845  /*
   846   * constructor
   847   */
   848  static int skl_create(struct pci_dev *pci,
   849const struct hdac_io_ops *io_ops,
   850struct skl **rskl)
   851  {
   852  struct hdac_ext_bus_ops *ext_ops = NULL;
   853  struct skl *skl;
   854  struct hdac_bus *bus;
   855  struct hda_bus *hbus;
   856  int err;
   857  
   858  *rskl = NULL;
   859  
   860  err = pci_enable_device(pci);
   861  if (err < 0)
   862  return err;
   863  
   864  skl = devm_kzalloc(>dev, sizeof(*skl), GFP_KERNEL);
   865  if (!skl) {
   866  pci_disable_device(pci);
   867  return -ENOMEM;
   868  }
   869  
   870  hbus = skl_to_hbus(skl);
   871  bus = skl_to_bus(skl);
   872  
   873  #if IS_ENABLED(CONFIG_SND_SOC_HDAC_HDA)
 > 874  ext_ops = snd_soc_hdac_hda_get_ops();
   875  #endif
   876  snd_hdac_ext_bus_init(bus, >dev, _core_ops, io_ops, 
ext_ops);
   877  bus->use_posbuf = 1;
   878  skl->pci = pci;
   879  INIT_WORK(>probe_work, skl_probe_work);
   880  bus->bdl_pos_adj = 0;
   881  
   882  mutex_init(>prepare_mutex);
   883  hbus->pci = pci;
   884  hbus->mixer_assigned = -1;
   885  hbus->modelname = "sklbus";
   886  
   887  *rskl = skl;
   888  
   889  return 0;
   890  }
   891  

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


.config.gz
Description: application/gzip


Re: [PATCH] proc: allow killing processes via file descriptors

2018-11-19 Thread kbuild test robot
Hi Christian,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc3 next-20181116]
[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/Christian-Brauner/proc-allow-killing-processes-via-file-descriptors/20181119-170316
config: riscv-tinyconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 8.1.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
GCC_VERSION=8.1.0 make.cross ARCH=riscv 

All warnings (new ones prefixed by >>):

   ./usr/include/linux/v4l2-controls.h:1105: found __[us]{8,16,32,64} type 
without #include 
>> ./usr/include/linux/procfd.h:8: found __[us]{8,16,32,64} type without 
>> #include 

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


.config.gz
Description: application/gzip


Re: [PATCH v1] i2c: i2c-stm32f7: add PM Runtime support

2018-11-18 Thread kbuild test robot
Hi Pierre-Yves,

I love your patch! Yet something to improve:

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on v4.20-rc2 next-20181116]
[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/Pierre-Yves-MORDRET/i2c-i2c-stm32f7-add-PM-Runtime-support/20181118-230534
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git 
i2c/for-next
config: nds32-allmodconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 6.4.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
GCC_VERSION=6.4.0 make.cross ARCH=nds32 

All errors (new ones prefixed by >>):

   drivers/i2c/busses/i2c-stm32f7.c: In function 'stm32f7_i2c_probe':
>> drivers/i2c/busses/i2c-stm32f7.c:1913:7: error: 'STM32F7_AUTOSUSPEND_DELAY' 
>> undeclared (first use in this function)
  STM32F7_AUTOSUSPEND_DELAY);
  ^
   drivers/i2c/busses/i2c-stm32f7.c:1913:7: note: each undeclared identifier is 
reported only once for each function it appears in

vim +/STM32F7_AUTOSUSPEND_DELAY +1913 drivers/i2c/busses/i2c-stm32f7.c

  1782  
  1783  static int stm32f7_i2c_probe(struct platform_device *pdev)
  1784  {
  1785  struct device_node *np = pdev->dev.of_node;
  1786  struct stm32f7_i2c_dev *i2c_dev;
  1787  const struct stm32f7_i2c_setup *setup;
  1788  struct resource *res;
  1789  u32 irq_error, irq_event, clk_rate, rise_time, fall_time;
  1790  struct i2c_adapter *adap;
  1791  struct reset_control *rst;
  1792  dma_addr_t phy_addr;
  1793  int ret;
  1794  
  1795  i2c_dev = devm_kzalloc(>dev, sizeof(*i2c_dev), 
GFP_KERNEL);
  1796  if (!i2c_dev)
  1797  return -ENOMEM;
  1798  
  1799  res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  1800  i2c_dev->base = devm_ioremap_resource(>dev, res);
  1801  if (IS_ERR(i2c_dev->base))
  1802  return PTR_ERR(i2c_dev->base);
  1803  phy_addr = (dma_addr_t)res->start;
  1804  
  1805  irq_event = irq_of_parse_and_map(np, 0);
  1806  if (!irq_event) {
  1807  dev_err(>dev, "IRQ event missing or invalid\n");
  1808  return -EINVAL;
  1809  }
  1810  
  1811  irq_error = irq_of_parse_and_map(np, 1);
  1812  if (!irq_error) {
  1813  dev_err(>dev, "IRQ error missing or invalid\n");
  1814  return -EINVAL;
  1815  }
  1816  
  1817  i2c_dev->clk = devm_clk_get(>dev, NULL);
  1818  if (IS_ERR(i2c_dev->clk)) {
  1819  dev_err(>dev, "Error: Missing controller 
clock\n");
  1820  return PTR_ERR(i2c_dev->clk);
  1821  }
  1822  
  1823  ret = clk_prepare_enable(i2c_dev->clk);
  1824  if (ret) {
  1825  dev_err(>dev, "Failed to prepare_enable clock\n");
  1826  return ret;
  1827  }
  1828  
  1829  i2c_dev->speed = STM32_I2C_SPEED_STANDARD;
  1830  ret = device_property_read_u32(>dev, "clock-frequency",
  1831 _rate);
  1832  if (!ret && clk_rate >= 100)
  1833  i2c_dev->speed = STM32_I2C_SPEED_FAST_PLUS;
  1834  else if (!ret && clk_rate >= 40)
  1835  i2c_dev->speed = STM32_I2C_SPEED_FAST;
  1836  else if (!ret && clk_rate >= 10)
  1837  i2c_dev->speed = STM32_I2C_SPEED_STANDARD;
  1838  
  1839  rst = devm_reset_control_get(>dev, NULL);
  1840  if (IS_ERR(rst)) {
  1841  dev_err(>dev, "Error: Missing controller 
reset\n");
  1842  ret = PTR_ERR(rst);
  1843  goto clk_free;
  1844  }
  1845  reset_control_assert(rst);
  1846  udelay(2);
  1847  reset_control_deassert(rst);
  1848  
  1849  i2c_dev->dev = >dev;
  1850  
  1851  ret = devm_request_threaded_irq(>dev, irq_event,
  1852  stm32f7_i2c_isr_event,
  1853  stm32f7_i2c_isr_event_thread,
  1854  IRQF_ONESHOT,
  1855  pdev->name, i2c_dev);
  1856  if (ret) {
  1857  dev_err(>dev, "Failed to request irq event %i\n",
  1858  irq_event);
  1859  goto clk_free;
  1860  }
  1861  
  1862  ret = devm_request_irq(>dev, irq_error, 
stm32f7_i2c_isr_error, 0,
  1863 pdev->name, i2c_dev);
  1864  if (ret) {
  1865  dev_err(>dev, 

Re: [PATCH 2/3] soc: imx: gpcv2: Make regmap access table variant specific.

2018-11-18 Thread kbuild test robot
Hi Andrey,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on shawnguo/for-next]
[also build test ERROR on v4.20-rc2 next-20181116]
[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/Andrey-Smirnov/soc-imx-gpcv2-Remove-static-qualifier-from-domain_data/20181118-213909
base:   https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git 
for-next
config: arm-multi_v7_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
GCC_VERSION=7.2.0 make.cross ARCH=arm 

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

>> drivers/soc/imx/gpcv2.c:217:17: error: 'yes_ranges' undeclared here (not in 
>> a function); did you mean 'imx7_yes_ranges'?
  .yes_ranges = yes_ranges,
^~
imx7_yes_ranges
   In file included from include/linux/kernel.h:15:0,
from include/linux/list.h:9,
from include/linux/kobject.h:19,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/of_device.h:5,
from drivers/soc/imx/gpcv2.c:11:
   include/linux/build_bug.h:29:45: error: bit-field '' width not an 
integer constant
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))
^
>> include/linux/compiler.h:379:28: note: in expansion of macro 
>> 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
   ^
   include/linux/kernel.h:72:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + 
__must_be_array(arr))
  ^~~
>> drivers/soc/imx/gpcv2.c:218:19: note: in expansion of macro 'ARRAY_SIZE'
  .n_yes_ranges = ARRAY_SIZE(yes_ranges),
  ^~
--
   drivers/soc//imx/gpcv2.c:217:17: error: 'yes_ranges' undeclared here (not in 
a function); did you mean 'imx7_yes_ranges'?
  .yes_ranges = yes_ranges,
^~
imx7_yes_ranges
   In file included from include/linux/kernel.h:15:0,
from include/linux/list.h:9,
from include/linux/kobject.h:19,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/of_device.h:5,
from drivers/soc//imx/gpcv2.c:11:
   include/linux/build_bug.h:29:45: error: bit-field '' width not an 
integer constant
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))
^
>> include/linux/compiler.h:379:28: note: in expansion of macro 
>> 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
   ^
   include/linux/kernel.h:72:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + 
__must_be_array(arr))
  ^~~
   drivers/soc//imx/gpcv2.c:218:19: note: in expansion of macro 'ARRAY_SIZE'
  .n_yes_ranges = ARRAY_SIZE(yes_ranges),
  ^~

vim +217 drivers/soc/imx/gpcv2.c

   212  
   213  static const struct imx_pgc_domain_data imx7_pgc_domain_data = {
   214  .domains = imx7_pgc_domains,
   215  .domains_num = ARRAY_SIZE(imx7_pgc_domains),
   216  .access_table = {
 > 217  .yes_ranges = yes_ranges,
 > 218  .n_yes_ranges   = ARRAY_SIZE(yes_ranges),
   219  },
   220  };
   221  

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


.config.gz
Description: application/gzip


Re: [PATCH v1] i2c: i2c-stm32f7: add PM Runtime support

2018-11-18 Thread kbuild test robot
Hi Pierre-Yves,

I love your patch! Yet something to improve:

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on v4.20-rc2 next-20181116]
[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/Pierre-Yves-MORDRET/i2c-i2c-stm32f7-add-PM-Runtime-support/20181118-230534
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git 
i2c/for-next
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 8.1.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
GCC_VERSION=8.1.0 make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   drivers/i2c/busses/i2c-stm32f7.c: In function 'stm32f7_i2c_probe':
>> drivers/i2c/busses/i2c-stm32f7.c:1913:7: error: 'STM32F7_AUTOSUSPEND_DELAY' 
>> undeclared (first use in this function); did you mean 'RPM_REQ_AUTOSUSPEND'?
  STM32F7_AUTOSUSPEND_DELAY);
  ^
  RPM_REQ_AUTOSUSPEND
   drivers/i2c/busses/i2c-stm32f7.c:1913:7: note: each undeclared identifier is 
reported only once for each function it appears in

vim +1913 drivers/i2c/busses/i2c-stm32f7.c

  1782  
  1783  static int stm32f7_i2c_probe(struct platform_device *pdev)
  1784  {
  1785  struct device_node *np = pdev->dev.of_node;
  1786  struct stm32f7_i2c_dev *i2c_dev;
  1787  const struct stm32f7_i2c_setup *setup;
  1788  struct resource *res;
  1789  u32 irq_error, irq_event, clk_rate, rise_time, fall_time;
  1790  struct i2c_adapter *adap;
  1791  struct reset_control *rst;
  1792  dma_addr_t phy_addr;
  1793  int ret;
  1794  
  1795  i2c_dev = devm_kzalloc(>dev, sizeof(*i2c_dev), 
GFP_KERNEL);
  1796  if (!i2c_dev)
  1797  return -ENOMEM;
  1798  
  1799  res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  1800  i2c_dev->base = devm_ioremap_resource(>dev, res);
  1801  if (IS_ERR(i2c_dev->base))
  1802  return PTR_ERR(i2c_dev->base);
  1803  phy_addr = (dma_addr_t)res->start;
  1804  
  1805  irq_event = irq_of_parse_and_map(np, 0);
  1806  if (!irq_event) {
  1807  dev_err(>dev, "IRQ event missing or invalid\n");
  1808  return -EINVAL;
  1809  }
  1810  
  1811  irq_error = irq_of_parse_and_map(np, 1);
  1812  if (!irq_error) {
  1813  dev_err(>dev, "IRQ error missing or invalid\n");
  1814  return -EINVAL;
  1815  }
  1816  
  1817  i2c_dev->clk = devm_clk_get(>dev, NULL);
  1818  if (IS_ERR(i2c_dev->clk)) {
  1819  dev_err(>dev, "Error: Missing controller 
clock\n");
  1820  return PTR_ERR(i2c_dev->clk);
  1821  }
  1822  
  1823  ret = clk_prepare_enable(i2c_dev->clk);
  1824  if (ret) {
  1825  dev_err(>dev, "Failed to prepare_enable clock\n");
  1826  return ret;
  1827  }
  1828  
  1829  i2c_dev->speed = STM32_I2C_SPEED_STANDARD;
  1830  ret = device_property_read_u32(>dev, "clock-frequency",
  1831 _rate);
  1832  if (!ret && clk_rate >= 100)
  1833  i2c_dev->speed = STM32_I2C_SPEED_FAST_PLUS;
  1834  else if (!ret && clk_rate >= 40)
  1835  i2c_dev->speed = STM32_I2C_SPEED_FAST;
  1836  else if (!ret && clk_rate >= 10)
  1837  i2c_dev->speed = STM32_I2C_SPEED_STANDARD;
  1838  
  1839  rst = devm_reset_control_get(>dev, NULL);
  1840  if (IS_ERR(rst)) {
  1841  dev_err(>dev, "Error: Missing controller 
reset\n");
  1842  ret = PTR_ERR(rst);
  1843  goto clk_free;
  1844  }
  1845  reset_control_assert(rst);
  1846  udelay(2);
  1847  reset_control_deassert(rst);
  1848  
  1849  i2c_dev->dev = >dev;
  1850  
  1851  ret = devm_request_threaded_irq(>dev, irq_event,
  1852  stm32f7_i2c_isr_event,
  1853  stm32f7_i2c_isr_event_thread,
  1854  IRQF_ONESHOT,
  1855  pdev->name, i2c_dev);
  1856  if (ret) {
  1857  dev_err(>dev, "Failed to request irq event %i\n",
  1858  irq_event);
  1859  goto clk_free;
  1860  }
  1861  
  1862  ret = devm_request_irq(>dev, irq_error, 
stm32f7_i2c_isr_error, 0,
  1863 pdev->name, i2c_dev);
  1864  if (ret) {
  

Re: [PATCH v1 2/2] i2c: i2c-stm32f7: SYSCFG Fast Mode Plus support for I2C STM32F7

2018-11-17 Thread kbuild test robot
Hi Pierre-Yves,

I love your patch! Yet something to improve:

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on v4.20-rc2 next-20181116]
[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/Pierre-Yves-MORDRET/SYSCFG-Fast-Mode-Plus-support-for-I2C-STM32F7/20181118-135056
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git 
i2c/for-next
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 8.1.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
GCC_VERSION=8.1.0 make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   drivers/i2c//busses/i2c-stm32f7.c: In function 
'stm32f7_i2c_setup_fm_plus_bits':
>> drivers/i2c//busses/i2c-stm32f7.c:1790:9: error: implicit declaration of 
>> function 'regmap_update_bits'; did you mean 'file_update_time'? 
>> [-Werror=implicit-function-declaration]
 return regmap_update_bits(i2c_dev->regmap, reg, mask, mask);
^~
file_update_time
   cc1: some warnings being treated as errors

vim +1790 drivers/i2c//busses/i2c-stm32f7.c

  1768  
  1769  static int stm32f7_i2c_setup_fm_plus_bits(struct platform_device *pdev,
  1770struct stm32f7_i2c_dev 
*i2c_dev)
  1771  {
  1772  struct device_node *np = pdev->dev.of_node;
  1773  int ret;
  1774  u32 reg, mask;
  1775  
  1776  i2c_dev->regmap = syscon_regmap_lookup_by_phandle(np, 
"st,syscfg-fmp");
  1777  if (IS_ERR(i2c_dev->regmap)) {
  1778  /* Optional */
  1779  return 0;
  1780  }
  1781  
  1782  ret = of_property_read_u32_index(np, "st,syscfg-fmp", 1, );
  1783  if (ret)
  1784  return ret;
  1785  
  1786  ret = of_property_read_u32_index(np, "st,syscfg-fmp", 2, );
  1787  if (ret)
  1788  return ret;
  1789  
> 1790  return regmap_update_bits(i2c_dev->regmap, reg, mask, mask);
  1791  }
  1792  

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


.config.gz
Description: application/gzip


Re: [PATCH v1 2/2] i2c: i2c-stm32f7: SYSCFG Fast Mode Plus support for I2C STM32F7

2018-11-17 Thread kbuild test robot
Hi Pierre-Yves,

I love your patch! Yet something to improve:

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on v4.20-rc2 next-20181116]
[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/Pierre-Yves-MORDRET/SYSCFG-Fast-Mode-Plus-support-for-I2C-STM32F7/20181118-135056
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git 
i2c/for-next
config: s390-allmodconfig (attached as .config)
compiler: s390x-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
GCC_VERSION=7.2.0 make.cross ARCH=s390 

All errors (new ones prefixed by >>):

   drivers/i2c/busses/i2c-stm32f7.c: In function 
'stm32f7_i2c_setup_fm_plus_bits':
>> drivers/i2c/busses/i2c-stm32f7.c:1790:9: error: implicit declaration of 
>> function 'regmap_update_bits'; did you mean 'set_pgste_bits'? 
>> [-Werror=implicit-function-declaration]
 return regmap_update_bits(i2c_dev->regmap, reg, mask, mask);
^~
set_pgste_bits
   cc1: some warnings being treated as errors

vim +1790 drivers/i2c/busses/i2c-stm32f7.c

  1768  
  1769  static int stm32f7_i2c_setup_fm_plus_bits(struct platform_device *pdev,
  1770struct stm32f7_i2c_dev 
*i2c_dev)
  1771  {
  1772  struct device_node *np = pdev->dev.of_node;
  1773  int ret;
  1774  u32 reg, mask;
  1775  
  1776  i2c_dev->regmap = syscon_regmap_lookup_by_phandle(np, 
"st,syscfg-fmp");
  1777  if (IS_ERR(i2c_dev->regmap)) {
  1778  /* Optional */
  1779  return 0;
  1780  }
  1781  
  1782  ret = of_property_read_u32_index(np, "st,syscfg-fmp", 1, );
  1783  if (ret)
  1784  return ret;
  1785  
  1786  ret = of_property_read_u32_index(np, "st,syscfg-fmp", 2, );
  1787  if (ret)
  1788  return ret;
  1789  
> 1790  return regmap_update_bits(i2c_dev->regmap, reg, mask, mask);
  1791  }
  1792  

---
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] build_bug.h: remove all dummy BUILD_BUG_ON stubs for sparse

2018-11-17 Thread kbuild test robot
Hi Masahiro,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc2 next-20181116]
[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/Masahiro-Yamada/build_bug-h-remove-negative-array-fallback-for-BUILD_BUG_ON/20181116-190414
config: x86_64-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=x86_64 

All warnings (new ones prefixed by >>):

   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:260:39: warning: incorrect type in 
assignment (different base types)
   drivers/crypto/chelsio/chcr_algo.c:260:39:expected unsigned int 
[unsigned] [usertype] 
   drivers/crypto/chelsio/chcr_algo.c:260:39:got restricted __be32 
[usertype] 
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 
degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted 
__be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 
degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted 
__be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 
degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted 
__be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 
degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted 
__be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 
degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted 
__be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 
degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted 
__be32
   drivers/crypto/chelsio/chcr_algo.c:2747:65: warning: incorrect type in 
assignment (different base types)
   drivers/crypto/chelsio/chcr_algo.c:2747:65:expected unsigned short 
[unsigned] [short] 
   drivers/crypto/chelsio/chcr_algo.c:2747:65:got restricted __be16 
[usertype] 
   drivers/crypto/chelsio/chcr_algo.c:3014:46: warning: incorrect type in 
assignment (different base types)
   drivers/crypto/chelsio/chcr_algo.c:3014:46:expected unsigned int 
[unsigned] 
   drivers/crypto/chelsio/chcr_algo.c:3014:46:got restricted __be32 
[usertype] 
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
   drivers/crypto/mediatek/mtk-sha.c:251:17: warning: incorrect type in 
assignment (different base types)
   drivers/crypto/mediatek/mtk-sha.c:251:17:expected unsigned long long 
[unsigned] [long] [long long] 
   drivers/crypto/mediatek/mtk-sha.c:251:17:got restricted __be64 
[usertype] 
   drivers/crypto/mediatek/mtk-sha.c:252:17: warning: incorrect type in 
assignment (different base types)
   drivers/crypto/mediatek/mtk-sha.c:252:17:expected unsigned long long 
[unsigned] [long] [long long] 
   drivers/crypto/mediatek/mtk-sha.c:252:17:got restricted __be64 
[usertype] 
   

Re: [PATCH v4 3/4] ARM: dts: stm32: Add hwspinlock node for stm32mp157 SoC

2018-11-16 Thread kbuild test robot
Hi Benjamin,

I love your patch! Yet something to improve:

[auto build test ERROR on stm32/stm32-next]
[cannot apply to v4.20-rc2 next-20181116]
[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/Benjamin-Gaignard/Add-support-of-STM32-hwspinlock/20181115-204402
base:   https://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32.git 
stm32-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
GCC_VERSION=7.2.0 make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   arch/arm/boot/dts/stm32mp157c-ed1.dtb: ERROR (duplicate_node_names): 
/soc/hwspinlock@4c00: Duplicate node name
>> ERROR: Input tree has errors, aborting (use -f to force output)
--
   arch/arm/boot/dts/stm32mp157c-ev1.dtb: ERROR (duplicate_node_names): 
/soc/hwspinlock@4c00: Duplicate node name
>> ERROR: Input tree has errors, aborting (use -f to force output)

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


.config.gz
Description: application/gzip


Re: [PATCH 6/6] autofs - add strictexpire mount option

2018-11-15 Thread kbuild test robot
Hi Ian,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc2]
[cannot apply to next-20181115]
[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/Ian-Kent/autofs-improve-ioctl-sbi-checks/20181114-021150
config: x86_64-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=x86_64 

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

>> fs/autofs/init.c:19:25: warning: symbol 'autofs_fs_type' was not declared. 
>> Should it be static?
--
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
>> fs/autofs/inode.c:372:35: error: cannot dereference this type
   fs/autofs/inode.c:373:35: error: cannot dereference this type
>> fs/autofs/inode.c:372:35: warning: unknown expression (8 46)
   fs/autofs/inode.c:373:35: warning: unknown expression (8 46)
   fs/autofs/inode.c: In function 'autofs_fill_super':
   fs/autofs/inode.c:372:28: error: invalid type argument of '->' (have 'struct 
autofs_fs_params')
 root_inode->i_uid = params->uid;
   ^~
   fs/autofs/inode.c:373:28: error: invalid type argument of '->' (have 'struct 
autofs_fs_params')
 root_inode->i_gid = params->gid;
   ^~

vim +372 fs/autofs/inode.c

e35160168 Ian Kent 2018-11-13  324  
e35160168 Ian Kent 2018-11-13  325  int autofs_fill_super(struct super_block 
*s, void *data, int silent)
e35160168 Ian Kent 2018-11-13  326  {
e35160168 Ian Kent 2018-11-13  327  struct inode *root_inode;
e35160168 Ian Kent 2018-11-13  328  struct dentry *root;
f4507adde Ian Kent 2018-11-13  329  struct autofs_fs_params params;
e35160168 Ian Kent 2018-11-13  330  struct autofs_sb_info *sbi;
e35160168 Ian Kent 2018-11-13  331  struct autofs_info *ino;
e35160168 Ian Kent 2018-11-13  332  int ret = -EINVAL;
e35160168 Ian Kent 2018-11-13  333  
e35160168 Ian Kent 2018-11-13  334  sbi = autofs_alloc_sbi(s);
e35160168 Ian Kent 2018-11-13  335  if (!sbi)
e35160168 Ian Kent 2018-11-13  336  return -ENOMEM;
e35160168 Ian Kent 2018-11-13  337  
e35160168 Ian Kent 2018-11-13  338  pr_debug("starting up, sbi = %p\n", 
sbi);
e35160168 Ian Kent 2018-11-13  339  
e35160168 Ian Kent 2018-11-13  340  s->s_fs_info = sbi;
ebc921ca9 Ian Kent 2018-06-07  341  s->s_blocksize = 1024;
ebc921ca9 Ian Kent 2018-06-07  342  s->s_blocksize_bits = 10;
ebc921ca9 Ian Kent 2018-06-07  343  s->s_magic = AUTOFS_SUPER_MAGIC;
ebc921ca9 Ian Kent 2018-06-07  344  s->s_op = _sops;
ebc921ca9 Ian Kent 2018-06-07  345  s->s_d_op = _dentry_operations;
ebc921ca9 Ian Kent 2018-06-07  346  s->s_time_gran = 1;
ebc921ca9 Ian Kent 2018-06-07  347  
ebc921ca9 Ian Kent 2018-06-07  348  /*
ebc921ca9 Ian Kent 2018-06-07  349   * Get the root inode and dentry, but 
defer checking for errors.
ebc921ca9 Ian Kent 2018-06-07  350   */
ebc921ca9 Ian Kent 2018-06-07  351  ino = autofs_new_ino(sbi);
ebc921ca9 Ian Kent 2018-06-07  352  if (!ino) {
ebc921ca9 Ian Kent 2018-06-07  353  ret = -ENOMEM;
ebc921ca9 Ian Kent 2018-06-07  354  goto fail_free;
ebc921ca9 Ian Kent 2018-06-07  355  }
ebc921ca9 Ian Kent 2018-06-07  356  root_inode = autofs_get_inode(s, 
S_IFDIR | 0755);
eef302f31 Ian Kent 2018-11-13  357  if (!root_inode) {
eef302f31 Ian Kent 2018-11-13  358  ret = -ENOMEM;
eef302f31 Ian Kent 2018-11-13  359  goto fail_ino;
eef302f31 Ian Kent 2018-11-13  360  }
ebc921ca9 Ian Kent 2018-06-07  361  root = d_make_root(root_inode);
ebc921ca9 Ian Kent 2018-06-07  362  if (!root)
eef302f31 Ian Kent 2018-11-13  363  goto fail_iput;
ebc921ca9 Ian Kent 2018-06-07  364  
ebc921ca9 Ian Kent 2018-06-07  365  root->d_fsdata = ino;
ebc921ca9 Ian Kent 2018-06-07  366  
f4507adde Ian Kent 2018-11-13  367  memset(, 0, sizeof(struct 
autofs_fs_params));
f4507adde Ian Kent 2018-11-13  368  if (autofs_parse_options(data, 
)) {
ebc921ca9 Ian Kent 2018-06-07  369  pr_err("called with bogus 
options\n");
ebc921ca9 Ian Kent 2018-06-07  370  goto fail_dput;
ebc921ca9 Ian Kent 2018-06-07  371  }
f4507adde Ian Kent 2018-11-13 @372  root_inode->i_uid = params->uid;
f4507adde Ian Kent 2018-11-13  373  root_inode->i_gid = params->gid;
ebc921ca9 Ian Kent 2018-06-07  374  
f4507adde Ian Kent 2018-11-13  375  ret = autofs_apply_sbi_options(sbi, 
);
f4507adde Ian Kent 2018-11-13  376  if (ret)
ebc921ca9 Ian Kent 2018-06-07  377  goto fail_dput;
ebc921ca9 Ian Kent 2018-06-07  378  
ebc921ca9 Ian Kent 2018-06-07  379  if (autofs_type_trigger(sbi->type))
ebc921ca9 Ian Kent 2018-06-07  380  
__managed_dentry_set_managed(root);

[PATCH] spi: npcm: fix platform_no_drv_owner.cocci warnings

2018-11-14 Thread kbuild test robot
From: kbuild test robot 

drivers/spi/spi-npcm-pspi.c:470: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: 2a22f1b30cee ("spi: npcm: add NPCM PSPI controller driver")
CC: Tomer Maimon 
Signed-off-by: kbuild test robot 
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   f4ad10924cb922842beafe644dd1b2aa8fa55189
commit: 2a22f1b30cee8d1e104a6c5062a609bedbfd5c39 [2986/3290] spi: npcm: add 
NPCM PSPI controller driver

 spi-npcm-pspi.c |1 -
 1 file changed, 1 deletion(-)

--- a/drivers/spi/spi-npcm-pspi.c
+++ b/drivers/spi/spi-npcm-pspi.c
@@ -467,7 +467,6 @@ static struct platform_driver npcm_pspi_
.driver = {
.name   = DRIVER_NAME,
.of_match_table = npcm_pspi_match,
-   .owner  = THIS_MODULE,
},
.probe  = npcm_pspi_probe,
.remove = npcm_pspi_remove,


Re: [PATCH anybus v2 3/5] bus: support HMS Anybus-S bus.

2018-11-14 Thread kbuild test robot
Hi Sven,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on v4.20-rc2 next-20181114]
[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/thesven73-gmail-com/Support-HMS-Profinet-Card-over-Anybus/20181101-225600
config: um-allyesconfig (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=um 

All errors (new ones prefixed by >>):

   arch/um/drivers/vde.o: In function `vde_open_real':
   (.text+0x951): warning: Using 'getgrnam' in statically linked applications 
requires at runtime the shared libraries from the glibc version used for linking
   (.text+0x79c): warning: Using 'getpwuid' in statically linked applications 
requires at runtime the shared libraries from the glibc version used for linking
   arch/um/drivers/vector_user.o: In function `user_init_socket_fds':
   vector_user.c:(.text+0x334): warning: Using 'getaddrinfo' in statically 
linked applications requires at runtime the shared libraries from the glibc 
version used for linking
   arch/um/drivers/pcap.o: In function `pcap_nametoaddr':
   (.text+0xdee5): warning: Using 'gethostbyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   arch/um/drivers/pcap.o: In function `pcap_nametonetaddr':
   (.text+0xdf85): warning: Using 'getnetbyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   arch/um/drivers/pcap.o: In function `pcap_nametoproto':
   (.text+0xe1a5): warning: Using 'getprotobyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   arch/um/drivers/pcap.o: In function `pcap_nametoport':
   (.text+0xdfd7): warning: Using 'getservbyname' in statically linked 
applications requires at runtime the shared libraries from the glibc version 
used for linking
   drivers/bus/anybuss-host.o: In function `create_parallel_regmap':
>> anybuss-host.c:(.text+0x1afd): undefined reference to `devm_ioremap_resource'
   collect2: error: ld returned 1 exit status

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


.config.gz
Description: application/gzip


[tip:master 22/22] arch/x86//kernel/cpu/mcheck/therm_throt.c:394:39: error: conflicting types for 'smp_thermal_interrupt'

2018-11-14 Thread kbuild test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git master
head:   449637df6faa8cd9a7f9cdf25589445f0dab2371
commit: 449637df6faa8cd9a7f9cdf25589445f0dab2371 [22/22] Merge branch 
'x86/cleanups'
config: x86_64-lkp (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 449637df6faa8cd9a7f9cdf25589445f0dab2371
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> arch/x86//kernel/cpu/mcheck/therm_throt.c:394:39: error: conflicting types 
>> for 'smp_thermal_interrupt'
asmlinkage __visible void __irq_entry smp_thermal_interrupt(void)
  ^
   In file included from arch/x86//kernel/cpu/mcheck/therm_throt.c:28:0:
   arch/x86/include/asm/traps.h:107:17: note: previous declaration of 
'smp_thermal_interrupt' was here
asmlinkage void smp_thermal_interrupt(struct pt_regs *regs);
^

vim +/smp_thermal_interrupt +394 arch/x86//kernel/cpu/mcheck/therm_throt.c

a65c88dd Hidetoshi Seto  2009-06-15  393  
d813dfb2 Borislav Petkov 2018-11-09 @394  asmlinkage __visible void __irq_entry 
smp_thermal_interrupt(void)
cf910e83 Seiji Aguchi2013-06-20  395  {
cf910e83 Seiji Aguchi2013-06-20  396entering_irq();
cf910e83 Seiji Aguchi2013-06-20  397
trace_thermal_apic_entry(THERMAL_APIC_VECTOR);
0f42ae28 Thomas Gleixner 2017-08-28  398inc_irq_stat(irq_thermal_count);
0f42ae28 Thomas Gleixner 2017-08-28  399smp_thermal_vector();
cf910e83 Seiji Aguchi2013-06-20  400
trace_thermal_apic_exit(THERMAL_APIC_VECTOR);
cf910e83 Seiji Aguchi2013-06-20  401exiting_ack_irq();
cf910e83 Seiji Aguchi2013-06-20  402  }
cf910e83 Seiji Aguchi2013-06-20  403  

:: The code at line 394 was first introduced by commit
:: d813dfb28641306f66cf1e2c3586f39ab4f84b27 x86/mce: Fix 
-Wmissing-prototypes warnings

:: TO: Borislav Petkov 
:: CC: Borislav Petkov 

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


.config.gz
Description: application/gzip


Re: [PATCH 4/6] autofs - use struct for mount params

2018-11-13 Thread kbuild test robot
Hi Ian,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc2]
[cannot apply to next-20181113]
[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/Ian-Kent/autofs-improve-ioctl-sbi-checks/20181114-021150
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 >>):

   fs/autofs/inode.c: In function 'autofs_fill_super':
>> fs/autofs/inode.c:361:28: error: invalid type argument of '->' (have 'struct 
>> autofs_fs_params')
 root_inode->i_uid = params->uid;
   ^~
   fs/autofs/inode.c:362:28: error: invalid type argument of '->' (have 'struct 
autofs_fs_params')
 root_inode->i_gid = params->gid;
   ^~

vim +361 fs/autofs/inode.c

   313  
   314  int autofs_fill_super(struct super_block *s, void *data, int silent)
   315  {
   316  struct inode *root_inode;
   317  struct dentry *root;
   318  struct autofs_fs_params params;
   319  struct autofs_sb_info *sbi;
   320  struct autofs_info *ino;
   321  int ret = -EINVAL;
   322  
   323  sbi = autofs_alloc_sbi(s);
   324  if (!sbi)
   325  return -ENOMEM;
   326  
   327  pr_debug("starting up, sbi = %p\n", sbi);
   328  
   329  s->s_fs_info = sbi;
   330  s->s_blocksize = 1024;
   331  s->s_blocksize_bits = 10;
   332  s->s_magic = AUTOFS_SUPER_MAGIC;
   333  s->s_op = _sops;
   334  s->s_d_op = _dentry_operations;
   335  s->s_time_gran = 1;
   336  
   337  /*
   338   * Get the root inode and dentry, but defer checking for errors.
   339   */
   340  ino = autofs_new_ino(sbi);
   341  if (!ino) {
   342  ret = -ENOMEM;
   343  goto fail_free;
   344  }
   345  root_inode = autofs_get_inode(s, S_IFDIR | 0755);
   346  if (!root_inode) {
   347  ret = -ENOMEM;
   348  goto fail_ino;
   349  }
   350  root = d_make_root(root_inode);
   351  if (!root)
   352  goto fail_iput;
   353  
   354  root->d_fsdata = ino;
   355  
   356  memset(, 0, sizeof(struct autofs_fs_params));
   357  if (autofs_parse_options(data, )) {
   358  pr_err("called with bogus options\n");
   359  goto fail_dput;
   360  }
 > 361  root_inode->i_uid = params->uid;
   362  root_inode->i_gid = params->gid;
   363  
   364  ret = autofs_apply_sbi_options(sbi, );
   365  if (ret)
   366  goto fail_dput;
   367  
   368  if (autofs_type_trigger(sbi->type))
   369  __managed_dentry_set_managed(root);
   370  
   371  root_inode->i_fop = _root_operations;
   372  root_inode->i_op = _dir_inode_operations;
   373  
   374  /*
   375   * Success! Install the root dentry now to indicate completion.
   376   */
   377  s->s_root = root;
   378  return 0;
   379  
   380  /*
   381   * Failure ... clean up.
   382   */
   383  fail_dput:
   384  dput(root);
   385  goto fail_free;
   386  fail_iput:
   387  iput(root_inode);
   388  fail_ino:
   389  autofs_free_ino(ino);
   390  fail_free:
   391  kfree(sbi);
   392  s->s_fs_info = NULL;
   393  return ret;
   394  }
   395  

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


.config.gz
Description: application/gzip


make[2]: *** No rule to make target 'arch/sh/boot/dts/.dtb.S', needed by 'arch/sh/boot/dts/.dtb.o'.

2018-11-12 Thread kbuild test robot
Hi Rob,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   e255aee5b66ce4af025e6f77122114c01303b861
commit: 37c8a5fafa3bb7dcdd51774be353be6cb2912b86 kbuild: consolidate Devicetree 
dtb build rules
date:   6 weeks ago
config: sh-j2_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
git checkout 37c8a5fafa3bb7dcdd51774be353be6cb2912b86
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=sh 

All errors (new ones prefixed by >>):

>> make[2]: *** No rule to make target 'arch/sh/boot/dts/.dtb.S', needed by 
>> 'arch/sh/boot/dts/.dtb.o'.
   make[2]: 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] freezer: fix freeze timeout on exec

2018-11-11 Thread kbuild test robot
Hi Chanho,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.20-rc1 next-20181109]
[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/Chanho-Min/freezer-fix-freeze-timeout-on-exec/2018-171200
config: i386-randconfig-x002-201845 (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 >>):

   kernel/signal.c: In function 'zap_other_threads':
>> kernel/signal.c:1283:3: error: implicit declaration of function 
>> 'cancel_freezing_thaw_task' [-Werror=implicit-function-declaration]
  cancel_freezing_thaw_task(t);
  ^
   cc1: some warnings being treated as errors

vim +/cancel_freezing_thaw_task +1283 kernel/signal.c

  1260  
  1261  /*
  1262   * Nuke all other threads in the group.
  1263   */
  1264  int zap_other_threads(struct task_struct *p)
  1265  {
  1266  struct task_struct *t = p;
  1267  int count = 0;
  1268  
  1269  p->signal->group_stop_count = 0;
  1270  
  1271  while_each_thread(p, t) {
  1272  task_clear_jobctl_pending(t, JOBCTL_PENDING_MASK);
  1273  count++;
  1274  
  1275  /* Don't bother with already dead threads */
  1276  if (t->exit_state)
  1277  continue;
  1278  
  1279  /*
  1280   * we can check sig->group_exit_task to detect 
de_thread,
  1281   * but perhaps it doesn't hurt if the caller is 
do_group_exit
  1282   */
> 1283  cancel_freezing_thaw_task(t);
  1284  sigaddset(>pending.signal, SIGKILL);
  1285  signal_wake_up(t, 1);
  1286  }
  1287  
  1288  return count;
  1289  }
  1290  

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


.config.gz
Description: application/gzip


Re: [PATCH] freezer: fix freeze timeout on exec

2018-11-11 Thread kbuild test robot
Hi Chanho,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc1 next-20181109]
[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/Chanho-Min/freezer-fix-freeze-timeout-on-exec/2018-171200
config: i386-randconfig-x070-201845 (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 warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/atomic.h:5:0,
from include/linux/atomic.h:7,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets.c:9:
   include/linux/freezer.h: In function 'try_to_freeze_unsafe':
   include/linux/freezer.h:64:30: error: dereferencing pointer to incomplete 
type 'struct signal_struct'
 if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
 ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> include/linux/freezer.h:64:2: note: in expansion of macro 'if'
 if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
 ^~
   include/linux/compiler.h:48:24: note: in expansion of macro 
'__branch_check__'
#  define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
   ^~~~
   include/linux/freezer.h:64:6: note: in expansion of macro 'unlikely'
 if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
 ^~~~
   include/linux/freezer.h:64:40: error: 'SIGNAL_GROUP_EXIT' undeclared (first 
use in this function)
 if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
   ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> include/linux/freezer.h:64:2: note: in expansion of macro 'if'
 if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
 ^~
   include/linux/compiler.h:48:24: note: in expansion of macro 
'__branch_check__'
#  define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
   ^~~~
   include/linux/freezer.h:64:6: note: in expansion of macro 'unlikely'
 if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
 ^~~~
   include/linux/freezer.h:64:40: note: each undeclared identifier is reported 
only once for each function it appears in
 if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
   ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> include/linux/freezer.h:64:2: note: in expansion of macro 'if'
 if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
 ^~
   include/linux/compiler.h:48:24: note: in expansion of macro 
'__branch_check__'
#  define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
   ^~~~
   include/linux/freezer.h:64:6: note: in expansion of macro 'unlikely'
 if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
 ^~~~
   make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +/if +64 include/linux/freezer.h

50  
51  /*
52   * DO NOT ADD ANY NEW CALLERS OF THIS FUNCTION
53   * If try_to_freeze causes a lockdep warning it means the caller may 
deadlock
54   */
55  static inline bool try_to_freeze_unsafe(void)
56  {
57  might_sleep();
58  if (likely(!freezing(current)))
59  return false;
60  /*
61   * we are going to call do_exit() really soon,
62   * we have a pending SIGKILL
63   */
  > 64  if (unlikely(current->signal->flags & SIGNAL_GROUP_EXIT))
65  return false;
66  return __refrigerator(false);
67  }
68  

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


.config.gz
Description: application/gzip


sound/pci/hda/patch_ca0132.c:7650:20: error: implicit declaration of function 'pci_iomap'; did you mean 'pcim_iomap'?

2018-11-10 Thread kbuild test robot
Hi Rakesh,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   e255aee5b66ce4af025e6f77122114c01303b861
commit: 6bae5ea9498926440ffc883f3dbceb0adc65e492 ASoC: hdac_hda: add asoc 
extension for legacy HDA codec drivers
date:   2 months ago
config: sh-allyesconfig (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
git checkout 6bae5ea9498926440ffc883f3dbceb0adc65e492
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=sh 

All errors (new ones prefixed by >>):

   sound/pci/hda/patch_ca0132.c: In function 'patch_ca0132':
>> sound/pci/hda/patch_ca0132.c:7650:20: error: implicit declaration of 
>> function 'pci_iomap'; did you mean 'pcim_iomap'? 
>> [-Werror=implicit-function-declaration]
  spec->mem_base = pci_iomap(codec->bus->pci, 2, 0xC20);
   ^
   pcim_iomap
   sound/pci/hda/patch_ca0132.c:7650:18: warning: assignment makes pointer from 
integer without a cast [-Wint-conversion]
  spec->mem_base = pci_iomap(codec->bus->pci, 2, 0xC20);
 ^
   cc1: some warnings being treated as errors

vim +7650 sound/pci/hda/patch_ca0132.c

d5c016b56 Gabriele Martino 2015-05-18  7581  
95c6e9cb7 Ian Minett   2011-06-15  7582  static int patch_ca0132(struct 
hda_codec *codec)
95c6e9cb7 Ian Minett   2011-06-15  7583  {
95c6e9cb7 Ian Minett   2011-06-15  7584 struct ca0132_spec *spec;
a73d511c4 Ian Minett   2012-12-20  7585 int err;
d5c016b56 Gabriele Martino 2015-05-18  7586 const struct snd_pci_quirk 
*quirk;
95c6e9cb7 Ian Minett   2011-06-15  7587  
4e76a8833 Takashi Iwai 2014-02-25  7588 codec_dbg(codec, 
"patch_ca0132\n");
95c6e9cb7 Ian Minett   2011-06-15  7589  
95c6e9cb7 Ian Minett   2011-06-15  7590 spec = kzalloc(sizeof(*spec), 
GFP_KERNEL);
95c6e9cb7 Ian Minett   2011-06-15  7591 if (!spec)
95c6e9cb7 Ian Minett   2011-06-15  7592 return -ENOMEM;
95c6e9cb7 Ian Minett   2011-06-15  7593 codec->spec = spec;
993884f6a Chih-Chung Chang 2013-03-25  7594 spec->codec = codec;
95c6e9cb7 Ian Minett   2011-06-15  7595  
225068ab2 Takashi Iwai 2015-05-29  7596 codec->patch_ops = 
ca0132_patch_ops;
225068ab2 Takashi Iwai 2015-05-29  7597 codec->pcm_format_first = 1;
225068ab2 Takashi Iwai 2015-05-29  7598 codec->no_sticky_stream = 1;
225068ab2 Takashi Iwai 2015-05-29  7599  
d5c016b56 Gabriele Martino 2015-05-18  7600 /* Detect codec quirk */
d5c016b56 Gabriele Martino 2015-05-18  7601 quirk = 
snd_pci_quirk_lookup(codec->bus->pci, ca0132_quirks);
d5c016b56 Gabriele Martino 2015-05-18  7602 if (quirk)
d5c016b56 Gabriele Martino 2015-05-18  7603 spec->quirk = 
quirk->value;
d5c016b56 Gabriele Martino 2015-05-18  7604 else
d5c016b56 Gabriele Martino 2015-05-18  7605 spec->quirk = 
QUIRK_NONE;
d5c016b56 Gabriele Martino 2015-05-18  7606  
e24aa0a4c Takashi Iwai 2014-08-10  7607 spec->dsp_state = 
DSP_DOWNLOAD_INIT;
a7e76271b Ian Minett   2012-12-20  7608 spec->num_mixers = 1;
017310fbe Connor McAdams   2018-05-08  7609  
017310fbe Connor McAdams   2018-05-08  7610 /* Set which mixers each quirk 
uses. */
017310fbe Connor McAdams   2018-05-08  7611 switch (spec->quirk) {
017310fbe Connor McAdams   2018-05-08  7612 case QUIRK_SBZ:
e25e34450 Connor McAdams   2018-08-08  7613 spec->mixers[0] = 
desktop_mixer;
017310fbe Connor McAdams   2018-05-08  7614 
snd_hda_codec_set_name(codec, "Sound Blaster Z");
017310fbe Connor McAdams   2018-05-08  7615 break;
e25e34450 Connor McAdams   2018-08-08  7616 case QUIRK_R3D:
e25e34450 Connor McAdams   2018-08-08  7617 spec->mixers[0] = 
desktop_mixer;
e25e34450 Connor McAdams   2018-08-08  7618 
snd_hda_codec_set_name(codec, "Recon3D");
e25e34450 Connor McAdams   2018-08-08  7619 break;
017310fbe Connor McAdams   2018-05-08  7620 case QUIRK_R3DI:
017310fbe Connor McAdams   2018-05-08  7621 spec->mixers[0] = 
r3di_mixer;
017310fbe Connor McAdams   2018-05-08  7622 
snd_hda_codec_set_name(codec, "Recon3Di");
017310fbe Connor McAdams   2018-05-08  7623 break;
017310fbe Connor McAdams   2018-05-08  7624 default:
a7e76271b Ian Minett   2012-12-20  7625 spec->mixers[0] = 
ca0132_mixer;
017310fbe Connor McAdams   2018-05-08  7626 break;
017310fbe Connor McAdams   2018-05-08  7627 }
a7e76271b Ian Minett   2012-12-20  7628  
08eca6b1f Connor McAdams   2018-08-08  7629 /* Setup whether or not to use 
alt functions/controls/pci_mmio */
009b8f979 Connor McAdams   2018-05-08  7630 switch 

  1   2   3   4   5   6   7   8   9   10   >