[tip:WIP.x86/mm 32/33] percpu.c:undefined reference to `is_vmalloc_addr'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/mm
head: 7ccd25bd603f0d08a967467f8d676e2263382506
commit: 7acc8323e483d980de07ff2e4c4906cc3e77d59c [32/33] mm, x86/mm: Untangle address space layout definitions from basic pgtable type definitions
config: c6x-evmc6678_defconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 7acc8323e483d980de07ff2e4c4906cc3e77d59c
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=c6x
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/percpu.o: In function `per_cpu_ptr_to_phys':
>> percpu.c:(.text+0x2760): undefined reference to `is_vmalloc_addr'
block/bio.o: In function `bio_map_kern':
>> bio.c:(.text+0x2d88): undefined reference to `is_vmalloc_addr'
kernel/iomem.o: In function `memunmap':
>> iomem.c:(.text+0x14): undefined reference to `is_vmalloc_addr'
kernel/iomem.o: In function `devm_memremap_release':
iomem.c:(.text+0x30): undefined reference to `is_vmalloc_addr'
mm/util.o: In function `kvfree':
>> util.c:(.text+0x774): undefined reference to `is_vmalloc_addr'
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
[shenki:dev-5.4 99/146] drivers/misc/npcm7xx-lpc-bpc.c:105:22: sparse: sparse: invalid assignment: |=
by kbuild test robot
tree: https://github.com/shenki/linux dev-5.4
head: 4aac7e1097a45cbfb62aa563f5866a72bdc61483
commit: 5a05b9d688deefb88bc47f33bc34e2ef74bb3e97 [99/146] misc: npcm7xx-lpc-bpc: add NPCM7xx BIOS post code driver
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-81-g9b2efc1-dirty
git checkout 5a05b9d688deefb88bc47f33bc34e2ef74bb3e97
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/misc/npcm7xx-lpc-bpc.c:105:22: sparse: sparse: invalid assignment: |=
>> drivers/misc/npcm7xx-lpc-bpc.c:105:22: sparse: left side has type restricted __poll_t
>> drivers/misc/npcm7xx-lpc-bpc.c:105:22: sparse: right side has type int
drivers/misc/npcm7xx-lpc-bpc.c:108:22: sparse: sparse: invalid assignment: |=
drivers/misc/npcm7xx-lpc-bpc.c:108:22: sparse: left side has type restricted __poll_t
drivers/misc/npcm7xx-lpc-bpc.c:108:22: sparse: right side has type int
vim +105 drivers/misc/npcm7xx-lpc-bpc.c
96
97 static __poll_t npcm7xx_bpc_poll(struct file *file,
98 struct poll_table_struct *pt)
99 {
100 struct npcm7xx_bpc_channel *chan = npcm7xx_file_to_ch(file);
101 __poll_t mask = 0;
102
103 poll_wait(file, &chan->wq, pt);
104 if (!kfifo_is_empty(&chan->fifo))
> 105 mask |= POLLIN;
106
107 if (chan->host_reset) {
108 mask |= POLLHUP;
109 chan->host_reset = false;
110 }
111
112 return mask;
113 }
114
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
Re: [PATCH] nfsd: Ensure CLONE persists data and metadata changes to the target file
by kbuild test robot
Hi Trond,
I love your patch! Yet something to improve:
[auto build test ERROR on nfsd/nfsd-next]
[also build test ERROR on v5.4 next-20191128]
[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/Trond-Myklebust/nfsd-Ensure-CLON...
base: git://linux-nfs.org/~bfields/linux.git nfsd-next
config: parisc-defconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
fs//nfsd/vfs.c: In function 'nfsd4_clone_file_range':
>> fs//nfsd/vfs.c:540:5: error: 'commit_is_datasync' undeclared (first use in this function); did you mean 'commit_metadata'?
commit_is_datasync);
^~~~~~~~~~~~~~~~~~
commit_metadata
fs//nfsd/vfs.c:540:5: note: each undeclared identifier is reported only once for each function it appears in
vim +540 fs//nfsd/vfs.c
526
527 __be32 nfsd4_clone_file_range(struct file *src, u64 src_pos, struct file *dst,
528 u64 dst_pos, u64 count, bool sync)
529 {
530 loff_t cloned;
531
532 cloned = vfs_clone_file_range(src, src_pos, dst, dst_pos, count, 0);
533 if (cloned < 0)
534 return nfserrno(cloned);
535 if (count && cloned != count)
536 return nfserrno(-EINVAL);
537 if (sync) {
538 loff_t dst_end = count ? dst_pos + count - 1 : LLONG_MAX;
539 int status = vfs_fsync_range(dst, dst_pos, dst_end,
> 540 commit_is_datasync);
541 if (status < 0)
542 return nfserrno(status);
543 }
544 return 0;
545 }
546
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
[zen-kernel-zen-kernel:5.4/muqss 1/18] kernel/sched/MuQSS.c:6758:17: error: 'cpu_llc_shared_map' undeclared; did you mean 'sd_llc_shared'?
by kbuild test robot
tree: https://github.com/zen-kernel/zen-kernel 5.4/muqss
head: 3ca137b68d689fcb1c5cadad1416c7791d84d48e
commit: 7acac2e4000e75f3349106a8847cf1021651446b [1/18] MultiQueue Skiplist Scheduler v0.196.
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 7acac2e4000e75f3349106a8847cf1021651446b
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/asm-generic/percpu.h:7:0,
from arch/arm/include/asm/percpu.h:39,
from include/linux/percpu.h:13,
from include/linux/arch_topology.h:9,
from include/linux/topology.h:30,
from include/linux/gfp.h:9,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:18,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/clocksource.h:19,
from include/linux/clockchips.h:14,
from include/linux/tick.h:8,
from include/linux/sched/isolation.h:6,
from kernel/sched/MuQSS.c:35:
kernel/sched/MuQSS.c: In function 'llc_core_cpumask':
>> kernel/sched/MuQSS.c:6758:17: error: 'cpu_llc_shared_map' undeclared (first use in this function); did you mean 'sd_llc_shared'?
return per_cpu(cpu_llc_shared_map, cpu);
^
include/linux/percpu-defs.h:220:47: note: in definition of macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
include/linux/percpu-defs.h:270:29: note: in expansion of macro 'per_cpu_ptr'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^~~~~~~~~~~
kernel/sched/MuQSS.c:6758:9: note: in expansion of macro 'per_cpu'
return per_cpu(cpu_llc_shared_map, cpu);
^~~~~~~
kernel/sched/MuQSS.c:6758:17: note: each undeclared identifier is reported only once for each function it appears in
return per_cpu(cpu_llc_shared_map, cpu);
^
include/linux/percpu-defs.h:220:47: note: in definition of macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
include/linux/percpu-defs.h:270:29: note: in expansion of macro 'per_cpu_ptr'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^~~~~~~~~~~
kernel/sched/MuQSS.c:6758:9: note: in expansion of macro 'per_cpu'
return per_cpu(cpu_llc_shared_map, cpu);
^~~~~~~
kernel/sched/MuQSS.c: In function 'sched_init_smp':
kernel/sched/MuQSS.c:7071:85: error: 'cpu_llc_id' undeclared (first use in this function); did you mean 'sd_llc_id'?
printk(KERN_DEBUG "MuQSS CPU %d llc %d RQ order %d RQ %d llc %d\n", cpu, per_cpu(cpu_llc_id, cpu), i,
^
include/linux/percpu-defs.h:220:47: note: in definition of macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
include/linux/percpu-defs.h:270:29: note: in expansion of macro 'per_cpu_ptr'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^~~~~~~~~~~
kernel/sched/MuQSS.c:7071:77: note: in expansion of macro 'per_cpu'
printk(KERN_DEBUG "MuQSS CPU %d llc %d RQ order %d RQ %d llc %d\n", cpu, per_cpu(cpu_llc_id, cpu), i,
^~~~~~~
kernel/sched/MuQSS.c: In function 'llc_core_cpumask':
>> kernel/sched/MuQSS.c:6759:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +6758 kernel/sched/MuQSS.c
6723
6724 #if defined(CONFIG_SCHED_SMT) || defined(CONFIG_SCHED_MC)
6725 /*
6726 * Cheaper version of the below functions in case support for SMT and MC is
6727 * compiled in but CPUs have no siblings.
6728 */
6729 static bool sole_cpu_idle(struct rq *rq)
6730 {
6731 return rq_idle(rq);
6732 }
6733 #endif
6734 #ifdef CONFIG_SCHED_SMT
6735 static const cpumask_t *thread_cpumask(int cpu)
6736 {
6737 return topology_sibling_cpumask(cpu);
6738 }
6739 /* All this CPU's SMT siblings are idle */
6740 static bool siblings_cpu_idle(struct rq *rq)
6741 {
6742 return cpumask_subset(&rq->thread_mask, &cpu_idle_map);
6743 }
6744 #endif
6745 #ifdef CONFIG_SCHED_MC
6746 static const cpumask_t *core_cpumask(int cpu)
6747 {
6748 return topology_core_cpumask(cpu);
6749 }
6750 /* All this CPU's shared cache siblings are idle */
6751 static bool cache_cpu_idle(struct rq *rq)
6752 {
6753 return cpumask_subset(&rq->core_mask, &cpu_idle_map);
6754 }
6755 /* MC siblings CPU mask which share the same LLC */
6756 static const cpumask_t *llc_core_cpumask(int cpu)
6757 {
> 6758 return per_cpu(cpu_llc_shared_map, cpu);
> 6759 }
6760 #endif
6761
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
Re: [PATCH 03/10] EDAC: Store error type in struct edac_raw_error_desc
by kbuild test robot
Hi Robert,
I love your patch! Perhaps something to improve:
[auto build test WARNING on ras/edac-for-next]
[also build test WARNING on next-20191128]
[cannot apply to v5.4]
[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/Robert-Richter/EDAC-Rework-core-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git edac-for-next
reproduce: make htmldocs
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
Warning: The Sphinx 'sphinx_rtd_theme' HTML theme was not found. Make sure you have the theme installed to produce pretty HTML output. Falling back to the default theme.
WARNING: dot(1) not found, for better output quality install graphviz from http://www.graphviz.org
WARNING: convert(1) not found, for SVG to PDF conversion install ImageMagick (https://www.imagemagick.org)
>> include/linux/edac.h:475: warning: Function parameter or member 'type' not described in 'edac_raw_error_desc'
include/linux/regulator/machine.h:196: warning: Function parameter or member 'max_uV_step' not described in 'regulation_constraints'
include/linux/regulator/driver.h:223: warning: Function parameter or member 'resume' not described in 'regulator_ops'
Error: Cannot open file drivers/dma-buf/reservation.c
Error: Cannot open file drivers/dma-buf/reservation.c
Error: Cannot open file drivers/dma-buf/reservation.c
Error: Cannot open file include/linux/reservation.h
Error: Cannot open file include/linux/reservation.h
include/linux/spi/spi.h:190: warning: Function parameter or member 'driver_override' not described in 'spi_device'
include/linux/lsm_hooks.h:1822: warning: Function parameter or member 'quotactl' not described in 'security_list_options'
include/linux/lsm_hooks.h:1822: warning: Function parameter or member 'quota_on' not described in 'security_list_options'
include/linux/lsm_hooks.h:1822: warning: Function parameter or member 'sb_free_mnt_opts' not described in 'security_list_options'
include/linux/lsm_hooks.h:1822: warning: Function parameter or member 'sb_eat_lsm_opts' not described in 'security_list_options'
include/linux/lsm_hooks.h:1822: warning: Function parameter or member 'sb_kern_mount' not described in 'security_list_options'
include/linux/lsm_hooks.h:1822: warning: Function parameter or member 'sb_show_options' not described in 'security_list_options'
include/linux/lsm_hooks.h:1822: warning: Function parameter or member 'sb_add_mnt_opt' not described in 'security_list_options'
include/linux/lsm_hooks.h:1822: warning: Function parameter or member 'd_instantiate' not described in 'security_list_options'
include/linux/lsm_hooks.h:1822: warning: Function parameter or member 'getprocattr' not described in 'security_list_options'
include/linux/lsm_hooks.h:1822: warning: Function parameter or member 'setprocattr' not described in 'security_list_options'
include/linux/lsm_hooks.h:1822: warning: Function parameter or member 'locked_down' not described in 'security_list_options'
lib/genalloc.c:1: warning: 'gen_pool_add_virt' not found
lib/genalloc.c:1: warning: 'gen_pool_alloc' not found
lib/genalloc.c:1: warning: 'gen_pool_free' not found
lib/genalloc.c:1: warning: 'gen_pool_alloc_algo' not found
drivers/usb/typec/bus.c:1: warning: 'typec_altmode_register_driver' not found
drivers/usb/typec/bus.c:1: warning: 'typec_altmode_unregister_driver' not found
drivers/usb/typec/class.c:1: warning: 'typec_altmode_register_notifier' not found
drivers/usb/typec/class.c:1: warning: 'typec_altmode_unregister_notifier' not found
include/linux/w1.h:277: warning: Function parameter or member 'of_match_table' not described in 'w1_family'
drivers/gpio/gpiolib-of.c:92: warning: Excess function parameter 'dev' description in 'of_gpio_need_valid_mask'
include/linux/i2c.h:337: warning: Function parameter or member 'init_irq' not described in 'i2c_client'
kernel/dma/coherent.c:1: warning: no structured comments found
include/linux/input/sparse-keymap.h:43: warning: Function parameter or member 'sw' not described in 'key_entry'
fs/fs-writeback.c:913: warning: Excess function parameter 'nr_pages' description in 'cgroup_writeback_by_id'
fs/direct-io.c:258: warning: Excess function parameter 'offset' description in 'dio_complete'
fs/libfs.c:496: warning: Excess function parameter 'available' description in 'simple_write_end'
fs/posix_acl.c:647: warning: Function parameter or member 'inode' not described in 'posix_acl_update_mode'
fs/posix_acl.c:647: warning: Function parameter or member 'mode_p' not described in 'posix_acl_update_mode'
fs/posix_acl.c:647: warning: Function parameter or member 'acl' not described in 'posix_acl_update_mode'
include/linux/skbuff.h:888: warning: Function parameter or member 'dev_scratch' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'list' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'ip_defrag_offset' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'skb_mstamp_ns' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member '__cloned_offset' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'head_frag' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member '__pkt_type_offset' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'encapsulation' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'encap_hdr_csum' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'csum_valid' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member '__pkt_vlan_present_offset' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'vlan_present' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'csum_complete_sw' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'csum_level' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'inner_protocol_type' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'remcsum_offload' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'sender_cpu' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'reserved_tailroom' not described in 'sk_buff'
include/linux/skbuff.h:888: warning: Function parameter or member 'inner_ipproto' not described in 'sk_buff'
include/net/sock.h:233: warning: Function parameter or member 'skc_addrpair' not described in 'sock_common'
include/net/sock.h:233: warning: Function parameter or member 'skc_portpair' not described in 'sock_common'
include/net/sock.h:233: warning: Function parameter or member 'skc_ipv6only' not described in 'sock_common'
include/net/sock.h:233: warning: Function parameter or member 'skc_net_refcnt' not described in 'sock_common'
include/net/sock.h:233: warning: Function parameter or member 'skc_v6_daddr' not described in 'sock_common'
include/net/sock.h:233: warning: Function parameter or member 'skc_v6_rcv_saddr' not described in 'sock_common'
include/net/sock.h:233: warning: Function parameter or member 'skc_cookie' not described in 'sock_common'
include/net/sock.h:233: warning: Function parameter or member 'skc_listener' not described in 'sock_common'
include/net/sock.h:233: warning: Function parameter or member 'skc_tw_dr' not described in 'sock_common'
include/net/sock.h:233: warning: Function parameter or member 'skc_rcv_wnd' not described in 'sock_common'
include/net/sock.h:233: warning: Function parameter or member 'skc_tw_rcv_nxt' not described in 'sock_common'
include/net/sock.h:515: warning: Function parameter or member 'sk_rx_skb_cache' not described in 'sock'
include/net/sock.h:515: warning: Function parameter or member 'sk_wq_raw' not described in 'sock'
include/net/sock.h:515: warning: Function parameter or member 'tcp_rtx_queue' not described in 'sock'
include/net/sock.h:515: warning: Function parameter or member 'sk_tx_skb_cache' not described in 'sock'
include/net/sock.h:515: warning: Function parameter or member 'sk_route_forced_caps' not described in 'sock'
include/net/sock.h:515: warning: Function parameter or member 'sk_txtime_report_errors' not described in 'sock'
include/net/sock.h:515: warning: Function parameter or member 'sk_validate_xmit_skb' not described in 'sock'
include/net/sock.h:515: warning: Function parameter or member 'sk_bpf_storage' not described in 'sock'
include/net/sock.h:2439: warning: Function parameter or member 'tcp_rx_skb_cache_key' not described in 'DECLARE_STATIC_KEY_FALSE'
include/net/sock.h:2439: warning: Excess function parameter 'sk' description in 'DECLARE_STATIC_KEY_FALSE'
include/net/sock.h:2439: warning: Excess function parameter 'skb' description in 'DECLARE_STATIC_KEY_FALSE'
include/linux/netdevice.h:2053: warning: Function parameter or member 'gso_partial_features' not described in 'net_device'
include/linux/netdevice.h:2053: warning: Function parameter or member 'l3mdev_ops' not described in 'net_device'
include/linux/netdevice.h:2053: warning: Function parameter or member 'xfrmdev_ops' not described in 'net_device'
include/linux/netdevice.h:2053: warning: Function parameter or member 'tlsdev_ops' not described in 'net_device'
include/linux/netdevice.h:2053: warning: Function parameter or member 'name_assign_type' not described in 'net_device'
include/linux/netdevice.h:2053: warning: Function parameter or member 'ieee802154_ptr' not described in 'net_device'
include/linux/netdevice.h:2053: warning: Function parameter or member 'mpls_ptr' not described in 'net_device'
include/linux/netdevice.h:2053: warning: Function parameter or member 'xdp_prog' not described in 'net_device'
include/linux/netdevice.h:2053: warning: Function parameter or member 'gro_flush_timeout' not described in 'net_device'
include/linux/netdevice.h:2053: warning: Function parameter or member 'nf_hooks_ingress' not described in 'net_device'
include/linux/netdevice.h:2053: warning: Function parameter or member '____cacheline_aligned_in_smp' not described in 'net_device'
include/linux/netdevice.h:2053: warning: Function parameter or member 'qdisc_hash' not described in 'net_device'
include/linux/netdevice.h:2053: warning: Function parameter or member 'xps_cpus_map' not described in 'net_device'
include/linux/netdevice.h:2053: warning: Function parameter or member 'xps_rxqs_map' not described in 'net_device'
include/linux/phylink.h:56: warning: Function parameter or member '__ETHTOOL_DECLARE_LINK_MODE_MASK(advertising' not described in 'phylink_link_state'
include/linux/phylink.h:56: warning: Function parameter or member '__ETHTOOL_DECLARE_LINK_MODE_MASK(lp_advertising' not described in 'phylink_link_state'
drivers/net/phy/phylink.c:595: warning: Function parameter or member 'config' not described in 'phylink_create'
drivers/net/phy/phylink.c:595: warning: Excess function parameter 'ndev' description in 'phylink_create'
include/linux/bitmap.h:341: warning: Function parameter or member 'nbits' not described in 'bitmap_or_equal'
include/linux/rculist.h:374: warning: Excess function parameter 'cond' description in 'list_for_each_entry_rcu'
include/linux/rculist.h:651: warning: Excess function parameter 'cond' description in 'hlist_for_each_entry_rcu'
vim +475 include/linux/edac.h
ddeb3547d48234 Mauro Carvalho Chehab 2011-03-04 440
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 441 /**
e002075819d987 Mauro Carvalho Chehab 2016-10-28 442 * struct edac_raw_error_desc - Raw error report structure
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 443 * @grain: minimum granularity for an error report, in bytes
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 444 * @error_count: number of errors of the same type
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 445 * @top_layer: top layer of the error (layer[0])
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 446 * @mid_layer: middle layer of the error (layer[1])
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 447 * @low_layer: low layer of the error (layer[2])
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 448 * @page_frame_number: page where the error happened
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 449 * @offset_in_page: page offset
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 450 * @syndrome: syndrome of the error (or 0 if unknown or if
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 451 * the syndrome is not applicable)
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 452 * @msg: error message
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 453 * @location: location of the error
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 454 * @label: label of the affected DIMM(s)
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 455 * @other_detail: other driver-specific detail about the error
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 456 * @enable_per_layer_report: if false, the error affects all layers
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 457 * (typically, a memory controller error)
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 458 */
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 459 struct edac_raw_error_desc {
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 460 char location[LOCATION_SIZE];
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 461 char label[(EDAC_MC_LABEL_LEN + 1 + sizeof(OTHER_LABEL)) * EDAC_MAX_LABELS];
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 462 long grain;
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 463
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 464 u16 error_count;
d1d3068be3ed63 Robert Richter 2019-11-27 465 enum hw_event_mc_err_type type;
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 466 int top_layer;
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 467 int mid_layer;
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 468 int low_layer;
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 469 unsigned long page_frame_number;
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 470 unsigned long offset_in_page;
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 471 unsigned long syndrome;
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 472 const char *msg;
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 473 const char *other_detail;
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 474 bool enable_per_layer_report;
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 @475 };
c7ef7645544131 Mauro Carvalho Chehab 2013-02-21 476
:::::: The code at line 475 was first introduced by commit
:::::: c7ef7645544131b0750478d1cf94cdfa945c809d edac: reduce stack pressure by using a pre-allocated buffer
:::::: TO: Mauro Carvalho Chehab <mchehab(a)redhat.com>
:::::: CC: Mauro Carvalho Chehab <mchehab(a)redhat.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
[shenki:dev-5.4 99/146] drivers/misc/npcm7xx-lpc-bpc.c:105:22: sparse: sparse: invalid assignment: |=
by kbuild test robot
tree: https://github.com/shenki/linux dev-5.4
head: 4aac7e1097a45cbfb62aa563f5866a72bdc61483
commit: 5a05b9d688deefb88bc47f33bc34e2ef74bb3e97 [99/146] misc: npcm7xx-lpc-bpc: add NPCM7xx BIOS post code driver
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-39-gd06e1d2-dirty
git checkout 5a05b9d688deefb88bc47f33bc34e2ef74bb3e97
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/misc/npcm7xx-lpc-bpc.c:105:22: sparse: sparse: invalid assignment: |=
>> drivers/misc/npcm7xx-lpc-bpc.c:105:22: sparse: left side has type restricted __poll_t
>> drivers/misc/npcm7xx-lpc-bpc.c:105:22: sparse: right side has type int
drivers/misc/npcm7xx-lpc-bpc.c:108:22: sparse: sparse: invalid assignment: |=
drivers/misc/npcm7xx-lpc-bpc.c:108:22: sparse: left side has type restricted __poll_t
drivers/misc/npcm7xx-lpc-bpc.c:108:22: sparse: right side has type int
vim +105 drivers/misc/npcm7xx-lpc-bpc.c
96
97 static __poll_t npcm7xx_bpc_poll(struct file *file,
98 struct poll_table_struct *pt)
99 {
100 struct npcm7xx_bpc_channel *chan = npcm7xx_file_to_ch(file);
101 __poll_t mask = 0;
102
103 poll_wait(file, &chan->wq, pt);
104 if (!kfifo_is_empty(&chan->fifo))
> 105 mask |= POLLIN;
106
107 if (chan->host_reset) {
108 mask |= POLLHUP;
109 chan->host_reset = false;
110 }
111
112 return mask;
113 }
114
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
Re: [PATCH 08/13] video: fbdev: make fbops member of struct fb_info a const pointer
by kbuild test robot
Hi Jani,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v5.4 next-20191127]
[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/Jani-Nikula/video-drm-constify-f...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/udl/udl_fb.c: In function 'udl_fb_release':
>> drivers/gpu/drm/udl/udl_fb.c:256:24: error: assignment of member 'fb_mmap' in read-only object
info->fbops->fb_mmap = udl_fb_mmap;
^
vim +/fb_mmap +256 drivers/gpu/drm/udl/udl_fb.c
5320918b9a8786 Dave Airlie 2010-12-15 240
5320918b9a8786 Dave Airlie 2010-12-15 241
5320918b9a8786 Dave Airlie 2010-12-15 242 /*
5320918b9a8786 Dave Airlie 2010-12-15 243 * Assumes caller is holding info->lock mutex (for open and release at least)
5320918b9a8786 Dave Airlie 2010-12-15 244 */
5320918b9a8786 Dave Airlie 2010-12-15 245 static int udl_fb_release(struct fb_info *info, int user)
5320918b9a8786 Dave Airlie 2010-12-15 246 {
5320918b9a8786 Dave Airlie 2010-12-15 247 struct udl_fbdev *ufbdev = info->par;
5320918b9a8786 Dave Airlie 2010-12-15 248
5320918b9a8786 Dave Airlie 2010-12-15 249 ufbdev->fb_count--;
5320918b9a8786 Dave Airlie 2010-12-15 250
2b721f20770ccb Daniel Vetter 2016-08-10 251 #ifdef CONFIG_DRM_FBDEV_EMULATION
5320918b9a8786 Dave Airlie 2010-12-15 252 if ((ufbdev->fb_count == 0) && (info->fbdefio)) {
5320918b9a8786 Dave Airlie 2010-12-15 253 fb_deferred_io_cleanup(info);
5320918b9a8786 Dave Airlie 2010-12-15 254 kfree(info->fbdefio);
5320918b9a8786 Dave Airlie 2010-12-15 255 info->fbdefio = NULL;
5320918b9a8786 Dave Airlie 2010-12-15 @256 info->fbops->fb_mmap = udl_fb_mmap;
5320918b9a8786 Dave Airlie 2010-12-15 257 }
2b721f20770ccb Daniel Vetter 2016-08-10 258 #endif
5320918b9a8786 Dave Airlie 2010-12-15 259
90991209837ab6 Mikulas Patocka 2018-06-03 260 pr_debug("released /dev/fb%d user=%d count=%d\n",
5320918b9a8786 Dave Airlie 2010-12-15 261 info->node, user, ufbdev->fb_count);
5320918b9a8786 Dave Airlie 2010-12-15 262
5320918b9a8786 Dave Airlie 2010-12-15 263 return 0;
5320918b9a8786 Dave Airlie 2010-12-15 264 }
5320918b9a8786 Dave Airlie 2010-12-15 265
:::::: The code at line 256 was first introduced by commit
:::::: 5320918b9a87865223fd6b228e530bf30bc64d9d drm/udl: initial UDL driver (v4)
:::::: TO: Dave Airlie <airlied(a)gmail.com>
:::::: CC: Dave Airlie <airlied(a)redhat.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
Re: [PATCH 2/3] drm/hibmc: Use drm_gem_fb_create
by kbuild test robot
Hi Daniel,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v5.4 next-20191127]
[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/Daniel-Vetter/drm-rockchip-Use-d...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: arm64-randconfig-a001-20191128 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c: In function 'hibmc_plane_atomic_update':
>> drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c:107:28: error: 'fb' undeclared (first use in this function); did you mean 'mb'?
gbo = drm_gem_vram_of_gem(fb->obj[0]);
^~
mb
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c:107:28: note: each undeclared identifier is reported only once for each function it appears in
--
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c: In function 'hibmc_drm_fb_create':
>> drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c:119:37: error: 'struct drm_framebuffer' has no member named 'fb'
hi_fbdev->helper.fb = &hi_fbdev->fb->fb;
^~
vim +107 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c
93
94 static void hibmc_plane_atomic_update(struct drm_plane *plane,
95 struct drm_plane_state *old_state)
96 {
97 struct drm_plane_state *state = plane->state;
98 u32 reg;
99 s64 gpu_addr = 0;
100 unsigned int line_l;
101 struct hibmc_drm_private *priv = plane->dev->dev_private;
102 struct drm_gem_vram_object *gbo;
103
104 if (!state->fb)
105 return;
106
> 107 gbo = drm_gem_vram_of_gem(fb->obj[0]);
108
109 gpu_addr = drm_gem_vram_offset(gbo);
110 if (WARN_ON_ONCE(gpu_addr < 0))
111 return; /* Bug: we didn't pin the BO to VRAM in prepare_fb. */
112
113 writel(gpu_addr, priv->mmio + HIBMC_CRT_FB_ADDRESS);
114
115 reg = state->fb->width * (state->fb->format->cpp[0]);
116 /* now line_pad is 16 */
117 reg = PADDING(16, reg);
118
119 line_l = state->fb->width * state->fb->format->cpp[0];
120 line_l = PADDING(16, line_l);
121 writel(HIBMC_FIELD(HIBMC_CRT_FB_WIDTH_WIDTH, reg) |
122 HIBMC_FIELD(HIBMC_CRT_FB_WIDTH_OFFS, line_l),
123 priv->mmio + HIBMC_CRT_FB_WIDTH);
124
125 /* SET PIXEL FORMAT */
126 reg = readl(priv->mmio + HIBMC_CRT_DISP_CTL);
127 reg &= ~HIBMC_CRT_DISP_CTL_FORMAT_MASK;
128 reg |= HIBMC_FIELD(HIBMC_CRT_DISP_CTL_FORMAT,
129 state->fb->format->cpp[0] * 8 / 16);
130 writel(reg, priv->mmio + HIBMC_CRT_DISP_CTL);
131 }
132
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
drivers/bus/fsl-mc/fsl-mc-bus.c:718:9: warning: missing braces around initializer
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 95f1fa9e3418d50ce099e67280b5497b9c93843b
commit: 1ac210d128ef6e92698dd3aa4e2e03e831bc9906 bus: fsl-mc: add the fsl_mc_get_endpoint function
date: 4 weeks ago
config: i386-randconfig-a001-20191126 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
git checkout 1ac210d128ef6e92698dd3aa4e2e03e831bc9906
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/bus/fsl-mc/fsl-mc-bus.c: In function 'fsl_mc_get_endpoint':
>> drivers/bus/fsl-mc/fsl-mc-bus.c:718:9: warning: missing braces around initializer [-Wmissing-braces]
struct fsl_mc_obj_desc endpoint_desc = { 0 };
^
drivers/bus/fsl-mc/fsl-mc-bus.c:718:9: warning: (near initialization for 'endpoint_desc.type') [-Wmissing-braces]
drivers/bus/fsl-mc/fsl-mc-bus.c:719:9: warning: missing braces around initializer [-Wmissing-braces]
struct dprc_endpoint endpoint1 = { 0 };
^
drivers/bus/fsl-mc/fsl-mc-bus.c:719:9: warning: (near initialization for 'endpoint1.type') [-Wmissing-braces]
drivers/bus/fsl-mc/fsl-mc-bus.c:720:9: warning: missing braces around initializer [-Wmissing-braces]
struct dprc_endpoint endpoint2 = { 0 };
^
drivers/bus/fsl-mc/fsl-mc-bus.c:720:9: warning: (near initialization for 'endpoint2.type') [-Wmissing-braces]
vim +718 drivers/bus/fsl-mc/fsl-mc-bus.c
714
715 struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev)
716 {
717 struct fsl_mc_device *mc_bus_dev, *endpoint;
> 718 struct fsl_mc_obj_desc endpoint_desc = { 0 };
719 struct dprc_endpoint endpoint1 = { 0 };
720 struct dprc_endpoint endpoint2 = { 0 };
721 int state, err;
722
723 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent);
724 strcpy(endpoint1.type, mc_dev->obj_desc.type);
725 endpoint1.id = mc_dev->obj_desc.id;
726
727 err = dprc_get_connection(mc_bus_dev->mc_io, 0,
728 mc_bus_dev->mc_handle,
729 &endpoint1, &endpoint2,
730 &state);
731
732 if (err == -ENOTCONN || state == -1)
733 return ERR_PTR(-ENOTCONN);
734
735 if (err < 0) {
736 dev_err(&mc_bus_dev->dev, "dprc_get_connection() = %d\n", err);
737 return ERR_PTR(err);
738 }
739
740 strcpy(endpoint_desc.type, endpoint2.type);
741 endpoint_desc.id = endpoint2.id;
742 endpoint = fsl_mc_device_lookup(&endpoint_desc, mc_bus_dev);
743
744 return endpoint;
745 }
746 EXPORT_SYMBOL_GPL(fsl_mc_get_endpoint);
747
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
[linux-next:master 14002/14187] fs/io_uring.c:2582:2: warning: argument 2 null where non-null expected
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 1875ff320f14afe21731a6e4c7b46dd33e45dfaa
commit: e944475e69849273ca8f1fe04a3ce81b5901d165 [14002/14187] io_uring: make poll->wait dynamically allocated
config: arc-defconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout e944475e69849273ca8f1fe04a3ce81b5901d165
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
fs/io_uring.c: In function 'io_link_timeout_fn':
>> fs/io_uring.c:2582:2: warning: argument 2 null where non-null expected [-Wnonnull]
io_put_req_find_next(req, nxt);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/io_uring.c:998:13: note: in a call to function 'io_put_req_find_next' declared here
static void io_put_req_find_next(struct io_kiocb *req, struct io_kiocb **nxtptr)
^~~~~~~~~~~~~~~~~~~~
vim +2582 fs/io_uring.c
e977d6d34f0c08 Jens Axboe 2019-11-05 2553
47f467686ec02f Jens Axboe 2019-11-09 2554 static void io_async_find_and_cancel(struct io_ring_ctx *ctx,
47f467686ec02f Jens Axboe 2019-11-09 2555 struct io_kiocb *req, __u64 sqe_addr,
b0dd8a412699af Jens Axboe 2019-11-18 2556 struct io_kiocb **nxt, int success_ret)
47f467686ec02f Jens Axboe 2019-11-09 2557 {
47f467686ec02f Jens Axboe 2019-11-09 2558 unsigned long flags;
47f467686ec02f Jens Axboe 2019-11-09 2559 int ret;
47f467686ec02f Jens Axboe 2019-11-09 2560
47f467686ec02f Jens Axboe 2019-11-09 2561 ret = io_async_cancel_one(ctx, (void *) (unsigned long) sqe_addr);
47f467686ec02f Jens Axboe 2019-11-09 2562 if (ret != -ENOENT) {
47f467686ec02f Jens Axboe 2019-11-09 2563 spin_lock_irqsave(&ctx->completion_lock, flags);
47f467686ec02f Jens Axboe 2019-11-09 2564 goto done;
47f467686ec02f Jens Axboe 2019-11-09 2565 }
47f467686ec02f Jens Axboe 2019-11-09 2566
47f467686ec02f Jens Axboe 2019-11-09 2567 spin_lock_irqsave(&ctx->completion_lock, flags);
47f467686ec02f Jens Axboe 2019-11-09 2568 ret = io_timeout_cancel(ctx, sqe_addr);
47f467686ec02f Jens Axboe 2019-11-09 2569 if (ret != -ENOENT)
47f467686ec02f Jens Axboe 2019-11-09 2570 goto done;
47f467686ec02f Jens Axboe 2019-11-09 2571 ret = io_poll_cancel(ctx, sqe_addr);
47f467686ec02f Jens Axboe 2019-11-09 2572 done:
b0dd8a412699af Jens Axboe 2019-11-18 2573 if (!ret)
b0dd8a412699af Jens Axboe 2019-11-18 2574 ret = success_ret;
47f467686ec02f Jens Axboe 2019-11-09 2575 io_cqring_fill_event(req, ret);
47f467686ec02f Jens Axboe 2019-11-09 2576 io_commit_cqring(ctx);
47f467686ec02f Jens Axboe 2019-11-09 2577 spin_unlock_irqrestore(&ctx->completion_lock, flags);
47f467686ec02f Jens Axboe 2019-11-09 2578 io_cqring_ev_posted(ctx);
47f467686ec02f Jens Axboe 2019-11-09 2579
47f467686ec02f Jens Axboe 2019-11-09 2580 if (ret < 0 && (req->flags & REQ_F_LINK))
47f467686ec02f Jens Axboe 2019-11-09 2581 req->flags |= REQ_F_FAIL_LINK;
47f467686ec02f Jens Axboe 2019-11-09 @2582 io_put_req_find_next(req, nxt);
47f467686ec02f Jens Axboe 2019-11-09 2583 }
47f467686ec02f Jens Axboe 2019-11-09 2584
:::::: The code at line 2582 was first introduced by commit
:::::: 47f467686ec02fc07fd5c6bb34b6f6736e2884b0 io_uring: make ASYNC_CANCEL work with poll and timeout
:::::: TO: Jens Axboe <axboe(a)kernel.dk>
:::::: CC: Jens Axboe <axboe(a)kernel.dk>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months