[ti:ti-linux-5.4.y 9521/12984] net/socket.c:847:5: error: 'SCM_RED_TIMESTAMPING' undeclared
by kernel test robot
Hi Grygorii,
First bad commit (maybe != root cause):
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.4.y
head: c02b2da68c63deb35dc5a7c1b0bbc68e4ee38632
commit: 93fac9fa368d4c49b62745b6f324d019fb42ecc4 [9521/12984] HACK: scripts: headers_install: fix allmodconfig builds
config: mips-randconfig-r011-20210113 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-linux-5.4.y
git checkout 93fac9fa368d4c49b62745b6f324d019fb42ecc4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/net/cls_cgroup.h:14,
from net/socket.c:95:
include/net/sock.h: In function 'sock_recv_redundant_info':
include/net/sock.h:2461:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2461 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2461:29: note: each undeclared identifier is reported only once for each function it appears in
net/socket.c: In function '__sock_recv_redinfo_timestamp':
>> net/socket.c:847:5: error: 'SCM_RED_TIMESTAMPING' undeclared (first use in this function)
847 | SCM_RED_TIMESTAMPING, sizeof(tss), &tss);
| ^~~~~~~~~~~~~~~~~~~~
net/socket.c: In function '__sys_getsockopt':
net/socket.c:2132:6: warning: variable 'max_optlen' set but not used [-Wunused-but-set-variable]
2132 | int max_optlen;
| ^~~~~~~~~~
vim +/SCM_RED_TIMESTAMPING +847 net/socket.c
7c81fd8bfbaa9732 Arnaldo Carvalho de Melo 2007-03-10 831
70e28ef2c9afebab WingMan Kwok 2018-03-02 832 void __sock_recv_redinfo_timestamp(struct msghdr *msg, struct sock *sk,
70e28ef2c9afebab WingMan Kwok 2018-03-02 833 struct sk_buff *skb)
70e28ef2c9afebab WingMan Kwok 2018-03-02 834 {
70e28ef2c9afebab WingMan Kwok 2018-03-02 835 struct scm_timestamping tss;
70e28ef2c9afebab WingMan Kwok 2018-03-02 836 int empty = 1;
70e28ef2c9afebab WingMan Kwok 2018-03-02 837 struct skb_shared_hwtstamps *red_shhwtstamps =
70e28ef2c9afebab WingMan Kwok 2018-03-02 838 skb_redinfo_hwtstamps(skb);
70e28ef2c9afebab WingMan Kwok 2018-03-02 839
70e28ef2c9afebab WingMan Kwok 2018-03-02 840 if (red_shhwtstamps &&
70e28ef2c9afebab WingMan Kwok 2018-03-02 841 (sk->sk_tsflags & SOF_TIMESTAMPING_RAW_HARDWARE) &&
70e28ef2c9afebab WingMan Kwok 2018-03-02 842 ktime_to_timespec_cond(red_shhwtstamps->hwtstamp, tss.ts + 2))
70e28ef2c9afebab WingMan Kwok 2018-03-02 843 empty = 0;
70e28ef2c9afebab WingMan Kwok 2018-03-02 844
70e28ef2c9afebab WingMan Kwok 2018-03-02 845 if (!empty)
70e28ef2c9afebab WingMan Kwok 2018-03-02 846 put_cmsg(msg, SOL_SOCKET,
70e28ef2c9afebab WingMan Kwok 2018-03-02 @847 SCM_RED_TIMESTAMPING, sizeof(tss), &tss);
70e28ef2c9afebab WingMan Kwok 2018-03-02 848 }
70e28ef2c9afebab WingMan Kwok 2018-03-02 849 EXPORT_SYMBOL_GPL(__sock_recv_redinfo_timestamp);
70e28ef2c9afebab WingMan Kwok 2018-03-02 850
:::::: The code at line 847 was first introduced by commit
:::::: 70e28ef2c9afebab74651ba7aca5895ca4d922d4 net: socket: forward extra timestamp of received skb to user space
:::::: TO: WingMan Kwok <w-kwok2(a)ti.com>
:::::: CC: Lokesh Vutla <lokeshvutla(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[drm-drm-misc:drm-misc-next 5/9] drivers/gpu/drm/drm_cache.c:202:6: error: implicit declaration of function 'mem_encrypt_active'
by kernel test robot
tree: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
head: 14054f2afcd6fcef8270a32cbd7570b4992994c5
commit: 3abc66706385e08f7003ca746be005e4c2152b09 [5/9] drm: Implement drm_need_swiotlb() in drm_cache.c
config: riscv-randconfig-p002-20210113 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add drm-drm-misc git://anongit.freedesktop.org/drm/drm-misc
git fetch --no-tags drm-drm-misc drm-misc-next
git checkout 3abc66706385e08f7003ca746be005e4c2152b09
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/drm_cache.c: In function 'drm_need_swiotlb':
>> drivers/gpu/drm/drm_cache.c:202:6: error: implicit declaration of function 'mem_encrypt_active' [-Werror=implicit-function-declaration]
202 | if (mem_encrypt_active())
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/mem_encrypt_active +202 drivers/gpu/drm/drm_cache.c
180
181 bool drm_need_swiotlb(int dma_bits)
182 {
183 struct resource *tmp;
184 resource_size_t max_iomem = 0;
185
186 /*
187 * Xen paravirtual hosts require swiotlb regardless of requested dma
188 * transfer size.
189 *
190 * NOTE: Really, what it requires is use of the dma_alloc_coherent
191 * allocator used in ttm_dma_populate() instead of
192 * ttm_populate_and_map_pages(), which bounce buffers so much in
193 * Xen it leads to swiotlb buffer exhaustion.
194 */
195 if (xen_pv_domain())
196 return true;
197
198 /*
199 * Enforce dma_alloc_coherent when memory encryption is active as well
200 * for the same reasons as for Xen paravirtual hosts.
201 */
> 202 if (mem_encrypt_active())
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH 2/2] bdi: Use might_alloc()
by kernel test robot
Hi Daniel,
I love your patch! Yet something to improve:
[auto build test ERROR on mmotm/master]
url: https://github.com/0day-ci/linux/commits/Daniel-Vetter/mm-dmapool-Use-mig...
base: git://git.cmpxchg.org/linux-mmotm.git master
config: openrisc-randconfig-r011-20210113 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/95ad71591084350229e768f9c2be5350d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Daniel-Vetter/mm-dmapool-Use-might_alloc/20210113-215207
git checkout 95ad71591084350229e768f9c2be5350d504f896
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/backing-dev.c: In function 'wb_get_create':
>> mm/backing-dev.c:647:2: error: implicit declaration of function 'might_alloc'; did you mean 'might_lock'? [-Werror=implicit-function-declaration]
647 | might_alloc(gfp);
| ^~~~~~~~~~~
| might_lock
cc1: some warnings being treated as errors
vim +647 mm/backing-dev.c
616
617 /**
618 * wb_get_create - get wb for a given memcg, create if necessary
619 * @bdi: target bdi
620 * @memcg_css: cgroup_subsys_state of the target memcg (must have positive ref)
621 * @gfp: allocation mask to use
622 *
623 * Try to get the wb for @memcg_css on @bdi. If it doesn't exist, try to
624 * create one. The returned wb has its refcount incremented.
625 *
626 * This function uses css_get() on @memcg_css and thus expects its refcnt
627 * to be positive on invocation. IOW, rcu_read_lock() protection on
628 * @memcg_css isn't enough. try_get it before calling this function.
629 *
630 * A wb is keyed by its associated memcg. As blkcg implicitly enables
631 * memcg on the default hierarchy, memcg association is guaranteed to be
632 * more specific (equal or descendant to the associated blkcg) and thus can
633 * identify both the memcg and blkcg associations.
634 *
635 * Because the blkcg associated with a memcg may change as blkcg is enabled
636 * and disabled closer to root in the hierarchy, each wb keeps track of
637 * both the memcg and blkcg associated with it and verifies the blkcg on
638 * each lookup. On mismatch, the existing wb is discarded and a new one is
639 * created.
640 */
641 struct bdi_writeback *wb_get_create(struct backing_dev_info *bdi,
642 struct cgroup_subsys_state *memcg_css,
643 gfp_t gfp)
644 {
645 struct bdi_writeback *wb;
646
> 647 might_alloc(gfp);
648
649 if (!memcg_css->parent)
650 return &bdi->wb;
651
652 do {
653 rcu_read_lock();
654 wb = radix_tree_lookup(&bdi->cgwb_tree, memcg_css->id);
655 if (wb) {
656 struct cgroup_subsys_state *blkcg_css;
657
658 /* see whether the blkcg association has changed */
659 blkcg_css = cgroup_get_e_css(memcg_css->cgroup,
660 &io_cgrp_subsys);
661 if (unlikely(wb->blkcg_css != blkcg_css ||
662 !wb_tryget(wb)))
663 wb = NULL;
664 css_put(blkcg_css);
665 }
666 rcu_read_unlock();
667 } while (!wb && !cgwb_create(bdi, memcg_css, gfp));
668
669 return wb;
670 }
671
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x6c58): cannot reach strlcpy
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 65f0d2414b7079556fbbcc070b3d1c9f9587606d
commit: fc0ea795f53c8d7040fa42471f74fe51d78d0834 ftrace: Add symbols for ftrace trampolines
date: 7 months ago
config: parisc-randconfig-r006-20210114 (attached as .config)
compiler: hppa64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout fc0ea795f53c8d7040fa42471f74fe51d78d0834
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0xfb90): cannot reach _raw_spin_lock_irq
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0xfc6c): cannot reach _raw_spin_unlock_irq
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0xfda8): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0xfdd8): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0xfeb8): cannot reach mutex_unlock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0xffe4): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0x10014): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0x10048): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0x10078): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0x10258): cannot reach idr_find
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0x102c4): cannot reach mutex_lock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0x1033c): cannot reach mutex_unlock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0x10450): cannot reach sscanf
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0x104b4): cannot reach __muldi3
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0x10508): cannot reach __udivdi3
hppa64-linux-ld: kernel/cgroup/cgroup.o(.text+0x10544): cannot reach __muldi3
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0x7c): cannot reach strcmp
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0xc8): cannot reach strcmp
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0xfc): cannot reach strsep
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0x298): cannot reach mutex_lock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0x580): cannot reach mutex_unlock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0x7d4): cannot reach strlen
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0xa50): cannot reach mutex_lock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0xb70): cannot reach mutex_unlock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0xf5c): cannot reach mutex_lock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0xf84): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x794): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7cc): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7f4): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0xb9c): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0xc34): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x168c): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x171c): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x1954): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x2090): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x20f8): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x2190): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x21f8): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x29d8): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x3a1c): cannot reach _cond_resched
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x48dc): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4958): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4978): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x49f0): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4a84): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4a9c): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4be8): cannot reach strcmp
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4c00): cannot reach strncmp
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4c28): cannot reach strstr
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4c48): cannot reach strlen
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4c78): cannot reach memcmp
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4e1c): cannot reach memset
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4e38): cannot reach memset
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4e5c): cannot reach strlen
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4e94): cannot reach strlen
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4eb4): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x4ef0): cannot reach simple_strtoul
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x506c): cannot reach strlen
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x50b0): cannot reach strlen
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x50c8): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x51d0): cannot reach strsep
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5230): cannot reach strsep
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5250): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x527c): cannot reach strcmp
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x52dc): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5328): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5424): cannot reach strlen
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x548c): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x54d4): cannot reach strcmp
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x550c): cannot reach strcmp
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5600): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5644): cannot reach snprintf
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5710): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5770): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x57a4): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x57c8): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5898): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x59dc): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5a14): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5a2c): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5ac4): cannot reach strlen
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5afc): cannot reach strlen
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5b1c): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5b44): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5c90): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5ca0): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5cbc): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5e54): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x5e98): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x620c): cannot reach strlen
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x6244): cannot reach strlen
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x6278): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x62c0): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x62d8): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x6444): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x6544): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x656c): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x65a8): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x6b5c): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x6bac): cannot reach mutex_unlock
>> hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x6c58): cannot reach strlcpy
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x6c74): cannot reach strlcpy
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x6d1c): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x6f80): cannot reach memmove
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x6fbc): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x6ffc): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7018): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7064): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x70d0): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x74ac): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7544): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x755c): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7598): cannot reach strlen
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x76d4): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x76e8): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7704): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x778c): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x77b4): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x786c): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x78b8): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7a88): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7ad8): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7bf4): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7cf4): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7d1c): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7fc4): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x7fec): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x8148): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x8174): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x81bc): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x81e8): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x8254): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.text+0x8444): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0x1c): cannot reach simple_strtoul
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0x70): cannot reach strlcpy
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0xb0): cannot reach strlcpy
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0xe0): cannot reach strlcpy
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0x110): cannot reach strlcpy
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0x184): cannot reach strsep
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0x19c): cannot reach strlen
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0x2a8): cannot reach strsep
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0x380): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0x3a8): cannot reach strcmp
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0x3e8): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0x47c): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0x4a4): cannot reach strcmp
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0x4ec): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0x8ac): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ftrace.o(.init.text+0xa64): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x3b8): cannot reach __cmpxchg_u64
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x4e4): cannot reach _raw_spin_lock_irq
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x540): cannot reach __cmpxchg_u64
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x560): cannot reach _raw_spin_unlock_irq
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x5e4): cannot reach _raw_spin_lock_irq
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x698): cannot reach _raw_spin_unlock_irq
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x704): cannot reach _cond_resched
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x7e4): cannot reach _raw_spin_unlock_irq
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x1510): cannot reach __cmpxchg_u64
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x15d8): cannot reach __cmpxchg_u64
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x15f0): cannot reach __cmpxchg_u64
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x16d4): cannot reach __cmpxchg_u64
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x16f4): cannot reach __cmpxchg_u64
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x171c): cannot reach __cmpxchg_u64
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x1aac): cannot reach __cmpxchg_u64
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2178): cannot reach memcpy
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2774): cannot reach __udivdi3
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2aa0): cannot reach wait_for_completion
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2b60): cannot reach wait_for_completion
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2bd4): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2c84): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2cbc): cannot reach __udivdi3
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2ce0): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2cf8): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2d2c): cannot reach __udivdi3
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2d50): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2d7c): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2de8): cannot reach mutex_lock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2e18): cannot reach mutex_unlock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x2f68): cannot reach __muldi3
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x367c): cannot reach __cmpxchg_u64
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x3d38): cannot reach memcpy
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x3e08): cannot reach __muldi3
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x3fc4): cannot reach __cmpxchg_u32
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x402c): cannot reach __cmpxchg_u32
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x418c): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x41e0): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x4428): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x4490): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x45e4): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x45f4): cannot reach _raw_spin_trylock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x4648): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x4698): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x47ac): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x49f8): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x4a14): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x4b38): cannot reach _raw_spin_lock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x4b48): cannot reach _raw_spin_trylock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x4be8): cannot reach _raw_spin_unlock
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x4e14): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x4e8c): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/trace/ring_buffer.o(.text+0x4edc): cannot reach _raw_spin_lock_irqsave
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[linux-next:master 2144/2798] drivers/net/ethernet/marvell/prestera/prestera_switchdev.c:1049:11: warning: variable 'vid' is uninitialized when used here
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: aa515cdce7a151dcc14b7600d33f1414c6fa32c9
commit: b7a9e0da2d1c954b7c38217a29e002528b90d174 [2144/2798] net: switchdev: remove vid_begin -> vid_end range from VLAN objects
config: x86_64-randconfig-a004-20210114 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6077d55381a6aa3e947ef7abdc36a7515c598c8a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout b7a9e0da2d1c954b7c38217a29e002528b90d174
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/marvell/prestera/prestera_switchdev.c:1049:11: warning: variable 'vid' is uninitialized when used here [-Wuninitialized]
vid, flag_untagged,
^~~
drivers/net/ethernet/marvell/prestera/prestera_switchdev.c:1032:9: note: initialize the variable 'vid' to silence this warning
u16 vid;
^
= 0
1 warning generated.
vim +/vid +1049 drivers/net/ethernet/marvell/prestera/prestera_switchdev.c
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1020
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1021 static int prestera_port_vlans_add(struct prestera_port *port,
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1022 const struct switchdev_obj_port_vlan *vlan,
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1023 struct switchdev_trans *trans,
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1024 struct netlink_ext_ack *extack)
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1025 {
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1026 bool flag_untagged = vlan->flags & BRIDGE_VLAN_INFO_UNTAGGED;
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1027 bool flag_pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID;
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1028 struct net_device *dev = vlan->obj.orig_dev;
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1029 struct prestera_bridge_port *br_port;
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1030 struct prestera_switch *sw = port->sw;
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1031 struct prestera_bridge *bridge;
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1032 u16 vid;
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1033
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1034 if (netif_is_bridge_master(dev))
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1035 return 0;
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1036
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1037 if (switchdev_trans_ph_commit(trans))
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1038 return 0;
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1039
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1040 br_port = prestera_bridge_port_by_dev(sw->swdev, dev);
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1041 if (WARN_ON(!br_port))
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1042 return -EINVAL;
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1043
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1044 bridge = br_port->bridge;
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1045 if (!bridge->vlan_enabled)
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1046 return 0;
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1047
b7a9e0da2d1c954b Vladimir Oltean 2021-01-09 1048 return prestera_bridge_port_vlan_add(port, br_port,
e1189d9a5fbec815 Vadym Kochan 2020-09-16 @1049 vid, flag_untagged,
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1050 flag_pvid, extack);
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1051 }
e1189d9a5fbec815 Vadym Kochan 2020-09-16 1052
:::::: The code at line 1049 was first introduced by commit
:::::: e1189d9a5fbec8153dbe03f3589bc2baa96694e2 net: marvell: prestera: Add Switchdev driver implementation
:::::: TO: Vadym Kochan <vadym.kochan(a)plvision.eu>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[jarkko-linux-tpmdd:tee 6/8] security/keys/trusted-keys/trusted_tee.c:249:21: error: a parameter list without types is only allowed in a function definition
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git tee
head: b23555c4d773cde1cffd358609f89810549665f0
commit: b97a775c846a9d1d9558383d43c83b4127a55058 [6/8] KEYS: trusted: Introduce TEE based Trusted Keys
config: mips-randconfig-r024-20210114 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6077d55381a6aa3e947ef7abdc36a7515c598c8a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/co...
git remote add jarkko-linux-tpmdd git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git
git fetch --no-tags jarkko-linux-tpmdd tee
git checkout b97a775c846a9d1d9558383d43c83b4127a55058
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> security/keys/trusted-keys/trusted_tee.c:249:1: warning: declaration specifier missing, defaulting to 'int'
MODULE_DEVICE_TABLE(tee, trusted_key_id_table);
^
int
>> security/keys/trusted-keys/trusted_tee.c:249:21: error: a parameter list without types is only allowed in a function definition
MODULE_DEVICE_TABLE(tee, trusted_key_id_table);
^
1 warning and 1 error generated.
vim +249 security/keys/trusted-keys/trusted_tee.c
243
244 static const struct tee_client_device_id trusted_key_id_table[] = {
245 {UUID_INIT(0xf04a0fe7, 0x1f5d, 0x4b9b,
246 0xab, 0xf7, 0x61, 0x9b, 0x85, 0xb4, 0xce, 0x8c)},
247 {}
248 };
> 249 MODULE_DEVICE_TABLE(tee, trusted_key_id_table);
250
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c:544:31: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 65f0d2414b7079556fbbcc070b3d1c9f9587606d
commit: dc1a9bf2c8169d9f607502162af1858a73a18cb8 octeontx2-pf: Add UDP segmentation offload support
date: 4 months ago
config: alpha-randconfig-s032-20210113 (attached as .config)
compiler: alpha-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
# apt-get install sparse
# sparse version: v0.6.3-208-g46a52ca4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout dc1a9bf2c8169d9f607502162af1858a73a18cb8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c:544:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] iplen @@ got restricted __be16 [usertype] @@
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c:544:31: sparse: expected unsigned short [usertype] iplen
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c:544:31: sparse: got restricted __be16 [usertype]
>> drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c:546:54: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] tot_len @@ got unsigned short [usertype] iplen @@
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c:546:54: sparse: expected restricted __be16 [usertype] tot_len
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c:546:54: sparse: got unsigned short [usertype] iplen
>> drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c:549:60: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] payload_len @@ got unsigned short [usertype] iplen @@
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c:549:60: sparse: expected restricted __be16 [usertype] payload_len
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c:549:60: sparse: got unsigned short [usertype] iplen
vim +544 drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
503
504 /* Add SQE extended header subdescriptor */
505 static void otx2_sqe_add_ext(struct otx2_nic *pfvf, struct otx2_snd_queue *sq,
506 struct sk_buff *skb, int *offset)
507 {
508 struct nix_sqe_ext_s *ext;
509
510 ext = (struct nix_sqe_ext_s *)(sq->sqe_base + *offset);
511 ext->subdc = NIX_SUBDC_EXT;
512 if (skb_shinfo(skb)->gso_size) {
513 ext->lso = 1;
514 ext->lso_sb = skb_transport_offset(skb) + tcp_hdrlen(skb);
515 ext->lso_mps = skb_shinfo(skb)->gso_size;
516
517 /* Only TSOv4 and TSOv6 GSO offloads are supported */
518 if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4) {
519 ext->lso_format = pfvf->hw.lso_tsov4_idx;
520
521 /* HW adds payload size to 'ip_hdr->tot_len' while
522 * sending TSO segment, hence set payload length
523 * in IP header of the packet to just header length.
524 */
525 ip_hdr(skb)->tot_len =
526 htons(ext->lso_sb - skb_network_offset(skb));
527 } else if (skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6) {
528 ext->lso_format = pfvf->hw.lso_tsov6_idx;
529
530 ipv6_hdr(skb)->payload_len =
531 htons(ext->lso_sb - skb_network_offset(skb));
532 } else if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) {
533 __be16 l3_proto = vlan_get_protocol(skb);
534 struct udphdr *udph = udp_hdr(skb);
535 u16 iplen;
536
537 ext->lso_sb = skb_transport_offset(skb) +
538 sizeof(struct udphdr);
539
540 /* HW adds payload size to length fields in IP and
541 * UDP headers while segmentation, hence adjust the
542 * lengths to just header sizes.
543 */
> 544 iplen = htons(ext->lso_sb - skb_network_offset(skb));
545 if (l3_proto == htons(ETH_P_IP)) {
> 546 ip_hdr(skb)->tot_len = iplen;
547 ext->lso_format = pfvf->hw.lso_udpv4_idx;
548 } else {
> 549 ipv6_hdr(skb)->payload_len = iplen;
550 ext->lso_format = pfvf->hw.lso_udpv6_idx;
551 }
552
553 udph->len = htons(sizeof(struct udphdr));
554 }
555 } else if (skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP) {
556 ext->tstmp = 1;
557 }
558
559 *offset += sizeof(*ext);
560 }
561
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[ti:ti-linux-5.4.y 8676/12984] net/core/sock.c:3092:28: error: 'SCM_REDUNDANT' undeclared
by kernel test robot
Hi WingMan,
FYI, the error/warning still remains.
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.4.y
head: c02b2da68c63deb35dc5a7c1b0bbc68e4ee38632
commit: 37ab3ad1acdc652a6694e6f45e67767a8a80592b [8676/12984] net: socket: pass on redundant net info to sock_recv_errqueue
config: mips-randconfig-r011-20210113 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-linux-5.4.y
git checkout 37ab3ad1acdc652a6694e6f45e67767a8a80592b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/net/inet_sock.h:22,
from include/net/ip.h:27,
from include/linux/errqueue.h:6,
from net/core/sock.c:91:
include/net/sock.h: In function 'sock_recv_redundant_info':
include/net/sock.h:2457:29: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2457 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2457:29: note: each undeclared identifier is reported only once for each function it appears in
net/core/sock.c: In function 'sock_recv_errqueue':
>> net/core/sock.c:3092:28: error: 'SCM_REDUNDANT' undeclared (first use in this function)
3092 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
vim +/SCM_REDUNDANT +3092 net/core/sock.c
3066
3067 int sock_recv_errqueue(struct sock *sk, struct msghdr *msg, int len,
3068 int level, int type)
3069 {
3070 struct sock_exterr_skb *serr;
3071 struct sk_buff *skb;
3072 int copied, err;
3073 struct skb_redundant_info *sred;
3074
3075 err = -EAGAIN;
3076 skb = sock_dequeue_err_skb(sk);
3077 if (skb == NULL)
3078 goto out;
3079
3080 copied = skb->len;
3081 if (copied > len) {
3082 msg->msg_flags |= MSG_TRUNC;
3083 copied = len;
3084 }
3085 err = skb_copy_datagram_msg(skb, 0, msg, copied);
3086 if (err)
3087 goto out_free_skb;
3088
3089 sock_recv_timestamp(msg, sk, skb);
3090
3091 sred = skb_redinfo(skb);
> 3092 put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
3093
3094 serr = SKB_EXT_ERR(skb);
3095 put_cmsg(msg, level, type, sizeof(serr->ee), &serr->ee);
3096
3097 msg->msg_flags |= MSG_ERRQUEUE;
3098 err = copied;
3099
3100 out_free_skb:
3101 kfree_skb(skb);
3102 out:
3103 return err;
3104 }
3105 EXPORT_SYMBOL(sock_recv_errqueue);
3106
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH 2/3] i2c: qup: Introduce SCL/SDA noise rejection
by kernel test robot
Hi AngeloGioacchino,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on linux/master robh/for-next linus/master v5.11-rc3 next-20210113]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/AngeloGioacchino-Del-Regno/QCOM-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/a124c4d6bf942e45b63addcef97f56f2a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review AngeloGioacchino-Del-Regno/QCOM-QUP-I2C-Add-noise-rejection-convert-to-YAML/20210114-023032
git checkout a124c4d6bf942e45b63addcef97f56f2a8934fe8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/i2c/busses/i2c-qup.c: In function 'qup_i2c_probe':
>> drivers/i2c/busses/i2c-qup.c:1870:19: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
1870 | qup->clk_ctl |= FIELD_PREP(QUP_I2C_CLK_CTL_SCL_NR,
| ^~~~~~~~~~
cc1: some warnings being treated as errors
vim +/FIELD_PREP +1870 drivers/i2c/busses/i2c-qup.c
1658
1659 static int qup_i2c_probe(struct platform_device *pdev)
1660 {
1661 static const int blk_sizes[] = {4, 16, 32};
1662 struct qup_i2c_dev *qup;
1663 unsigned long one_bit_t;
1664 u32 io_mode, hw_ver, size;
1665 int ret, fs_div, hs_div;
1666 u32 src_clk_freq = DEFAULT_SRC_CLK;
1667 u32 clk_freq = DEFAULT_CLK_FREQ;
1668 u32 noise_reject_scl = 0, noise_reject_sda = 0;
1669 int blocks;
1670 bool is_qup_v1;
1671
1672 qup = devm_kzalloc(&pdev->dev, sizeof(*qup), GFP_KERNEL);
1673 if (!qup)
1674 return -ENOMEM;
1675
1676 qup->dev = &pdev->dev;
1677 init_completion(&qup->xfer);
1678 platform_set_drvdata(pdev, qup);
1679
1680 if (scl_freq) {
1681 dev_notice(qup->dev, "Using override frequency of %u\n", scl_freq);
1682 clk_freq = scl_freq;
1683 } else {
1684 ret = device_property_read_u32(qup->dev, "clock-frequency", &clk_freq);
1685 if (ret) {
1686 dev_notice(qup->dev, "using default clock-frequency %d",
1687 DEFAULT_CLK_FREQ);
1688 }
1689 }
1690
1691 if (of_device_is_compatible(pdev->dev.of_node, "qcom,i2c-qup-v1.1.1")) {
1692 qup->adap.algo = &qup_i2c_algo;
1693 qup->adap.quirks = &qup_i2c_quirks;
1694 is_qup_v1 = true;
1695 } else {
1696 qup->adap.algo = &qup_i2c_algo_v2;
1697 qup->adap.quirks = &qup_i2c_quirks_v2;
1698 is_qup_v1 = false;
1699 if (acpi_match_device(qup_i2c_acpi_match, qup->dev))
1700 goto nodma;
1701 else
1702 ret = qup_i2c_req_dma(qup);
1703
1704 if (ret == -EPROBE_DEFER)
1705 goto fail_dma;
1706 else if (ret != 0)
1707 goto nodma;
1708
1709 qup->max_xfer_sg_len = (MX_BLOCKS << 1);
1710 blocks = (MX_DMA_BLOCKS << 1) + 1;
1711 qup->btx.sg = devm_kcalloc(&pdev->dev,
1712 blocks, sizeof(*qup->btx.sg),
1713 GFP_KERNEL);
1714 if (!qup->btx.sg) {
1715 ret = -ENOMEM;
1716 goto fail_dma;
1717 }
1718 sg_init_table(qup->btx.sg, blocks);
1719
1720 qup->brx.sg = devm_kcalloc(&pdev->dev,
1721 blocks, sizeof(*qup->brx.sg),
1722 GFP_KERNEL);
1723 if (!qup->brx.sg) {
1724 ret = -ENOMEM;
1725 goto fail_dma;
1726 }
1727 sg_init_table(qup->brx.sg, blocks);
1728
1729 /* 2 tag bytes for each block + 5 for start, stop tags */
1730 size = blocks * 2 + 5;
1731
1732 qup->start_tag.start = devm_kzalloc(&pdev->dev,
1733 size, GFP_KERNEL);
1734 if (!qup->start_tag.start) {
1735 ret = -ENOMEM;
1736 goto fail_dma;
1737 }
1738
1739 qup->brx.tag.start = devm_kzalloc(&pdev->dev, 2, GFP_KERNEL);
1740 if (!qup->brx.tag.start) {
1741 ret = -ENOMEM;
1742 goto fail_dma;
1743 }
1744
1745 qup->btx.tag.start = devm_kzalloc(&pdev->dev, 2, GFP_KERNEL);
1746 if (!qup->btx.tag.start) {
1747 ret = -ENOMEM;
1748 goto fail_dma;
1749 }
1750 qup->is_dma = true;
1751 }
1752
1753 nodma:
1754 /* We support frequencies up to FAST Mode Plus (1MHz) */
1755 if (!clk_freq || clk_freq > I2C_MAX_FAST_MODE_PLUS_FREQ) {
1756 dev_err(qup->dev, "clock frequency not supported %d\n",
1757 clk_freq);
1758 return -EINVAL;
1759 }
1760
1761 qup->base = devm_platform_ioremap_resource(pdev, 0);
1762 if (IS_ERR(qup->base))
1763 return PTR_ERR(qup->base);
1764
1765 qup->irq = platform_get_irq(pdev, 0);
1766 if (qup->irq < 0)
1767 return qup->irq;
1768
1769 if (has_acpi_companion(qup->dev)) {
1770 ret = device_property_read_u32(qup->dev,
1771 "src-clock-hz", &src_clk_freq);
1772 if (ret) {
1773 dev_notice(qup->dev, "using default src-clock-hz %d",
1774 DEFAULT_SRC_CLK);
1775 }
1776 ACPI_COMPANION_SET(&qup->adap.dev, ACPI_COMPANION(qup->dev));
1777 } else {
1778 qup->clk = devm_clk_get(qup->dev, "core");
1779 if (IS_ERR(qup->clk)) {
1780 dev_err(qup->dev, "Could not get core clock\n");
1781 return PTR_ERR(qup->clk);
1782 }
1783
1784 qup->pclk = devm_clk_get(qup->dev, "iface");
1785 if (IS_ERR(qup->pclk)) {
1786 dev_err(qup->dev, "Could not get iface clock\n");
1787 return PTR_ERR(qup->pclk);
1788 }
1789 qup_i2c_enable_clocks(qup);
1790 src_clk_freq = clk_get_rate(qup->clk);
1791 }
1792
1793 /*
1794 * Bootloaders might leave a pending interrupt on certain QUP's,
1795 * so we reset the core before registering for interrupts.
1796 */
1797 writel(1, qup->base + QUP_SW_RESET);
1798 ret = qup_i2c_poll_state_valid(qup);
1799 if (ret)
1800 goto fail;
1801
1802 ret = devm_request_irq(qup->dev, qup->irq, qup_i2c_interrupt,
1803 IRQF_TRIGGER_HIGH, "i2c_qup", qup);
1804 if (ret) {
1805 dev_err(qup->dev, "Request %d IRQ failed\n", qup->irq);
1806 goto fail;
1807 }
1808 disable_irq(qup->irq);
1809
1810 hw_ver = readl(qup->base + QUP_HW_VERSION);
1811 dev_dbg(qup->dev, "Revision %x\n", hw_ver);
1812
1813 io_mode = readl(qup->base + QUP_IO_MODE);
1814
1815 /*
1816 * The block/fifo size w.r.t. 'actual data' is 1/2 due to 'tag'
1817 * associated with each byte written/received
1818 */
1819 size = QUP_OUTPUT_BLOCK_SIZE(io_mode);
1820 if (size >= ARRAY_SIZE(blk_sizes)) {
1821 ret = -EIO;
1822 goto fail;
1823 }
1824 qup->out_blk_sz = blk_sizes[size];
1825
1826 size = QUP_INPUT_BLOCK_SIZE(io_mode);
1827 if (size >= ARRAY_SIZE(blk_sizes)) {
1828 ret = -EIO;
1829 goto fail;
1830 }
1831 qup->in_blk_sz = blk_sizes[size];
1832
1833 if (is_qup_v1) {
1834 /*
1835 * in QUP v1, QUP_CONFIG uses N as 15 i.e 16 bits constitutes a
1836 * single transfer but the block size is in bytes so divide the
1837 * in_blk_sz and out_blk_sz by 2
1838 */
1839 qup->in_blk_sz /= 2;
1840 qup->out_blk_sz /= 2;
1841 qup->write_tx_fifo = qup_i2c_write_tx_fifo_v1;
1842 qup->read_rx_fifo = qup_i2c_read_rx_fifo_v1;
1843 qup->write_rx_tags = qup_i2c_write_rx_tags_v1;
1844 } else {
1845 qup->write_tx_fifo = qup_i2c_write_tx_fifo_v2;
1846 qup->read_rx_fifo = qup_i2c_read_rx_fifo_v2;
1847 qup->write_rx_tags = qup_i2c_write_rx_tags_v2;
1848 }
1849
1850 size = QUP_OUTPUT_FIFO_SIZE(io_mode);
1851 qup->out_fifo_sz = qup->out_blk_sz * (2 << size);
1852
1853 size = QUP_INPUT_FIFO_SIZE(io_mode);
1854 qup->in_fifo_sz = qup->in_blk_sz * (2 << size);
1855
1856 hs_div = 3;
1857 if (clk_freq <= I2C_MAX_STANDARD_MODE_FREQ) {
1858 fs_div = ((src_clk_freq / clk_freq) / 2) - 3;
1859 qup->clk_ctl = (hs_div << 8) | (fs_div & 0xff);
1860 } else {
1861 /* 33%/66% duty cycle */
1862 fs_div = ((src_clk_freq / clk_freq) - 6) * 2 / 3;
1863 qup->clk_ctl = ((fs_div / 2) << 16) | (hs_div << 8) | (fs_div & 0xff);
1864 }
1865
1866 /* SCL/SDA Noise rejection (optional) */
1867 ret = device_property_read_u32(qup->dev, "qcom,noise-reject-scl",
1868 &noise_reject_scl);
1869 if (ret == 0)
> 1870 qup->clk_ctl |= FIELD_PREP(QUP_I2C_CLK_CTL_SCL_NR,
1871 noise_reject_scl);
1872
1873 ret = device_property_read_u32(qup->dev, "qcom,noise-reject-sda",
1874 &noise_reject_sda);
1875 if (ret == 0)
1876 qup->clk_ctl |= FIELD_PREP(QUP_I2C_CLK_CTL_SDA_NR,
1877 noise_reject_sda);
1878
1879 /*
1880 * Time it takes for a byte to be clocked out on the bus.
1881 * Each byte takes 9 clock cycles (8 bits + 1 ack).
1882 */
1883 one_bit_t = (USEC_PER_SEC / clk_freq) + 1;
1884 qup->one_byte_t = one_bit_t * 9;
1885 qup->xfer_timeout = TOUT_MIN * HZ +
1886 usecs_to_jiffies(MX_DMA_TX_RX_LEN * qup->one_byte_t);
1887
1888 dev_dbg(qup->dev, "IN:block:%d, fifo:%d, OUT:block:%d, fifo:%d\n",
1889 qup->in_blk_sz, qup->in_fifo_sz,
1890 qup->out_blk_sz, qup->out_fifo_sz);
1891
1892 i2c_set_adapdata(&qup->adap, qup);
1893 qup->adap.dev.parent = qup->dev;
1894 qup->adap.dev.of_node = pdev->dev.of_node;
1895 qup->is_last = true;
1896
1897 strlcpy(qup->adap.name, "QUP I2C adapter", sizeof(qup->adap.name));
1898
1899 pm_runtime_set_autosuspend_delay(qup->dev, MSEC_PER_SEC);
1900 pm_runtime_use_autosuspend(qup->dev);
1901 pm_runtime_set_active(qup->dev);
1902 pm_runtime_enable(qup->dev);
1903
1904 ret = i2c_add_adapter(&qup->adap);
1905 if (ret)
1906 goto fail_runtime;
1907
1908 return 0;
1909
1910 fail_runtime:
1911 pm_runtime_disable(qup->dev);
1912 pm_runtime_set_suspended(qup->dev);
1913 fail:
1914 qup_i2c_disable_clocks(qup);
1915 fail_dma:
1916 if (qup->btx.dma)
1917 dma_release_channel(qup->btx.dma);
1918 if (qup->brx.dma)
1919 dma_release_channel(qup->brx.dma);
1920 return ret;
1921 }
1922
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months