[hch-misc:set_fs-net-ioctl 4/4] net/appletalk/ddp.c:1868:10: error: implicit declaration of function 'atrtr_ioctl_add'
by kbuild test robot
tree: git://git.infradead.org/users/hch/misc.git set_fs-net-ioctl
head: 14f156db8b84f1cd41f870a1c5b10228ef2b5378
commit: 14f156db8b84f1cd41f870a1c5b10228ef2b5378 [4/4] ipv4,appletalk: move SIOCADDRT and SIOCDELRT handling into ->compat_ioctl
config: arm64-randconfig-r002-20200514 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project a52f10b5a382c040e7ad1ce933cda6c07a4b3a8d)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git checkout 14f156db8b84f1cd41f870a1c5b10228ef2b5378
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> net/appletalk/ddp.c:1868:10: error: implicit declaration of function 'atrtr_ioctl_add' [-Werror,-Wimplicit-function-declaration]
return atrtr_ioctl_add(&rt);
^
net/appletalk/ddp.c:1868:10: note: did you mean 'atrtr_ioctl_addrt'?
net/appletalk/ddp.c:871:12: note: 'atrtr_ioctl_addrt' declared here
static int atrtr_ioctl_addrt(struct rtentry *rt)
^
1 error generated.
vim +/atrtr_ioctl_add +1868 net/appletalk/ddp.c
1840
1841
1842 #ifdef CONFIG_COMPAT
1843 static int atalk_compat_routing_ioctl(struct sock *sk, unsigned int cmd,
1844 struct compat_rtentry __user *ur)
1845 {
1846 struct rtentry rt;
1847 compat_uptr_t rtdev;
1848
1849 if (copy_from_user(&rt.rt_dst, &ur->rt_dst,
1850 3 * sizeof(struct sockaddr)) ||
1851 get_user(rt.rt_flags, &ur->rt_flags) ||
1852 get_user(rt.rt_metric, &ur->rt_metric) ||
1853 get_user(rt.rt_mtu, &ur->rt_mtu) ||
1854 get_user(rt.rt_window, &ur->rt_window) ||
1855 get_user(rt.rt_irtt, &ur->rt_irtt) ||
1856 get_user(rtdev, &ur->rt_dev))
1857 return -EFAULT;
1858
1859 switch (cmd) {
1860 case SIOCDELRT:
1861 if (rt.rt_dst.sa_family != AF_APPLETALK)
1862 return -EINVAL;
1863 return atrtr_delete(&((struct sockaddr_at *)
1864 &rt.rt_dst)->sat_addr);
1865
1866 case SIOCADDRT:
1867 rt.rt_dev = compat_ptr(rtdev);
> 1868 return atrtr_ioctl_add(&rt);
1869 default:
1870 return -EINVAL;
1871 }
1872 }
1873 static int atalk_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
1874 {
1875 struct sock *sk = sock->sk;
1876 void __user *argp = compat_ptr(arg);
1877
1878 switch (cmd) {
1879 case SIOCADDRT:
1880 case SIOCDELRT:
1881 return atalk_compat_routing_ioctl(sk, cmd, argp);
1882 /*
1883 * SIOCATALKDIFADDR is a SIOCPROTOPRIVATE ioctl number, so we
1884 * cannot handle it in common code. The data we access if ifreq
1885 * here is compatible, so we can simply call the native
1886 * handler.
1887 */
1888 case SIOCATALKDIFADDR:
1889 return atalk_ioctl(sock, cmd, (unsigned long)argp);
1890 default:
1891 return -ENOIOCTLCMD;
1892 }
1893 }
1894 #endif /* CONFIG_COMPAT */
1895
1896
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[gabbayo:habanalabs-next 32/36] include/linux/jump_label.h:471:59: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t'
by kbuild test robot
tree: git://people.freedesktop.org/~gabbayo/linux habanalabs-next
head: 26238fa1d1b5837f4ff047721adbfafed48bf175
commit: f58f37e092abe1577fcc4fd5d29b9b1a533c6e54 [32/36] habanalabs: add gaudi asic-dependent code
config: i386-randconfig-a002-20200514 (attached as .config)
compiler: gcc-4.9 (Ubuntu 4.9.3-13ubuntu2) 4.9.3
reproduce:
git checkout f58f37e092abe1577fcc4fd5d29b9b1a533c6e54
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/dynamic_debug.h:6:0,
from include/linux/printk.h:326,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/kobject.h:19,
from include/linux/cdev.h:5,
from drivers/misc/habanalabs/habanalabs.h:14,
from drivers/misc/habanalabs/gaudi/gaudiP.h:12,
from drivers/misc/habanalabs/gaudi/gaudi.c:8:
drivers/misc/habanalabs/gaudi/gaudi.c: In function 'gaudi_get_dma_desc_list_size':
>> include/linux/jump_label.h:471:59: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]
else if (__builtin_types_compatible_p(typeof(*x), struct static_key_false)) ^
>> include/linux/dynamic_debug.h:105:2: note: in expansion of macro 'static_branch_unlikely'
static_branch_unlikely(&descriptor.key.dd_key_false)
^
>> include/linux/dynamic_debug.h:124:6: note: in expansion of macro 'DYNAMIC_DEBUG_BRANCH'
if (DYNAMIC_DEBUG_BRANCH(id)) ^
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
__dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
^
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg, ^
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
include/linux/dev_printk.h:133:3: note: in expansion of macro 'dev_dbg'
dev_level(dev, fmt, ##__VA_ARGS__); ^
include/linux/dev_printk.h:159:2: note: in expansion of macro 'dev_level_once'
dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)
^
drivers/misc/habanalabs/gaudi/gaudi.c:3964:3: note: in expansion of macro 'dev_dbg_once'
dev_dbg_once(hdev->dev,
^
drivers/misc/habanalabs/gaudi/gaudi.c: In function 'gaudi_pin_memory_before_cs':
include/linux/jump_label.h:471:59: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 7 has type 'dma_addr_t' [-Wformat=]
else if (__builtin_types_compatible_p(typeof(*x), struct static_key_false)) ^
>> include/linux/dynamic_debug.h:105:2: note: in expansion of macro 'static_branch_unlikely'
static_branch_unlikely(&descriptor.key.dd_key_false)
^
>> include/linux/dynamic_debug.h:124:6: note: in expansion of macro 'DYNAMIC_DEBUG_BRANCH'
if (DYNAMIC_DEBUG_BRANCH(id)) ^
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
__dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
^
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg, ^
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
drivers/misc/habanalabs/gaudi/gaudi.c:4032:2: note: in expansion of macro 'dev_dbg'
dev_dbg(hdev->dev,
^
drivers/misc/habanalabs/gaudi/gaudi.c: In function 'gaudi_patch_dma_packet':
>> include/linux/jump_label.h:471:59: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t' [-Wformat=]
else if (__builtin_types_compatible_p(typeof(*x), struct static_key_false)) ^
>> include/linux/dynamic_debug.h:105:2: note: in expansion of macro 'static_branch_unlikely'
static_branch_unlikely(&descriptor.key.dd_key_false)
^
>> include/linux/dynamic_debug.h:124:6: note: in expansion of macro 'DYNAMIC_DEBUG_BRANCH'
if (DYNAMIC_DEBUG_BRANCH(id)) ^
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
__dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
^
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg, ^
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^
include/linux/dev_printk.h:133:3: note: in expansion of macro 'dev_dbg'
dev_level(dev, fmt, ##__VA_ARGS__); ^
include/linux/dev_printk.h:159:2: note: in expansion of macro 'dev_level_once'
dev_level_once(dev_dbg, dev, fmt, ##__VA_ARGS__)
^
drivers/misc/habanalabs/gaudi/gaudi.c:4279:3: note: in expansion of macro 'dev_dbg_once'
dev_dbg_once(hdev->dev,
^
vim +471 include/linux/jump_label.h
11276d5306b8e5 Peter Zijlstra 2015-07-24 465
11276d5306b8e5 Peter Zijlstra 2015-07-24 466 #define static_branch_unlikely(x) \
11276d5306b8e5 Peter Zijlstra 2015-07-24 467 ({ \
11276d5306b8e5 Peter Zijlstra 2015-07-24 468 bool branch; \
11276d5306b8e5 Peter Zijlstra 2015-07-24 469 if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \
11276d5306b8e5 Peter Zijlstra 2015-07-24 470 branch = arch_static_branch_jump(&(x)->key, false); \
11276d5306b8e5 Peter Zijlstra 2015-07-24 @471 else if (__builtin_types_compatible_p(typeof(*x), struct static_key_false)) \
11276d5306b8e5 Peter Zijlstra 2015-07-24 472 branch = arch_static_branch(&(x)->key, false); \
11276d5306b8e5 Peter Zijlstra 2015-07-24 473 else \
11276d5306b8e5 Peter Zijlstra 2015-07-24 474 branch = ____wrong_branch_error(); \
81dcf89f03204d Peter Zijlstra 2018-01-18 475 unlikely(branch); \
11276d5306b8e5 Peter Zijlstra 2015-07-24 476 })
11276d5306b8e5 Peter Zijlstra 2015-07-24 477
:::::: The code at line 471 was first introduced by commit
:::::: 11276d5306b8e5b438a36bbff855fe792d7eaa61 locking/static_keys: Add a new static_key interface
:::::: TO: Peter Zijlstra <peterz(a)infradead.org>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[mips-linux:mips-next 76/82] prom.c:(.text+0x0): multiple definition of `get_system_type'; arch/mips/ralink/prom.o:prom.c:(.text+0x0): first defined here
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git mips-next
head: b6b6c318006b680a467451846aea65397074c59d
commit: a7cf53b7abdfbf65540a569d5627a62ce118ffe9 [76/82] MIPS: Fix typos in arch/mips/Kbuild.platforms
config: mips-rt305x_defconfig (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.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 a7cf53b7abdfbf65540a569d5627a62ce118ffe9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
mipsel-linux-ld: arch/mips/ralink/prom.o: in function `get_system_type':
>> prom.c:(.text+0x0): multiple definition of `get_system_type'; arch/mips/ralink/prom.o:prom.c:(.text+0x0): first defined here
>> mipsel-linux-ld: arch/mips/ralink/prom.o:(.bss+0x8): multiple definition of `soc_info'; arch/mips/ralink/prom.o:(.bss+0x8): first defined here
mipsel-linux-ld: arch/mips/ralink/prom.o: in function `prom_init':
>> prom.c:(.init.text+0x0): multiple definition of `prom_init'; arch/mips/ralink/prom.o:prom.c:(.init.text+0x0): first defined here
mipsel-linux-ld: arch/mips/ralink/prom.o: in function `prom_free_prom_memory':
>> prom.c:(.init.text+0xec): multiple definition of `prom_free_prom_memory'; arch/mips/ralink/prom.o:prom.c:(.init.text+0xec): first defined here
>> mipsel-linux-ld: arch/mips/ralink/prom.o:(.bss+0x0): multiple definition of `ralink_soc'; arch/mips/ralink/prom.o:(.bss+0x0): first defined here
>> mipsel-linux-ld: arch/mips/ralink/prom.o:(.bss+0x4): multiple definition of `rt2880_pinmux_data'; arch/mips/ralink/prom.o:(.bss+0x4): first defined here
mipsel-linux-ld: arch/mips/ralink/of.o: in function `plat_of_remap_node':
>> of.c:(.text+0x0): multiple definition of `plat_of_remap_node'; arch/mips/ralink/of.o:of.c:(.text+0x0): first defined here
mipsel-linux-ld: arch/mips/ralink/of.o: in function `device_tree_init':
>> of.c:(.init.text+0x88): multiple definition of `device_tree_init'; arch/mips/ralink/of.o:of.c:(.init.text+0x88): first defined here
mipsel-linux-ld: arch/mips/ralink/of.o: in function `plat_mem_setup':
>> of.c:(.init.text+0x90): multiple definition of `plat_mem_setup'; arch/mips/ralink/of.o:of.c:(.init.text+0x90): first defined here
>> mipsel-linux-ld: arch/mips/ralink/of.o:(.bss+0x0): multiple definition of `rt_memc_membase'; arch/mips/ralink/of.o:(.bss+0x0): first defined here
>> mipsel-linux-ld: arch/mips/ralink/of.o:(.bss+0x4): multiple definition of `rt_sysc_membase'; arch/mips/ralink/of.o:(.bss+0x4): first defined here
mipsel-linux-ld: arch/mips/ralink/reset.o: in function `ralink_rst_init':
>> reset.c:(.text+0x10c): multiple definition of `ralink_rst_init'; arch/mips/ralink/reset.o:reset.c:(.text+0x10c): first defined here
mipsel-linux-ld: arch/mips/ralink/clk.o: in function `clk_enable':
>> clk.c:(.text+0x0): multiple definition of `clk_enable'; arch/mips/ralink/clk.o:clk.c:(.text+0x0): first defined here
mipsel-linux-ld: arch/mips/ralink/clk.o: in function `clk_disable':
>> clk.c:(.text+0x8): multiple definition of `clk_disable'; arch/mips/ralink/clk.o:clk.c:(.text+0x8): first defined here
mipsel-linux-ld: arch/mips/ralink/clk.o: in function `clk_get_rate':
>> clk.c:(.text+0x10): multiple definition of `clk_get_rate'; arch/mips/ralink/clk.o:clk.c:(.text+0x10): first defined here
mipsel-linux-ld: arch/mips/ralink/clk.o: in function `clk_set_rate':
>> clk.c:(.text+0x24): multiple definition of `clk_set_rate'; arch/mips/ralink/clk.o:clk.c:(.text+0x24): first defined here
mipsel-linux-ld: arch/mips/ralink/clk.o: in function `clk_round_rate':
>> clk.c:(.text+0x2c): multiple definition of `clk_round_rate'; arch/mips/ralink/clk.o:clk.c:(.text+0x2c): first defined here
mipsel-linux-ld: arch/mips/ralink/clk.o: in function `ralink_clk_add':
>> clk.c:(.text+0x34): multiple definition of `ralink_clk_add'; arch/mips/ralink/clk.o:clk.c:(.text+0x34): first defined here
mipsel-linux-ld: arch/mips/ralink/clk.o: in function `plat_time_init':
>> clk.c:(.init.text+0x0): multiple definition of `plat_time_init'; arch/mips/ralink/clk.o:clk.c:(.init.text+0x0): first defined here
mipsel-linux-ld: arch/mips/ralink/irq.o: in function `get_c0_perfcount_int':
>> irq.c:(.text+0x70): multiple definition of `get_c0_perfcount_int'; arch/mips/ralink/irq.o:irq.c:(.text+0x70): first defined here
mipsel-linux-ld: arch/mips/ralink/irq.o: in function `get_c0_compare_int':
irq.c:(.text+0x114): multiple definition of `get_c0_compare_int'; arch/mips/ralink/irq.o:irq.c:(.text+0x114): first defined here
mipsel-linux-ld: arch/mips/ralink/irq.o: in function `plat_irq_dispatch':
irq.c:(.text+0x11c): multiple definition of `plat_irq_dispatch'; arch/mips/ralink/irq.o:irq.c:(.text+0x11c): first defined here
mipsel-linux-ld: arch/mips/ralink/irq.o: in function `arch_init_irq':
irq.c:(.init.text+0x1b0): multiple definition of `arch_init_irq'; arch/mips/ralink/irq.o:irq.c:(.init.text+0x1b0): first defined here
mipsel-linux-ld: arch/mips/ralink/rt305x.o: in function `ralink_clk_init':
rt305x.c:(.init.text+0x0): multiple definition of `ralink_clk_init'; arch/mips/ralink/rt305x.o:rt305x.c:(.init.text+0x0): first defined here
mipsel-linux-ld: arch/mips/ralink/rt305x.o: in function `ralink_of_remap':
rt305x.c:(.init.text+0x230): multiple definition of `ralink_of_remap'; arch/mips/ralink/rt305x.o:rt305x.c:(.init.text+0x230): first defined here
mipsel-linux-ld: arch/mips/ralink/rt305x.o: in function `prom_soc_init':
rt305x.c:(.text+0xc): multiple definition of `prom_soc_init'; arch/mips/ralink/rt305x.o:rt305x.c:(.text+0xc): first defined here
mipsel-linux-ld: arch/mips/ralink/early_printk.o: in function `prom_putchar':
early_printk.c:(.text+0xc): multiple definition of `prom_putchar'; arch/mips/ralink/early_printk.o:early_printk.c:(.text+0xc): first defined here
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH v7 3/6] clocksource: Ingenic: Add high resolution timer support for SMP.
by kbuild test robot
Hi "周琰杰,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on tip/timers/core linus/master v5.7-rc5]
[cannot apply to linux/master next-20200512]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Zhou-Yanjie/Introduce-SMP-suppor...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/bitops.h:5:0,
from drivers/clocksource/ingenic-timer.c:8:
drivers/clocksource/ingenic-timer.c: In function 'ingenic_tcu_init':
>> include/linux/bits.h:36:22: warning: left shift count >= width of type [-Wshift-count-overflow]
(((~UL(0)) - (UL(1) << (l)) + 1) & ^
>> include/linux/bits.h:39:31: note: in expansion of macro '__GENMASK'
(GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
^~~~~~~~~
>> drivers/clocksource/ingenic-timer.c:313:27: note: in expansion of macro 'GENMASK'
tcu->pwm_channels_mask = GENMASK(soc_info->num_channels - 1,
^~~~~~~
vim +/GENMASK +313 drivers/clocksource/ingenic-timer.c
288
289 static int __init ingenic_tcu_init(struct device_node *np)
290 {
291 const struct of_device_id *id = of_match_node(ingenic_tcu_of_match, np);
292 const struct ingenic_soc_info *soc_info = id->data;
293 struct ingenic_tcu *tcu;
294 struct regmap *map;
295 unsigned cpu = 0;
296 long rate;
297 int ret;
298
299 of_node_clear_flag(np, OF_POPULATED);
300
301 map = device_node_to_regmap(np);
302 if (IS_ERR(map))
303 return PTR_ERR(map);
304
305 tcu = kzalloc(sizeof(*tcu), GFP_KERNEL);
306 if (!tcu)
307 return -ENOMEM;
308
309 /*
310 * Enable all TCU channels for PWM use by default except channels 0/1,
311 * and channel 2 if target CPU is JZ4780 and SMP is selected.
312 */
> 313 tcu->pwm_channels_mask = GENMASK(soc_info->num_channels - 1,
314 NR_CPUS + 1);
315 of_property_read_u32(np, "ingenic,pwm-channels-mask",
316 (u32 *)&tcu->pwm_channels_mask);
317
318 /* Verify that we have at least NR_CPUS + 1 free channels */
319 if (hweight8(tcu->pwm_channels_mask) >
320 soc_info->num_channels - NR_CPUS + 1) {
321 pr_crit("%s: Invalid PWM channel mask: 0x%02lx\n", __func__,
322 tcu->pwm_channels_mask);
323 ret = -EINVAL;
324 goto err_free_ingenic_tcu;
325 }
326
327 tcu->map = map;
328 tcu->np = np;
329 ingenic_tcu = tcu;
330
331 tcu->timer_local[cpu] = find_first_zero_bit(&tcu->pwm_channels_mask,
332 soc_info->num_channels);
333
334 for (cpu = 1; cpu < NR_CPUS; cpu++)
335 tcu->timer_local[cpu] = find_next_zero_bit(
336 &tcu->pwm_channels_mask, soc_info->num_channels,
337 tcu->timer_local[cpu - 1] + 1);
338
339 tcu->cs_channel = find_next_zero_bit(&tcu->pwm_channels_mask,
340 soc_info->num_channels, tcu->timer_local[cpu - 1] + 1);
341
342 ret = ingenic_tcu_clocksource_init(np, tcu);
343 if (ret) {
344 pr_crit("%s: Unable to init clocksource: %d\n", __func__, ret);
345 goto err_free_ingenic_tcu;
346 }
347
348 /* Setup clock events on each CPU core */
349 ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "Ingenic XBurst: online",
350 ingenic_tcu_setup_cevt, NULL);
351 WARN_ON(ret < 0);
352
353 /* Register the sched_clock at the end as there's no way to undo it */
354 rate = clk_get_rate(tcu->cs_clk);
355 sched_clock_register(ingenic_tcu_timer_read, 16, rate);
356
357 return 0;
358
359 err_free_ingenic_tcu:
360 kfree(tcu);
361 return ret;
362 }
363
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH v8 1/8] tpm: tpm_tis: Make implementation of read16, read32 and write32 optional
by kbuild test robot
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on robh/for-next arm-soc/for-next linus/master v5.7-rc5 next-20200512]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/amirmizi6-gmail-com/Add-tpm-i2c-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 84c1e51d7df85332705ffebc40ef135205492036
config: h8300-randconfig-r024-20200514 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.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
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
h8300-linux-ld: section .init.text LMA [00000000004a1318,00000000004ed689] overlaps section .text LMA [0000000000000158,0000000000be5e95]
h8300-linux-ld: section .data VMA [0000000000400000,00000000004a1317] overlaps section .text VMA [0000000000000158,0000000000be5e95]
h8300-linux-ld: arch/h8300/kernel/entry.o: in function `resume_kernel':
arch/h8300/kernel/entry.S:324: undefined reference to `TI_PRE_COUNT'
>> h8300-linux-ld: drivers/char/tpm/tpm_tis_spi_cr50.o:(.rodata+0x8): undefined reference to `tpm_tis_spi_read16'
>> h8300-linux-ld: drivers/char/tpm/tpm_tis_spi_cr50.o:(.rodata+0xc): undefined reference to `tpm_tis_spi_read32'
>> h8300-linux-ld: drivers/char/tpm/tpm_tis_spi_cr50.o:(.rodata+0x10): undefined reference to `tpm_tis_spi_write32'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[alaahl:for-upstream 2/2] WARNING: modpost: vmlinux.o(.text+0x7aba8): Section mismatch in reference from the function debug_rt_mutex_deadlock() to the variable .init.text:.LBB13353
by kbuild test robot
tree: https://github.com/alaahl/linux.git for-upstream
head: 1f65603a4e1335d07633763dc73bda73848a2fe7
commit: 1f65603a4e1335d07633763dc73bda73848a2fe7 [2/2] Merge branch 'testing/rdma-next' into queue-next
config: riscv-randconfig-r025-20200514 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.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 1f65603a4e1335d07633763dc73bda73848a2fe7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> WARNING: modpost: vmlinux.o(.text+0x7aba8): Section mismatch in reference from the function debug_rt_mutex_deadlock() to the variable .init.text:.LBB13353
The function debug_rt_mutex_deadlock() references
the variable __init .LBB13353.
This is often because debug_rt_mutex_deadlock lacks a __init
annotation or the annotation of .LBB13353 is wrong.
--
>> WARNING: modpost: vmlinux.o(__ex_table+0x15f0): Section mismatch in reference from the (unknown reference) (unknown) to the variable .rodata:__func__.49182
FATAL: modpost: The relocation at __ex_table+0x15f0 references
section ".rodata" which is not executable, IOW
it is not possible for the kernel to fault
at that address. Something is seriously wrong
and should be fixed.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[lkp] [+668 bytes kernel size regression] [i386-tinyconfig] [65c908b7bd] dma-mapping: add a dma_ops_bypass flag to struct device
by kbuild test robot
FYI, we noticed a +668 bytes kernel size regression due to commit:
commit: 65c908b7bd08144e5298258920f61255aa7628ee (dma-mapping: add a dma_ops_bypass flag to struct device)
git://git.infradead.org/users/hch/misc.git dma-bypass.4
Details as below (size data is obtained by `nm --size-sort vmlinux`):
4861c37e: dma-mapping: inline the fast path dma-direct calls
65c908b7: dma-mapping: add a dma_ops_bypass flag to struct device
+---------------------------------+----------+----------+-------+
| symbol | 4861c37e | 65c908b7 | delta |
+---------------------------------+----------+----------+-------+
| bzImage | 439680 | 439840 | 160 |
| nm.t.dma_alloc_direct | 0 | 103 | 103 |
| nm.t.dma_map_direct | 0 | 102 | 102 |
| nm.T.dma_get_sgtable_attrs | 84 | 135 | 51 |
| nm.T.dma_mmap_attrs | 84 | 135 | 51 |
| nm.T.dma_free_attrs | 73 | 113 | 40 |
| nm.T.dma_alloc_attrs | 76 | 113 | 37 |
| nm.T.dma_map_resource | 100 | 132 | 32 |
| nm.T.dma_max_mapping_size | 38 | 65 | 27 |
| nm.T.dma_map_sg_attrs | 69 | 95 | 26 |
| nm.T.dma_get_required_mask | 50 | 73 | 23 |
| nm.T.dma_can_mmap | 33 | 52 | 19 |
| nm.T.dma_cache_sync | 56 | 75 | 19 |
| nm.T.dma_sync_sg_for_cpu | 56 | 75 | 19 |
| nm.T.dma_sync_sg_for_device | 56 | 75 | 19 |
| nm.T.dma_sync_single_for_cpu | 56 | 75 | 19 |
| nm.T.dma_sync_single_for_device | 56 | 75 | 19 |
| nm.T.dma_unmap_page_attrs | 61 | 80 | 19 |
| nm.T.dma_unmap_resource | 61 | 80 | 19 |
| nm.T.dma_unmap_sg_attrs | 61 | 80 | 19 |
| nm.T.dma_map_page_attrs | 226 | 231 | 5 |
+---------------------------------+----------+----------+-------+
Thanks,
Kbuild test robot
2 years, 4 months
[balbi-usb:testing/next 78/89] drivers/usb/dwc3/gadget.c:2842:7: error: implicit declaration of function 'DWC3_VER_IS_WITHIN'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
head: 405a813dbc9e261f9a025386c04f0d133996995e
commit: 1a31a103ce6e5a49c4c04e0709a0da431bcbadd4 [78/89] usb: dwc3: gadget: Use SET_EP_PRIME for NoStream
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.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 1a31a103ce6e5a49c4c04e0709a0da431bcbadd4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
Note: the balbi-usb/testing/next HEAD 405a813dbc9e261f9a025386c04f0d133996995e builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/usb/dwc3/gadget.c: In function 'dwc3_gadget_endpoint_stream_event':
>> drivers/usb/dwc3/gadget.c:2842:7: error: implicit declaration of function 'DWC3_VER_IS_WITHIN' [-Werror=implicit-function-declaration]
2842 | if (DWC3_VER_IS_WITHIN(DWC32, 100A, ANY)) {
| ^~~~~~~~~~~~~~~~~~
>> drivers/usb/dwc3/gadget.c:2842:26: error: 'DWC32' undeclared (first use in this function)
2842 | if (DWC3_VER_IS_WITHIN(DWC32, 100A, ANY)) {
| ^~~~~
drivers/usb/dwc3/gadget.c:2842:26: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/usb/dwc3/gadget.c:2842:33: error: invalid suffix "A" on integer constant
2842 | if (DWC3_VER_IS_WITHIN(DWC32, 100A, ANY)) {
| ^~~~
>> drivers/usb/dwc3/gadget.c:2842:39: error: 'ANY' undeclared (first use in this function)
2842 | if (DWC3_VER_IS_WITHIN(DWC32, 100A, ANY)) {
| ^~~
cc1: some warnings being treated as errors
vim +/DWC3_VER_IS_WITHIN +2842 drivers/usb/dwc3/gadget.c
2793
2794 static void dwc3_gadget_endpoint_stream_event(struct dwc3_ep *dep,
2795 const struct dwc3_event_depevt *event)
2796 {
2797 struct dwc3 *dwc = dep->dwc;
2798
2799 if (event->status == DEPEVT_STREAMEVT_FOUND) {
2800 dep->flags |= DWC3_EP_FIRST_STREAM_PRIMED;
2801 goto out;
2802 }
2803
2804 /* Note: NoStream rejection event param value is 0 and not 0xFFFF */
2805 switch (event->parameters) {
2806 case DEPEVT_STREAM_PRIME:
2807 /*
2808 * If the host can properly transition the endpoint state from
2809 * idle to prime after a NoStream rejection, there's no need to
2810 * force restarting the endpoint to reinitiate the stream. To
2811 * simplify the check, assume the host follows the USB spec if
2812 * it primed the endpoint more than once.
2813 */
2814 if (dep->flags & DWC3_EP_FORCE_RESTART_STREAM) {
2815 if (dep->flags & DWC3_EP_FIRST_STREAM_PRIMED)
2816 dep->flags &= ~DWC3_EP_FORCE_RESTART_STREAM;
2817 else
2818 dep->flags |= DWC3_EP_FIRST_STREAM_PRIMED;
2819 }
2820
2821 break;
2822 case DEPEVT_STREAM_NOSTREAM:
2823 if ((dep->flags & DWC3_EP_IGNORE_NEXT_NOSTREAM) ||
2824 !(dep->flags & DWC3_EP_FORCE_RESTART_STREAM) ||
2825 !(dep->flags & DWC3_EP_WAIT_TRANSFER_COMPLETE))
2826 break;
2827
2828 /*
2829 * If the host rejects a stream due to no active stream, by the
2830 * USB and xHCI spec, the endpoint will be put back to idle
2831 * state. When the host is ready (buffer added/updated), it will
2832 * prime the endpoint to inform the usb device controller. This
2833 * triggers the device controller to issue ERDY to restart the
2834 * stream. However, some hosts don't follow this and keep the
2835 * endpoint in the idle state. No prime will come despite host
2836 * streams are updated, and the device controller will not be
2837 * triggered to generate ERDY to move the next stream data. To
2838 * workaround this and maintain compatibility with various
2839 * hosts, force to reinitate the stream until the host is ready
2840 * instead of waiting for the host to prime the endpoint.
2841 */
> 2842 if (DWC3_VER_IS_WITHIN(DWC32, 100A, ANY)) {
2843 unsigned int cmd = DWC3_DGCMD_SET_ENDPOINT_PRIME;
2844
2845 dwc3_send_gadget_generic_command(dwc, cmd, dep->number);
2846 } else {
2847 dep->flags |= DWC3_EP_DELAY_START;
2848 dwc3_stop_active_transfer(dep, true, true);
2849 return;
2850 }
2851 break;
2852 }
2853
2854 out:
2855 dep->flags &= ~DWC3_EP_IGNORE_NEXT_NOSTREAM;
2856 }
2857
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[chrome-os:chromeos-4.19 21/30] arch/sparc/lib/strlen.S:18: multiple definition of `strlen'; lib/string.o:lib/string.c:482: first defined here
by kbuild test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: cb0853bced224c48b50ef564be3fecc6447e1ce1
commit: 76f1a6b45d8f848594f54e7ddda05d55264e0211 [21/30] UPSTREAM: kbuild: link lib-y objects to vmlinux forcibly when CONFIG_MODULES=y
config: sparc-randconfig-r013-20200514 (attached as .config)
compiler: sparc-linux-gcc (GCC) 9.3.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 76f1a6b45d8f848594f54e7ddda05d55264e0211
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
sparc-linux-ld: arch/sparc/lib/strlen.o: in function `strlen':
>> arch/sparc/lib/strlen.S:18: multiple definition of `strlen'; lib/string.o:lib/string.c:482: first defined here
vim +18 arch/sparc/lib/strlen.S
^1da177e4c3f41 arch/sparc64/lib/strlen.S Linus Torvalds 2005-04-16 15
ae984d72e06327 arch/sparc/lib/strlen.S David S. Miller 2008-12-09 16 .text
ae984d72e06327 arch/sparc/lib/strlen.S David S. Miller 2008-12-09 17 ENTRY(strlen)
^1da177e4c3f41 arch/sparc64/lib/strlen.S Linus Torvalds 2005-04-16 @18 mov %o0, %o1
:::::: The code at line 18 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[hch-misc:set_fs-net-tunnel 1/2] include/net/ip_tunnels.h:498:60: warning: 'struct vifctl' declared inside parameter list
by kbuild test robot
tree: git://git.infradead.org/users/hch/misc.git set_fs-net-tunnel
head: 75b3a7d2e1d57c6ee6426093ca75615a02ddd26a
commit: f10c33a48f618cfcf62ad359952106b0881abc20 [1/2] ipv4: use symbol_get to access ipip symbols
config: i386-randconfig-a014-20200514 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce:
git checkout f10c33a48f618cfcf62ad359952106b0881abc20
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/net/dst_metadata.h:6:0,
from net/core/flow_dissector.c:9:
>> include/net/ip_tunnels.h:498:60: warning: 'struct vifctl' declared inside parameter list
struct net_device *ipip_tunnel_ctl(struct net *net, struct vifctl *v, int cmd);
^
>> include/net/ip_tunnels.h:498:60: warning: its scope is only this definition or declaration, which is probably not what you want
vim +498 include/net/ip_tunnels.h
497
> 498 struct net_device *ipip_tunnel_ctl(struct net *net, struct vifctl *v, int cmd);
499
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months