[omap:serdev-ngsm-pending-v5.7 20/29] drivers/gnss/motmdm.c:71:5: warning: no previous prototype for function 'motmdm_gnss_send_command'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git serdev-ngsm-pending-v5.7
head: 4eda51fea6be98ca5a4023a988b102bf3629b295
commit: ae348e86a0abccb615c8875a95d63f10268f1c4f [20/29] gnss: motmdm: Add support for Motorola Mapphone MDM6600 modem
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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
git checkout ae348e86a0abccb615c8875a95d63f10268f1c4f
# 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: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/gnss/motmdm.c:71:5: warning: no previous prototype for function 'motmdm_gnss_send_command' [-Wmissing-prototypes]
int motmdm_gnss_send_command(struct motmdm_gnss_data *ddata,
^
drivers/gnss/motmdm.c:71:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int motmdm_gnss_send_command(struct motmdm_gnss_data *ddata,
^
static
1 warning generated.
vim +/motmdm_gnss_send_command +71 drivers/gnss/motmdm.c
62
63 /*
64 * Note that multiple commands can be sent in series with responses coming
65 * out-of-order. For GNSS, we don't need to care about the out-of-order
66 * responses, and can assume we have at most one command active at a time.
67 * For the commands, can use just a jiffies base packet ID and let the modem
68 * sort out the ID conflicts with the modem's unsolicited message ID
69 * numbering.
70 */
> 71 int motmdm_gnss_send_command(struct motmdm_gnss_data *ddata,
72 const u8 *buf, int len)
73 {
74 struct gnss_device *gdev = ddata->gdev;
75 const int timeout_ms = 1000;
76 unsigned char cmd[128];
77 int ret, cmdlen;
78
79 cmdlen = len + 5 + 1;
80 if (cmdlen > 128)
81 return -EINVAL;
82
83 mutex_lock(&ddata->mutex);
84 memset(ddata->buf, 0, ddata->len);
85 ddata->parsed = false;
86 snprintf(cmd, cmdlen, "U%04li%s", jiffies % 10000, buf);
87 ret = serdev_ngsm_write(ddata->modem, &ddata->dlci, cmd, cmdlen);
88 if (ret < 0)
89 goto out_unlock;
90
91 ret = wait_event_timeout(ddata->read_queue, ddata->parsed,
92 msecs_to_jiffies(timeout_ms));
93 if (ret == 0) {
94 ret = -ETIMEDOUT;
95 goto out_unlock;
96 } else if (ret < 0) {
97 goto out_unlock;
98 }
99
100 if (!strstr(ddata->buf, ":OK")) {
101 dev_err(&gdev->dev, "command %s error %s\n",
102 cmd, ddata->buf);
103 ret = -EPIPE;
104 }
105
106 ret = len;
107
108 out_unlock:
109 mutex_unlock(&ddata->mutex);
110
111 return ret;
112 }
113
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[peterz-queue:locking/kcsan 14/21] arch/arm/include/asm/atomic.h:237:1: sparse: sparse: context imbalance in 'zram_slot_lock' - wrong count at exit
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/kcsan
head: ffed638b6a2180da8fd002a46632d746af72b299
commit: 7b364f0949ae2dd205d5e9afa4b82ee17030d928 [14/21] READ_ONCE: Drop pointer qualifiers when reading from scalar types
config: arm-randconfig-s002-20200521 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-193-gb8fad4bc-dirty
git checkout 7b364f0949ae2dd205d5e9afa4b82ee17030d928
# save the attached .config to linux build tree
make W=1 C=1 ARCH=arm CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
include/linux/bit_spinlock.h:41:19: sparse: sparse: context imbalance in 'zram_slot_trylock' - different lock contexts for basic block
>> arch/arm/include/asm/atomic.h:237:1: sparse: sparse: context imbalance in 'zram_slot_lock' - wrong count at exit
include/linux/bit_spinlock.h:66:9: sparse: sparse: context imbalance in 'zram_slot_unlock' - unexpected unlock
vim +/zram_slot_lock +237 arch/arm/include/asm/atomic.h
125897908c71897 Peter Zijlstra 2014-04-23 229
6da068c1beba684 Peter Zijlstra 2016-04-18 230 #undef ATOMIC_OPS
6da068c1beba684 Peter Zijlstra 2016-04-18 231 #define ATOMIC_OPS(op, c_op, asm_op) \
6da068c1beba684 Peter Zijlstra 2016-04-18 232 ATOMIC_OP(op, c_op, asm_op) \
6da068c1beba684 Peter Zijlstra 2016-04-18 233 ATOMIC_FETCH_OP(op, c_op, asm_op)
6da068c1beba684 Peter Zijlstra 2016-04-18 234
6da068c1beba684 Peter Zijlstra 2016-04-18 235 ATOMIC_OPS(and, &=, and)
6da068c1beba684 Peter Zijlstra 2016-04-18 236 ATOMIC_OPS(andnot, &= ~, bic)
6da068c1beba684 Peter Zijlstra 2016-04-18 @237 ATOMIC_OPS(or, |=, orr)
6da068c1beba684 Peter Zijlstra 2016-04-18 238 ATOMIC_OPS(xor, ^=, eor)
125897908c71897 Peter Zijlstra 2014-04-23 239
:::::: The code at line 237 was first introduced by commit
:::::: 6da068c1beba684b2a0dbf43a07b0529edd9e959 locking/atomic, arch/arm: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}{,_relaxed,_acquire,_release}()
:::::: TO: Peter Zijlstra <peterz(a)infradead.org>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH V6 6/7] spi: spi-qcom-qspi: Add interconnect support
by kbuild test robot
Hi Akash,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tty/tty-testing]
[also build test ERROR on spi/for-next wsa/i2c/for-next usb/usb-testing driver-core/driver-core-testing linus/master v5.7-rc6]
[cannot apply to next-20200522]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Akash-Asthana/Add-interconnect-s...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
config: arm64-randconfig-r026-20200521 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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
# 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: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/spi/spi-qcom-qspi.c:479:31: error: implicit declaration of function 'devm_of_icc_get' [-Werror,-Wimplicit-function-declaration]
ctrl->icc_path_cpu_to_qspi = devm_of_icc_get(dev, "qspi-config");
^
>> drivers/spi/spi-qcom-qspi.c:479:29: warning: incompatible integer to pointer conversion assigning to 'struct icc_path *' from 'int' [-Wint-conversion]
ctrl->icc_path_cpu_to_qspi = devm_of_icc_get(dev, "qspi-config");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-qcom-qspi.c:495:8: error: implicit declaration of function 'icc_disable' [-Werror,-Wimplicit-function-declaration]
ret = icc_disable(ctrl->icc_path_cpu_to_qspi);
^
drivers/spi/spi-qcom-qspi.c:495:8: note: did you mean 'clk_disable'?
include/linux/clk.h:519:6: note: 'clk_disable' declared here
void clk_disable(struct clk *clk);
^
drivers/spi/spi-qcom-qspi.c:559:8: error: implicit declaration of function 'icc_disable' [-Werror,-Wimplicit-function-declaration]
ret = icc_disable(ctrl->icc_path_cpu_to_qspi);
^
>> drivers/spi/spi-qcom-qspi.c:575:8: error: implicit declaration of function 'icc_enable' [-Werror,-Wimplicit-function-declaration]
ret = icc_enable(ctrl->icc_path_cpu_to_qspi);
^
drivers/spi/spi-qcom-qspi.c:575:8: note: did you mean 'clk_enable'?
include/linux/clk.h:491:5: note: 'clk_enable' declared here
int clk_enable(struct clk *clk);
^
1 warning and 4 errors generated.
vim +/devm_of_icc_get +479 drivers/spi/spi-qcom-qspi.c
440
441 static int qcom_qspi_probe(struct platform_device *pdev)
442 {
443 int ret;
444 struct device *dev;
445 struct spi_master *master;
446 struct qcom_qspi *ctrl;
447
448 dev = &pdev->dev;
449
450 master = spi_alloc_master(dev, sizeof(*ctrl));
451 if (!master)
452 return -ENOMEM;
453
454 platform_set_drvdata(pdev, master);
455
456 ctrl = spi_master_get_devdata(master);
457
458 spin_lock_init(&ctrl->lock);
459 ctrl->dev = dev;
460 ctrl->base = devm_platform_ioremap_resource(pdev, 0);
461 if (IS_ERR(ctrl->base)) {
462 ret = PTR_ERR(ctrl->base);
463 goto exit_probe_master_put;
464 }
465
466 ctrl->clks = devm_kcalloc(dev, QSPI_NUM_CLKS,
467 sizeof(*ctrl->clks), GFP_KERNEL);
468 if (!ctrl->clks) {
469 ret = -ENOMEM;
470 goto exit_probe_master_put;
471 }
472
473 ctrl->clks[QSPI_CLK_CORE].id = "core";
474 ctrl->clks[QSPI_CLK_IFACE].id = "iface";
475 ret = devm_clk_bulk_get(dev, QSPI_NUM_CLKS, ctrl->clks);
476 if (ret)
477 goto exit_probe_master_put;
478
> 479 ctrl->icc_path_cpu_to_qspi = devm_of_icc_get(dev, "qspi-config");
480 if (IS_ERR(ctrl->icc_path_cpu_to_qspi)) {
481 ret = PTR_ERR(ctrl->icc_path_cpu_to_qspi);
482 if (ret != -EPROBE_DEFER)
483 dev_err(dev, "Failed to get cpu path :%d\n", ret);
484 goto exit_probe_master_put;
485 }
486 /* Set BW vote for register access */
487 ret = icc_set_bw(ctrl->icc_path_cpu_to_qspi, Bps_to_icc(1000),
488 Bps_to_icc(1000));
489 if (ret) {
490 dev_err(ctrl->dev, "%s: ICC BW voting failed for cpu :%d\n",
491 __func__, ret);
492 goto exit_probe_master_put;
493 }
494
> 495 ret = icc_disable(ctrl->icc_path_cpu_to_qspi);
496 if (ret) {
497 dev_err(ctrl->dev, "%s: ICC disable failed for cpu :%d\n",
498 __func__, ret);
499 goto exit_probe_master_put;
500 }
501
502 ret = platform_get_irq(pdev, 0);
503 if (ret < 0)
504 goto exit_probe_master_put;
505 ret = devm_request_irq(dev, ret, qcom_qspi_irq,
506 IRQF_TRIGGER_HIGH, dev_name(dev), ctrl);
507 if (ret) {
508 dev_err(dev, "Failed to request irq %d\n", ret);
509 goto exit_probe_master_put;
510 }
511
512 master->max_speed_hz = 300000000;
513 master->num_chipselect = QSPI_NUM_CS;
514 master->bus_num = -1;
515 master->dev.of_node = pdev->dev.of_node;
516 master->mode_bits = SPI_MODE_0 |
517 SPI_TX_DUAL | SPI_RX_DUAL |
518 SPI_TX_QUAD | SPI_RX_QUAD;
519 master->flags = SPI_MASTER_HALF_DUPLEX;
520 master->prepare_message = qcom_qspi_prepare_message;
521 master->transfer_one = qcom_qspi_transfer_one;
522 master->handle_err = qcom_qspi_handle_err;
523 master->auto_runtime_pm = true;
524
525 pm_runtime_enable(dev);
526
527 ret = spi_register_master(master);
528 if (!ret)
529 return 0;
530
531 pm_runtime_disable(dev);
532
533 exit_probe_master_put:
534 spi_master_put(master);
535
536 return ret;
537 }
538
539 static int qcom_qspi_remove(struct platform_device *pdev)
540 {
541 struct spi_master *master = platform_get_drvdata(pdev);
542
543 /* Unregister _before_ disabling pm_runtime() so we stop transfers */
544 spi_unregister_master(master);
545
546 pm_runtime_disable(&pdev->dev);
547
548 return 0;
549 }
550
551 static int __maybe_unused qcom_qspi_runtime_suspend(struct device *dev)
552 {
553 struct spi_master *master = dev_get_drvdata(dev);
554 struct qcom_qspi *ctrl = spi_master_get_devdata(master);
555 int ret;
556
557 clk_bulk_disable_unprepare(QSPI_NUM_CLKS, ctrl->clks);
558
559 ret = icc_disable(ctrl->icc_path_cpu_to_qspi);
560 if (ret) {
561 dev_err_ratelimited(ctrl->dev, "%s: ICC disable failed for cpu :%d\n",
562 __func__, ret);
563 return ret;
564 }
565
566 return 0;
567 }
568
569 static int __maybe_unused qcom_qspi_runtime_resume(struct device *dev)
570 {
571 struct spi_master *master = dev_get_drvdata(dev);
572 struct qcom_qspi *ctrl = spi_master_get_devdata(master);
573 int ret;
574
> 575 ret = icc_enable(ctrl->icc_path_cpu_to_qspi);
576 if (ret) {
577 dev_err_ratelimited(ctrl->dev, "%s: ICC enable failed for cpu :%d\n",
578 __func__, ret);
579 return ret;
580 }
581
582 return clk_bulk_prepare_enable(QSPI_NUM_CLKS, ctrl->clks);
583 }
584
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[tglx-devel:x86/entry 93/119] arch/x86/entry/common.c:707:2: error: unknown type name 'boot'; did you mean 'bool'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/entry
head: da0d0553b69e8159a4f25f7981d752e20c22f2ab
commit: 096b735813d5fef5b6b0e80e7585fba57c55e05b [93/119] x86/entry: Switch XEN/PV hypercall entry to IDTENTRY
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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
git checkout 096b735813d5fef5b6b0e80e7585fba57c55e05b
# 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: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
arch/x86/entry/common.c:272:24: warning: no previous prototype for function 'prepare_exit_to_usermode' [-Wmissing-prototypes]
__visible noinstr void prepare_exit_to_usermode(struct pt_regs *regs)
^
arch/x86/entry/common.c:272:19: note: declare 'static' if the function is not intended to be used outside of this translation unit
__visible noinstr void prepare_exit_to_usermode(struct pt_regs *regs)
^
static
arch/x86/entry/common.c:334:24: warning: no previous prototype for function 'syscall_return_slowpath' [-Wmissing-prototypes]
__visible noinstr void syscall_return_slowpath(struct pt_regs *regs)
^
arch/x86/entry/common.c:334:19: note: declare 'static' if the function is not intended to be used outside of this translation unit
__visible noinstr void syscall_return_slowpath(struct pt_regs *regs)
^
static
>> arch/x86/entry/common.c:707:2: error: unknown type name 'boot'; did you mean 'bool'?
boot inhcall = __this_cpu_read(xen_in_preemptible_hcall);
^~~~
bool
include/linux/types.h:30:17: note: 'bool' declared here
typedef _Bool bool;
^
>> arch/x86/entry/common.c:731:24: warning: no previous prototype for function 'xen_pv_evtchn_do_upcall' [-Wmissing-prototypes]
__visible noinstr void xen_pv_evtchn_do_upcall(struct pt_regs *regs)
^
arch/x86/entry/common.c:731:19: note: declare 'static' if the function is not intended to be used outside of this translation unit
__visible noinstr void xen_pv_evtchn_do_upcall(struct pt_regs *regs)
^
static
3 warnings and 1 error generated.
vim +707 arch/x86/entry/common.c
700
701 /*
702 * In case of scheduling the flag must be cleared and restored after
703 * returning from schedule as the task might move to a different CPU.
704 */
705 static __always_inline bool get_and_clear_inhcall(void)
706 {
> 707 boot inhcall = __this_cpu_read(xen_in_preemptible_hcall);
708
709 __this_cpu_write(xen_in_preemptible_hcall, false);
710 }
711
712 static __always_inline void restore_inhcall(bool inhcall)
713 {
714 __this_cpu_write(xen_in_preemptible_hcall, inhcall);
715 }
716 #else
717 static __always_inline bool get_and_clear_inhcall(void) { return false; }
718 static __always_inline void restore_inhcall(bool inhcall) { }
719 #endif
720
721 static void __xen_pv_evtchn_do_upcall(void)
722 {
723 irq_enter_rcu();
724 inc_irq_stat(irq_hv_callback_count);
725
726 xen_hvm_evtchn_do_upcall();
727
728 irq_exit_rcu();
729 }
730
> 731 __visible noinstr void xen_pv_evtchn_do_upcall(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, 4 months
[tip:sched/core 1/2] kernel/sched/core.c:223:1: warning: unused function 'rq_csd_init'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
head: 2a0a24ebb499c9d499eea948d3fc108f936e36d4
commit: 90b5363acd4739769c3f38c1aff16171bd133e8c [1/2] sched: Clean up scheduler_ipi()
config: mips-randconfig-r006-20200521 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git checkout 90b5363acd4739769c3f38c1aff16171bd133e8c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
kernel/sched/core.c:4190:35: warning: no previous prototype for function 'schedule_user'
asmlinkage __visible void __sched schedule_user(void)
^
kernel/sched/core.c:4190:22: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage __visible void __sched schedule_user(void)
^
static
>> kernel/sched/core.c:223:1: warning: unused function 'rq_csd_init'
rq_csd_init(struct rq call_single_data_t smp_call_func_t func)
^
kernel/sched/core.c:3744:20: warning: unused function 'sched_tick_start'
static inline void sched_tick_start(int cpu) { }
^
kernel/sched/core.c:3745:20: warning: unused function 'sched_tick_stop'
static inline void sched_tick_stop(int cpu) { }
^
fatal error: error in backend: Nested variants found in inline asm string: ' .set push
.set noat
.set push
.set arch=r4000
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/cmpxchg.h", .line = 163, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $0, $2 # __cmpxchg_asm
bne $0, ${3:z}, 2f
.set pop
move $$1, ${4:z}
.set arch=r4000
sc $$1, $1
beqz $$1, 1b
.set pop
2: .if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/cmpxchg.h", .line = 163, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
'
clang-11: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 11.0.0 (git://gitmirror/llvm_project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
Target: mipsel-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/cross/clang-3393cc4ceb/bin
clang-11: note: diagnostic msg:
Makefile arch include kernel null.dwo scripts source usr
vim +/rq_csd_init +223 kernel/sched/core.c
221
222 static inline void
> 223 rq_csd_init(struct rq *rq, call_single_data_t *csd, smp_call_func_t func)
224 {
225 csd->flags = 0;
226 csd->func = func;
227 csd->info = rq;
228 }
229
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
sound/soc/jz4740/jz4740-i2s.c:491:34: warning: unused variable 'jz4770_i2s_soc_info'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 444565650a5fe9c63ddf153e6198e31705dedeb2
commit: a3434a497a2f33324e0f47bc1500a400959b4b25 ASoC: jz4740-i2s: Add support for the JZ4770
date: 8 weeks ago
config: mips-randconfig-r014-20200522 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git checkout a3434a497a2f33324e0f47bc1500a400959b4b25
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
sound/soc/jz4740/jz4740-i2s.c:463:34: warning: unused variable 'jz4740_i2s_soc_info' [-Wunused-const-variable]
static const struct i2s_soc_info jz4740_i2s_soc_info = {
^
sound/soc/jz4740/jz4740-i2s.c:468:34: warning: unused variable 'jz4760_i2s_soc_info' [-Wunused-const-variable]
static const struct i2s_soc_info jz4760_i2s_soc_info = {
^
>> sound/soc/jz4740/jz4740-i2s.c:491:34: warning: unused variable 'jz4770_i2s_soc_info' [-Wunused-const-variable]
static const struct i2s_soc_info jz4770_i2s_soc_info = {
^
sound/soc/jz4740/jz4740-i2s.c:496:34: warning: unused variable 'jz4780_i2s_soc_info' [-Wunused-const-variable]
static const struct i2s_soc_info jz4780_i2s_soc_info = {
^
4 warnings generated.
vim +/jz4770_i2s_soc_info +491 sound/soc/jz4740/jz4740-i2s.c
490
> 491 static const struct i2s_soc_info jz4770_i2s_soc_info = {
492 .version = JZ_I2S_JZ4770,
493 .dai = &jz4770_i2s_dai,
494 };
495
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
sound/soc/jz4740/jz4740-i2s.c:467:34: warning: unused variable 'jz4760_i2s_soc_info'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 444565650a5fe9c63ddf153e6198e31705dedeb2
commit: bde8ca7c87d4388e24195f6c84cd9ac775344d2b ASoC: jz4740-i2s: Add support for the JZ4760
date: 8 weeks ago
config: mips-randconfig-r014-20200522 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git checkout bde8ca7c87d4388e24195f6c84cd9ac775344d2b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
sound/soc/jz4740/jz4740-i2s.c:462:34: warning: unused variable 'jz4740_i2s_soc_info' [-Wunused-const-variable]
static const struct i2s_soc_info jz4740_i2s_soc_info = {
^
>> sound/soc/jz4740/jz4740-i2s.c:467:34: warning: unused variable 'jz4760_i2s_soc_info' [-Wunused-const-variable]
static const struct i2s_soc_info jz4760_i2s_soc_info = {
^
sound/soc/jz4740/jz4740-i2s.c:490:34: warning: unused variable 'jz4780_i2s_soc_info' [-Wunused-const-variable]
static const struct i2s_soc_info jz4780_i2s_soc_info = {
^
3 warnings generated.
vim +/jz4760_i2s_soc_info +467 sound/soc/jz4740/jz4740-i2s.c
466
> 467 static const struct i2s_soc_info jz4760_i2s_soc_info = {
468 .version = JZ_I2S_JZ4760,
469 .dai = &jz4740_i2s_dai,
470 };
471
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[omap:droid4-pending-v5.7 4/27] drivers/input/keyboard/omap4-keypad.c:215:7: warning: variable 'events' set but not used
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git droid4-pending-v5.7
head: c79f709cdba38b9a054d444f4eabc0e1126f06cc
commit: c5fb8fb9beac4d489c2f54f6122b6ae11d1e5611 [4/27] Input: omap4-keypad - check state again for lost key-up interrupts
config: alpha-randconfig-r033-20200522 (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 c5fb8fb9beac4d489c2f54f6122b6ae11d1e5611
# 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: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/input/keyboard/omap4-keypad.c: In function 'omap4_keypad_scan_keys':
drivers/input/keyboard/omap4-keypad.c:162:6: warning: variable 'keys_up' set but not used [-Wunused-but-set-variable]
162 | int keys_up, keys_down;
| ^~~~~~~
drivers/input/keyboard/omap4-keypad.c: In function 'omap4_keypad_work':
>> drivers/input/keyboard/omap4-keypad.c:215:7: warning: variable 'events' set but not used [-Wunused-but-set-variable]
215 | bool events;
| ^~~~~~
vim +/events +215 drivers/input/keyboard/omap4-keypad.c
206
207 /*
208 * Errata ID i689 "1.32 Keyboard Key Up Event Can Be Missed".
209 * Interrupt may not happen for key-up events.
210 */
211 static void omap4_keypad_work(struct work_struct *work)
212 {
213 struct omap4_keypad *keypad_data =
214 container_of(work, struct omap4_keypad, key_work.work);
> 215 bool events;
216 u32 active;
217
218 active = kbd_readl(keypad_data, OMAP4_KBD_STATEMACHINE);
219 if (active)
220 return;
221
222 dev_dbg(keypad_data->input->dev.parent, "idle with events\n");
223 events = omap4_keypad_scan_keys(keypad_data, true);
224 }
225
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[jwboyer-fedora:f30 35/98] drivers/pci/controller/dwc/pcie-tegra194.c:228:27: warning: unused variable 'pcie_gen_freq'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git f30
head: 2a9c1e3b6c53a78a96a7fd9599f95172fb9e9ac9
commit: f7ea225a780c6e71cacb1cb4b9ea5da7cd2dd96f [35/98] PCI: Add MCFG quirks for Tegra194 host controllers
config: arm64-randconfig-r026-20200521 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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
git checkout f7ea225a780c6e71cacb1cb4b9ea5da7cd2dd96f
# 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: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/pci/controller/dwc/pcie-tegra194.c:228:27: warning: unused variable 'pcie_gen_freq' [-Wunused-const-variable]
static const unsigned int pcie_gen_freq[] = {
^
drivers/pci/controller/dwc/pcie-tegra194.c:235:18: warning: unused variable 'event_cntr_ctrl_offset' [-Wunused-const-variable]
static const u32 event_cntr_ctrl_offset[] = {
^
drivers/pci/controller/dwc/pcie-tegra194.c:244:18: warning: unused variable 'event_cntr_data_offset' [-Wunused-const-variable]
static const u32 event_cntr_data_offset[] = {
^
3 warnings generated.
vim +/pcie_gen_freq +228 drivers/pci/controller/dwc/pcie-tegra194.c
56e15a238d9278 Vidya Sagar 2019-08-13 227
56e15a238d9278 Vidya Sagar 2019-08-13 @228 static const unsigned int pcie_gen_freq[] = {
56e15a238d9278 Vidya Sagar 2019-08-13 229 GEN1_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13 230 GEN2_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13 231 GEN3_CORE_CLK_FREQ,
56e15a238d9278 Vidya Sagar 2019-08-13 232 GEN4_CORE_CLK_FREQ
56e15a238d9278 Vidya Sagar 2019-08-13 233 };
56e15a238d9278 Vidya Sagar 2019-08-13 234
:::::: The code at line 228 was first introduced by commit
:::::: 56e15a238d92788a2d09e0c5c26a5de1b3156931 PCI: tegra: Add Tegra194 PCIe support
:::::: TO: Vidya Sagar <vidyas(a)nvidia.com>
:::::: CC: Lorenzo Pieralisi <lorenzo.pieralisi(a)arm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months