[tobetter-linux:odroid-5.13.y 61/93] drivers/power/reset/odroid-reboot.c:63:6: warning: no previous prototype for 'odroid_card_reset'
by kernel test robot
tree: https://github.com/tobetter/linux odroid-5.13.y
head: ec41beb389cd0d7ab68345d550334d44842a2cb1
commit: cec1e2aeb12d30c8811e2523a272900a1e8d7496 [61/93] ODROID-COMMON: power:reset: Add odroid support
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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/tobetter/linux/commit/cec1e2aeb12d30c8811e2523a272900a...
git remote add tobetter-linux https://github.com/tobetter/linux
git fetch --no-tags tobetter-linux odroid-5.13.y
git checkout cec1e2aeb12d30c8811e2523a272900a1e8d7496
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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/power/reset/odroid-reboot.c:63:6: warning: no previous prototype for 'odroid_card_reset' [-Wmissing-prototypes]
63 | void odroid_card_reset(void)
| ^~~~~~~~~~~~~~~~~
vim +/odroid_card_reset +63 drivers/power/reset/odroid-reboot.c
62
> 63 void odroid_card_reset(void)
64 {
65 int ret = 0;
66
67 if ((sd_vqsw == 0) && (sd_vmmc == 0))
68 return;
69
70 if (sd_vqen == 0) {
71 gpio_free(sd_vqsw);
72 gpio_free(sd_vmmc);
73 ret = gpio_request_one(sd_vqsw,
74 GPIOF_OUT_INIT_LOW, "REBOOT");
75 CHECK_RET(ret);
76 mdelay(10);
77 ret = gpio_direction_output(sd_vqsw, 1);
78 CHECK_RET(ret);
79 ret = gpio_request_one(sd_vmmc,
80 GPIOF_OUT_INIT_LOW, "REBOOT");
81 CHECK_RET(ret);
82 mdelay(10);
83 ret = gpio_direction_output(sd_vqsw, 0);
84 CHECK_RET(ret);
85 ret = gpio_direction_output(sd_vmmc, 1);
86 CHECK_RET(ret);
87 mdelay(5);
88 gpio_free(sd_vqsw);
89 gpio_free(sd_vmmc);
90 } else {
91 gpio_free(sd_vqsw);
92 gpio_free(sd_vqen);
93 gpio_free(sd_vmmc);
94
95 ret = gpio_request_one(sd_vqsw,
96 GPIOF_OUT_INIT_LOW, "REBOOT");
97 CHECK_RET(ret);
98 ret = gpio_request_one(sd_vqen,
99 GPIOF_OUT_INIT_LOW, "REBOOT");
100 CHECK_RET(ret);
101 ret = gpio_request_one(sd_vmmc,
102 GPIOF_OUT_INIT_LOW, "REBOOT");
103 CHECK_RET(ret);
104 mdelay(100);
105 ret = gpio_direction_input(sd_vqen);
106 CHECK_RET(ret);
107 ret = gpio_direction_input(sd_vmmc);
108 CHECK_RET(ret);
109 ret = gpio_direction_input(sd_vqsw);
110 CHECK_RET(ret);
111 mdelay(5);
112 gpio_free(sd_vqen);
113 gpio_free(sd_vmmc);
114 gpio_free(sd_vqsw);
115 }
116 }
117
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[luto:sched/lazymm 9/10] arch/x86/events/core.c:2780:8: error: implicit declaration of function 'nmi_uaccess_ok'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git sched/lazymm
head: ecc3992c36cb88087df9c537e2326efb51c95e31
commit: 1211e1eda2ec9d4ed78a480d8a795dce3312f80c [9/10] x86/events, x86/insn-eval: Remove incorrect active_mm references
config: x86_64-randconfig-b001-20210617 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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/luto/linux.git/commit/?id...
git remote add luto https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git
git fetch --no-tags luto sched/lazymm
git checkout 1211e1eda2ec9d4ed78a480d8a795dce3312f80c
# 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 errors (new ones prefixed by >>):
>> arch/x86/events/core.c:2780:8: error: implicit declaration of function 'nmi_uaccess_ok' [-Werror,-Wimplicit-function-declaration]
if (!nmi_uaccess_ok())
^
arch/x86/events/core.c:2780:8: note: did you mean 'nmi_uaccess_okay'?
arch/x86/include/asm/tlbflush.h:159:6: note: 'nmi_uaccess_okay' declared here
bool nmi_uaccess_okay(void);
^
1 error generated.
--
>> arch/x86/lib/insn-eval.c:616:8: error: implicit declaration of function 'nmi_uaccess_ok' [-Werror,-Wimplicit-function-declaration]
if (!nmi_uaccess_ok())
^
arch/x86/lib/insn-eval.c:616:8: note: did you mean 'nmi_uaccess_okay'?
arch/x86/include/asm/tlbflush.h:159:6: note: 'nmi_uaccess_okay' declared here
bool nmi_uaccess_okay(void);
^
1 error generated.
vim +/nmi_uaccess_ok +2780 arch/x86/events/core.c
2766
2767 static unsigned long get_segment_base(unsigned int segment)
2768 {
2769 struct desc_struct *desc;
2770 unsigned int idx = segment >> 3;
2771
2772 if ((segment & SEGMENT_TI_MASK) == SEGMENT_LDT) {
2773 #ifdef CONFIG_MODIFY_LDT_SYSCALL
2774 struct ldt_struct *ldt;
2775
2776 /*
2777 * If we're not in a valid context with a real (not just lazy)
2778 * user mm, then don't even try.
2779 */
> 2780 if (!nmi_uaccess_ok())
2781 return 0;
2782
2783 /* IRQs are off, so this synchronizes with smp_store_release */
2784 ldt = READ_ONCE(current->mm->context.ldt);
2785 if (!ldt || idx >= ldt->nr_entries)
2786 return 0;
2787
2788 desc = &ldt->entries[idx];
2789 #else
2790 return 0;
2791 #endif
2792 } else {
2793 if (idx >= GDT_ENTRIES)
2794 return 0;
2795
2796 desc = raw_cpu_ptr(gdt_page.gdt) + idx;
2797 }
2798
2799 return get_desc_base(desc);
2800 }
2801
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[avpatel:riscv_aclint_v2 8/13] drivers/irqchip/irq-aclint-swi.c:165:48: error: too many arguments to function call, expected 2, have 3
by kernel test robot
tree: https://github.com/avpatel/linux.git riscv_aclint_v2
head: 7dfc87079d3bd32cf6acf24c246204ca31a109e2
commit: bb7ca6d293e66ae0019e3dbd94ea35e4dfbcbe79 [8/13] irqchip: Add ACLINT software interrupt driver
config: riscv-randconfig-r016-20210617 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/avpatel/linux/commit/bb7ca6d293e66ae0019e3dbd94ea35e4d...
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_aclint_v2
git checkout bb7ca6d293e66ae0019e3dbd94ea35e4dfbcbe79
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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/irqchip/irq-aclint-swi.c:165:48: error: too many arguments to function call, expected 2, have 3
riscv_ipi_set_virq_range(virq, BITS_PER_LONG, true);
~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
arch/riscv/include/asm/smp.h:113:20: note: 'riscv_ipi_set_virq_range' declared here
static inline void riscv_ipi_set_virq_range(int virq, int nr)
^
1 error generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +165 drivers/irqchip/irq-aclint-swi.c
147
148 static int __init aclint_swi_set_virq(void)
149 {
150 int virq;
151 struct irq_fwspec ipi = {
152 .fwnode = aclint_swi_domain->fwnode,
153 .param_count = 1,
154 .param[0] = 0,
155 };
156
157 virq = __irq_domain_alloc_irqs(aclint_swi_domain, -1, BITS_PER_LONG,
158 NUMA_NO_NODE, &ipi,
159 false, NULL);
160 if (virq <= 0) {
161 pr_err("unable to alloc IRQs from SBI IPI IRQ domain\n");
162 return -ENOMEM;
163 }
164
> 165 riscv_ipi_set_virq_range(virq, BITS_PER_LONG, true);
166
167 return 0;
168 }
169
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH 1/1] net: Allow all multicast packets to be received on a interface.
by kernel test robot
Hi Callum,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.13-rc6 next-20210617]
[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/Callum-Sinclair/Create-multicast...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 70585216fe7730d9fb5453d3e2804e149d0fe201
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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/4220b6837f4315ff557bd44f7aada23b6...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Callum-Sinclair/Create-multicast-snooping-sysctl-option/20210617-175212
git checkout 4220b6837f4315ff557bd44f7aada23b69e181b6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
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 net/ipv4/devinet.c:47:
net/ipv4/devinet.c: In function 'inet_netconf_fill_devconf':
>> include/linux/inetdevice.h:53:45: error: 'IPV4_DEVCONF_NETCONFA_MC_SNOOPING' undeclared (first use in this function); did you mean 'IPV4_DEVCONF_MC_SNOOPING'?
53 | #define IPV4_DEVCONF(cnf, attr) ((cnf).data[IPV4_DEVCONF_ ## attr - 1])
| ^~~~~~~~~~~~~
net/ipv4/devinet.c:2069:4: note: in expansion of macro 'IPV4_DEVCONF'
2069 | IPV4_DEVCONF(*devconf, NETCONFA_MC_SNOOPING)) < 0)
| ^~~~~~~~~~~~
include/linux/inetdevice.h:53:45: note: each undeclared identifier is reported only once for each function it appears in
53 | #define IPV4_DEVCONF(cnf, attr) ((cnf).data[IPV4_DEVCONF_ ## attr - 1])
| ^~~~~~~~~~~~~
net/ipv4/devinet.c:2069:4: note: in expansion of macro 'IPV4_DEVCONF'
2069 | IPV4_DEVCONF(*devconf, NETCONFA_MC_SNOOPING)) < 0)
| ^~~~~~~~~~~~
vim +53 include/linux/inetdevice.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 52
02291680ffba92 Eric W. Biederman 2010-02-14 @53 #define IPV4_DEVCONF(cnf, attr) ((cnf).data[IPV4_DEVCONF_ ## attr - 1])
586f12115264b7 Pavel Emelyanov 2007-12-16 54 #define IPV4_DEVCONF_ALL(net, attr) \
586f12115264b7 Pavel Emelyanov 2007-12-16 55 IPV4_DEVCONF((*(net)->ipv4.devconf_all), attr)
42f811b8bcdf66 Herbert Xu 2007-06-04 56
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[avpatel:riscv_aclint_v2 6/13] arch/riscv/kernel/sbi-ipi.c:156:48: error: too many arguments to function call, expected 2, have 3
by kernel test robot
tree: https://github.com/avpatel/linux.git riscv_aclint_v2
head: 7dfc87079d3bd32cf6acf24c246204ca31a109e2
commit: 1f552b2190b2e0b7ae50beb1b599756a2fcf498b [6/13] RISC-V: Allow marking IPIs as suitable for remote FENCEs
config: riscv-randconfig-r016-20210617 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/avpatel/linux/commit/1f552b2190b2e0b7ae50beb1b599756a2...
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_aclint_v2
git checkout 1f552b2190b2e0b7ae50beb1b599756a2fcf498b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 >>):
>> arch/riscv/kernel/sbi-ipi.c:156:48: error: too many arguments to function call, expected 2, have 3
riscv_ipi_set_virq_range(virq, BITS_PER_LONG, false);
~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~
arch/riscv/include/asm/smp.h:113:20: note: 'riscv_ipi_set_virq_range' declared here
static inline void riscv_ipi_set_virq_range(int virq, int nr)
^
1 error generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +156 arch/riscv/kernel/sbi-ipi.c
138
139 static int __init sbi_ipi_set_virq(void)
140 {
141 int virq;
142 struct irq_fwspec ipi = {
143 .fwnode = sbi_ipi_domain->fwnode,
144 .param_count = 1,
145 .param[0] = 0,
146 };
147
148 virq = __irq_domain_alloc_irqs(sbi_ipi_domain, -1, BITS_PER_LONG,
149 NUMA_NO_NODE, &ipi,
150 false, NULL);
151 if (virq <= 0) {
152 pr_err("unable to alloc IRQs from SBI IPI IRQ domain\n");
153 return -ENOMEM;
154 }
155
> 156 riscv_ipi_set_virq_range(virq, BITS_PER_LONG, false);
157
158 return 0;
159 }
160
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tobetter-linux:odroid-5.13.y 41/93] drivers/char/exynos-gpiomem.c:121:22: error: implicit declaration of function 'phys_mem_access_prot'; did you mean 'phys_mem_access_prot_allowed'?
by kernel test robot
tree: https://github.com/tobetter/linux odroid-5.13.y
head: 9adf6ead45ffd1911742d32baf84fa1b4eac04e3
commit: 4c6761c55d4f15337b88e29cb05834a753ddc506 [41/93] ODROID-XU4: char: exynos: add /dev/gpiomem device for rootless user GPIO access
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/tobetter/linux/commit/4c6761c55d4f15337b88e29cb05834a7...
git remote add tobetter-linux https://github.com/tobetter/linux
git fetch --no-tags tobetter-linux odroid-5.13.y
git checkout 4c6761c55d4f15337b88e29cb05834a753ddc506
# save the attached .config to linux build tree
make W=1 ARCH=um SUBARCH=x86_64
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/char/exynos-gpiomem.c: In function 'exynos_gpiomem_mmap':
>> drivers/char/exynos-gpiomem.c:121:22: error: implicit declaration of function 'phys_mem_access_prot'; did you mean 'phys_mem_access_prot_allowed'? [-Werror=implicit-function-declaration]
121 | vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
| ^~~~~~~~~~~~~~~~~~~~
| phys_mem_access_prot_allowed
>> drivers/char/exynos-gpiomem.c:121:22: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct <anonymous>'} from type 'int'
cc1: some warnings being treated as errors
vim +121 drivers/char/exynos-gpiomem.c
106
107 static int exynos_gpiomem_mmap(struct file *file, struct vm_area_struct *vma)
108 {
109 int gpio_area = 0;
110
111 while (gpio_area < inst->gpio_area_count) {
112 if ((inst->gpio_regs_phys[gpio_area] >> PAGE_SHIFT) == vma->vm_pgoff)
113 goto found;
114
115 gpio_area++;
116 }
117
118 return -EACCES;
119
120 found:
> 121 vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
122 PAGE_SIZE,
123 vma->vm_page_prot);
124
125 vma->vm_ops = &exynos_gpiomem_vm_ops;
126
127 if (remap_pfn_range(vma, vma->vm_start,
128 vma->vm_pgoff,
129 PAGE_SIZE,
130 vma->vm_page_prot)) {
131 return -EAGAIN;
132 }
133
134 return 0;
135 }
136
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months