[sashal-linux-stable:queue-5.4 139/241] drivers/usb/dwc2/core_intr.c:715:7: error: 'struct dwc2_hsotg' has no member named 'bus_suspended'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 876253994894857f5d099a55147612e4f036d1c3
commit: 480c290529e3c00e885c00bbb10a90914c3f05f2 [139/241] usb: dwc2: Fix hibernation between host and device modes.
config: mips-randconfig-p002-20210512 (attached as .config)
compiler: mips-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/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 480c290529e3c00e885c00bbb10a90914c3f05f2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 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 >>):
drivers/usb/dwc2/core_intr.c: In function 'dwc_handle_gpwrdn_disc_det':
>> drivers/usb/dwc2/core_intr.c:715:7: error: 'struct dwc2_hsotg' has no member named 'bus_suspended'
715 | hsotg->bus_suspended = 0;
| ^~
vim +715 drivers/usb/dwc2/core_intr.c
667
668 /**
669 * dwc_handle_gpwrdn_disc_det() - Handles the gpwrdn disconnect detect.
670 * Exits hibernation without restoring registers.
671 *
672 * @hsotg: Programming view of DWC_otg controller
673 * @gpwrdn: GPWRDN register
674 */
675 static inline void dwc_handle_gpwrdn_disc_det(struct dwc2_hsotg *hsotg,
676 u32 gpwrdn)
677 {
678 u32 gpwrdn_tmp;
679
680 /* Switch-on voltage to the core */
681 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
682 gpwrdn_tmp &= ~GPWRDN_PWRDNSWTCH;
683 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
684 udelay(5);
685
686 /* Reset core */
687 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
688 gpwrdn_tmp &= ~GPWRDN_PWRDNRSTN;
689 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
690 udelay(5);
691
692 /* Disable Power Down Clamp */
693 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
694 gpwrdn_tmp &= ~GPWRDN_PWRDNCLMP;
695 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
696 udelay(5);
697
698 /* Deassert reset core */
699 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
700 gpwrdn_tmp |= GPWRDN_PWRDNRSTN;
701 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
702 udelay(5);
703
704 /* Disable PMU interrupt */
705 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
706 gpwrdn_tmp &= ~GPWRDN_PMUINTSEL;
707 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
708
709 /* De-assert Wakeup Logic */
710 gpwrdn_tmp = dwc2_readl(hsotg, GPWRDN);
711 gpwrdn_tmp &= ~GPWRDN_PMUACTV;
712 dwc2_writel(hsotg, gpwrdn_tmp, GPWRDN);
713
714 hsotg->hibernated = 0;
> 715 hsotg->bus_suspended = 0;
716
717 if (gpwrdn & GPWRDN_IDSTS) {
718 hsotg->op_state = OTG_STATE_B_PERIPHERAL;
719 dwc2_core_init(hsotg, false);
720 dwc2_enable_global_interrupts(hsotg);
721 dwc2_hsotg_core_init_disconnected(hsotg, false);
722 dwc2_hsotg_core_connect(hsotg);
723 } else {
724 hsotg->op_state = OTG_STATE_A_HOST;
725
726 /* Initialize the Core for Host mode */
727 dwc2_core_init(hsotg, false);
728 dwc2_enable_global_interrupts(hsotg);
729 dwc2_hcd_start(hsotg);
730 }
731 }
732
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
arch/mips/loongson64/cop2-ex.c:97:29: error: 'struct thread_struct' has no member named 'fpu'
by kernel test robot
Hi Huacai,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 88b06399c9c766c283e070b022b5ceafa4f63f19
commit: f83e4f9896eff614d0f2547a561fa5f39f9cddde MIPS: Loongson-3: Add some unaligned instructions emulation
date: 1 year, 1 month ago
config: mips-randconfig-r013-20210512 (attached as .config)
compiler: mips64el-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 f83e4f9896eff614d0f2547a561fa5f39f9cddde
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 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 >>):
arch/mips/loongson64/cop2-ex.c: In function 'loongson_cu2_call':
arch/mips/loongson64/cop2-ex.c:44:15: error: implicit declaration of function '__is_fpu_owner'; did you mean 'is_fpu_owner'? [-Werror=implicit-function-declaration]
44 | fpu_owned = __is_fpu_owner();
| ^~~~~~~~~~~~~~
| is_fpu_owner
>> arch/mips/loongson64/cop2-ex.c:97:29: error: 'struct thread_struct' has no member named 'fpu'
97 | set_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:99:29: error: 'struct thread_struct' has no member named 'fpu'
99 | set_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:132:42: error: 'struct thread_struct' has no member named 'fpu'
132 | value_next = get_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:139:37: error: 'struct thread_struct' has no member named 'fpu'
139 | value = get_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:206:29: error: 'struct thread_struct' has no member named 'fpu'
206 | set_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:223:29: error: 'struct thread_struct' has no member named 'fpu'
223 | set_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:288:37: error: 'struct thread_struct' has no member named 'fpu'
288 | value = get_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:307:37: error: 'struct thread_struct' has no member named 'fpu'
307 | value = get_fpr64(current->thread.fpu.fpr,
| ^
cc1: some warnings being treated as errors
vim +97 arch/mips/loongson64/cop2-ex.c
26
27 static int loongson_cu2_call(struct notifier_block *nfb, unsigned long action,
28 void *data)
29 {
30 unsigned int res, fpu_owned;
31 unsigned long ra, value, value_next;
32 union mips_instruction insn;
33 int fr = !test_thread_flag(TIF_32BIT_FPREGS);
34 struct pt_regs *regs = (struct pt_regs *)data;
35 void __user *addr = (void __user *)regs->cp0_badvaddr;
36 unsigned int __user *pc = (unsigned int __user *)exception_epc(regs);
37
38 ra = regs->regs[31];
39 __get_user(insn.word, pc);
40
41 switch (action) {
42 case CU2_EXCEPTION:
43 preempt_disable();
44 fpu_owned = __is_fpu_owner();
45 if (!fr)
46 set_c0_status(ST0_CU1 | ST0_CU2);
47 else
48 set_c0_status(ST0_CU1 | ST0_CU2 | ST0_FR);
49 enable_fpu_hazard();
50 KSTK_STATUS(current) |= (ST0_CU1 | ST0_CU2);
51 if (fr)
52 KSTK_STATUS(current) |= ST0_FR;
53 else
54 KSTK_STATUS(current) &= ~ST0_FR;
55 /* If FPU is owned, we needn't init or restore fp */
56 if (!fpu_owned) {
57 set_thread_flag(TIF_USEDFPU);
58 init_fp_ctx(current);
59 _restore_fp(current);
60 }
61 preempt_enable();
62
63 return NOTIFY_STOP; /* Don't call default notifier */
64
65 case CU2_LWC2_OP:
66 if (insn.loongson3_lswc2_format.ls == 0)
67 goto sigbus;
68
69 if (insn.loongson3_lswc2_format.fr == 0) { /* gslq */
70 if (!access_ok(addr, 16))
71 goto sigbus;
72
73 LoadDW(addr, value, res);
74 if (res)
75 goto fault;
76
77 LoadDW(addr + 8, value_next, res);
78 if (res)
79 goto fault;
80
81 regs->regs[insn.loongson3_lswc2_format.rt] = value;
82 regs->regs[insn.loongson3_lswc2_format.rq] = value_next;
83 compute_return_epc(regs);
84 } else { /* gslqc1 */
85 if (!access_ok(addr, 16))
86 goto sigbus;
87
88 lose_fpu(1);
89 LoadDW(addr, value, res);
90 if (res)
91 goto fault;
92
93 LoadDW(addr + 8, value_next, res);
94 if (res)
95 goto fault;
96
> 97 set_fpr64(current->thread.fpu.fpr,
98 insn.loongson3_lswc2_format.rt, value);
99 set_fpr64(current->thread.fpu.fpr,
100 insn.loongson3_lswc2_format.rq, value_next);
101 compute_return_epc(regs);
102 own_fpu(1);
103 }
104 return NOTIFY_STOP; /* Don't call default notifier */
105
106 case CU2_SWC2_OP:
107 if (insn.loongson3_lswc2_format.ls == 0)
108 goto sigbus;
109
110 if (insn.loongson3_lswc2_format.fr == 0) { /* gssq */
111 if (!access_ok(addr, 16))
112 goto sigbus;
113
114 /* write upper 8 bytes first */
115 value_next = regs->regs[insn.loongson3_lswc2_format.rq];
116
117 StoreDW(addr + 8, value_next, res);
118 if (res)
119 goto fault;
120 value = regs->regs[insn.loongson3_lswc2_format.rt];
121
122 StoreDW(addr, value, res);
123 if (res)
124 goto fault;
125
126 compute_return_epc(regs);
127 } else { /* gssqc1 */
128 if (!access_ok(addr, 16))
129 goto sigbus;
130
131 lose_fpu(1);
132 value_next = get_fpr64(current->thread.fpu.fpr,
133 insn.loongson3_lswc2_format.rq);
134
135 StoreDW(addr + 8, value_next, res);
136 if (res)
137 goto fault;
138
139 value = get_fpr64(current->thread.fpu.fpr,
140 insn.loongson3_lswc2_format.rt);
141
142 StoreDW(addr, value, res);
143 if (res)
144 goto fault;
145
146 compute_return_epc(regs);
147 own_fpu(1);
148 }
149 return NOTIFY_STOP; /* Don't call default notifier */
150
151 case CU2_LDC2_OP:
152 switch (insn.loongson3_lsdc2_format.opcode1) {
153 /*
154 * Loongson-3 overridden ldc2 instructions.
155 * opcode1 instruction
156 * 0x1 gslhx: load 2 bytes to GPR
157 * 0x2 gslwx: load 4 bytes to GPR
158 * 0x3 gsldx: load 8 bytes to GPR
159 * 0x6 gslwxc1: load 4 bytes to FPR
160 * 0x7 gsldxc1: load 8 bytes to FPR
161 */
162 case 0x1:
163 if (!access_ok(addr, 2))
164 goto sigbus;
165
166 LoadHW(addr, value, res);
167 if (res)
168 goto fault;
169
170 compute_return_epc(regs);
171 regs->regs[insn.loongson3_lsdc2_format.rt] = value;
172 break;
173 case 0x2:
174 if (!access_ok(addr, 4))
175 goto sigbus;
176
177 LoadW(addr, value, res);
178 if (res)
179 goto fault;
180
181 compute_return_epc(regs);
182 regs->regs[insn.loongson3_lsdc2_format.rt] = value;
183 break;
184 case 0x3:
185 if (!access_ok(addr, 8))
186 goto sigbus;
187
188 LoadDW(addr, value, res);
189 if (res)
190 goto fault;
191
192 compute_return_epc(regs);
193 regs->regs[insn.loongson3_lsdc2_format.rt] = value;
194 break;
195 case 0x6:
196 die_if_kernel("Unaligned FP access in kernel code", regs);
197 BUG_ON(!used_math());
198 if (!access_ok(addr, 4))
199 goto sigbus;
200
201 lose_fpu(1);
202 LoadW(addr, value, res);
203 if (res)
204 goto fault;
205
206 set_fpr64(current->thread.fpu.fpr,
207 insn.loongson3_lsdc2_format.rt, value);
208 compute_return_epc(regs);
209 own_fpu(1);
210
211 break;
212 case 0x7:
213 die_if_kernel("Unaligned FP access in kernel code", regs);
214 BUG_ON(!used_math());
215 if (!access_ok(addr, 8))
216 goto sigbus;
217
218 lose_fpu(1);
219 LoadDW(addr, value, res);
220 if (res)
221 goto fault;
222
223 set_fpr64(current->thread.fpu.fpr,
224 insn.loongson3_lsdc2_format.rt, value);
225 compute_return_epc(regs);
226 own_fpu(1);
227 break;
228
229 }
230 return NOTIFY_STOP; /* Don't call default notifier */
231
232 case CU2_SDC2_OP:
233 switch (insn.loongson3_lsdc2_format.opcode1) {
234 /*
235 * Loongson-3 overridden sdc2 instructions.
236 * opcode1 instruction
237 * 0x1 gsshx: store 2 bytes from GPR
238 * 0x2 gsswx: store 4 bytes from GPR
239 * 0x3 gssdx: store 8 bytes from GPR
240 * 0x6 gsswxc1: store 4 bytes from FPR
241 * 0x7 gssdxc1: store 8 bytes from FPR
242 */
243 case 0x1:
244 if (!access_ok(addr, 2))
245 goto sigbus;
246
247 compute_return_epc(regs);
248 value = regs->regs[insn.loongson3_lsdc2_format.rt];
249
250 StoreHW(addr, value, res);
251 if (res)
252 goto fault;
253
254 break;
255 case 0x2:
256 if (!access_ok(addr, 4))
257 goto sigbus;
258
259 compute_return_epc(regs);
260 value = regs->regs[insn.loongson3_lsdc2_format.rt];
261
262 StoreW(addr, value, res);
263 if (res)
264 goto fault;
265
266 break;
267 case 0x3:
268 if (!access_ok(addr, 8))
269 goto sigbus;
270
271 compute_return_epc(regs);
272 value = regs->regs[insn.loongson3_lsdc2_format.rt];
273
274 StoreDW(addr, value, res);
275 if (res)
276 goto fault;
277
278 break;
279
280 case 0x6:
281 die_if_kernel("Unaligned FP access in kernel code", regs);
282 BUG_ON(!used_math());
283
284 if (!access_ok(addr, 4))
285 goto sigbus;
286
287 lose_fpu(1);
288 value = get_fpr64(current->thread.fpu.fpr,
289 insn.loongson3_lsdc2_format.rt);
290
291 StoreW(addr, value, res);
292 if (res)
293 goto fault;
294
295 compute_return_epc(regs);
296 own_fpu(1);
297
298 break;
299 case 0x7:
300 die_if_kernel("Unaligned FP access in kernel code", regs);
301 BUG_ON(!used_math());
302
303 if (!access_ok(addr, 8))
304 goto sigbus;
305
306 lose_fpu(1);
307 value = get_fpr64(current->thread.fpu.fpr,
308 insn.loongson3_lsdc2_format.rt);
309
310 StoreDW(addr, value, res);
311 if (res)
312 goto fault;
313
314 compute_return_epc(regs);
315 own_fpu(1);
316
317 break;
318 }
319 return NOTIFY_STOP; /* Don't call default notifier */
320 }
321
322 return NOTIFY_OK; /* Let default notifier send signals */
323
324 fault:
325 /* roll back jump/branch */
326 regs->regs[31] = ra;
327 regs->cp0_epc = (unsigned long)pc;
328 /* Did we have an exception handler installed? */
329 if (fixup_exception(regs))
330 return NOTIFY_STOP; /* Don't call default notifier */
331
332 die_if_kernel("Unhandled kernel unaligned access", regs);
333 force_sig(SIGSEGV);
334
335 return NOTIFY_STOP; /* Don't call default notifier */
336
337 sigbus:
338 die_if_kernel("Unhandled kernel unaligned access", regs);
339 force_sig(SIGBUS);
340
341 return NOTIFY_STOP; /* Don't call default notifier */
342 }
343
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[sashal-linux-stable:queue-4.9 92/170] arch/s390/kvm/vsie.c:782:9: error: implicit declaration of function '_kvm_s390_logical_to_effective'; did you mean 'kvm_s390_logical_to_effective'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.9
head: 397027034d454e3ad94e49e88938860ee15d7de6
commit: c035e85a46b8876f230aa17570cbc096a59be26a [92/170] KVM: s390: VSIE: correctly handle MVPG when in VSIE
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 7.5.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/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-4.9
git checkout c035e85a46b8876f230aa17570cbc096a59be26a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross W=1 ARCH=s390
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/s390/kvm/vsie.c: In function 'vsie_handle_mvpg':
arch/s390/kvm/vsie.c:776:38: error: 'struct kvm_s390_sie_block' has no member named 'mcic'; did you mean 'ckc'?
u64 *pei_block = &vsie_page->scb_o->mcic;
^~~~
ckc
>> arch/s390/kvm/vsie.c:782:9: error: implicit declaration of function '_kvm_s390_logical_to_effective'; did you mean 'kvm_s390_logical_to_effective'? [-Werror=implicit-function-declaration]
mask = _kvm_s390_logical_to_effective(&scb_s->gpsw, PAGE_MASK);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kvm_s390_logical_to_effective
>> arch/s390/kvm/vsie.c:787:12: error: too many arguments to function 'kvm_s390_shadow_fault'
rc_dest = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, dest, &pei_dest);
^~~~~~~~~~~~~~~~~~~~~
In file included from arch/s390/kvm/vsie.c:23:0:
arch/s390/kvm/gaccess.h:364:5: note: declared here
int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *shadow,
^~~~~~~~~~~~~~~~~~~~~
arch/s390/kvm/vsie.c:788:11: error: too many arguments to function 'kvm_s390_shadow_fault'
rc_src = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, src, &pei_src);
^~~~~~~~~~~~~~~~~~~~~
In file included from arch/s390/kvm/vsie.c:23:0:
arch/s390/kvm/gaccess.h:364:5: note: declared here
int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *shadow,
^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +782 arch/s390/kvm/vsie.c
771
772 static int vsie_handle_mvpg(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page)
773 {
774 struct kvm_s390_sie_block *scb_s = &vsie_page->scb_s;
775 unsigned long pei_dest, pei_src, src, dest, mask;
776 u64 *pei_block = &vsie_page->scb_o->mcic;
777 int edat, rc_dest, rc_src;
778 union ctlreg0 cr0;
779
780 cr0.val = vcpu->arch.sie_block->gcr[0];
781 edat = cr0.edat && test_kvm_facility(vcpu->kvm, 8);
> 782 mask = _kvm_s390_logical_to_effective(&scb_s->gpsw, PAGE_MASK);
783
784 dest = vsie_get_register(vcpu, vsie_page, scb_s->ipb >> 20) & mask;
785 src = vsie_get_register(vcpu, vsie_page, scb_s->ipb >> 16) & mask;
786
> 787 rc_dest = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, dest, &pei_dest);
788 rc_src = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, src, &pei_src);
789 /*
790 * Either everything went well, or something non-critical went wrong
791 * e.g. because of a race. In either case, simply retry.
792 */
793 if (rc_dest == -EAGAIN || rc_src == -EAGAIN || (!rc_dest && !rc_src)) {
794 retry_vsie_icpt(vsie_page);
795 return -EAGAIN;
796 }
797 /* Something more serious went wrong, propagate the error */
798 if (rc_dest < 0)
799 return rc_dest;
800 if (rc_src < 0)
801 return rc_src;
802
803 /* The only possible suppressing exception: just deliver it */
804 if (rc_dest == PGM_TRANSLATION_SPEC || rc_src == PGM_TRANSLATION_SPEC) {
805 clear_vsie_icpt(vsie_page);
806 rc_dest = kvm_s390_inject_program_int(vcpu, PGM_TRANSLATION_SPEC);
807 WARN_ON_ONCE(rc_dest);
808 return 1;
809 }
810
811 /*
812 * Forward the PEI intercept to the guest if it was a page fault, or
813 * also for segment and region table faults if EDAT applies.
814 */
815 if (edat) {
816 rc_dest = rc_dest == PGM_ASCE_TYPE ? rc_dest : 0;
817 rc_src = rc_src == PGM_ASCE_TYPE ? rc_src : 0;
818 } else {
819 rc_dest = rc_dest != PGM_PAGE_TRANSLATION ? rc_dest : 0;
820 rc_src = rc_src != PGM_PAGE_TRANSLATION ? rc_src : 0;
821 }
822 if (!rc_dest && !rc_src) {
823 pei_block[0] = pei_dest;
824 pei_block[1] = pei_src;
825 return 1;
826 }
827
828 retry_vsie_icpt(vsie_page);
829
830 /*
831 * The host has edat, and the guest does not, or it was an ASCE type
832 * exception. The host needs to inject the appropriate DAT interrupts
833 * into the guest.
834 */
835 if (rc_dest)
836 return inject_fault(vcpu, rc_dest, dest, 1);
837 return inject_fault(vcpu, rc_src, src, 0);
838 }
839
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-next:master 2620/2633] kernel/kallsyms.c:314:13: warning: no previous prototype for function 'kallsyms_lookup_buildid'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ec85c95b0c90a17413901b018e8ade7b9eae7cad
commit: fecf694f2b4b583d7740d55f584411b3062afa7e [2620/2633] module: add printk formats to add module build ID to stacktraces
config: riscv-randconfig-r015-20210512 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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://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 fecf694f2b4b583d7740d55f584411b3062afa7e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
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 >>):
kernel/kallsyms.c:310:71: error: too many arguments to function call, expected 5, have 6
return !!module_address_lookup(addr, symbolsize, offset, NULL, NULL, namebuf) ||
~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
include/linux/module.h:745:27: note: 'module_address_lookup' declared here
static inline const char *module_address_lookup(unsigned long addr,
^
kernel/kallsyms.c:341:30: error: too many arguments to function call, expected 5, have 6
modname, modbuildid, namebuf);
^~~~~~~
include/linux/module.h:745:27: note: 'module_address_lookup' declared here
static inline const char *module_address_lookup(unsigned long addr,
^
>> kernel/kallsyms.c:314:13: warning: no previous prototype for function 'kallsyms_lookup_buildid' [-Wmissing-prototypes]
const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize,
^
kernel/kallsyms.c:314:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize,
^
static
kernel/kallsyms.c:570:12: warning: no previous prototype for function 'arch_get_kallsym' [-Wmissing-prototypes]
int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
^
kernel/kallsyms.c:570:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
^
static
2 warnings and 2 errors 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
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +/kallsyms_lookup_buildid +314 kernel/kallsyms.c
313
> 314 const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize,
315 unsigned long *offset, char **modname,
316 const unsigned char **modbuildid, char *namebuf)
317 {
318 const char *ret;
319
320 namebuf[KSYM_NAME_LEN - 1] = 0;
321 namebuf[0] = 0;
322
323 if (is_ksym_addr(addr)) {
324 unsigned long pos;
325
326 pos = get_symbol_pos(addr, symbolsize, offset);
327 /* Grab name */
328 kallsyms_expand_symbol(get_symbol_offset(pos),
329 namebuf, KSYM_NAME_LEN);
330 if (modname)
331 *modname = NULL;
332 if (modbuildid)
333 *modbuildid = NULL;
334
335 ret = namebuf;
336 goto found;
337 }
338
339 /* See if it's in a module or a BPF JITed image. */
340 ret = module_address_lookup(addr, symbolsize, offset,
341 modname, modbuildid, namebuf);
342 if (!ret)
343 ret = bpf_address_lookup(addr, symbolsize,
344 offset, modname, namebuf);
345
346 if (!ret)
347 ret = ftrace_mod_address_lookup(addr, symbolsize,
348 offset, modname, namebuf);
349
350 found:
351 cleanup_symbol_name(namebuf);
352 return ret;
353 }
354
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
arch/riscv/kernel/machine_kexec.c:126:6: warning: no previous prototype for function 'machine_shutdown'
by kernel test robot
Hi Nick,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 88b06399c9c766c283e070b022b5ceafa4f63f19
commit: fba8a8674f68a0628abae470dfcfbcb4a0d7a79e RISC-V: Add kexec support
date: 2 weeks ago
config: riscv-randconfig-r022-20210512 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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://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 fba8a8674f68a0628abae470dfcfbcb4a0d7a79e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
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 >>):
>> arch/riscv/kernel/machine_kexec.c:126:6: warning: no previous prototype for function 'machine_shutdown' [-Wmissing-prototypes]
void machine_shutdown(void)
^
arch/riscv/kernel/machine_kexec.c:126:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void machine_shutdown(void)
^
static
>> arch/riscv/kernel/machine_kexec.c:148:1: warning: no previous prototype for function 'machine_crash_shutdown' [-Wmissing-prototypes]
machine_crash_shutdown(struct pt_regs *regs)
^
arch/riscv/kernel/machine_kexec.c:147:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
2 warnings generated.
vim +/machine_shutdown +126 arch/riscv/kernel/machine_kexec.c
117
118
119 /*
120 * machine_shutdown - Prepare for a kexec reboot
121 *
122 * This function is called by kernel_kexec just before machine_kexec
123 * below. Its goal is to prepare the rest of the system (the other
124 * harts and possibly devices etc) for a kexec reboot.
125 */
> 126 void machine_shutdown(void)
127 {
128 /*
129 * No more interrupts on this hart
130 * until we are back up.
131 */
132 local_irq_disable();
133
134 #if defined(CONFIG_HOTPLUG_CPU)
135 smp_shutdown_nonboot_cpus(smp_processor_id());
136 #endif
137 }
138
139 /**
140 * machine_crash_shutdown - Prepare to kexec after a kernel crash
141 *
142 * This function is called by crash_kexec just before machine_kexec
143 * below and its goal is similar to machine_shutdown, but in case of
144 * a kernel crash. Since we don't handle such cases yet, this function
145 * is empty.
146 */
147 void
> 148 machine_crash_shutdown(struct pt_regs *regs)
149 {
150 }
151
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-stable-rc:linux-4.9.y 9719/9999] include/asm-generic/pgtable.h:15:2: error: #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.9.y
head: d7f83e4f45e886d919bc985bd225b8355ddd9284
commit: 83c3684d71eba85d8020e345e08d9b1ba2d3a922 [9719/9999] MIPS: Disable Loongson MMI instructions for kernel build
config: mips-randconfig-r013-20210512 (attached as .config)
compiler: mips64el-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/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.9.y
git checkout 83c3684d71eba85d8020e345e08d9b1ba2d3a922
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 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 arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from include/linux/pid_namespace.h:6,
from include/linux/ptrace.h:8,
from arch/mips/kernel/cpu-probe.c:16:
>> include/asm-generic/pgtable.h:15:2: error: #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 | #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from include/linux/pid_namespace.h:6,
from include/linux/ptrace.h:8,
from arch/mips/kernel/cpu-probe.c:16:
include/linux/mm.h: In function 'mm_nr_pmds_init':
>> include/linux/mm.h:1589:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 | atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
arch/mips/kernel/cpu-probe.c: In function 'set_isa':
arch/mips/kernel/cpu-probe.c:480:16: error: this statement may fall through [-Werror=implicit-fallthrough=]
480 | c->isa_level |= MIPS_CPU_ISA_M32R2 | MIPS_CPU_ISA_M64R2;
arch/mips/kernel/cpu-probe.c:481:2: note: here
481 | case MIPS_CPU_ISA_M64R1:
| ^~~~
arch/mips/kernel/cpu-probe.c:482:16: error: this statement may fall through [-Werror=implicit-fallthrough=]
482 | c->isa_level |= MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M64R1;
arch/mips/kernel/cpu-probe.c:483:2: note: here
483 | case MIPS_CPU_ISA_V:
| ^~~~
arch/mips/kernel/cpu-probe.c:484:16: error: this statement may fall through [-Werror=implicit-fallthrough=]
484 | c->isa_level |= MIPS_CPU_ISA_V;
arch/mips/kernel/cpu-probe.c:485:2: note: here
485 | case MIPS_CPU_ISA_IV:
| ^~~~
arch/mips/kernel/cpu-probe.c:486:16: error: this statement may fall through [-Werror=implicit-fallthrough=]
486 | c->isa_level |= MIPS_CPU_ISA_IV;
arch/mips/kernel/cpu-probe.c:487:2: note: here
487 | case MIPS_CPU_ISA_III:
| ^~~~
arch/mips/kernel/cpu-probe.c:493:16: error: this statement may fall through [-Werror=implicit-fallthrough=]
493 | c->isa_level |= MIPS_CPU_ISA_M32R6 | MIPS_CPU_ISA_M64R6;
arch/mips/kernel/cpu-probe.c:494:2: note: here
494 | case MIPS_CPU_ISA_M32R6:
| ^~~~
arch/mips/kernel/cpu-probe.c:499:16: error: this statement may fall through [-Werror=implicit-fallthrough=]
499 | c->isa_level |= MIPS_CPU_ISA_M32R2;
arch/mips/kernel/cpu-probe.c:500:2: note: here
500 | case MIPS_CPU_ISA_M32R1:
| ^~~~
arch/mips/kernel/cpu-probe.c:501:16: error: this statement may fall through [-Werror=implicit-fallthrough=]
501 | c->isa_level |= MIPS_CPU_ISA_M32R1;
arch/mips/kernel/cpu-probe.c:502:2: note: here
502 | case MIPS_CPU_ISA_II:
| ^~~~
cc1: all warnings being treated as errors
--
In file included from arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from arch/mips/kernel/irq.c:17:
>> include/asm-generic/pgtable.h:15:2: error: #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 | #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from arch/mips/kernel/irq.c:17:
include/linux/mm.h: In function 'mm_nr_pmds_init':
>> include/linux/mm.h:1589:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 | atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
arch/mips/kernel/irq.c: At top level:
arch/mips/kernel/irq.c:52:13: error: no previous prototype for 'init_IRQ' [-Werror=missing-prototypes]
52 | void __init init_IRQ(void)
| ^~~~~~~~
cc1: all warnings being treated as errors
--
In file included from arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from arch/mips/kernel/process.c:16:
>> include/asm-generic/pgtable.h:15:2: error: #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 | #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from arch/mips/kernel/process.c:16:
include/linux/mm.h: In function 'mm_nr_pmds_init':
>> include/linux/mm.h:1589:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 | atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
arch/mips/kernel/process.c: At top level:
arch/mips/kernel/process.c:88:5: error: no previous prototype for 'arch_dup_task_struct' [-Werror=missing-prototypes]
88 | int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/process.c:630:15: error: no previous prototype for 'arch_align_stack' [-Werror=missing-prototypes]
630 | unsigned long arch_align_stack(unsigned long sp)
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
In file included from arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from arch/mips/kernel/ptrace.c:22:
>> include/asm-generic/pgtable.h:15:2: error: #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 | #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from arch/mips/kernel/ptrace.c:22:
include/linux/mm.h: In function 'mm_nr_pmds_init':
>> include/linux/mm.h:1589:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 | atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
--
In file included from arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from include/linux/memblock.h:18,
from arch/mips/kernel/setup.c:17:
>> include/asm-generic/pgtable.h:15:2: error: #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 | #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from include/linux/memblock.h:18,
from arch/mips/kernel/setup.c:17:
include/linux/mm.h: In function 'mm_nr_pmds_init':
>> include/linux/mm.h:1589:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 | atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
arch/mips/kernel/setup.c: At top level:
arch/mips/kernel/setup.c:156:13: error: no previous prototype for 'memory_region_available' [-Werror=missing-prototypes]
156 | bool __init memory_region_available(phys_addr_t start, phys_addr_t size)
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/setup.c: In function 'bootmem_init':
arch/mips/kernel/setup.c:443:25: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
443 | } else if (min_low_pfn < ARCH_PFN_OFFSET) {
| ^
cc1: all warnings being treated as errors
--
In file included from arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from arch/mips/kernel/signal.c:15:
>> include/asm-generic/pgtable.h:15:2: error: #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 | #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from arch/mips/kernel/signal.c:15:
include/linux/mm.h: In function 'mm_nr_pmds_init':
>> include/linux/mm.h:1589:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 | atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
In file included from arch/mips/include/asm/sim.h:13,
from arch/mips/kernel/signal.c:35:
arch/mips/include/asm/asm-offsets.h: At top level:
arch/mips/include/asm/asm-offsets.h:1:10: fatal error: generated/asm-offsets.h: No such file or directory
1 | #include <generated/asm-offsets.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
--
In file included from arch/mips/include/asm/pgtable.h:665,
from include/linux/mm.h:68,
from arch/mips/kernel/traps.c:25:
>> include/asm-generic/pgtable.h:15:2: error: #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
15 | #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
| ^~~~~
In file included from arch/mips/kernel/traps.c:25:
include/linux/mm.h: In function 'mm_nr_pmds_init':
>> include/linux/mm.h:1589:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1589 | atomic_long_set(&mm->nr_pmds, 0);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_nr_pmds':
include/linux/mm.h:1594:31: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1594 | return atomic_long_read(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_inc_nr_pmds':
include/linux/mm.h:1599:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1599 | atomic_long_inc(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1604:23: error: 'struct mm_struct' has no member named 'nr_pmds'; did you mean 'nr_ptes'?
1604 | atomic_long_dec(&mm->nr_pmds);
| ^~~~~~~
| nr_ptes
arch/mips/kernel/traps.c: At top level:
arch/mips/kernel/traps.c:357:6: error: no previous prototype for 'show_registers' [-Werror=missing-prototypes]
357 | void show_registers(struct pt_regs *regs)
| ^~~~~~~~~~~~~~
arch/mips/kernel/traps.c:438:17: error: no previous prototype for 'do_be' [-Werror=missing-prototypes]
438 | asmlinkage void do_be(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:699:17: error: no previous prototype for 'do_ov' [-Werror=missing-prototypes]
699 | asmlinkage void do_ov(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:835:17: error: no previous prototype for 'do_fpe' [-Werror=missing-prototypes]
835 | asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31)
| ^~~~~~
arch/mips/kernel/traps.c:958:17: error: no previous prototype for 'do_bp' [-Werror=missing-prototypes]
958 | asmlinkage void do_bp(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1050:17: error: no previous prototype for 'do_tr' [-Werror=missing-prototypes]
1050 | asmlinkage void do_tr(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1092:17: error: no previous prototype for 'do_ri' [-Werror=missing-prototypes]
1092 | asmlinkage void do_ri(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1365:17: error: no previous prototype for 'do_cpu' [-Werror=missing-prototypes]
1365 | asmlinkage void do_cpu(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1462:17: error: no previous prototype for 'do_msa_fpe' [-Werror=missing-prototypes]
1462 | asmlinkage void do_msa_fpe(struct pt_regs *regs, unsigned int msacsr)
| ^~~~~~~~~~
arch/mips/kernel/traps.c:1482:17: error: no previous prototype for 'do_msa' [-Werror=missing-prototypes]
1482 | asmlinkage void do_msa(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1503:17: error: no previous prototype for 'do_mdmx' [-Werror=missing-prototypes]
1503 | asmlinkage void do_mdmx(struct pt_regs *regs)
| ^~~~~~~
arch/mips/kernel/traps.c:1515:17: error: no previous prototype for 'do_watch' [-Werror=missing-prototypes]
1515 | asmlinkage void do_watch(struct pt_regs *regs)
| ^~~~~~~~
arch/mips/kernel/traps.c:1543:17: error: no previous prototype for 'do_mcheck' [-Werror=missing-prototypes]
1543 | asmlinkage void do_mcheck(struct pt_regs *regs)
| ^~~~~~~~~
arch/mips/kernel/traps.c: In function 'do_mcheck':
arch/mips/kernel/traps.c:1546:17: error: variable 'prev_state' set but not used [-Werror=unused-but-set-variable]
1546 | enum ctx_state prev_state;
| ^~~~~~~~~~
arch/mips/kernel/traps.c: At top level:
arch/mips/kernel/traps.c:1574:17: error: no previous prototype for 'do_mt' [-Werror=missing-prototypes]
1574 | asmlinkage void do_mt(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1610:17: error: no previous prototype for 'do_dsp' [-Werror=missing-prototypes]
1610 | asmlinkage void do_dsp(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1618:17: error: no previous prototype for 'do_reserved' [-Werror=missing-prototypes]
1618 | asmlinkage void do_reserved(struct pt_regs *regs)
| ^~~~~~~~~~~
arch/mips/kernel/traps.c:1794:17: error: no previous prototype for 'cache_parity_error' [-Werror=missing-prototypes]
1794 | asmlinkage void cache_parity_error(void)
| ^~~~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:1842:17: error: no previous prototype for 'do_ftlb' [-Werror=missing-prototypes]
1842 | asmlinkage void do_ftlb(void)
| ^~~~~~~
arch/mips/kernel/traps.c:1875:6: error: no previous prototype for 'ejtag_exception_handler' [-Werror=missing-prototypes]
1875 | void ejtag_exception_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:1920:17: error: no previous prototype for 'nmi_exception_handler' [-Werror=missing-prototypes]
1920 | void __noreturn nmi_exception_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
..
vim +15 include/asm-generic/pgtable.h
fbd71844852c94 Ben Hutchings 2011-02-27 12
235a8f0286d3de Kirill A. Shutemov 2015-04-14 13 #if 4 - defined(__PAGETABLE_PUD_FOLDED) - defined(__PAGETABLE_PMD_FOLDED) != \
235a8f0286d3de Kirill A. Shutemov 2015-04-14 14 CONFIG_PGTABLE_LEVELS
235a8f0286d3de Kirill A. Shutemov 2015-04-14 @15 #error CONFIG_PGTABLE_LEVELS is not consistent with __PAGETABLE_{PUD,PMD}_FOLDED
235a8f0286d3de Kirill A. Shutemov 2015-04-14 16 #endif
235a8f0286d3de Kirill A. Shutemov 2015-04-14 17
:::::: The code at line 15 was first introduced by commit
:::::: 235a8f0286d3de5754322e9b4abd472ed4d57209 mm: define default PGTABLE_LEVELS to two
:::::: TO: Kirill A. Shutemov <kirill.shutemov(a)linux.intel.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[RFC PATCH] net: core: devlink: nsim_dev_port_params[] can be static
by kernel test robot
drivers/net/netdevsim/dev.c:932:22: warning: symbol 'nsim_dev_port_params' was not declared. Should it be static?
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/netdevsim/dev.c b/drivers/net/netdevsim/dev.c
index 74a6a6e22119b..c2813e455f15f 100644
--- a/drivers/net/netdevsim/dev.c
+++ b/drivers/net/netdevsim/dev.c
@@ -929,7 +929,7 @@ static const struct devlink_ops nsim_dev_devlink_ops = {
.port_param_ops = &nsim_dev_port_param_ops,
};
-struct devlink_param nsim_dev_port_params[] = {
+static struct devlink_param nsim_dev_port_params[] = {
{
.id = NSIM_DEVLINK_PORT_PARAM_ID_TEST_STR,
.name = "port_param_test_str",
1 year, 4 months