drivers/reset/reset-intel-gw.c:18:9: warning: 'REG_OFFSET' macro redefined
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b3a9e3b9622ae10064826dccb4f7a52bd88c7407
commit: e44ab4e14d6f4c448ae555132090c1a116b19e5c regmap: Simplify implementation of the regmap_read_poll_timeout() macro
date: 8 weeks ago
config: arm-randconfig-r022-20200615 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3d8149c2a1228609fd7d7c91a04681304a2f0ca9)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git checkout e44ab4e14d6f4c448ae555132090c1a116b19e5c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 >>, old ones prefixed by <<):
>> drivers/reset/reset-intel-gw.c:18:9: warning: 'REG_OFFSET' macro redefined [-Wmacro-redefined]
#define REG_OFFSET GENMASK(31, 16)
^
arch/arm/mach-ixp4xx/include/mach/platform.h:25:9: note: previous definition is here
#define REG_OFFSET 3
^
1 warning generated.
vim +/REG_OFFSET +18 drivers/reset/reset-intel-gw.c
c9aef213e38cde Dilip Kota 2020-01-03 17
c9aef213e38cde Dilip Kota 2020-01-03 @18 #define REG_OFFSET GENMASK(31, 16)
c9aef213e38cde Dilip Kota 2020-01-03 19 #define BIT_OFFSET GENMASK(15, 8)
c9aef213e38cde Dilip Kota 2020-01-03 20 #define STAT_BIT_OFFSET GENMASK(7, 0)
c9aef213e38cde Dilip Kota 2020-01-03 21
:::::: The code at line 18 was first introduced by commit
:::::: c9aef213e38cde27d4689a5cbe25a7c1b1db9fad reset: intel: Add system reset controller driver
:::::: TO: Dilip Kota <eswara.kota(a)linux.intel.com>
:::::: CC: Philipp Zabel <p.zabel(a)pengutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH]: arch: arm64: vdso: export the symbols for time()
by kernel test robot
Hi Mark,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on soc/for-next linus/master v5.8-rc1 next-20200615]
[cannot apply to linux/master]
[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/Mark-Salyzyn/arch-arm64-vdso-exp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# 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 errors (new ones prefixed by >>, old ones prefixed by <<):
arch/arm64/kernel/vdso/vgettimeofday.c:9:5: warning: no previous prototype for '__kernel_clock_gettime' [-Wmissing-prototypes]
9 | int __kernel_clock_gettime(clockid_t clock,
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/vdso/vgettimeofday.c:15:5: warning: no previous prototype for '__kernel_gettimeofday' [-Wmissing-prototypes]
15 | int __kernel_gettimeofday(struct __kernel_old_timeval *tv,
| ^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/vdso/vgettimeofday.c:21:5: warning: no previous prototype for '__kernel_clock_getres' [-Wmissing-prototypes]
21 | int __kernel_clock_getres(clockid_t clock_id,
| ^~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kernel/vdso/vgettimeofday.c:27:1: error: unknown type name 'time_t'; did you mean 'timer_t'?
27 | time_t __kernel_time(time_t *time)
| ^~~~~~
| timer_t
arch/arm64/kernel/vdso/vgettimeofday.c:27:22: error: unknown type name 'time_t'; did you mean 'timer_t'?
27 | time_t __kernel_time(time_t *time)
| ^~~~~~
| timer_t
make[2]: *** [scripts/Makefile.build:267: arch/arm64/kernel/vdso/vgettimeofday.o] Error 1
make[2]: Target 'include/generated/vdso-offsets.h' not remade because of errors.
make[1]: *** [arch/arm64/Makefile:183: vdso_prepare] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:180: sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +27 arch/arm64/kernel/vdso/vgettimeofday.c
26
> 27 time_t __kernel_time(time_t *time)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/scsi/bnx2fc/bnx2fc_hwi.c:638:16: warning: variable 'index' set but not used
by kernel test robot
Hi zhengbin,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b3a9e3b9622ae10064826dccb4f7a52bd88c7407
commit: 84769706dde5881b8da0dc3da666f7443be95a8a scsi: bnx2fc: remove set but not used variables 'task','port','orig_task'
date: 10 months ago
config: ia64-randconfig-r003-20200615 (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
git checkout 84769706dde5881b8da0dc3da666f7443be95a8a
# 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 warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/ia64/include/asm/pgtable.h:154,
from include/linux/mm.h:99,
from arch/ia64/include/asm/uaccess.h:38,
from include/linux/uaccess.h:11,
from include/linux/crypto.h:21,
from include/crypto/hash.h:11,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from include/linux/skbuff.h:19,
from drivers/scsi/bnx2fc/bnx2fc.h:21,
from drivers/scsi/bnx2fc/bnx2fc_hwi.c:16:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
137 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c: In function 'bnx2fc_process_unsol_compl':
<< from drivers/scsi/bnx2fc/bnx2fc_hwi.c:16:
>> drivers/scsi/bnx2fc/bnx2fc_hwi.c:638:16: warning: variable 'index' set but not used [-Wunused-but-set-variable]
638 | int task_idx, index;
| ^~~~~
<< from drivers/scsi/bnx2fc/bnx2fc_hwi.c:16:
>> drivers/scsi/bnx2fc/bnx2fc_hwi.c:638:6: warning: variable 'task_idx' set but not used [-Wunused-but-set-variable]
638 | int task_idx, index;
| ^~~~~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c: In function 'bnx2fc_init_seq_cleanup_task':
drivers/scsi/bnx2fc/bnx2fc_hwi.c:1466:21: warning: variable 'index' set but not used [-Wunused-but-set-variable]
1466 | int orig_task_idx, index;
| ^~~~~
<< from drivers/scsi/bnx2fc/bnx2fc_hwi.c:16:
>> drivers/scsi/bnx2fc/bnx2fc_hwi.c:1466:6: warning: variable 'orig_task_idx' set but not used [-Wunused-but-set-variable]
1466 | int orig_task_idx, index;
| ^~~~~~~~~~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c: In function 'bnx2fc_allocate_hash_table':
drivers/scsi/bnx2fc/bnx2fc_hwi.c:2046:7: warning: variable 'hi' set but not used [-Wunused-but-set-variable]
2046 | u32 hi;
| ^~
drivers/scsi/bnx2fc/bnx2fc_hwi.c:2045:7: warning: variable 'lo' set but not used [-Wunused-but-set-variable]
2045 | u32 lo;
| ^~
vim +/index +638 drivers/scsi/bnx2fc/bnx2fc_hwi.c
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 625
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 626 static void bnx2fc_process_unsol_compl(struct bnx2fc_rport *tgt, u16 wqe)
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 627 {
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 628 u8 num_rq;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 629 struct fcoe_err_report_entry *err_entry;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 630 unsigned char *rq_data;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 631 unsigned char *buf = NULL, *buf1;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 632 int i;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 633 u16 xid;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 634 u32 frame_len, len;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 635 struct bnx2fc_cmd *io_req = NULL;
aea71a024914e8 Bhanu Prakash Gollapudi 2011-07-26 636 struct bnx2fc_interface *interface = tgt->port->priv;
aea71a024914e8 Bhanu Prakash Gollapudi 2011-07-26 637 struct bnx2fc_hba *hba = interface->hba;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 @638 int task_idx, index;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 639 int rc = 0;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 640 u64 err_warn_bit_map;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 641 u8 err_warn = 0xff;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 642
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 643
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 644 BNX2FC_TGT_DBG(tgt, "Entered UNSOL COMPLETION wqe = 0x%x\n", wqe);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 645 switch (wqe & FCOE_UNSOLICITED_CQE_SUBTYPE) {
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 646 case FCOE_UNSOLICITED_FRAME_CQE_TYPE:
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 647 frame_len = (wqe & FCOE_UNSOLICITED_CQE_PKT_LEN) >>
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 648 FCOE_UNSOLICITED_CQE_PKT_LEN_SHIFT;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 649
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 650 num_rq = (frame_len + BNX2FC_RQ_BUF_SZ - 1) / BNX2FC_RQ_BUF_SZ;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 651
686959736a8543 Nithin Sujir 2011-03-17 652 spin_lock_bh(&tgt->tgt_lock);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 653 rq_data = (unsigned char *)bnx2fc_get_next_rqe(tgt, num_rq);
686959736a8543 Nithin Sujir 2011-03-17 654 spin_unlock_bh(&tgt->tgt_lock);
686959736a8543 Nithin Sujir 2011-03-17 655
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 656 if (rq_data) {
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 657 buf = rq_data;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 658 } else {
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 659 buf1 = buf = kmalloc((num_rq * BNX2FC_RQ_BUF_SZ),
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 660 GFP_ATOMIC);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 661
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 662 if (!buf1) {
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 663 BNX2FC_TGT_DBG(tgt, "Memory alloc failure\n");
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 664 break;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 665 }
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 666
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 667 for (i = 0; i < num_rq; i++) {
686959736a8543 Nithin Sujir 2011-03-17 668 spin_lock_bh(&tgt->tgt_lock);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 669 rq_data = (unsigned char *)
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 670 bnx2fc_get_next_rqe(tgt, 1);
686959736a8543 Nithin Sujir 2011-03-17 671 spin_unlock_bh(&tgt->tgt_lock);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 672 len = BNX2FC_RQ_BUF_SZ;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 673 memcpy(buf1, rq_data, len);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 674 buf1 += len;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 675 }
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 676 }
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 677 bnx2fc_process_l2_frame_compl(tgt, buf, frame_len,
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 678 FC_XID_UNKNOWN);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 679
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 680 if (buf != rq_data)
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 681 kfree(buf);
686959736a8543 Nithin Sujir 2011-03-17 682 spin_lock_bh(&tgt->tgt_lock);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 683 bnx2fc_return_rqe(tgt, num_rq);
686959736a8543 Nithin Sujir 2011-03-17 684 spin_unlock_bh(&tgt->tgt_lock);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 685 break;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 686
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 687 case FCOE_ERROR_DETECTION_CQE_TYPE:
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 688 /*
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 689 * In case of error reporting CQE a single RQ entry
686959736a8543 Nithin Sujir 2011-03-17 690 * is consumed.
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 691 */
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 692 spin_lock_bh(&tgt->tgt_lock);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 693 num_rq = 1;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 694 err_entry = (struct fcoe_err_report_entry *)
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 695 bnx2fc_get_next_rqe(tgt, 1);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 696 xid = err_entry->fc_hdr.ox_id;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 697 BNX2FC_TGT_DBG(tgt, "Unsol Error Frame OX_ID = 0x%x\n", xid);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 698 BNX2FC_TGT_DBG(tgt, "err_warn_bitmap = %08x:%08x\n",
619c5cb6885b93 Vlad Zolotarov 2011-06-14 699 err_entry->data.err_warn_bitmap_hi,
619c5cb6885b93 Vlad Zolotarov 2011-06-14 700 err_entry->data.err_warn_bitmap_lo);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 701 BNX2FC_TGT_DBG(tgt, "buf_offsets - tx = 0x%x, rx = 0x%x\n",
619c5cb6885b93 Vlad Zolotarov 2011-06-14 702 err_entry->data.tx_buf_off, err_entry->data.rx_buf_off);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 703
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 704
0eb43b4bb081a1 Bhanu Prakash Gollapudi 2013-04-22 705 if (xid > hba->max_xid) {
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 706 BNX2FC_TGT_DBG(tgt, "xid(0x%x) out of FW range\n",
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 707 xid);
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 708 goto ret_err_rqe;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 709 }
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 710
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 711 task_idx = xid / BNX2FC_TASKS_PER_PAGE;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 712 index = xid % BNX2FC_TASKS_PER_PAGE;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 713
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 714 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid];
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 715 if (!io_req)
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 716 goto ret_err_rqe;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 717
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 718 if (io_req->cmd_type != BNX2FC_SCSI_CMD) {
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 719 printk(KERN_ERR PFX "err_warn: Not a SCSI cmd\n");
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 720 goto ret_err_rqe;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 721 }
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 722
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 723 if (test_and_clear_bit(BNX2FC_FLAG_IO_CLEANUP,
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 724 &io_req->req_flags)) {
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 725 BNX2FC_IO_DBG(io_req, "unsol_err: cleanup in "
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 726 "progress.. ignore unsol err\n");
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 727 goto ret_err_rqe;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 728 }
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 729
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 730 err_warn_bit_map = (u64)
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 731 ((u64)err_entry->data.err_warn_bitmap_hi << 32) |
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 732 (u64)err_entry->data.err_warn_bitmap_lo;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 733 for (i = 0; i < BNX2FC_NUM_ERR_BITS; i++) {
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 734 if (err_warn_bit_map & (u64)((u64)1 << i)) {
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 735 err_warn = i;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 736 break;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 737 }
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 738 }
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 739
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 740 /*
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 741 * If ABTS is already in progress, and FW error is
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 742 * received after that, do not cancel the timeout_work
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 743 * and let the error recovery continue by explicitly
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 744 * logging out the target, when the ABTS eventually
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 745 * times out.
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 746 */
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 747 if (test_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags)) {
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 748 printk(KERN_ERR PFX "err_warn: io_req (0x%x) already "
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 749 "in ABTS processing\n", xid);
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 750 goto ret_err_rqe;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 751 }
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 752 BNX2FC_TGT_DBG(tgt, "err = 0x%x\n", err_warn);
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 753 if (tgt->dev_type != TYPE_TAPE)
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 754 goto skip_rec;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 755 switch (err_warn) {
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 756 case FCOE_ERROR_CODE_REC_TOV_TIMER_EXPIRATION:
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 757 case FCOE_ERROR_CODE_DATA_OOO_RO:
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 758 case FCOE_ERROR_CODE_COMMON_INCORRECT_SEQ_CNT:
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 759 case FCOE_ERROR_CODE_DATA_SOFI3_SEQ_ACTIVE_SET:
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 760 case FCOE_ERROR_CODE_FCP_RSP_OPENED_SEQ:
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 761 case FCOE_ERROR_CODE_DATA_SOFN_SEQ_ACTIVE_RESET:
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 762 BNX2FC_TGT_DBG(tgt, "REC TOV popped for xid - 0x%x\n",
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 763 xid);
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 764 memcpy(&io_req->err_entry, err_entry,
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 765 sizeof(struct fcoe_err_report_entry));
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 766 if (!test_bit(BNX2FC_FLAG_SRR_SENT,
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 767 &io_req->req_flags)) {
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 768 spin_unlock_bh(&tgt->tgt_lock);
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 769 rc = bnx2fc_send_rec(io_req);
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 770 spin_lock_bh(&tgt->tgt_lock);
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 771
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 772 if (rc)
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 773 goto skip_rec;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 774 } else
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 775 printk(KERN_ERR PFX "SRR in progress\n");
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 776 goto ret_err_rqe;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 777 break;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 778 default:
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 779 break;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 780 }
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 781
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 782 skip_rec:
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 783 set_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 784 /*
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 785 * Cancel the timeout_work, as we received IO
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 786 * completion with FW error.
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 787 */
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 788 if (cancel_delayed_work(&io_req->timeout_work))
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 789 kref_put(&io_req->refcount, bnx2fc_cmd_release);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 790
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 791 rc = bnx2fc_initiate_abts(io_req);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 792 if (rc != SUCCESS) {
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 793 printk(KERN_ERR PFX "err_warn: initiate_abts "
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 794 "failed xid = 0x%x. issue cleanup\n",
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 795 io_req->xid);
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 796 bnx2fc_initiate_cleanup(io_req);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 797 }
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 798 ret_err_rqe:
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 799 bnx2fc_return_rqe(tgt, 1);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 800 spin_unlock_bh(&tgt->tgt_lock);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 801 break;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 802
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 803 case FCOE_WARNING_DETECTION_CQE_TYPE:
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 804 /*
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 805 *In case of warning reporting CQE a single RQ entry
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 806 * is consumes.
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 807 */
686959736a8543 Nithin Sujir 2011-03-17 808 spin_lock_bh(&tgt->tgt_lock);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 809 num_rq = 1;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 810 err_entry = (struct fcoe_err_report_entry *)
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 811 bnx2fc_get_next_rqe(tgt, 1);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 812 xid = cpu_to_be16(err_entry->fc_hdr.ox_id);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 813 BNX2FC_TGT_DBG(tgt, "Unsol Warning Frame OX_ID = 0x%x\n", xid);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 814 BNX2FC_TGT_DBG(tgt, "err_warn_bitmap = %08x:%08x",
619c5cb6885b93 Vlad Zolotarov 2011-06-14 815 err_entry->data.err_warn_bitmap_hi,
619c5cb6885b93 Vlad Zolotarov 2011-06-14 816 err_entry->data.err_warn_bitmap_lo);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 817 BNX2FC_TGT_DBG(tgt, "buf_offsets - tx = 0x%x, rx = 0x%x",
619c5cb6885b93 Vlad Zolotarov 2011-06-14 818 err_entry->data.tx_buf_off, err_entry->data.rx_buf_off);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 819
0eb43b4bb081a1 Bhanu Prakash Gollapudi 2013-04-22 820 if (xid > hba->max_xid) {
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 821 BNX2FC_TGT_DBG(tgt, "xid(0x%x) out of FW range\n", xid);
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 822 goto ret_warn_rqe;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 823 }
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 824
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 825 err_warn_bit_map = (u64)
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 826 ((u64)err_entry->data.err_warn_bitmap_hi << 32) |
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 827 (u64)err_entry->data.err_warn_bitmap_lo;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 828 for (i = 0; i < BNX2FC_NUM_ERR_BITS; i++) {
d0c0d902339249 Colin Ian King 2019-05-04 829 if (err_warn_bit_map & ((u64)1 << i)) {
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 830 err_warn = i;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 831 break;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 832 }
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 833 }
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 834 BNX2FC_TGT_DBG(tgt, "warn = 0x%x\n", err_warn);
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 835
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 836 task_idx = xid / BNX2FC_TASKS_PER_PAGE;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 837 index = xid % BNX2FC_TASKS_PER_PAGE;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 838 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid];
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 839 if (!io_req)
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 840 goto ret_warn_rqe;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 841
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 842 if (io_req->cmd_type != BNX2FC_SCSI_CMD) {
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 843 printk(KERN_ERR PFX "err_warn: Not a SCSI cmd\n");
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 844 goto ret_warn_rqe;
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 845 }
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 846
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 847 memcpy(&io_req->err_entry, err_entry,
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 848 sizeof(struct fcoe_err_report_entry));
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 849
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 850 if (err_warn == FCOE_ERROR_CODE_REC_TOV_TIMER_EXPIRATION)
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 851 /* REC_TOV is not a warning code */
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 852 BUG_ON(1);
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 853 else
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 854 BNX2FC_TGT_DBG(tgt, "Unsolicited warning\n");
7b594769120b43 Bhanu Prakash Gollapudi 2011-07-27 855 ret_warn_rqe:
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 856 bnx2fc_return_rqe(tgt, 1);
686959736a8543 Nithin Sujir 2011-03-17 857 spin_unlock_bh(&tgt->tgt_lock);
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 858 break;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 859
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 860 default:
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 861 printk(KERN_ERR PFX "Unsol Compl: Invalid CQE Subtype\n");
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 862 break;
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 863 }
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 864 }
853e2bd2103aaa Bhanu Gollapudi 2011-02-04 865
:::::: The code at line 638 was first introduced by commit
:::::: 853e2bd2103aaa91d1ba1c0b57ba17628d836f03 [SCSI] bnx2fc: Broadcom FCoE offload driver
:::::: TO: Bhanu Gollapudi <bprakash(a)broadcom.com>
:::::: CC: James Bottomley <James.Bottomley(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[sashal-linux-stable:queue-5.7 23/32] xtensa-linux-ld: imx8.c:undefined reference to `imx_sc_misc_set_control'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.7
head: 390c6a3c9da56f899f8f21f283ab84dd5f05e378
commit: dead36a88435abfde8c64da87d4c50afa7e7ba3a [23/32] ASoC: SOF: imx: fix undefined reference issue
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-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 dead36a88435abfde8c64da87d4c50afa7e7ba3a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
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 >>, old ones prefixed by <<):
`.exit.text' referenced in section `__jump_table' of fs/cifs/cifsfs.o: defined in discarded section `.exit.text' of fs/cifs/cifsfs.o
`.exit.text' referenced in section `__jump_table' of fs/cifs/cifsfs.o: defined in discarded section `.exit.text' of fs/cifs/cifsfs.o
`.exit.text' referenced in section `__jump_table' of fs/fuse/inode.o: defined in discarded section `.exit.text' of fs/fuse/inode.o
`.exit.text' referenced in section `__jump_table' of fs/fuse/inode.o: defined in discarded section `.exit.text' of fs/fuse/inode.o
`.exit.text' referenced in section `__jump_table' of fs/ceph/super.o: defined in discarded section `.exit.text' of fs/ceph/super.o
`.exit.text' referenced in section `__jump_table' of fs/ceph/super.o: defined in discarded section `.exit.text' of fs/ceph/super.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/rio_cm.o: defined in discarded section `.exit.text' of drivers/rapidio/rio_cm.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/rio_cm.o: defined in discarded section `.exit.text' of drivers/rapidio/rio_cm.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen2.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen2.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen2.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen2.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen2.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen2.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen2.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen2.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen3.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen3.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen3.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen3.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen3.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen3.o
`.exit.text' referenced in section `__jump_table' of drivers/rapidio/switches/idt_gen3.o: defined in discarded section `.exit.text' of drivers/rapidio/switches/idt_gen3.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/vt8623fb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/vt8623fb.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/vt8623fb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/vt8623fb.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/s3fb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/s3fb.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/s3fb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/s3fb.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/arkfb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/arkfb.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/arkfb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/arkfb.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.o: defined in discarded section `.exit.text' of drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.o
`.exit.text' referenced in section `__jump_table' of drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.o: defined in discarded section `.exit.text' of drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.o
`.exit.text' referenced in section `__jump_table' of drivers/misc/phantom.o: defined in discarded section `.exit.text' of drivers/misc/phantom.o
`.exit.text' referenced in section `__jump_table' of drivers/misc/phantom.o: defined in discarded section `.exit.text' of drivers/misc/phantom.o
`.exit.text' referenced in section `__jump_table' of drivers/scsi/fcoe/fcoe.o: defined in discarded section `.exit.text' of drivers/scsi/fcoe/fcoe.o
`.exit.text' referenced in section `__jump_table' of drivers/scsi/fcoe/fcoe.o: defined in discarded section `.exit.text' of drivers/scsi/fcoe/fcoe.o
`.exit.text' referenced in section `__jump_table' of drivers/target/target_core_configfs.o: defined in discarded section `.exit.text' of drivers/target/target_core_configfs.o
`.exit.text' referenced in section `__jump_table' of drivers/target/target_core_configfs.o: defined in discarded section `.exit.text' of drivers/target/target_core_configfs.o
`.exit.text' referenced in section `__jump_table' of drivers/mtd/maps/pcmciamtd.o: defined in discarded section `.exit.text' of drivers/mtd/maps/pcmciamtd.o
`.exit.text' referenced in section `__jump_table' of drivers/mtd/maps/pcmciamtd.o: defined in discarded section `.exit.text' of drivers/mtd/maps/pcmciamtd.o
`.exit.text' referenced in section `__jump_table' of drivers/net/wireless/zydas/zd1211rw/zd_usb.o: defined in discarded section `.exit.text' of drivers/net/wireless/zydas/zd1211rw/zd_usb.o
`.exit.text' referenced in section `__jump_table' of drivers/net/wireless/zydas/zd1211rw/zd_usb.o: defined in discarded section `.exit.text' of drivers/net/wireless/zydas/zd1211rw/zd_usb.o
`.exit.text' referenced in section `__jump_table' of drivers/net/wireless/ray_cs.o: defined in discarded section `.exit.text' of drivers/net/wireless/ray_cs.o
`.exit.text' referenced in section `__jump_table' of drivers/net/wireless/ray_cs.o: defined in discarded section `.exit.text' of drivers/net/wireless/ray_cs.o
`.exit.text' referenced in section `__jump_table' of drivers/net/wireless/mac80211_hwsim.o: defined in discarded section `.exit.text' of drivers/net/wireless/mac80211_hwsim.o
`.exit.text' referenced in section `__jump_table' of drivers/net/wireless/mac80211_hwsim.o: defined in discarded section `.exit.text' of drivers/net/wireless/mac80211_hwsim.o
`.exit.text' referenced in section `__jump_table' of drivers/usb/gadget/legacy/inode.o: defined in discarded section `.exit.text' of drivers/usb/gadget/legacy/inode.o
`.exit.text' referenced in section `__jump_table' of drivers/usb/gadget/legacy/inode.o: defined in discarded section `.exit.text' of drivers/usb/gadget/legacy/inode.o
`.exit.text' referenced in section `__jump_table' of drivers/usb/gadget/legacy/g_ffs.o: defined in discarded section `.exit.text' of drivers/usb/gadget/legacy/g_ffs.o
`.exit.text' referenced in section `__jump_table' of drivers/usb/gadget/legacy/g_ffs.o: defined in discarded section `.exit.text' of drivers/usb/gadget/legacy/g_ffs.o
`.exit.text' referenced in section `__jump_table' of drivers/media/common/siano/smscoreapi.o: defined in discarded section `.exit.text' of drivers/media/common/siano/smscoreapi.o
`.exit.text' referenced in section `__jump_table' of drivers/media/common/siano/smscoreapi.o: defined in discarded section `.exit.text' of drivers/media/common/siano/smscoreapi.o
`.exit.text' referenced in section `__jump_table' of drivers/vme/bridges/vme_fake.o: defined in discarded section `.exit.text' of drivers/vme/bridges/vme_fake.o
`.exit.text' referenced in section `__jump_table' of drivers/vme/bridges/vme_fake.o: defined in discarded section `.exit.text' of drivers/vme/bridges/vme_fake.o
xtensa-linux-ld: sound/soc/sof/imx/imx8.o: in function `imx8_send_msg':
imx8.c:(.text+0x37c): undefined reference to `imx_sc_misc_set_control'
xtensa-linux-ld: sound/soc/sof/imx/imx8.o: in function `imx8_run':
imx8.c:(.text+0x3c2): undefined reference to `imx_sc_misc_set_control'
xtensa-linux-ld: sound/soc/sof/imx/imx8.o: in function `imx8_send_msg':
imx8.c:(.text+0x38c): undefined reference to `imx_sc_pm_cpu_start'
xtensa-linux-ld: sound/soc/sof/imx/imx8.o: in function `imx8_run':
imx8.c:(.text+0x3f8): undefined reference to `imx_sc_pm_cpu_start'
>> xtensa-linux-ld: imx8.c:(.text+0x428): undefined reference to `imx_sc_misc_set_control'
xtensa-linux-ld: sound/soc/sof/imx/imx8.o: in function `imx8x_run':
imx8.c:(.text+0x49e): undefined reference to `imx_sc_misc_set_control'
xtensa-linux-ld: sound/soc/sof/imx/imx8.o: in function `imx8_run':
imx8.c:(.text+0x438): undefined reference to `imx_sc_misc_set_control'
xtensa-linux-ld: sound/soc/sof/imx/imx8.o: in function `imx8x_run':
imx8.c:(.text+0x4d2): undefined reference to `imx_sc_misc_set_control'
xtensa-linux-ld: sound/soc/sof/imx/imx8.o: in function `imx8_run':
imx8.c:(.text+0x448): undefined reference to `imx_sc_misc_set_control'
xtensa-linux-ld: sound/soc/sof/imx/imx8.o:imx8.c:(.text+0x506): more undefined references to `imx_sc_misc_set_control' follow
xtensa-linux-ld: sound/soc/sof/imx/imx8.o: in function `imx8_run':
imx8.c:(.text+0x468): undefined reference to `imx_sc_pm_cpu_start'
xtensa-linux-ld: sound/soc/sof/imx/imx8.o: in function `imx8x_run':
imx8.c:(.text+0x576): undefined reference to `imx_sc_pm_cpu_start'
xtensa-linux-ld: sound/soc/sof/imx/imx8.o: in function `imx8_remove':
imx8.c:(.text+0x73c): undefined reference to `imx_scu_get_handle'
xtensa-linux-ld: sound/soc/sof/imx/imx8.o: in function `imx8_probe':
imx8.c:(.text+0xa49): undefined reference to `imx_scu_get_handle'
`.exit.text' referenced in section `__jump_table' of net/netfilter/nf_conntrack_h323_main.o: defined in discarded section `.exit.text' of net/netfilter/nf_conntrack_h323_main.o
`.exit.text' referenced in section `__jump_table' of net/netfilter/nf_conntrack_h323_main.o: defined in discarded section `.exit.text' of net/netfilter/nf_conntrack_h323_main.o
`.exit.text' referenced in section `__jump_table' of net/netfilter/ipset/ip_set_core.o: defined in discarded section `.exit.text' of net/netfilter/ipset/ip_set_core.o
`.exit.text' referenced in section `__jump_table' of net/netfilter/ipset/ip_set_core.o: defined in discarded section `.exit.text' of net/netfilter/ipset/ip_set_core.o
`.exit.text' referenced in section `__jump_table' of net/bluetooth/6lowpan.o: defined in discarded section `.exit.text' of net/bluetooth/6lowpan.o
`.exit.text' referenced in section `__jump_table' of net/bluetooth/6lowpan.o: defined in discarded section `.exit.text' of net/bluetooth/6lowpan.o
`.exit.text' referenced in section `__jump_table' of net/ceph/ceph_common.o: defined in discarded section `.exit.text' of net/ceph/ceph_common.o
`.exit.text' referenced in section `__jump_table' of net/ceph/ceph_common.o: defined in discarded section `.exit.text' of net/ceph/ceph_common.o
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[hch-misc:set_fs-removal 80/83] arch/powerpc/include/asm/uaccess.h:20:34: error: comparison is always true due to limited range of data type
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git set_fs-removal
head: 8783f2261aa42693c0e738e22036228c2b26d782
commit: 1d7ac476a3ca018b4c1dc83615cae3e0693e0d71 [80/83] powerpc: remove address space overrides using set_fs()
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-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 1d7ac476a3ca018b4c1dc83615cae3e0693e0d71
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 error/warnings (new ones prefixed by >>, old ones prefixed by <<):
kernel//sched/core.c:2117:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
2117 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/uaccess.h:9,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/sched/cputime.h:5,
from kernel//sched/sched.h:11,
from kernel//sched/core.c:9:
kernel//sched/core.c: In function 'sched_attr_copy_to_user':
>> arch/powerpc/include/asm/uaccess.h:20:34: warning: comparison is always true due to limited range of data type [-Wtype-limits]
20 | (((addr) <= (limit)) && ((size) <= (limit)))
| ^~
arch/powerpc/include/asm/uaccess.h:37:3: note: in expansion of macro '__access_ok'
37 | __access_ok((unsigned long)(addr), (size), TASK_SIZE_MAX - 1))
| ^~~~~~~~~~~
>> kernel//sched/core.c:5393:7: note: in expansion of macro 'access_ok'
5393 | if (!access_ok(uattr, usize))
| ^~~~~~~~~
--
In file included from include/linux/uaccess.h:9,
from include/linux/regset.h:16,
from arch/powerpc/kernel/ptrace/ptrace.c:18:
include/linux/regset.h: In function 'copy_regset_to_user':
>> arch/powerpc/include/asm/uaccess.h:20:34: error: comparison is always true due to limited range of data type [-Werror=type-limits]
20 | (((addr) <= (limit)) && ((size) <= (limit)))
| ^~
arch/powerpc/include/asm/uaccess.h:37:3: note: in expansion of macro '__access_ok'
37 | __access_ok((unsigned long)(addr), (size), TASK_SIZE_MAX - 1))
| ^~~~~~~~~~~
>> include/linux/regset.h:376:7: note: in expansion of macro 'access_ok'
376 | if (!access_ok(data, size))
| ^~~~~~~~~
include/linux/regset.h: In function 'copy_regset_from_user':
>> arch/powerpc/include/asm/uaccess.h:20:34: error: comparison is always true due to limited range of data type [-Werror=type-limits]
20 | (((addr) <= (limit)) && ((size) <= (limit)))
| ^~
arch/powerpc/include/asm/uaccess.h:37:3: note: in expansion of macro '__access_ok'
37 | __access_ok((unsigned long)(addr), (size), TASK_SIZE_MAX - 1))
| ^~~~~~~~~~~
include/linux/regset.h:402:7: note: in expansion of macro 'access_ok'
402 | if (!access_ok(data, size))
| ^~~~~~~~~
cc1: all warnings being treated as errors
vim +20 arch/powerpc/include/asm/uaccess.h
14
15 /*
16 * This check is sufficient because there is a large enough
17 * gap between user addresses and the kernel addresses
18 */
19 #define __access_ok(addr, size, limit) \
> 20 (((addr) <= (limit)) && ((size) <= (limit)))
21
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[hch-misc:set_fs-removal 80/83] arch/powerpc/include/asm/uaccess.h:28:13: error: 'seg' undeclared; did you mean
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git set_fs-removal
head: 8783f2261aa42693c0e738e22036228c2b26d782
commit: 1d7ac476a3ca018b4c1dc83615cae3e0693e0d71 [80/83] powerpc: remove address space overrides using set_fs()
config: powerpc-allnoconfig (attached as .config)
compiler: powerpc-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 1d7ac476a3ca018b4c1dc83615cae3e0693e0d71
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 errors (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/uaccess.h:9,
from include/linux/crypto.h:21,
from include/crypto/hash.h:11,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from include/linux/compat.h:15,
from arch/powerpc/kernel/asm-offsets.c:14:
arch/powerpc/include/asm/uaccess.h: In function '__access_ok':
>> arch/powerpc/include/asm/uaccess.h:28:13: error: 'seg' undeclared (first use in this function); did you mean 'sem'?
28 | if (addr > seg.seg)
| ^~~
| sem
arch/powerpc/include/asm/uaccess.h:28:13: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:114: arch/powerpc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1175: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +28 arch/powerpc/include/asm/uaccess.h
2df5e8bcca53e5 include/asm-powerpc/uaccess.h Stephen Rothwell 2005-10-29 24
ef85dffd4251ff arch/powerpc/include/asm/uaccess.h Mathieu Malaterre 2018-03-02 25 static inline int __access_ok(unsigned long addr, unsigned long size,
1d7ac476a3ca01 arch/powerpc/include/asm/uaccess.h Christoph Hellwig 2020-06-11 26 unsigned long limit)
ef85dffd4251ff arch/powerpc/include/asm/uaccess.h Mathieu Malaterre 2018-03-02 27 {
ef85dffd4251ff arch/powerpc/include/asm/uaccess.h Mathieu Malaterre 2018-03-02 @28 if (addr > seg.seg)
ef85dffd4251ff arch/powerpc/include/asm/uaccess.h Mathieu Malaterre 2018-03-02 29 return 0;
1d7ac476a3ca01 arch/powerpc/include/asm/uaccess.h Christoph Hellwig 2020-06-11 30 return (size == 0 || size - 1 <= limit - addr);
ef85dffd4251ff arch/powerpc/include/asm/uaccess.h Mathieu Malaterre 2018-03-02 31 }
2df5e8bcca53e5 include/asm-powerpc/uaccess.h Stephen Rothwell 2005-10-29 32
:::::: The code at line 28 was first introduced by commit
:::::: ef85dffd4251ff6c23056651f6f83bdce83cd1cf powerpc: Avoid comparison of unsigned long >= 0 in __access_ok()
:::::: TO: Mathieu Malaterre <malat(a)debian.org>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[hch-misc:set_fs-removal 80/83] include/linux/regset.h:376:7: error: result of comparison of constant 70368744177663 with expression of type 'unsigned int' is always true
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git set_fs-removal
head: 8783f2261aa42693c0e738e22036228c2b26d782
commit: 1d7ac476a3ca018b4c1dc83615cae3e0693e0d71 [80/83] powerpc: remove address space overrides using set_fs()
config: powerpc64-randconfig-r005-20200615 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3d8149c2a1228609fd7d7c91a04681304a2f0ca9)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
git checkout 1d7ac476a3ca018b4c1dc83615cae3e0693e0d71
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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 >>, old ones prefixed by <<):
In file included from arch/powerpc/kernel/ptrace/ptrace.c:18:
>> include/linux/regset.h:376:7: error: result of comparison of constant 70368744177663 with expression of type 'unsigned int' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
if (!access_ok(data, size))
^~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/uaccess.h:37:3: note: expanded from macro 'access_ok'
__access_ok((unsigned long)(addr), (size), TASK_SIZE_MAX - 1))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/uaccess.h:20:34: note: expanded from macro '__access_ok'
(((addr) <= (limit)) && ((size) <= (limit)))
~~~~~~ ^ ~~~~~~~
In file included from arch/powerpc/kernel/ptrace/ptrace.c:18:
include/linux/regset.h:402:7: error: result of comparison of constant 70368744177663 with expression of type 'unsigned int' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
if (!access_ok(data, size))
^~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/uaccess.h:37:3: note: expanded from macro 'access_ok'
__access_ok((unsigned long)(addr), (size), TASK_SIZE_MAX - 1))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/uaccess.h:20:34: note: expanded from macro '__access_ok'
(((addr) <= (limit)) && ((size) <= (limit)))
~~~~~~ ^ ~~~~~~~
In file included from arch/powerpc/kernel/ptrace/ptrace.c:19:
In file included from include/linux/tracehook.h:50:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:23:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inb, u8, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:592:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; ^~~~~~~~~~~~~~
<scratch space>:20:1: note: expanded from here
__do_inb
^
arch/powerpc/include/asm/io.h:523:53: note: expanded from macro '__do_inb'
#define __do_inb(port) readb((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/kernel/ptrace/ptrace.c:19:
In file included from include/linux/tracehook.h:50:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:24:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inw, u16, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:592:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; ^~~~~~~~~~~~~~
<scratch space>:22:1: note: expanded from here
__do_inw
^
arch/powerpc/include/asm/io.h:524:53: note: expanded from macro '__do_inw'
#define __do_inw(port) readw((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/kernel/ptrace/ptrace.c:19:
In file included from include/linux/tracehook.h:50:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:25:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inl, u32, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:592:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; ^~~~~~~~~~~~~~
<scratch space>:24:1: note: expanded from here
__do_inl
^
arch/powerpc/include/asm/io.h:525:53: note: expanded from macro '__do_inl'
#define __do_inl(port) readl((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/kernel/ptrace/ptrace.c:19:
In file included from include/linux/tracehook.h:50:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:26:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outb, (u8 val, unsigned long port), (val, port), pio, port)
--
In file included from arch/powerpc/kernel/ptrace/ptrace-view.c:3:
>> include/linux/regset.h:376:7: error: result of comparison of constant 70368744177663 with expression of type 'unsigned int' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
if (!access_ok(data, size))
^~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/uaccess.h:37:3: note: expanded from macro 'access_ok'
__access_ok((unsigned long)(addr), (size), TASK_SIZE_MAX - 1))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/uaccess.h:20:34: note: expanded from macro '__access_ok'
(((addr) <= (limit)) && ((size) <= (limit)))
~~~~~~ ^ ~~~~~~~
In file included from arch/powerpc/kernel/ptrace/ptrace-view.c:3:
include/linux/regset.h:402:7: error: result of comparison of constant 70368744177663 with expression of type 'unsigned int' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
if (!access_ok(data, size))
^~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/uaccess.h:37:3: note: expanded from macro 'access_ok'
__access_ok((unsigned long)(addr), (size), TASK_SIZE_MAX - 1))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/uaccess.h:20:34: note: expanded from macro '__access_ok'
(((addr) <= (limit)) && ((size) <= (limit)))
~~~~~~ ^ ~~~~~~~
2 errors generated.
--
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; ^~~~~~~~~~~~~~
<scratch space>:191:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:542:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from kernel//sched/core.c:9:
In file included from kernel//sched/sched.h:17:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; ^~~~~~~~~~~~~~
<scratch space>:193:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:543:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from kernel//sched/core.c:9:
In file included from kernel//sched/sched.h:17:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; ^~~~~~~~~~~~~~
<scratch space>:195:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:544:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from kernel//sched/core.c:9:
In file included from kernel//sched/sched.h:17:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; ^~~~~~~~~~~~~~
<scratch space>:197:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:545:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from kernel//sched/core.c:9:
In file included from kernel//sched/sched.h:17:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:21:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; ^~~~~~~~~~~~~~
<scratch space>:199:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:546:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
kernel//sched/core.c:2117:6: warning: no previous prototype for function 'sched_set_stop_task' [-Wmissing-prototypes]
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
kernel//sched/core.c:2117:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
static
>> kernel//sched/core.c:5393:7: warning: result of comparison of constant 70368744177663 with expression of type 'unsigned int' is always true [-Wtautological-constant-out-of-range-compare]
if (!access_ok(uattr, usize))
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/uaccess.h:37:3: note: expanded from macro 'access_ok'
__access_ok((unsigned long)(addr), (size), TASK_SIZE_MAX - 1))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/uaccess.h:20:34: note: expanded from macro '__access_ok'
(((addr) <= (limit)) && ((size) <= (limit)))
~~~~~~ ^ ~~~~~~~
kernel//sched/core.c:808:28: warning: unused function 'uclamp_bucket_base_value' [-Wunused-function]
static inline unsigned int uclamp_bucket_base_value(unsigned int clamp_value)
^
kernel//sched/core.c:3816:20: warning: unused function 'sched_tick_stop' [-Wunused-function]
static inline void sched_tick_stop(int cpu) { }
^
16 warnings generated.
vim +376 include/linux/regset.h
bae3f7c39dee59 Roland McGrath 2008-01-30 355
5bde4d181793be Roland McGrath 2008-01-30 356 /**
5bde4d181793be Roland McGrath 2008-01-30 357 * copy_regset_to_user - fetch a thread's user_regset data into user memory
5bde4d181793be Roland McGrath 2008-01-30 358 * @target: thread to be examined
5bde4d181793be Roland McGrath 2008-01-30 359 * @view: &struct user_regset_view describing user thread machine state
5bde4d181793be Roland McGrath 2008-01-30 360 * @setno: index in @view->regsets
5bde4d181793be Roland McGrath 2008-01-30 361 * @offset: offset into the regset data, in bytes
5bde4d181793be Roland McGrath 2008-01-30 362 * @size: amount of data to copy, in bytes
5bde4d181793be Roland McGrath 2008-01-30 363 * @data: user-mode pointer to copy into
5bde4d181793be Roland McGrath 2008-01-30 364 */
5bde4d181793be Roland McGrath 2008-01-30 365 static inline int copy_regset_to_user(struct task_struct *target,
5bde4d181793be Roland McGrath 2008-01-30 366 const struct user_regset_view *view,
5bde4d181793be Roland McGrath 2008-01-30 367 unsigned int setno,
5bde4d181793be Roland McGrath 2008-01-30 368 unsigned int offset, unsigned int size,
5bde4d181793be Roland McGrath 2008-01-30 369 void __user *data)
5bde4d181793be Roland McGrath 2008-01-30 370 {
5bde4d181793be Roland McGrath 2008-01-30 371 const struct user_regset *regset = &view->regsets[setno];
5bde4d181793be Roland McGrath 2008-01-30 372
c8e252586f8d5d H. Peter Anvin 2012-03-02 373 if (!regset->get)
c8e252586f8d5d H. Peter Anvin 2012-03-02 374 return -EOPNOTSUPP;
c8e252586f8d5d H. Peter Anvin 2012-03-02 375
96d4f267e40f95 Linus Torvalds 2019-01-03 @376 if (!access_ok(data, size))
5189fa19a4b2b4 H. Peter Anvin 2012-03-02 377 return -EFAULT;
5bde4d181793be Roland McGrath 2008-01-30 378
5bde4d181793be Roland McGrath 2008-01-30 379 return regset->get(target, regset, offset, size, NULL, data);
5bde4d181793be Roland McGrath 2008-01-30 380 }
5bde4d181793be Roland McGrath 2008-01-30 381
:::::: The code at line 376 was first introduced by commit
:::::: 96d4f267e40f9509e8a66e2b39e8b95655617693 Remove 'type' argument from access_ok() function
:::::: TO: Linus Torvalds <torvalds(a)linux-foundation.org>
:::::: 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
2 years, 3 months
[PATCH] ipc: fix call_kern.cocci warnings
by Julia Lawall
From: kernel test robot <lkp(a)intel.com>
This function is called from ipc_addid with a spin lock held so change
GFP_KERNEL to GFP_ATOMIC.
Generated by: scripts/coccinelle/locks/call_kern.cocci
Fixes: dc996261c060 ("ipc: convert ipcs_idr to XArray")
CC: Matthew Wilcox (Oracle) <willy(a)infradead.org>
Signed-off-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: Julia Lawall <julia.lawall(a)inria.fr>
---
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 842221d073a88c9cd1aa01777c4b69020c28e7a4
commit: dc996261c060f06e1f20f580e203b81a4ddfe301 [16130/16374] ipc: convert ipcs_idr to XArray
:::::: branch date: 17 hours ago
:::::: commit date: 3 days ago
Please take the patch only if it's a positive warning. Thanks!
util.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/ipc/util.c
+++ b/ipc/util.c
@@ -241,7 +241,7 @@ static inline int ipc_id_alloc(struct ip
xas.xa_index;
xas_store(&xas, new);
xas_clear_mark(&xas, XA_FREE_MARK);
- } while (__xas_nomem(&xas, GFP_KERNEL));
+ } while (__xas_nomem(&xas, GFP_ATOMIC));
xas_unlock(&xas);
err = xas_error(&xas);
@@ -250,7 +250,7 @@ static inline int ipc_id_alloc(struct ip
new->id = get_restore_id(ids);
new->seq = ipcid_to_seqx(new->id);
idx = ipcid_to_idx(new->id);
- err = xa_insert(&ids->ipcs, idx, new, GFP_KERNEL);
+ err = xa_insert(&ids->ipcs, idx, new, GFP_ATOMIC);
if (err == -EBUSY)
err = -ENOSPC;
set_restore_id(ids, -1);
2 years, 3 months
drivers/scsi/bnx2fc/bnx2fc_hwi.c:1011:17: warning: variable 'dummy' set but not used
by kernel test robot
Hi Javed,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b3a9e3b9622ae10064826dccb4f7a52bd88c7407
commit: 77331115e220925af1f52e18ac99e37a0b0c10ad scsi: bnx2fc: Process the RQE with CQE in interrupt context
date: 3 months ago
config: ia64-randconfig-r003-20200615 (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
git checkout 77331115e220925af1f52e18ac99e37a0b0c10ad
# 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 warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/ia64/include/asm/pgtable.h:154,
from include/linux/mm.h:94,
from include/linux/bvec.h:13,
from include/linux/skbuff.h:17,
from drivers/scsi/bnx2fc/bnx2fc.h:21,
from drivers/scsi/bnx2fc/bnx2fc_hwi.c:16:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
137 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c: In function 'bnx2fc_process_unsol_compl':
drivers/scsi/bnx2fc/bnx2fc_hwi.c:638:16: warning: variable 'index' set but not used [-Wunused-but-set-variable]
638 | int task_idx, index;
| ^~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c:638:6: warning: variable 'task_idx' set but not used [-Wunused-but-set-variable]
638 | int task_idx, index;
| ^~~~~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c: In function 'bnx2fc_pending_work':
<< from drivers/scsi/bnx2fc/bnx2fc_hwi.c:16:
>> drivers/scsi/bnx2fc/bnx2fc_hwi.c:1011:17: warning: variable 'dummy' set but not used [-Wunused-but-set-variable]
1011 | unsigned char *dummy;
| ^~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c: In function 'bnx2fc_init_seq_cleanup_task':
drivers/scsi/bnx2fc/bnx2fc_hwi.c:1513:21: warning: variable 'index' set but not used [-Wunused-but-set-variable]
1513 | int orig_task_idx, index;
| ^~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c:1513:6: warning: variable 'orig_task_idx' set but not used [-Wunused-but-set-variable]
1513 | int orig_task_idx, index;
| ^~~~~~~~~~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c: In function 'bnx2fc_allocate_hash_table':
drivers/scsi/bnx2fc/bnx2fc_hwi.c:2093:7: warning: variable 'hi' set but not used [-Wunused-but-set-variable]
2093 | u32 hi;
| ^~
drivers/scsi/bnx2fc/bnx2fc_hwi.c:2092:7: warning: variable 'lo' set but not used [-Wunused-but-set-variable]
2092 | u32 lo;
| ^~
vim +/dummy +1011 drivers/scsi/bnx2fc/bnx2fc_hwi.c
996
997 /* Pending work request completion */
998 static bool bnx2fc_pending_work(struct bnx2fc_rport *tgt, unsigned int wqe)
999 {
1000 unsigned int cpu = wqe % num_possible_cpus();
1001 struct bnx2fc_percpu_s *fps;
1002 struct bnx2fc_work *work;
1003 struct fcoe_task_ctx_entry *task;
1004 struct fcoe_task_ctx_entry *task_page;
1005 struct fcoe_port *port = tgt->port;
1006 struct bnx2fc_interface *interface = port->priv;
1007 struct bnx2fc_hba *hba = interface->hba;
1008 unsigned char *rq_data = NULL;
1009 unsigned char rq_data_buff[BNX2FC_RQ_BUF_SZ];
1010 int task_idx, index;
> 1011 unsigned char *dummy;
1012 u16 xid;
1013 u8 num_rq;
1014 int i;
1015
1016 xid = wqe & FCOE_PEND_WQ_CQE_TASK_ID;
1017 if (xid >= hba->max_tasks) {
1018 pr_err(PFX "ERROR:xid out of range\n");
1019 return 0;
1020 }
1021
1022 task_idx = xid / BNX2FC_TASKS_PER_PAGE;
1023 index = xid % BNX2FC_TASKS_PER_PAGE;
1024 task_page = (struct fcoe_task_ctx_entry *)hba->task_ctx[task_idx];
1025 task = &task_page[index];
1026
1027 num_rq = ((task->rxwr_txrd.var_ctx.rx_flags &
1028 FCOE_TCE_RX_WR_TX_RD_VAR_NUM_RQ_WQE) >>
1029 FCOE_TCE_RX_WR_TX_RD_VAR_NUM_RQ_WQE_SHIFT);
1030
1031 memset(rq_data_buff, 0, BNX2FC_RQ_BUF_SZ);
1032
1033 if (!num_rq)
1034 goto num_rq_zero;
1035
1036 rq_data = bnx2fc_get_next_rqe(tgt, 1);
1037
1038 if (num_rq > 1) {
1039 /* We do not need extra sense data */
1040 for (i = 1; i < num_rq; i++)
1041 dummy = bnx2fc_get_next_rqe(tgt, 1);
1042 }
1043
1044 if (rq_data)
1045 memcpy(rq_data_buff, rq_data, BNX2FC_RQ_BUF_SZ);
1046
1047 /* return RQ entries */
1048 for (i = 0; i < num_rq; i++)
1049 bnx2fc_return_rqe(tgt, 1);
1050
1051 num_rq_zero:
1052
1053 fps = &per_cpu(bnx2fc_percpu, cpu);
1054 spin_lock_bh(&fps->fp_work_lock);
1055 if (fps->iothread) {
1056 work = bnx2fc_alloc_work(tgt, wqe, rq_data_buff,
1057 num_rq, task);
1058 if (work) {
1059 list_add_tail(&work->list, &fps->work_list);
1060 wake_up_process(fps->iothread);
1061 spin_unlock_bh(&fps->fp_work_lock);
1062 return 1;
1063 }
1064 }
1065 spin_unlock_bh(&fps->fp_work_lock);
1066 bnx2fc_process_cq_compl(tgt, wqe,
1067 rq_data_buff, num_rq, task);
1068
1069 return 1;
1070 }
1071
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[miquelraynal:nand/next 26/52] drivers/mtd/nand/raw/tango_nand.c:339:40: error: no member named 'data_interface' in 'struct nand_chip'
by kernel test robot
tree: https://github.com/miquelraynal/linux-0day.git nand/next
head: 33d5c3d07abfc06a44fba577cec76fe8099a0cdc
commit: 20b3d8076851756b42ebe9f21d378abba5560d04 [26/52] mtd: rawnand: s/data_interface/interface_config/
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3d8149c2a1228609fd7d7c91a04681304a2f0ca9)
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 20b3d8076851756b42ebe9f21d378abba5560d04
# 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 error/warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/mtd/nand/raw/tango_nand.c:339:40: error: no member named 'data_interface' in 'struct nand_chip'
timings = nand_get_sdr_timings(&chip->data_interface);
~~~~ ^
1 error generated.
--
>> drivers/mtd/nand/raw/mtk_nand.c:535:21: warning: declaration of 'struct nand_data_interface' will not be visible outside of this function [-Wvisibility]
const struct nand_data_interface *conf)
^
>> drivers/mtd/nand/raw/mtk_nand.c:542:33: error: incompatible pointer types passing 'const struct nand_data_interface *' to parameter of type 'const struct nand_interface_config *' [-Werror,-Wincompatible-pointer-types]
timings = nand_get_sdr_timings(conf);
^~~~
include/linux/mtd/rawnand.h:524:58: note: passing argument to parameter 'conf' here
nand_get_sdr_timings(const struct nand_interface_config *conf)
^
>> drivers/mtd/nand/raw/mtk_nand.c:1360:21: error: incompatible function pointer types initializing 'int (*)(struct nand_chip *, int, const struct nand_interface_config *)' with an expression of type 'int (struct nand_chip *, int, const struct nand_data_interface *)' [-Werror,-Wincompatible-function-pointer-types]
.setup_interface = mtk_nfc_setup_interface,
^~~~~~~~~~~~~~~~~~~~~~~
1 warning and 2 errors generated.
vim +339 drivers/mtd/nand/raw/tango_nand.c
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 319
767eb6fbdedb7d drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2018-09-06 320 static int tango_write_page(struct nand_chip *chip, const u8 *buf,
767eb6fbdedb7d drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2018-09-06 321 int oob_required, int page)
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 322 {
767eb6fbdedb7d drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2018-09-06 323 struct mtd_info *mtd = nand_to_mtd(chip);
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 324 struct tango_nfc *nfc = to_tango_nfc(chip->controller);
d8ed345a4c6226 drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2020-05-18 325 const struct nand_sdr_timings *timings;
d8ed345a4c6226 drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2020-05-18 326 int err, len = mtd->writesize;
d8ed345a4c6226 drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2020-05-18 327 u8 status;
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 328
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 329 /* Calling tango_write_oob() would send PAGEPROG twice */
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 330 if (oob_required)
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 331 return -ENOTSUPP;
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 332
d8ed345a4c6226 drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2020-05-18 333 tango_select_target(chip, chip->cur_cs);
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 334 writel_relaxed(0xffffffff, nfc->mem_base + METADATA);
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 335 err = do_dma(nfc, DMA_TO_DEVICE, NFC_WRITE, buf, len, page);
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 336 if (err)
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 337 return err;
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 338
d8ed345a4c6226 drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2020-05-18 @339 timings = nand_get_sdr_timings(&chip->data_interface);
d8ed345a4c6226 drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2020-05-18 340 err = tango_waitrdy(chip, PSEC_TO_MSEC(timings->tR_max));
d8ed345a4c6226 drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2020-05-18 341 if (err)
d8ed345a4c6226 drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2020-05-18 342 return err;
41145649f4acb3 drivers/mtd/nand/tango_nand.c Boris Brezillon 2017-05-16 343
d8ed345a4c6226 drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2020-05-18 344 err = nand_status_op(chip, &status);
d8ed345a4c6226 drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2020-05-18 345 if (err)
d8ed345a4c6226 drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2020-05-18 346 return err;
d8ed345a4c6226 drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2020-05-18 347
d8ed345a4c6226 drivers/mtd/nand/raw/tango_nand.c Boris Brezillon 2020-05-18 348 return status & NAND_STATUS_FAIL ? -EIO : 0;
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 349 }
6956e2385a1617 drivers/mtd/nand/tango_nand.c Marc Gonzalez 2016-10-25 350
:::::: The code at line 339 was first introduced by commit
:::::: d8ed345a4c622657638b740415c6f73b26bfd132 mtd: rawnand: tango: Convert the driver to exec_op()
:::::: TO: Boris Brezillon <boris.brezillon(a)collabora.com>
:::::: CC: Miquel Raynal <miquel.raynal(a)bootlin.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months