[joro:sev-es-client-tip 29/76] arch/x86/kernel/head64.c:67:20: sparse: sparse: symbol 'startup_gdt' was not declared. Should it be
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git sev-es-client-tip
head: 57349dbe54433697c5b96bd5d8b5bd7499754d2b
commit: c12cc81e6b52de5e4c779e29d7ec903eff341cbc [29/76] x86/head/64: Install startup GDT
config: x86_64-randconfig-s022-20200717 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-49-g707c5017-dirty
git checkout c12cc81e6b52de5e4c779e29d7ec903eff341cbc
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/x86/kernel/head64.c:67:20: sparse: sparse: symbol 'startup_gdt' was not declared. Should it be static?
>> arch/x86/kernel/head64.c:77:17: sparse: sparse: symbol 'startup_gdt_descr' was not declared. Should it be static?
arch/x86/kernel/head64.c:68:43: sparse: sparse: cast truncates bits from constant value (fffff becomes ffff)
arch/x86/kernel/head64.c:69:43: sparse: sparse: cast truncates bits from constant value (fffff becomes ffff)
arch/x86/kernel/head64.c:70:43: sparse: sparse: cast truncates bits from constant value (fffff becomes ffff)
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[sashal-linux-stable:queue-5.4 73/106] drivers/usb/musb/mediatek.c:202:18: error: implicit declaration of function 'musb_clearb'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 8fc787b62d0c673cca994da068df84905ddea333
commit: eec346066d383e736228ada2a0c24e6ac8369619 [73/106] usb: musb: Add support for MediaTek musb controller
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout eec346066d383e736228ada2a0c24e6ac8369619
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
drivers/usb/musb/mediatek.c: In function 'generic_interrupt':
>> drivers/usb/musb/mediatek.c:202:18: error: implicit declaration of function 'musb_clearb'; did you mean 'musb_readb'? [-Werror=implicit-function-declaration]
202 | musb->int_usb = musb_clearb(musb->mregs, MUSB_INTRUSB);
| ^~~~~~~~~~~
| musb_readb
>> drivers/usb/musb/mediatek.c:203:17: error: implicit declaration of function 'musb_clearw'; did you mean 'musb_readw'? [-Werror=implicit-function-declaration]
203 | musb->int_rx = musb_clearw(musb->mregs, MUSB_INTRRX);
| ^~~~~~~~~~~
| musb_readw
drivers/usb/musb/mediatek.c: At top level:
>> drivers/usb/musb/mediatek.c:392:3: error: 'const struct musb_platform_ops' has no member named 'get_toggle'
392 | .get_toggle = mtk_musb_get_toggle,
| ^~~~~~~~~~
>> drivers/usb/musb/mediatek.c:392:16: error: initialization of 'int (*)(struct musb *)' from incompatible pointer type 'u16 (*)(struct musb_qh *, int)' {aka 'short unsigned int (*)(struct musb_qh *, int)'} [-Werror=incompatible-pointer-types]
392 | .get_toggle = mtk_musb_get_toggle,
| ^~~~~~~~~~~~~~~~~~~
drivers/usb/musb/mediatek.c:392:16: note: (near initialization for 'mtk_musb_ops.exit')
>> drivers/usb/musb/mediatek.c:393:3: error: 'const struct musb_platform_ops' has no member named 'set_toggle'; did you mean 'set_mode'?
393 | .set_toggle = mtk_musb_set_toggle,
| ^~~~~~~~~~
| set_mode
>> drivers/usb/musb/mediatek.c:393:16: error: initialization of 'void (*)(struct musb *)' from incompatible pointer type 'u16 (*)(struct musb_qh *, int, struct urb *)' {aka 'short unsigned int (*)(struct musb_qh *, int, struct urb *)'} [-Werror=incompatible-pointer-types]
393 | .set_toggle = mtk_musb_set_toggle,
| ^~~~~~~~~~~~~~~~~~~
drivers/usb/musb/mediatek.c:393:16: note: (near initialization for 'mtk_musb_ops.enable')
>> drivers/usb/musb/mediatek.c:394:10: warning: initialized field overwritten [-Woverride-init]
394 | .exit = mtk_musb_exit,
| ^~~~~~~~~~~~~
drivers/usb/musb/mediatek.c:394:10: note: (near initialization for 'mtk_musb_ops.exit')
>> drivers/usb/musb/mediatek.c:399:3: error: 'const struct musb_platform_ops' has no member named 'clearb'
399 | .clearb = mtk_musb_clearb,
| ^~~~~~
>> drivers/usb/musb/mediatek.c:399:12: error: initialization of 'void (*)(struct musb *)' from incompatible pointer type 'u8 (*)(void *, unsigned int)' {aka 'unsigned char (*)(void *, unsigned int)'} [-Werror=incompatible-pointer-types]
399 | .clearb = mtk_musb_clearb,
| ^~~~~~~~~~~~~~~
drivers/usb/musb/mediatek.c:399:12: note: (near initialization for 'mtk_musb_ops.enable')
drivers/usb/musb/mediatek.c:399:12: warning: initialized field overwritten [-Woverride-init]
drivers/usb/musb/mediatek.c:399:12: note: (near initialization for 'mtk_musb_ops.enable')
>> drivers/usb/musb/mediatek.c:400:3: error: 'const struct musb_platform_ops' has no member named 'clearw'
400 | .clearw = mtk_musb_clearw,
| ^~~~~~
>> drivers/usb/musb/mediatek.c:400:12: error: initialization of 'void (*)(struct musb *)' from incompatible pointer type 'u16 (*)(void *, unsigned int)' {aka 'short unsigned int (*)(void *, unsigned int)'} [-Werror=incompatible-pointer-types]
400 | .clearw = mtk_musb_clearw,
| ^~~~~~~~~~~~~~~
drivers/usb/musb/mediatek.c:400:12: note: (near initialization for 'mtk_musb_ops.disable')
cc1: some warnings being treated as errors
vim +202 drivers/usb/musb/mediatek.c
194
195 static irqreturn_t generic_interrupt(int irq, void *__hci)
196 {
197 unsigned long flags;
198 irqreturn_t retval = IRQ_NONE;
199 struct musb *musb = __hci;
200
201 spin_lock_irqsave(&musb->lock, flags);
> 202 musb->int_usb = musb_clearb(musb->mregs, MUSB_INTRUSB);
> 203 musb->int_rx = musb_clearw(musb->mregs, MUSB_INTRRX);
204 musb->int_tx = musb_clearw(musb->mregs, MUSB_INTRTX);
205
206 if (musb->int_usb || musb->int_tx || musb->int_rx)
207 retval = musb_interrupt(musb);
208
209 spin_unlock_irqrestore(&musb->lock, flags);
210
211 return retval;
212 }
213
214 static irqreturn_t mtk_musb_interrupt(int irq, void *dev_id)
215 {
216 irqreturn_t retval = IRQ_NONE;
217 struct musb *musb = (struct musb *)dev_id;
218 u32 l1_ints;
219
220 l1_ints = musb_readl(musb->mregs, USB_L1INTS) &
221 musb_readl(musb->mregs, USB_L1INTM);
222
223 if (l1_ints & (TX_INT_STATUS | RX_INT_STATUS | USBCOM_INT_STATUS))
224 retval = generic_interrupt(irq, musb);
225
226 #if defined(CONFIG_USB_INVENTRA_DMA)
227 if (l1_ints & DMA_INT_STATUS)
228 retval = dma_controller_irq(irq, musb->dma_controller);
229 #endif
230 return retval;
231 }
232
233 static u32 mtk_musb_busctl_offset(u8 epnum, u16 offset)
234 {
235 return MTK_MUSB_TXFUNCADDR + offset + 8 * epnum;
236 }
237
238 static u8 mtk_musb_clearb(void __iomem *addr, unsigned int offset)
239 {
240 u8 data;
241
242 /* W1C */
243 data = musb_readb(addr, offset);
244 musb_writeb(addr, offset, data);
245 return data;
246 }
247
248 static u16 mtk_musb_clearw(void __iomem *addr, unsigned int offset)
249 {
250 u16 data;
251
252 /* W1C */
253 data = musb_readw(addr, offset);
254 musb_writew(addr, offset, data);
255 return data;
256 }
257
258 static int mtk_musb_set_mode(struct musb *musb, u8 mode)
259 {
260 struct device *dev = musb->controller;
261 struct mtk_glue *glue = dev_get_drvdata(dev->parent);
262 enum phy_mode new_mode;
263 enum usb_role new_role;
264
265 switch (mode) {
266 case MUSB_HOST:
267 new_mode = PHY_MODE_USB_HOST;
268 new_role = USB_ROLE_HOST;
269 break;
270 case MUSB_PERIPHERAL:
271 new_mode = PHY_MODE_USB_DEVICE;
272 new_role = USB_ROLE_DEVICE;
273 break;
274 case MUSB_OTG:
275 new_mode = PHY_MODE_USB_OTG;
276 new_role = USB_ROLE_NONE;
277 break;
278 default:
279 dev_err(glue->dev, "Invalid mode request\n");
280 return -EINVAL;
281 }
282
283 if (glue->phy_mode == new_mode)
284 return 0;
285
286 if (musb->port_mode != MUSB_OTG) {
287 dev_err(glue->dev, "Does not support changing modes\n");
288 return -EINVAL;
289 }
290
291 glue->role = new_role;
292 musb_usb_role_sx_set(dev, glue->role);
293 return 0;
294 }
295
296 static int mtk_musb_init(struct musb *musb)
297 {
298 struct device *dev = musb->controller;
299 struct mtk_glue *glue = dev_get_drvdata(dev->parent);
300 int ret;
301
302 glue->musb = musb;
303 musb->phy = glue->phy;
304 musb->xceiv = glue->xceiv;
305 musb->is_host = false;
306 musb->isr = mtk_musb_interrupt;
307
308 /* Set TX/RX toggle enable */
309 musb_writew(musb->mregs, MUSB_TXTOGEN, MTK_TOGGLE_EN);
310 musb_writew(musb->mregs, MUSB_RXTOGEN, MTK_TOGGLE_EN);
311
312 if (musb->port_mode == MUSB_OTG) {
313 ret = mtk_otg_switch_init(glue);
314 if (ret)
315 return ret;
316 }
317
318 ret = phy_init(glue->phy);
319 if (ret)
320 goto err_phy_init;
321
322 ret = phy_power_on(glue->phy);
323 if (ret)
324 goto err_phy_power_on;
325
326 phy_set_mode(glue->phy, glue->phy_mode);
327
328 #if defined(CONFIG_USB_INVENTRA_DMA)
329 musb_writel(musb->mregs, MUSB_HSDMA_INTR,
330 DMA_INTR_STATUS_MSK | DMA_INTR_UNMASK_SET_MSK);
331 #endif
332 musb_writel(musb->mregs, USB_L1INTM, TX_INT_STATUS | RX_INT_STATUS |
333 USBCOM_INT_STATUS | DMA_INT_STATUS);
334 return 0;
335
336 err_phy_power_on:
337 phy_exit(glue->phy);
338 err_phy_init:
339 mtk_otg_switch_exit(glue);
340 return ret;
341 }
342
343 static u16 mtk_musb_get_toggle(struct musb_qh *qh, int is_out)
344 {
345 struct musb *musb = qh->hw_ep->musb;
346 u8 epnum = qh->hw_ep->epnum;
347 u16 toggle;
348
349 toggle = musb_readw(musb->mregs, is_out ? MUSB_TXTOG : MUSB_RXTOG);
350 return toggle & (1 << epnum);
351 }
352
353 static u16 mtk_musb_set_toggle(struct musb_qh *qh, int is_out, struct urb *urb)
354 {
355 struct musb *musb = qh->hw_ep->musb;
356 u8 epnum = qh->hw_ep->epnum;
357 u16 value, toggle;
358
359 toggle = usb_gettoggle(urb->dev, qh->epnum, is_out);
360
361 if (is_out) {
362 value = musb_readw(musb->mregs, MUSB_TXTOG);
363 value |= toggle << epnum;
364 musb_writew(musb->mregs, MUSB_TXTOG, value);
365 } else {
366 value = musb_readw(musb->mregs, MUSB_RXTOG);
367 value |= toggle << epnum;
368 musb_writew(musb->mregs, MUSB_RXTOG, value);
369 }
370
371 return 0;
372 }
373
374 static int mtk_musb_exit(struct musb *musb)
375 {
376 struct device *dev = musb->controller;
377 struct mtk_glue *glue = dev_get_drvdata(dev->parent);
378
379 mtk_otg_switch_exit(glue);
380 phy_power_off(glue->phy);
381 phy_exit(glue->phy);
382 mtk_musb_clks_disable(glue);
383
384 pm_runtime_put_sync(dev);
385 pm_runtime_disable(dev);
386 return 0;
387 }
388
389 static const struct musb_platform_ops mtk_musb_ops = {
390 .quirks = MUSB_DMA_INVENTRA,
391 .init = mtk_musb_init,
> 392 .get_toggle = mtk_musb_get_toggle,
> 393 .set_toggle = mtk_musb_set_toggle,
> 394 .exit = mtk_musb_exit,
395 #ifdef CONFIG_USB_INVENTRA_DMA
396 .dma_init = musbhs_dma_controller_create_noirq,
397 .dma_exit = musbhs_dma_controller_destroy,
398 #endif
> 399 .clearb = mtk_musb_clearb,
> 400 .clearw = mtk_musb_clearw,
401 .busctl_offset = mtk_musb_busctl_offset,
402 .set_mode = mtk_musb_set_mode,
403 };
404
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH bpf-next 2/2] bpf: compute bpf_skc_to_*() helper socket btf ids at build time
by kernel test robot
Hi Yonghong,
I love your patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Yonghong-Song/compute-bpf_skc_to...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: x86_64-rhel-7.6-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from net/core/filter.c:78:
net/core/filter.c:3783:13: warning: array 'bpf_skb_output_btf_ids' assumed to have one element
3783 | BTF_ID_LIST(bpf_skb_output_btf_ids)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/btf_ids.h:69:12: note: in definition of macro 'BTF_ID_LIST'
69 | static u32 name[];
| ^~~~
net/core/filter.c:4179:13: warning: array 'bpf_xdp_output_btf_ids' assumed to have one element
4179 | BTF_ID_LIST(bpf_xdp_output_btf_ids)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/btf_ids.h:69:12: note: in definition of macro 'BTF_ID_LIST'
69 | static u32 name[];
| ^~~~
>> net/core/filter.c:9268:13: warning: array 'btf_sock_ids' assumed to have one element
9268 | BTF_ID_LIST(btf_sock_ids)
| ^~~~~~~~~~~~
include/linux/btf_ids.h:69:12: note: in definition of macro 'BTF_ID_LIST'
69 | static u32 name[];
| ^~~~
/tmp/ccDB7ajn.s: Assembler messages:
>> /tmp/ccDB7ajn.s:66247: Error: symbol `btf_sock_ids' is already defined
/tmp/ccDB7ajn.s:67196: Error: symbol `bpf_xdp_output_btf_ids' is already defined
/tmp/ccDB7ajn.s:67344: Error: symbol `bpf_skb_output_btf_ids' is already defined
--
In file included from net/core/filter.c:78:
net/core/filter.c:3783:13: warning: array 'bpf_skb_output_btf_ids' assumed to have one element
3783 | BTF_ID_LIST(bpf_skb_output_btf_ids)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/btf_ids.h:69:12: note: in definition of macro 'BTF_ID_LIST'
69 | static u32 name[];
| ^~~~
net/core/filter.c:4179:13: warning: array 'bpf_xdp_output_btf_ids' assumed to have one element
4179 | BTF_ID_LIST(bpf_xdp_output_btf_ids)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/btf_ids.h:69:12: note: in definition of macro 'BTF_ID_LIST'
69 | static u32 name[];
| ^~~~
>> net/core/filter.c:9268:13: warning: array 'btf_sock_ids' assumed to have one element
9268 | BTF_ID_LIST(btf_sock_ids)
| ^~~~~~~~~~~~
include/linux/btf_ids.h:69:12: note: in definition of macro 'BTF_ID_LIST'
69 | static u32 name[];
| ^~~~
/tmp/cc1GpKvw.s: Assembler messages:
/tmp/cc1GpKvw.s:66247: Error: symbol `btf_sock_ids' is already defined
/tmp/cc1GpKvw.s:67196: Error: symbol `bpf_xdp_output_btf_ids' is already defined
/tmp/cc1GpKvw.s:67344: Error: symbol `bpf_skb_output_btf_ids' is already defined
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH 17/18] drm/arc: Move to drm/tiny
by kernel test robot
Hi Daniel,
I love your patch! Perhaps something to improve:
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip linus/master v5.8-rc5 next-20200717]
[cannot apply to arm/drm-armada-devel arm/drm-armada-fixes]
[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/Daniel-Vetter/drm-armada-Use-dev...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ed6b578040a85977026c93bf4188f996148f3218)
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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/tiny/arcpgu.c:137:36: warning: unused variable 'arc_pgu_crtc_funcs' [-Wunused-const-variable]
static const struct drm_crtc_funcs arc_pgu_crtc_funcs = {
^
1 warning generated.
vim +/arc_pgu_crtc_funcs +137 drivers/gpu/drm/tiny/arcpgu.c
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17 136
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17 @137 static const struct drm_crtc_funcs arc_pgu_crtc_funcs = {
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17 138 .destroy = drm_crtc_cleanup,
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17 139 .set_config = drm_atomic_helper_set_config,
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17 140 .page_flip = drm_atomic_helper_page_flip,
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17 141 .reset = drm_atomic_helper_crtc_reset,
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17 142 .atomic_duplicate_state = drm_atomic_helper_crtc_duplicate_state,
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17 143 .atomic_destroy_state = drm_atomic_helper_crtc_destroy_state,
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17 144 };
bdae5c29d72870d drivers/gpu/drm/arc/arcpgu_drv.c Daniel Vetter 2020-07-17 145
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[sashal-linux-stable:queue-5.4 76/106] drivers/clk/sunxi-ng/ccu-sun8i-de2.c:223:14: error: 'sun50i_a64_de2_clks' undeclared here (not in a function); did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 8fc787b62d0c673cca994da068df84905ddea333
commit: b92fbb5378148d812c8b1c3025a909b72acbe8c3 [76/106] clk: sunxi-ng: sun8i-de2: Add R40 specific quirks
config: mips-allmodconfig (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
git checkout b92fbb5378148d812c8b1c3025a909b72acbe8c3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/clk/sunxi-ng/ccu-sun8i-de2.c:223:14: error: 'sun50i_a64_de2_clks' undeclared here (not in a function); did you mean 'sun50i_h6_de3_clks'?
223 | .ccu_clks = sun50i_a64_de2_clks,
| ^~~~~~~~~~~~~~~~~~~
| sun50i_h6_de3_clks
In file included from include/linux/kernel.h:16,
from include/linux/clk.h:13,
from drivers/clk/sunxi-ng/ccu-sun8i-de2.c:6:
>> include/linux/build_bug.h:16:45: error: bit-field '<anonymous>' width not an integer constant
16 | #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))
| ^
include/linux/compiler.h:357:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
357 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
| ^~~~~~~~~~~~~~~~~
include/linux/kernel.h:47:59: note: in expansion of macro '__must_be_array'
47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
drivers/clk/sunxi-ng/ccu-sun8i-de2.c:224:18: note: in expansion of macro 'ARRAY_SIZE'
224 | .num_ccu_clks = ARRAY_SIZE(sun50i_a64_de2_clks),
| ^~~~~~~~~~
>> drivers/clk/sunxi-ng/ccu-sun8i-de2.c:226:14: error: 'sun50i_a64_de2_hw_clks' undeclared here (not in a function); did you mean 'sun50i_h6_de3_hw_clks'?
226 | .hw_clks = &sun50i_a64_de2_hw_clks,
| ^~~~~~~~~~~~~~~~~~~~~~
| sun50i_h6_de3_hw_clks
vim +223 drivers/clk/sunxi-ng/ccu-sun8i-de2.c
221
222 static const struct sunxi_ccu_desc sun8i_r40_de2_clk_desc = {
> 223 .ccu_clks = sun50i_a64_de2_clks,
224 .num_ccu_clks = ARRAY_SIZE(sun50i_a64_de2_clks),
225
> 226 .hw_clks = &sun50i_a64_de2_hw_clks,
227
228 .resets = sun8i_a83t_de2_resets,
229 .num_resets = ARRAY_SIZE(sun8i_a83t_de2_resets),
230 };
231
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[sashal-linux-stable:queue-5.4 66/106] drivers/mmc/host/renesas_sdhi_core.c:358:10: error: 'struct renesas_sdhi' has no member named 'quirks'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 8fc787b62d0c673cca994da068df84905ddea333
commit: 0b9c9db22bd4d3d9990d2de5066fdd83d7528da0 [66/106] mmc: renesas_sdhi: remove 4taps as a TMIO flag
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 0b9c9db22bd4d3d9990d2de5066fdd83d7528da0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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/mmc/host/renesas_sdhi_core.c: In function 'renesas_sdhi_hs400_complete':
>> drivers/mmc/host/renesas_sdhi_core.c:358:10: error: 'struct renesas_sdhi' has no member named 'quirks'
358 | if (priv->quirks && priv->quirks->hs400_4taps)
| ^~
drivers/mmc/host/renesas_sdhi_core.c:358:26: error: 'struct renesas_sdhi' has no member named 'quirks'
358 | if (priv->quirks && priv->quirks->hs400_4taps)
| ^~
drivers/mmc/host/renesas_sdhi_core.c: In function 'renesas_sdhi_check_scc_error':
drivers/mmc/host/renesas_sdhi_core.c:496:22: error: 'struct renesas_sdhi' has no member named 'quirks'
496 | bool use_4tap = priv->quirks && priv->quirks->hs400_4taps;
| ^~
drivers/mmc/host/renesas_sdhi_core.c:496:38: error: 'struct renesas_sdhi' has no member named 'quirks'
496 | bool use_4tap = priv->quirks && priv->quirks->hs400_4taps;
| ^~
vim +358 drivers/mmc/host/renesas_sdhi_core.c
332
333 static void renesas_sdhi_hs400_complete(struct tmio_mmc_host *host)
334 {
335 struct renesas_sdhi *priv = host_to_priv(host);
336
337 sd_ctrl_write16(host, CTL_SD_CARD_CLK_CTL, ~CLK_CTL_SCLKEN &
338 sd_ctrl_read16(host, CTL_SD_CARD_CLK_CTL));
339
340 /* Set HS400 mode */
341 sd_ctrl_write16(host, CTL_SDIF_MODE, 0x0001 |
342 sd_ctrl_read16(host, CTL_SDIF_MODE));
343
344 sd_scc_write32(host, priv, SH_MOBILE_SDHI_SCC_DT2FF,
345 priv->scc_tappos_hs400);
346
347 sd_scc_write32(host, priv, SH_MOBILE_SDHI_SCC_TMPPORT2,
348 (SH_MOBILE_SDHI_SCC_TMPPORT2_HS400EN |
349 SH_MOBILE_SDHI_SCC_TMPPORT2_HS400OSEL) |
350 sd_scc_read32(host, priv, SH_MOBILE_SDHI_SCC_TMPPORT2));
351
352 /* Set the sampling clock selection range of HS400 mode */
353 sd_scc_write32(host, priv, SH_MOBILE_SDHI_SCC_DTCNTL,
354 SH_MOBILE_SDHI_SCC_DTCNTL_TAPEN |
355 0x4 << SH_MOBILE_SDHI_SCC_DTCNTL_TAPNUM_SHIFT);
356
357
> 358 if (priv->quirks && priv->quirks->hs400_4taps)
359 sd_scc_write32(host, priv, SH_MOBILE_SDHI_SCC_TAPSET,
360 host->tap_set / 2);
361
362 sd_scc_write32(host, priv, SH_MOBILE_SDHI_SCC_CKSEL,
363 SH_MOBILE_SDHI_SCC_CKSEL_DTSEL |
364 sd_scc_read32(host, priv, SH_MOBILE_SDHI_SCC_CKSEL));
365
366 sd_ctrl_write16(host, CTL_SD_CARD_CLK_CTL, CLK_CTL_SCLKEN |
367 sd_ctrl_read16(host, CTL_SD_CARD_CLK_CTL));
368 }
369
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[sashal-linux-stable:queue-4.14 84/86] drivers/usb/host/pci-quirks.c:1261:9: error: implicit declaration of function 'rpi_firmware_init_vl805'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.14
head: 324f5f78b95b8b45dc8f35babd86861b6f35d3c3
commit: 9137510bedfa34f887d81f514d7b537d2c40ec3c [84/86] USB: pci-quirks: Add Raspberry Pi 4 quirk
config: alpha-defconfig (attached as .config)
compiler: alpha-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
git checkout 9137510bedfa34f887d81f514d7b537d2c40ec3c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=alpha
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/host/pci-quirks.c: In function 'quirk_usb_early_handoff':
>> drivers/usb/host/pci-quirks.c:1261:9: error: implicit declaration of function 'rpi_firmware_init_vl805'; did you mean 'rpi_firmware_get'? [-Werror=implicit-function-declaration]
ret = rpi_firmware_init_vl805(pdev);
^~~~~~~~~~~~~~~~~~~~~~~
rpi_firmware_get
drivers/usb/host/pci-quirks.c: In function 'quirk_usb_disable_ehci':
drivers/usb/host/pci-quirks.c:963:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
cap = 0; /* then fallthrough... */
~~~~^~~
drivers/usb/host/pci-quirks.c:964:3: note: here
default:
^~~~~~~
cc1: some warnings being treated as errors
vim +1261 drivers/usb/host/pci-quirks.c
1249
1250 static void quirk_usb_early_handoff(struct pci_dev *pdev)
1251 {
1252 int ret;
1253
1254 /* Skip Netlogic mips SoC's internal PCI USB controller.
1255 * This device does not need/support EHCI/OHCI handoff
1256 */
1257 if (pdev->vendor == 0x184e) /* vendor Netlogic */
1258 return;
1259
1260 if (pdev->vendor == PCI_VENDOR_ID_VIA && pdev->device == 0x3483) {
> 1261 ret = rpi_firmware_init_vl805(pdev);
1262 if (ret) {
1263 /* Firmware might be outdated, or something failed */
1264 dev_warn(&pdev->dev,
1265 "Failed to load VL805's firmware: %d. Will continue to attempt to work, but bad things might happen. You should fix this...\n",
1266 ret);
1267 }
1268 }
1269
1270 if (pdev->class != PCI_CLASS_SERIAL_USB_UHCI &&
1271 pdev->class != PCI_CLASS_SERIAL_USB_OHCI &&
1272 pdev->class != PCI_CLASS_SERIAL_USB_EHCI &&
1273 pdev->class != PCI_CLASS_SERIAL_USB_XHCI)
1274 return;
1275
1276 if (pci_enable_device(pdev) < 0) {
1277 dev_warn(&pdev->dev,
1278 "Can't enable PCI device, BIOS handoff failed.\n");
1279 return;
1280 }
1281 if (pdev->class == PCI_CLASS_SERIAL_USB_UHCI)
1282 quirk_usb_handoff_uhci(pdev);
1283 else if (pdev->class == PCI_CLASS_SERIAL_USB_OHCI)
1284 quirk_usb_handoff_ohci(pdev);
1285 else if (pdev->class == PCI_CLASS_SERIAL_USB_EHCI)
1286 quirk_usb_disable_ehci(pdev);
1287 else if (pdev->class == PCI_CLASS_SERIAL_USB_XHCI)
1288 quirk_usb_handoff_xhci(pdev);
1289 pci_disable_device(pdev);
1290 }
1291 DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID, PCI_ANY_ID,
1292 PCI_CLASS_SERIAL_USB, 8, quirk_usb_early_handoff);
1293
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
drivers/memory/samsung/exynos5422-dmc.c:216:6: warning: variable 'ret' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4ebf8d7649cd86c41c41bf48da4b7761da2d5009
commit: 6e7674c3c6df565ab47d02b4f2e608e3477cdf86 memory: Add DMC driver for Exynos5422
date: 10 months ago
config: arm-randconfig-r026-20200717 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 6e7674c3c6df565ab47d02b4f2e608e3477cdf86
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/memory/samsung/exynos5422-dmc.c: In function 'exynos5_switch_timing_regs':
>> drivers/memory/samsung/exynos5422-dmc.c:216:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
216 | int ret;
| ^~~
drivers/memory/samsung/exynos5422-dmc.c: At top level:
drivers/memory/samsung/exynos5422-dmc.c:736:1: warning: no previous prototype for 'exynos5_dmc_align_init_freq' [-Wmissing-prototypes]
736 | exynos5_dmc_align_init_freq(struct exynos5_dmc *dmc,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/ret +216 drivers/memory/samsung/exynos5422-dmc.c
199
200 /**
201 * exynos5_switch_timing_regs() - Changes bank register set for DRAM timings
202 * @dmc: device for which the new settings is going to be applied
203 * @set: boolean variable passing set value
204 *
205 * Changes the register set, which holds timing parameters.
206 * There is two register sets: 0 and 1. The register set 0
207 * is used in normal operation when the clock is provided from main PLL.
208 * The bank register set 1 is used when the main PLL frequency is going to be
209 * changed and the clock is taken from alternative, stable source.
210 * This function switches between these banks according to the
211 * currently used clock source.
212 */
213 static void exynos5_switch_timing_regs(struct exynos5_dmc *dmc, bool set)
214 {
215 unsigned int reg;
> 216 int ret;
217
218 ret = regmap_read(dmc->clk_regmap, CDREX_LPDDR3PHY_CON3, ®);
219
220 if (set)
221 reg |= EXYNOS5_TIMING_SET_SWI;
222 else
223 reg &= ~EXYNOS5_TIMING_SET_SWI;
224
225 regmap_write(dmc->clk_regmap, CDREX_LPDDR3PHY_CON3, reg);
226 }
227
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[mark-rutland:arm64/entry-deasm-new 12/12] arch/arm64/kernel/entry-common.c:366:25: warning: no previous prototype for 'el1_irq_handler'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/entry-deasm-new
head: ba43343df6dc8eb4be061490e0b895ec945ea4f3
commit: ba43343df6dc8eb4be061490e0b895ec945ea4f3 [12/12] arm64: entry: convert irq entry to C
config: arm64-randconfig-r001-20200717 (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
git checkout ba43343df6dc8eb4be061490e0b895ec945ea4f3
# 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 >>):
arch/arm64/kernel/entry-common.c:71:25: warning: no previous prototype for 'el1_sync_handler' [-Wmissing-prototypes]
71 | asmlinkage void notrace el1_sync_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~
arch/arm64/kernel/entry-common.c:226:25: warning: no previous prototype for 'el0_sync_handler' [-Wmissing-prototypes]
226 | asmlinkage void notrace el0_sync_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~
>> arch/arm64/kernel/entry-common.c:366:25: warning: no previous prototype for 'el1_irq_handler' [-Wmissing-prototypes]
366 | asmlinkage void notrace el1_irq_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~
>> arch/arm64/kernel/entry-common.c:384:25: warning: no previous prototype for 'el0_irq_handler' [-Wmissing-prototypes]
384 | asmlinkage void notrace el0_irq_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~
vim +/el1_irq_handler +366 arch/arm64/kernel/entry-common.c
365
> 366 asmlinkage void notrace el1_irq_handler(struct pt_regs *regs)
367 {
368 trace_hardirqs_off();
369 invoke_irq_handler(regs);
370 el1_preempt();
371 trace_hardirqs_on();
372 }
373 NOKPROBE_SYMBOL(el1_irq_handler);
374
375 static inline void notrace do_el0_irq_bp_hardening(struct pt_regs *regs)
376 {
377 if (!IS_ENABLED(CONFIG_HARDEN_BRANCH_PREDICTOR))
378 return;
379 if (regs->pc & BIT(55))
380 arm64_apply_bp_hardening();
381 }
382 NOKPROBE_SYMBOL(do_el0_irq_bp_hardening);
383
> 384 asmlinkage void notrace el0_irq_handler(struct pt_regs *regs)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months