arch/arm64/kvm/va_layout.c:255:6: warning: no previous prototype for function 'kvm_get_kimage_voffset'
by kernel test robot
Hi Marc,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fd0aa1a4567d0f09e1bfe367a950b004f99ac290
commit: 68b824e428c5fb5c3dc5ef80b1543e767534b58e KVM: arm64: Patch kimage_voffset instead of loading the EL1 value
date: 7 months ago
config: arm64-randconfig-r003-20210618 (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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-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 68b824e428c5fb5c3dc5ef80b1543e767534b58e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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/kvm/va_layout.c:138:6: warning: no previous prototype for function 'kvm_patch_vector_branch' [-Wmissing-prototypes]
void kvm_patch_vector_branch(struct alt_instr *alt,
^
arch/arm64/kvm/va_layout.c:138:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kvm_patch_vector_branch(struct alt_instr *alt,
^
static
arch/arm64/kvm/va_layout.c:249:6: warning: no previous prototype for function 'kvm_update_kimg_phys_offset' [-Wmissing-prototypes]
void kvm_update_kimg_phys_offset(struct alt_instr *alt,
^
arch/arm64/kvm/va_layout.c:249:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kvm_update_kimg_phys_offset(struct alt_instr *alt,
^
static
>> arch/arm64/kvm/va_layout.c:255:6: warning: no previous prototype for function 'kvm_get_kimage_voffset' [-Wmissing-prototypes]
void kvm_get_kimage_voffset(struct alt_instr *alt,
^
arch/arm64/kvm/va_layout.c:255:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kvm_get_kimage_voffset(struct alt_instr *alt,
^
static
3 warnings generated.
vim +/kvm_get_kimage_voffset +255 arch/arm64/kvm/va_layout.c
254
> 255 void kvm_get_kimage_voffset(struct alt_instr *alt,
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[android-common:android-3.18 143/170] drivers/tty/serial/atmel_serial.c:745:3: error: implicit declaration of function 'atmel_uart_writel'
by kernel test robot
tree: https://android.googlesource.com/kernel/common android-3.18
head: 4ab5ed1b2426544d8c587343973654305580d2f7
commit: e6987658af51adc475e3769d466a739d753134bd [143/170] tty/serial: atmel: RS485 HD w/DMA: enable RX after TX is stopped
config: arm-at91_dt_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 5.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 remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-3.18
git checkout e6987658af51adc475e3769d466a739d753134bd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-5.5.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/dma-mapping.h:82:0,
from drivers/tty/serial/atmel_serial.c:39:
arch/arm/include/asm/dma-mapping.h: In function 'dma_mapping_error':
arch/arm/include/asm/dma-mapping.h:170:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return dma_addr == DMA_ERROR_CODE;
^
drivers/tty/serial/atmel_serial.c: At top level:
drivers/tty/serial/atmel_serial.c:296:6: warning: no previous declaration for 'atmel_config_rs485' [-Wmissing-declarations]
void atmel_config_rs485(struct uart_port *port, struct serial_rs485 *rs485conf)
^
drivers/tty/serial/atmel_serial.c: In function 'atmel_complete_tx_dma':
>> drivers/tty/serial/atmel_serial.c:745:3: error: implicit declaration of function 'atmel_uart_writel' [-Werror=implicit-function-declaration]
atmel_uart_writel(port, ATMEL_US_IER,
^
drivers/tty/serial/atmel_serial.c: In function 'atmel_rx_from_dma':
drivers/tty/serial/atmel_serial.c:972:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pending > ring->head) {
^
drivers/tty/serial/atmel_serial.c:978:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (ring->head == sg_dma_len(&atmel_port->sg_rx))
^
drivers/tty/serial/atmel_serial.c: In function 'atmel_handle_transmit':
>> drivers/tty/serial/atmel_serial.c:1143:10: error: implicit declaration of function 'atmel_uart_readl' [-Werror=implicit-function-declaration]
if (!(atmel_uart_readl(port, ATMEL_US_CSR)
^
drivers/tty/serial/atmel_serial.c: In function 'atmel_verify_port':
drivers/tty/serial/atmel_serial.c:2145:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (port->irq != ser->irq)
^
drivers/tty/serial/atmel_serial.c:2149:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (port->uartclk / 16 != ser->baud_base)
^
drivers/tty/serial/atmel_serial.c: In function 'atmel_is_console_port':
drivers/tty/serial/atmel_serial.c:2475:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return port->cons && port->cons->index == port->line;
^
cc1: some warnings being treated as errors
vim +/atmel_uart_writel +745 drivers/tty/serial/atmel_serial.c
708
709 static void atmel_complete_tx_dma(void *arg)
710 {
711 struct atmel_uart_port *atmel_port = arg;
712 struct uart_port *port = &atmel_port->uart;
713 struct circ_buf *xmit = &port->state->xmit;
714 struct dma_chan *chan = atmel_port->chan_tx;
715 unsigned long flags;
716
717 spin_lock_irqsave(&port->lock, flags);
718
719 if (chan)
720 dmaengine_terminate_all(chan);
721 xmit->tail += sg_dma_len(&atmel_port->sg_tx);
722 xmit->tail &= UART_XMIT_SIZE - 1;
723
724 port->icount.tx += sg_dma_len(&atmel_port->sg_tx);
725
726 spin_lock_irq(&atmel_port->lock_tx);
727 async_tx_ack(atmel_port->desc_tx);
728 atmel_port->cookie_tx = -EINVAL;
729 atmel_port->desc_tx = NULL;
730 spin_unlock_irq(&atmel_port->lock_tx);
731
732 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
733 uart_write_wakeup(port);
734
735 /* Do we really need this? */
736 if (!uart_circ_empty(xmit))
737 tasklet_schedule(&atmel_port->tasklet);
738 else if ((atmel_port->rs485.flags & SER_RS485_ENABLED) &&
739 !(atmel_port->rs485.flags & SER_RS485_RX_DURING_TX)) {
740 /*
741 * DMA done, re-enable TXEMPTY and signal that we can stop
742 * TX and start RX for RS485
743 */
744 atmel_port->hd_start_rx = true;
> 745 atmel_uart_writel(port, ATMEL_US_IER,
746 atmel_port->tx_done_mask);
747 }
748
749 spin_unlock_irqrestore(&port->lock, flags);
750 }
751
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
arch/x86/net/bpf_jit_comp.c:1647:5: warning: no previous prototype for 'arch_prepare_bpf_dispatcher'
by kernel test robot
Hi Björn,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fd0aa1a4567d0f09e1bfe367a950b004f99ac290
commit: 75ccbef6369e94ecac696a152a998a978d41376b bpf: Introduce BPF dispatcher
date: 1 year, 6 months ago
config: x86_64-randconfig-r023-20210618 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# 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 75ccbef6369e94ecac696a152a998a978d41376b
# 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 warnings (new ones prefixed by >>):
>> arch/x86/net/bpf_jit_comp.c:1647:5: warning: no previous prototype for 'arch_prepare_bpf_dispatcher' [-Wmissing-prototypes]
1647 | int arch_prepare_bpf_dispatcher(void *image, s64 *funcs, int num_funcs)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/arch_prepare_bpf_dispatcher +1647 arch/x86/net/bpf_jit_comp.c
1646
> 1647 int arch_prepare_bpf_dispatcher(void *image, s64 *funcs, int num_funcs)
1648 {
1649 u8 *prog = image;
1650
1651 sort(funcs, num_funcs, sizeof(funcs[0]), cmp_ips, NULL);
1652 return emit_bpf_dispatcher(&prog, 0, num_funcs - 1, funcs);
1653 }
1654
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[mcgrof-next:20210427-vfio-pcie-trylock-dev 1/1] drivers/vfio/pci/vfio_pci.c:480:27: error: implicit declaration of function 'pci_dev_trylock'; did you mean 'inode_trylock'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210427-vfio-pcie-trylock-dev
head: 70d0589eb9f34237c5a891c7751802042188461f
commit: 70d0589eb9f34237c5a891c7751802042188461f [1/1] vfio: use helper to simplify try lock
config: ia64-randconfig-r006-20210618 (attached as .config)
compiler: ia64-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/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20210427-vfio-pcie-trylock-dev
git checkout 70d0589eb9f34237c5a891c7751802042188461f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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/ia64/include/asm/pgtable.h:154,
from include/linux/pgtable.h:6,
from arch/ia64/include/asm/uaccess.h:40,
from include/linux/uaccess.h:11,
from arch/ia64/include/asm/sections.h:11,
from include/linux/interrupt.h:20,
from drivers/vfio/pci/vfio_pci.c:16:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:127:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
drivers/vfio/pci/vfio_pci.c: In function 'vfio_pci_disable':
>> drivers/vfio/pci/vfio_pci.c:480:27: error: implicit declaration of function 'pci_dev_trylock'; did you mean 'inode_trylock'? [-Werror=implicit-function-declaration]
480 | if (vdev->reset_works && pci_dev_trylock(pdev)) {
| ^~~~~~~~~~~~~~~
| inode_trylock
>> drivers/vfio/pci/vfio_pci.c:483:3: error: implicit declaration of function 'pci_dev_unlock'; did you mean 'pci_dev_run_wake'? [-Werror=implicit-function-declaration]
483 | pci_dev_unlock(pdev);
| ^~~~~~~~~~~~~~
| pci_dev_run_wake
cc1: some warnings being treated as errors
vim +480 drivers/vfio/pci/vfio_pci.c
399
400 static void vfio_pci_disable(struct vfio_pci_device *vdev)
401 {
402 struct pci_dev *pdev = vdev->pdev;
403 struct vfio_pci_dummy_resource *dummy_res, *tmp;
404 struct vfio_pci_ioeventfd *ioeventfd, *ioeventfd_tmp;
405 int i, bar;
406
407 /* Stop the device from further DMA */
408 pci_clear_master(pdev);
409
410 vfio_pci_set_irqs_ioctl(vdev, VFIO_IRQ_SET_DATA_NONE |
411 VFIO_IRQ_SET_ACTION_TRIGGER,
412 vdev->irq_type, 0, 0, NULL);
413
414 /* Device closed, don't need mutex here */
415 list_for_each_entry_safe(ioeventfd, ioeventfd_tmp,
416 &vdev->ioeventfds_list, next) {
417 vfio_virqfd_disable(&ioeventfd->virqfd);
418 list_del(&ioeventfd->next);
419 kfree(ioeventfd);
420 }
421 vdev->ioeventfds_nr = 0;
422
423 vdev->virq_disabled = false;
424
425 for (i = 0; i < vdev->num_regions; i++)
426 vdev->region[i].ops->release(vdev, &vdev->region[i]);
427
428 vdev->num_regions = 0;
429 kfree(vdev->region);
430 vdev->region = NULL; /* don't krealloc a freed pointer */
431
432 vfio_config_free(vdev);
433
434 for (i = 0; i < PCI_STD_NUM_BARS; i++) {
435 bar = i + PCI_STD_RESOURCES;
436 if (!vdev->barmap[bar])
437 continue;
438 pci_iounmap(pdev, vdev->barmap[bar]);
439 pci_release_selected_regions(pdev, 1 << bar);
440 vdev->barmap[bar] = NULL;
441 }
442
443 list_for_each_entry_safe(dummy_res, tmp,
444 &vdev->dummy_resources_list, res_next) {
445 list_del(&dummy_res->res_next);
446 release_resource(&dummy_res->resource);
447 kfree(dummy_res);
448 }
449
450 vdev->needs_reset = true;
451
452 /*
453 * If we have saved state, restore it. If we can reset the device,
454 * even better. Resetting with current state seems better than
455 * nothing, but saving and restoring current state without reset
456 * is just busy work.
457 */
458 if (pci_load_and_free_saved_state(pdev, &vdev->pci_saved_state)) {
459 pci_info(pdev, "%s: Couldn't reload saved state\n", __func__);
460
461 if (!vdev->reset_works)
462 goto out;
463
464 pci_save_state(pdev);
465 }
466
467 /*
468 * Disable INTx and MSI, presumably to avoid spurious interrupts
469 * during reset. Stolen from pci_reset_function()
470 */
471 pci_write_config_word(pdev, PCI_COMMAND, PCI_COMMAND_INTX_DISABLE);
472
473 /*
474 * Try to get the locks ourselves to prevent a deadlock. The
475 * success of this is dependent on being able to lock the device,
476 * which is not always possible.
477 * We can not use the "try" reset interface here, which will
478 * overwrite the previously restored configuration information.
479 */
> 480 if (vdev->reset_works && pci_dev_trylock(pdev)) {
481 if (!__pci_reset_function_locked(pdev))
482 vdev->needs_reset = false;
> 483 pci_dev_unlock(pdev);
484 }
485
486 pci_restore_state(pdev);
487 out:
488 pci_disable_device(pdev);
489
490 vfio_pci_try_bus_reset(vdev);
491
492 if (!disable_idle_d3)
493 vfio_pci_set_power_state(vdev, PCI_D3hot);
494 }
495
---
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 v2 3/3] clk: qcom: mmcc-msm8994: Add MSM8992 support
by kernel test robot
Hi Konrad,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on clk/clk-next]
[also build test WARNING 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/Konrad-Dybcio/dt-bindings-clock-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: arc-randconfig-s032-20210618 (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/0day-ci/linux/commit/efd6185eeb7cf2bba1e205fd0cb32136f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Konrad-Dybcio/dt-bindings-clock-Add-support-for-MSM8992-4-MMCC/20210618-032911
git checkout efd6185eeb7cf2bba1e205fd0cb32136f2dd80ad
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/clk/qcom/mmcc-msm8994.c:2566:64: sparse: sparse: Using plain integer as NULL pointer
drivers/clk/qcom/mmcc-msm8994.c:2567:64: sparse: sparse: Using plain integer as NULL pointer
drivers/clk/qcom/mmcc-msm8994.c:2568:59: sparse: sparse: Using plain integer as NULL pointer
drivers/clk/qcom/mmcc-msm8994.c:2569:55: sparse: sparse: Using plain integer as NULL pointer
drivers/clk/qcom/mmcc-msm8994.c:2570:59: sparse: sparse: Using plain integer as NULL pointer
drivers/clk/qcom/mmcc-msm8994.c:2571:54: sparse: sparse: Using plain integer as NULL pointer
drivers/clk/qcom/mmcc-msm8994.c:2572:54: sparse: sparse: Using plain integer as NULL pointer
drivers/clk/qcom/mmcc-msm8994.c:2573:57: sparse: sparse: Using plain integer as NULL pointer
drivers/clk/qcom/mmcc-msm8994.c:2574:57: sparse: sparse: Using plain integer as NULL pointer
drivers/clk/qcom/mmcc-msm8994.c:2575:67: sparse: sparse: Using plain integer as NULL pointer
drivers/clk/qcom/mmcc-msm8994.c:2577:52: sparse: sparse: Using plain integer as NULL pointer
drivers/clk/qcom/mmcc-msm8994.c:2578:61: sparse: sparse: Using plain integer as NULL pointer
vim +2566 drivers/clk/qcom/mmcc-msm8994.c
2559
2560 static int mmcc_msm8994_probe(struct platform_device *pdev)
2561 {
2562 struct regmap *regmap;
2563
2564 if (of_device_is_compatible(pdev->dev.of_node, "qcom,mmcc-msm8992")) {
2565 /* MSM8992 features less clocks and some have different freq tables */
> 2566 mmcc_msm8994_desc.clks[CAMSS_JPEG_JPEG1_CLK] = 0;
2567 mmcc_msm8994_desc.clks[CAMSS_JPEG_JPEG2_CLK] = 0;
2568 mmcc_msm8994_desc.clks[FD_CORE_CLK_SRC] = 0;
2569 mmcc_msm8994_desc.clks[FD_CORE_CLK] = 0;
2570 mmcc_msm8994_desc.clks[FD_CORE_UAR_CLK] = 0;
2571 mmcc_msm8994_desc.clks[FD_AXI_CLK] = 0;
2572 mmcc_msm8994_desc.clks[FD_AHB_CLK] = 0;
2573 mmcc_msm8994_desc.clks[JPEG1_CLK_SRC] = 0;
2574 mmcc_msm8994_desc.clks[JPEG2_CLK_SRC] = 0;
2575 mmcc_msm8994_desc.clks[VENUS0_CORE2_VCODEC_CLK] = 0;
2576
2577 mmcc_msm8994_desc.gdscs[FD_GDSC] = 0;
2578 mmcc_msm8994_desc.gdscs[VENUS_CORE2_GDSC] = 0;
2579
2580 axi_clk_src.freq_tbl = ftbl_axi_clk_src_8992;
2581 cpp_clk_src.freq_tbl = ftbl_cpp_clk_src_8992;
2582 csi0_clk_src.freq_tbl = ftbl_csi0_1_2_3_clk_src_8992;
2583 csi1_clk_src.freq_tbl = ftbl_csi0_1_2_3_clk_src_8992;
2584 csi2_clk_src.freq_tbl = ftbl_csi0_1_2_3_clk_src_8992;
2585 csi3_clk_src.freq_tbl = ftbl_csi0_1_2_3_clk_src_8992;
2586 mclk0_clk_src.freq_tbl = ftbl_mclk0_clk_src_8992;
2587 mclk1_clk_src.freq_tbl = ftbl_mclk1_2_3_clk_src_8992;
2588 mclk2_clk_src.freq_tbl = ftbl_mclk1_2_3_clk_src_8992;
2589 mclk3_clk_src.freq_tbl = ftbl_mclk1_2_3_clk_src_8992;
2590 mdp_clk_src.freq_tbl = ftbl_mdp_clk_src_8992;
2591 ocmemnoc_clk_src.freq_tbl = ftbl_ocmemnoc_clk_src_8992;
2592 vcodec0_clk_src.freq_tbl = ftbl_vcodec0_clk_src_8992;
2593 vfe0_clk_src.freq_tbl = ftbl_vfe0_1_clk_src_8992;
2594 vfe1_clk_src.freq_tbl = ftbl_vfe0_1_clk_src_8992;
2595 }
2596
2597 regmap = qcom_cc_map(pdev, &mmcc_msm8994_desc);
2598 if (IS_ERR(regmap))
2599 return PTR_ERR(regmap);
2600
2601 clk_alpha_pll_configure(&mmpll0_early, regmap, &mmpll_p_config);
2602 clk_alpha_pll_configure(&mmpll1_early, regmap, &mmpll_p_config);
2603 clk_alpha_pll_configure(&mmpll3_early, regmap, &mmpll_p_config);
2604 clk_alpha_pll_configure(&mmpll5_early, regmap, &mmpll_p_config);
2605
2606 return qcom_cc_really_probe(pdev, &mmcc_msm8994_desc, regmap);
2607 }
2608
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[xlnx:xlnx_rebase_v5.4 1296/1762] drivers/gpio/gpio-xilinx.c:314:25: sparse: sparse: cast truncates bits from constant value (ffffffff7fffffff becomes 7fffffff)
by kernel test robot
Hi Vishal,
First bad commit (maybe != root cause):
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: d128303e4c53bcf7775c46771bf64c71596f3303
commit: 0b197959bbbdb68e1da974bd013339f08704b178 [1296/1762] staging: xlnxsync: Fix the uapi header license
config: x86_64-randconfig-s022-20210618 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/Xilinx/linux-xlnx/commit/0b197959bbbdb68e1da974bd01333...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 0b197959bbbdb68e1da974bd013339f08704b178
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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>
sparse warnings: (new ones prefixed by >>)
drivers/gpio/gpio-xilinx.c:694:39: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] tree_info @@
drivers/gpio/gpio-xilinx.c:694:39: sparse: expected restricted __be32 const [usertype] *p
drivers/gpio/gpio-xilinx.c:694:39: sparse: got unsigned int const [usertype] *[assigned] tree_info
>> drivers/gpio/gpio-xilinx.c:314:25: sparse: sparse: cast truncates bits from constant value (ffffffff7fffffff becomes 7fffffff)
vim +314 drivers/gpio/gpio-xilinx.c
35b74a9ed928b0 Srinivas Neeli 2020-02-17 285
256f37f6020654 Srinivas Neeli 2020-02-17 286 /**
af0c19b6f15388 Michal Simek 2017-09-13 287 * xgpio_irq_mask - Write the specified signal of the GPIO device.
256f37f6020654 Srinivas Neeli 2020-02-17 288 * @irq_data: per irq and chip data passed down to chip functions
256f37f6020654 Srinivas Neeli 2020-02-17 289 */
256f37f6020654 Srinivas Neeli 2020-02-17 290 static void xgpio_irq_mask(struct irq_data *irq_data)
256f37f6020654 Srinivas Neeli 2020-02-17 291 {
256f37f6020654 Srinivas Neeli 2020-02-17 292 unsigned long flags;
256f37f6020654 Srinivas Neeli 2020-02-17 293 struct xgpio_instance *chip = irq_data_get_irq_chip_data(irq_data);
af0c19b6f15388 Michal Simek 2017-09-13 294 struct of_mm_gpio_chip *mm_gc = &chip->mmchip;
256f37f6020654 Srinivas Neeli 2020-02-17 295 u32 offset = irq_data->irq - chip->irq_base;
256f37f6020654 Srinivas Neeli 2020-02-17 296 u32 temp;
256f37f6020654 Srinivas Neeli 2020-02-17 297
256f37f6020654 Srinivas Neeli 2020-02-17 298 pr_debug("%s: Disable %d irq, irq_enable_mask 0x%x\n",
256f37f6020654 Srinivas Neeli 2020-02-17 299 __func__, offset, chip->irq_enable);
256f37f6020654 Srinivas Neeli 2020-02-17 300
af0c19b6f15388 Michal Simek 2017-09-13 301 spin_lock_irqsave(&chip->gpio_lock, flags);
256f37f6020654 Srinivas Neeli 2020-02-17 302
256f37f6020654 Srinivas Neeli 2020-02-17 303 chip->irq_enable &= ~BIT(offset);
256f37f6020654 Srinivas Neeli 2020-02-17 304
256f37f6020654 Srinivas Neeli 2020-02-17 305 if (!chip->irq_enable) {
256f37f6020654 Srinivas Neeli 2020-02-17 306 /* Enable per channel interrupt */
af0c19b6f15388 Michal Simek 2017-09-13 307 temp = xgpio_readreg(mm_gc->regs + XGPIO_IPIER_OFFSET);
af0c19b6f15388 Michal Simek 2017-09-13 308 temp &= chip->offset / XGPIO_CHANNEL_OFFSET + 1;
af0c19b6f15388 Michal Simek 2017-09-13 309 xgpio_writereg(mm_gc->regs + XGPIO_IPIER_OFFSET, temp);
256f37f6020654 Srinivas Neeli 2020-02-17 310
256f37f6020654 Srinivas Neeli 2020-02-17 311 /* Disable global interrupt if channel interrupts are unused */
af0c19b6f15388 Michal Simek 2017-09-13 312 temp = xgpio_readreg(mm_gc->regs + XGPIO_IPIER_OFFSET);
256f37f6020654 Srinivas Neeli 2020-02-17 313 if (!temp)
af0c19b6f15388 Michal Simek 2017-09-13 @314 xgpio_writereg(mm_gc->regs + XGPIO_GIER_OFFSET,
256f37f6020654 Srinivas Neeli 2020-02-17 315 ~XGPIO_GIER_IE);
af0c19b6f15388 Michal Simek 2017-09-13 316
256f37f6020654 Srinivas Neeli 2020-02-17 317 }
af0c19b6f15388 Michal Simek 2017-09-13 318 spin_unlock_irqrestore(&chip->gpio_lock, flags);
256f37f6020654 Srinivas Neeli 2020-02-17 319 }
256f37f6020654 Srinivas Neeli 2020-02-17 320
:::::: The code at line 314 was first introduced by commit
:::::: af0c19b6f15388c554317280433100fd9f3d7d0a gpio: xilinx: Use xilinx tested gpio driver
:::::: TO: Michal Simek <michal.simek(a)xilinx.com>
:::::: CC: Michal Simek <michal.simek(a)xilinx.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[mcgrof-next:20210427-sysfs-fix-races-v4 3/3] drivers/base/bus.c:42:18: warning: no previous prototype for function 'bus_get'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210427-sysfs-fix-races-v4
head: 177cab73f0f242ce77398095d9c54d76d7fa46df
commit: 177cab73f0f242ce77398095d9c54d76d7fa46df [3/3] drivers/base/core: refcount kobject and bus on device attribute read / store
config: powerpc-randconfig-r002-20210618 (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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20210427-sysfs-fix-races-v4
git checkout 177cab73f0f242ce77398095d9c54d76d7fa46df
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
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 >>):
In file included from drivers/base/bus.c:11:
In file included from include/linux/async.h:12:
In file included from include/linux/list.h:9:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:309:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/base/bus.c:42:18: warning: no previous prototype for function 'bus_get' [-Wmissing-prototypes]
struct bus_type *bus_get(struct bus_type *bus)
^
drivers/base/bus.c:42:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct bus_type *bus_get(struct bus_type *bus)
^
static
>> drivers/base/bus.c:51:6: warning: no previous prototype for function 'bus_put' [-Wmissing-prototypes]
void bus_put(struct bus_type *bus)
^
drivers/base/bus.c:51:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void bus_put(struct bus_type *bus)
^
static
3 warnings generated.
vim +/bus_get +42 drivers/base/bus.c
34
35 #define DRIVER_ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) \
36 struct driver_attribute driver_attr_##_name = \
37 __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store)
38
39 static int __must_check bus_rescan_devices_helper(struct device *dev,
40 void *data);
41
> 42 struct bus_type *bus_get(struct bus_type *bus)
43 {
44 if (bus) {
45 kset_get(&bus->p->subsys);
46 return bus;
47 }
48 return NULL;
49 }
50
> 51 void bus_put(struct bus_type *bus)
52 {
53 if (bus)
54 kset_put(&bus->p->subsys);
55 }
56
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months