[sashal-linux-stable:queue-5.4 212/290] drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:8270:10: error: implicit declaration of function 'hclge_get_vf_vport'; did you mean 'hclge_get_vport'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: de62e075613ad8d1b4979186b1962e3ae58156f2
commit: 346c4d648c7ba01c5e3266f07d05d9f314ab3227 [212/290] net: hns3: fix VF ID issue for setting VF VLAN
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 346c4d648c7ba01c5e3266f07d05d9f314ab3227
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sparc
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 <<):
In file included from arch/sparc/include/asm/pgtable_64.h:1123,
from arch/sparc/include/asm/pgtable.h:5,
from include/linux/mm.h:99,
from include/linux/bvec.h:13,
from include/linux/skbuff.h:17,
from include/linux/if_ether.h:19,
from include/linux/etherdevice.h:20,
from drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:6:
include/asm-generic/pgtable.h: In function 'pud_none_or_trans_huge_or_dev_or_clear_bad':
include/asm-generic/pgtable.h:920:52: error: implicit declaration of function 'pud_devmap' [-Werror=implicit-function-declaration]
920 | if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
| ^~~~~~~~~~
In file included from include/linux/bvec.h:13,
from include/linux/skbuff.h:17,
from include/linux/if_ether.h:19,
from include/linux/etherdevice.h:20,
from drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:6:
include/linux/mm.h: At top level:
include/linux/mm.h:572:19: error: static declaration of 'pud_devmap' follows non-static declaration
572 | static inline int pud_devmap(pud_t pud)
| ^~~~~~~~~~
In file included from arch/sparc/include/asm/pgtable_64.h:1123,
from arch/sparc/include/asm/pgtable.h:5,
from include/linux/mm.h:99,
from include/linux/bvec.h:13,
from include/linux/skbuff.h:17,
from include/linux/if_ether.h:19,
from include/linux/etherdevice.h:20,
from drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:6:
include/asm-generic/pgtable.h:920:52: note: previous implicit declaration of 'pud_devmap' was here
920 | if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
| ^~~~~~~~~~
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 'hclge_set_vf_vlan_filter':
>> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:8270:10: error: implicit declaration of function 'hclge_get_vf_vport'; did you mean 'hclge_get_vport'? [-Werror=implicit-function-declaration]
8270 | vport = hclge_get_vf_vport(hdev, vfid);
| ^~~~~~~~~~~~~~~~~~
| hclge_get_vport
>> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:8270:8: warning: assignment to 'struct hclge_vport *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
8270 | vport = hclge_get_vf_vport(hdev, vfid);
| ^
cc1: some warnings being treated as errors
vim +8270 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8257
8258 static int hclge_set_vf_vlan_filter(struct hnae3_handle *handle, int vfid,
8259 u16 vlan, u8 qos, __be16 proto)
8260 {
8261 struct hclge_vport *vport = hclge_get_vport(handle);
8262 struct hclge_dev *hdev = vport->back;
8263 struct hclge_vlan_info vlan_info;
8264 u16 state;
8265 int ret;
8266
8267 if (hdev->pdev->revision == 0x20)
8268 return -EOPNOTSUPP;
8269
> 8270 vport = hclge_get_vf_vport(hdev, vfid);
8271 if (!vport)
8272 return -EINVAL;
8273
8274 /* qos is a 3 bits value, so can not be bigger than 7 */
8275 if (vlan > VLAN_N_VID - 1 || qos > 7)
8276 return -EINVAL;
8277 if (proto != htons(ETH_P_8021Q))
8278 return -EPROTONOSUPPORT;
8279
8280 state = hclge_get_port_base_vlan_state(vport,
8281 vport->port_base_vlan_cfg.state,
8282 vlan);
8283 if (state == HNAE3_PORT_BASE_VLAN_NOCHANGE)
8284 return 0;
8285
8286 vlan_info.vlan_tag = vlan;
8287 vlan_info.qos = qos;
8288 vlan_info.vlan_proto = ntohs(proto);
8289
8290 if (!test_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state)) {
8291 return hclge_update_port_base_vlan_cfg(vport, state,
8292 &vlan_info);
8293 } else {
8294 ret = hclge_push_vf_port_base_vlan_info(&hdev->vport[0],
8295 vport->vport_id, state,
8296 vlan, qos,
8297 ntohs(proto));
8298 return ret;
8299 }
8300 }
8301
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[dhowells-fs:notifications-pipe-core 14/18] ld.lld: error: section .rodata at 0xFFFFFFFF84F8A000 of size 0x21665F exceeds available address space
by kbuild test robot
TO: David Howells <dhowells(a)redhat.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git notifications-pipe-core
head: 0c5c93119aa067d20f7ff07bb50d450543ec0f4f
commit: e91bed49f250773231c379aa01b89d70453aae08 [14/18] watch_queue: Implement mount topology and attribute change notifications
config: mips-randconfig-r004-20200517 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 13d44b2a0c7ef404b13b16644765977cd5310fe2)
reproduce:
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 e91bed49f250773231c379aa01b89d70453aae08
# 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 errors (new ones prefixed by >>, old ones prefixed by <<):
ld.lld: error: section .text at 0xFFFFFFFF84000000 of size 0xF87504 exceeds available address space
ld.lld: error: section __ex_table at 0xFFFFFFFF84F87510 of size 0x1DE8 exceeds available address space
ld.lld: error: section __dbe_table at 0xFFFFFFFF84F892F8 of size 0x0 exceeds available address space
>> ld.lld: error: section .rodata at 0xFFFFFFFF84F8A000 of size 0x21665F exceeds available address space
>> ld.lld: error: section .data..page_aligned at 0xFFFFFFFF851A1000 of size 0x2000 exceeds available address space
>> ld.lld: error: section .got at 0xFFFFFFFF851A3000 of size 0x8 exceeds available address space
>> ld.lld: error: section .rodata1 at 0xFFFFFFFF851A3008 of size 0x0 exceeds available address space
>> ld.lld: error: section .pci_fixup at 0xFFFFFFFF851A3008 of size 0x1E90 exceeds available address space
>> ld.lld: error: section .builtin_fw at 0xFFFFFFFF851A4E98 of size 0x0 exceeds available address space
>> ld.lld: error: section __ksymtab at 0xFFFFFFFF851A4E98 of size 0x1038C exceeds available address space
>> ld.lld: error: section __ksymtab_gpl at 0xFFFFFFFF851B5224 of size 0xEF40 exceeds available address space
>> ld.lld: error: section __ksymtab_unused at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
>> ld.lld: error: section __ksymtab_unused_gpl at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
>> ld.lld: error: section __ksymtab_gpl_future at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
>> ld.lld: error: section __kcrctab at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
>> ld.lld: error: section __kcrctab_gpl at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
ld.lld: error: section __kcrctab_unused at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
ld.lld: error: section __kcrctab_unused_gpl at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
ld.lld: error: section __kcrctab_gpl_future at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
>> ld.lld: error: section __ksymtab_strings at 0xFFFFFFFF851C4164 of size 0x34391 exceeds available address space
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[sashal-linux-stable:queue-5.4 117/290] drivers/infiniband/hw/qedr/qedr.h:483:30: error: field 'rdma_entry' has incomplete type
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: de62e075613ad8d1b4979186b1962e3ae58156f2
commit: 2749e1e145eec7db3729de3261f1ea352348f3c8 [117/290] RDMA/qedr: Use the common mmap API
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 2749e1e145eec7db3729de3261f1ea352348f3c8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
Note: the sashal-linux-stable/queue-5.4 HEAD de62e075613ad8d1b4979186b1962e3ae58156f2 builds fine.
It only hurts bisectibility.
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from drivers/infiniband/hw/qedr/main.c:45:
>> drivers/infiniband/hw/qedr/qedr.h:483:30: error: field 'rdma_entry' has incomplete type
483 | struct rdma_user_mmap_entry rdma_entry;
| ^~~~~~~~~~
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:9,
from drivers/infiniband/hw/qedr/main.c:32:
drivers/infiniband/hw/qedr/qedr.h: In function 'get_qedr_mmap_entry':
>> include/linux/kernel.h:994:32: error: dereferencing pointer to incomplete type 'struct rdma_user_mmap_entry'
994 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && | ^~~~~~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:994:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
994 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && | ^~~~~~~~~~~~~~~~
include/linux/kernel.h:994:20: note: in expansion of macro '__same_type'
994 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && | ^~~~~~~~~~~
>> drivers/infiniband/hw/qedr/qedr.h:593:9: note: in expansion of macro 'container_of'
593 | return container_of(rdma_entry, struct qedr_user_mmap_entry,
| ^~~~~~~~~~~~
drivers/infiniband/hw/qedr/main.c: At top level:
>> drivers/infiniband/hw/qedr/main.c:215:3: error: 'const struct ib_device_ops' has no member named 'mmap_free'
215 | .mmap_free = qedr_mmap_free,
| ^~~~~~~~~
>> drivers/infiniband/hw/qedr/main.c:215:15: error: initialization of 'void (*)(struct ib_ucontext *)' from incompatible pointer type 'void (*)(struct rdma_user_mmap_entry *)' [-Werror=incompatible-pointer-types]
215 | .mmap_free = qedr_mmap_free,
| ^~~~~~~~~~~~~~
drivers/infiniband/hw/qedr/main.c:215:15: note: (near initialization for 'qedr_dev_ops.disassociate_ucontext')
cc1: some warnings being treated as errors
--
In file included from drivers/infiniband/hw/qedr/verbs.c:50:
>> drivers/infiniband/hw/qedr/qedr.h:483:30: error: field 'rdma_entry' has incomplete type
483 | struct rdma_user_mmap_entry rdma_entry;
| ^~~~~~~~~~
In file included from include/linux/string.h:6,
from include/linux/dma-mapping.h:6,
from drivers/infiniband/hw/qedr/verbs.c:32:
drivers/infiniband/hw/qedr/qedr.h: In function 'get_qedr_mmap_entry':
>> include/linux/kernel.h:994:32: error: dereferencing pointer to incomplete type 'struct rdma_user_mmap_entry'
994 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && | ^~~~~~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:994:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
994 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && | ^~~~~~~~~~~~~~~~
include/linux/kernel.h:994:20: note: in expansion of macro '__same_type'
994 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && | ^~~~~~~~~~~
>> drivers/infiniband/hw/qedr/qedr.h:593:9: note: in expansion of macro 'container_of'
593 | return container_of(rdma_entry, struct qedr_user_mmap_entry,
| ^~~~~~~~~~~~
drivers/infiniband/hw/qedr/verbs.c: In function 'qedr_alloc_ucontext':
>> drivers/infiniband/hw/qedr/verbs.c:300:7: error: implicit declaration of function 'rdma_user_mmap_entry_insert' [-Werror=implicit-function-declaration]
300 | rc = rdma_user_mmap_entry_insert(uctx, &entry->rdma_entry,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/infiniband/hw/qedr/verbs.c:311:16: error: implicit declaration of function 'rdma_user_mmap_get_offset'; did you mean 'rdma_user_mmap_io'? [-Werror=implicit-function-declaration]
311 | uresp.db_pa = rdma_user_mmap_get_offset(ctx->db_mmap_entry);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| rdma_user_mmap_io
>> drivers/infiniband/hw/qedr/verbs.c:335:3: error: implicit declaration of function 'rdma_user_mmap_entry_remove' [-Werror=implicit-function-declaration]
335 | rdma_user_mmap_entry_remove(ctx->db_mmap_entry);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/qedr/verbs.c: In function 'qedr_mmap':
>> drivers/infiniband/hw/qedr/verbs.c:374:15: error: implicit declaration of function 'rdma_user_mmap_entry_get' [-Werror=implicit-function-declaration]
374 | rdma_entry = rdma_user_mmap_entry_get(ucontext, vma);
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/infiniband/hw/qedr/verbs.c:374:13: warning: assignment to 'struct rdma_user_mmap_entry *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
374 | rdma_entry = rdma_user_mmap_entry_get(ucontext, vma);
| ^
>> drivers/infiniband/hw/qedr/verbs.c:388:8: error: too many arguments to function 'rdma_user_mmap_io'
388 | rc = rdma_user_mmap_io(ucontext, vma, pfn, length,
| ^~~~~~~~~~~~~~~~~
In file included from drivers/infiniband/hw/qedr/verbs.c:39:
include/rdma/ib_verbs.h:2796:5: note: declared here
2796 | int rdma_user_mmap_io(struct ib_ucontext *ucontext, struct vm_area_struct *vma,
| ^~~~~~~~~~~~~~~~~
>> drivers/infiniband/hw/qedr/verbs.c:401:2: error: implicit declaration of function 'rdma_user_mmap_entry_put' [-Werror=implicit-function-declaration]
401 | rdma_user_mmap_entry_put(rdma_entry);
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/infiniband/hw/qedr/verbs.c:50:
drivers/infiniband/hw/qedr/qedr.h: In function 'get_qedr_mmap_entry':
>> drivers/infiniband/hw/qedr/qedr.h:595:1: warning: control reaches end of non-void function [-Wreturn-type]
595 | }
| ^
cc1: some warnings being treated as errors
--
In file included from drivers/infiniband/hw/qedr/qedr_roce_cm.c:48:
>> drivers/infiniband/hw/qedr/qedr.h:483:30: error: field 'rdma_entry' has incomplete type
483 | struct rdma_user_mmap_entry rdma_entry;
| ^~~~~~~~~~
In file included from include/linux/string.h:6,
from include/linux/dma-mapping.h:6,
from drivers/infiniband/hw/qedr/qedr_roce_cm.c:32:
drivers/infiniband/hw/qedr/qedr.h: In function 'get_qedr_mmap_entry':
>> include/linux/kernel.h:994:32: error: dereferencing pointer to incomplete type 'struct rdma_user_mmap_entry'
994 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && | ^~~~~~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:994:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
994 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && | ^~~~~~~~~~~~~~~~
include/linux/kernel.h:994:20: note: in expansion of macro '__same_type'
994 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && | ^~~~~~~~~~~
>> drivers/infiniband/hw/qedr/qedr.h:593:9: note: in expansion of macro 'container_of'
593 | return container_of(rdma_entry, struct qedr_user_mmap_entry,
| ^~~~~~~~~~~~
vim +/rdma_entry +483 drivers/infiniband/hw/qedr/qedr.h
481
482 struct qedr_user_mmap_entry {
> 483 struct rdma_user_mmap_entry rdma_entry;
484 struct qedr_dev *dev;
485 u64 io_address;
486 size_t length;
487 u16 dpi;
488 u8 mmap_flag;
489 };
490
491 #define SET_FIELD2(value, name, flag) ((value) |= ((flag) << (name ## _SHIFT)))
492
493 #define QEDR_RESP_IMM (RDMA_CQE_RESPONDER_IMM_FLG_MASK << \
494 RDMA_CQE_RESPONDER_IMM_FLG_SHIFT)
495 #define QEDR_RESP_RDMA (RDMA_CQE_RESPONDER_RDMA_FLG_MASK << \
496 RDMA_CQE_RESPONDER_RDMA_FLG_SHIFT)
497 #define QEDR_RESP_INV (RDMA_CQE_RESPONDER_INV_FLG_MASK << \
498 RDMA_CQE_RESPONDER_INV_FLG_SHIFT)
499
500 static inline void qedr_inc_sw_cons(struct qedr_qp_hwq_info *info)
501 {
502 info->cons = (info->cons + 1) % info->max_wr;
503 info->wqe_cons++;
504 }
505
506 static inline void qedr_inc_sw_prod(struct qedr_qp_hwq_info *info)
507 {
508 info->prod = (info->prod + 1) % info->max_wr;
509 }
510
511 static inline int qedr_get_dmac(struct qedr_dev *dev,
512 struct rdma_ah_attr *ah_attr, u8 *mac_addr)
513 {
514 union ib_gid zero_sgid = { { 0 } };
515 struct in6_addr in6;
516 const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr);
517 u8 *dmac;
518
519 if (!memcmp(&grh->dgid, &zero_sgid, sizeof(union ib_gid))) {
520 DP_ERR(dev, "Local port GID not supported\n");
521 eth_zero_addr(mac_addr);
522 return -EINVAL;
523 }
524
525 memcpy(&in6, grh->dgid.raw, sizeof(in6));
526 dmac = rdma_ah_retrieve_dmac(ah_attr);
527 if (!dmac)
528 return -EINVAL;
529 ether_addr_copy(mac_addr, dmac);
530
531 return 0;
532 }
533
534 struct qedr_iw_listener {
535 struct qedr_dev *dev;
536 struct iw_cm_id *cm_id;
537 int backlog;
538 void *qed_handle;
539 };
540
541 struct qedr_iw_ep {
542 struct qedr_dev *dev;
543 struct iw_cm_id *cm_id;
544 struct qedr_qp *qp;
545 void *qed_context;
546 struct kref refcnt;
547 };
548
549 static inline
550 struct qedr_ucontext *get_qedr_ucontext(struct ib_ucontext *ibucontext)
551 {
552 return container_of(ibucontext, struct qedr_ucontext, ibucontext);
553 }
554
555 static inline struct qedr_dev *get_qedr_dev(struct ib_device *ibdev)
556 {
557 return container_of(ibdev, struct qedr_dev, ibdev);
558 }
559
560 static inline struct qedr_pd *get_qedr_pd(struct ib_pd *ibpd)
561 {
562 return container_of(ibpd, struct qedr_pd, ibpd);
563 }
564
565 static inline struct qedr_cq *get_qedr_cq(struct ib_cq *ibcq)
566 {
567 return container_of(ibcq, struct qedr_cq, ibcq);
568 }
569
570 static inline struct qedr_qp *get_qedr_qp(struct ib_qp *ibqp)
571 {
572 return container_of(ibqp, struct qedr_qp, ibqp);
573 }
574
575 static inline struct qedr_ah *get_qedr_ah(struct ib_ah *ibah)
576 {
577 return container_of(ibah, struct qedr_ah, ibah);
578 }
579
580 static inline struct qedr_mr *get_qedr_mr(struct ib_mr *ibmr)
581 {
582 return container_of(ibmr, struct qedr_mr, ibmr);
583 }
584
585 static inline struct qedr_srq *get_qedr_srq(struct ib_srq *ibsrq)
586 {
587 return container_of(ibsrq, struct qedr_srq, ibsrq);
588 }
589
590 static inline struct qedr_user_mmap_entry *
591 get_qedr_mmap_entry(struct rdma_user_mmap_entry *rdma_entry)
592 {
> 593 return container_of(rdma_entry, struct qedr_user_mmap_entry,
594 rdma_entry);
> 595 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[dhowells-fs:notifications-pipe-core 16/18] ld.lld: error: section .text at 0xFFFFFFFF84000000 of size 0xF87684 exceeds available address space
by kbuild test robot
TO: David Howells <dhowells(a)redhat.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git notifications-pipe-core
head: 0c5c93119aa067d20f7ff07bb50d450543ec0f4f
commit: 5794f7c561f2d496461ca84d012735c66549144e [16/18] watch_queue: Introduce a non-repeating system-unique superblock ID
config: mips-randconfig-r004-20200517 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 13d44b2a0c7ef404b13b16644765977cd5310fe2)
reproduce:
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 5794f7c561f2d496461ca84d012735c66549144e
# 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 errors (new ones prefixed by >>, old ones prefixed by <<):
>> ld.lld: error: section .text at 0xFFFFFFFF84000000 of size 0xF87684 exceeds available address space
>> ld.lld: error: section __ex_table at 0xFFFFFFFF84F87690 of size 0x1DE8 exceeds available address space
>> ld.lld: error: section __dbe_table at 0xFFFFFFFF84F89478 of size 0x0 exceeds available address space
ld.lld: error: section .rodata at 0xFFFFFFFF84F8A000 of size 0x2165B7 exceeds available address space
ld.lld: error: section .data..page_aligned at 0xFFFFFFFF851A1000 of size 0x2000 exceeds available address space
ld.lld: error: section .got at 0xFFFFFFFF851A3000 of size 0x8 exceeds available address space
ld.lld: error: section .rodata1 at 0xFFFFFFFF851A3008 of size 0x0 exceeds available address space
ld.lld: error: section .pci_fixup at 0xFFFFFFFF851A3008 of size 0x1E90 exceeds available address space
ld.lld: error: section .builtin_fw at 0xFFFFFFFF851A4E98 of size 0x0 exceeds available address space
ld.lld: error: section __ksymtab at 0xFFFFFFFF851A4E98 of size 0x1038C exceeds available address space
ld.lld: error: section __ksymtab_gpl at 0xFFFFFFFF851B5224 of size 0xEF40 exceeds available address space
ld.lld: error: section __ksymtab_unused at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
ld.lld: error: section __ksymtab_unused_gpl at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
ld.lld: error: section __ksymtab_gpl_future at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
ld.lld: error: section __kcrctab at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
ld.lld: error: section __kcrctab_gpl at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
ld.lld: error: section __kcrctab_unused at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
ld.lld: error: section __kcrctab_unused_gpl at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
ld.lld: error: section __kcrctab_gpl_future at 0xFFFFFFFF851C4164 of size 0x0 exceeds available address space
ld.lld: error: section __ksymtab_strings at 0xFFFFFFFF851C4164 of size 0x34391 exceeds available address space
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[sashal-linux-stable:queue-5.4 196/290] include/asm-generic/pgtable.h:920:52: error: implicit declaration of function 'pud_devmap'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: de62e075613ad8d1b4979186b1962e3ae58156f2
commit: c13517e00945f874d87a7d9e140ea0f6c5384f9a [196/290] mm/memory.c: fix a huge pud insertion race during faulting
config: x86_64-defconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 13d44b2a0c7ef404b13b16644765977cd5310fe2)
reproduce:
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 c13517e00945f874d87a7d9e140ea0f6c5384f9a
# 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 errors (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:20:
In file included from include/linux/mm.h:99:
In file included from arch/x86/include/asm/pgtable.h:1469:
>> include/asm-generic/pgtable.h:920:52: error: implicit declaration of function 'pud_devmap' [-Werror,-Wimplicit-function-declaration]
if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
^
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:20:
>> include/linux/mm.h:572:19: error: static declaration of 'pud_devmap' follows non-static declaration
static inline int pud_devmap(pud_t pud)
^
include/asm-generic/pgtable.h:920:52: note: previous implicit declaration is here
if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
^
2 errors generated.
make[2]: *** [scripts/Makefile.build:99: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1111: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:179: sub-make] Error 2
vim +/pud_devmap +920 include/asm-generic/pgtable.h
914
915 /* See pmd_none_or_trans_huge_or_clear_bad for discussion. */
916 static inline int pud_none_or_trans_huge_or_dev_or_clear_bad(pud_t *pud)
917 {
918 pud_t pudval = READ_ONCE(*pud);
919
> 920 if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
921 return 1;
922 if (unlikely(pud_bad(pudval))) {
923 pud_clear_bad(pud);
924 return 1;
925 }
926 return 0;
927 }
928
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[sashal-linux-stable:queue-5.4 260/290] drivers/char/pcmcia/synclink_cs.c:294: warning: "IRQ_TIMER" redefined
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: de62e075613ad8d1b4979186b1962e3ae58156f2
commit: ccd521d5a1798c1b890465e88aa73310f7e4bc68 [260/290] riscv: abstract out CSR names for supervisor vs machine mode
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ccd521d5a1798c1b890465e88aa73310f7e4bc68
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=riscv
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 <<):
In file included from arch/riscv/include/asm/pgtable.h:449,
from arch/riscv/include/asm/io.h:16,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from ./arch/riscv/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from drivers/char/pcmcia/synclink_cs.c:44:
include/asm-generic/pgtable.h: In function 'pud_none_or_trans_huge_or_dev_or_clear_bad':
include/asm-generic/pgtable.h:920:52: error: implicit declaration of function 'pud_devmap'; did you mean 'pud_val'? [-Werror=implicit-function-declaration]
920 | if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
| ^~~~~~~~~~
| pud_val
In file included from include/linux/pid_namespace.h:7,
from include/linux/ptrace.h:10,
from drivers/char/pcmcia/synclink_cs.c:51:
include/linux/mm.h: At top level:
include/linux/mm.h:572:19: error: static declaration of 'pud_devmap' follows non-static declaration
572 | static inline int pud_devmap(pud_t pud)
| ^~~~~~~~~~
In file included from arch/riscv/include/asm/pgtable.h:449,
from arch/riscv/include/asm/io.h:16,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from ./arch/riscv/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from drivers/char/pcmcia/synclink_cs.c:44:
include/asm-generic/pgtable.h:920:52: note: previous implicit declaration of 'pud_devmap' was here
920 | if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
| ^~~~~~~~~~
>> drivers/char/pcmcia/synclink_cs.c:294: warning: "IRQ_TIMER" redefined
294 | #define IRQ_TIMER BIT11 // timer interrupt
|
In file included from arch/riscv/include/asm/ptrace.h:10,
from arch/riscv/include/asm/processor.h:11,
from arch/riscv/include/asm/irqflags.h:10,
from include/linux/irqflags.h:16,
from arch/riscv/include/asm/bitops.h:14,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/module.h:9,
from drivers/char/pcmcia/synclink_cs.c:38:
arch/riscv/include/asm/csr.h:135: note: this is the location of the previous definition
135 | # define IRQ_TIMER IRQ_S_TIMER
|
cc1: some warnings being treated as errors
--
In file included from arch/riscv/include/asm/pgtable.h:449,
from arch/riscv/include/asm/io.h:16,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from ./arch/riscv/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from drivers/net/fddi/skfp/skfddi.c:77:
include/asm-generic/pgtable.h: In function 'pud_none_or_trans_huge_or_dev_or_clear_bad':
include/asm-generic/pgtable.h:920:52: error: implicit declaration of function 'pud_devmap'; did you mean 'pud_val'? [-Werror=implicit-function-declaration]
920 | if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
| ^~~~~~~~~~
| pud_val
In file included from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1416,
from drivers/net/fddi/skfp/skfddi.c:78:
include/linux/mm.h: At top level:
include/linux/mm.h:572:19: error: static declaration of 'pud_devmap' follows non-static declaration
572 | static inline int pud_devmap(pud_t pud)
| ^~~~~~~~~~
In file included from arch/riscv/include/asm/pgtable.h:449,
from arch/riscv/include/asm/io.h:16,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from ./arch/riscv/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from drivers/net/fddi/skfp/skfddi.c:77:
include/asm-generic/pgtable.h:920:52: note: previous implicit declaration of 'pud_devmap' was here
920 | if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
| ^~~~~~~~~~
In file included from drivers/net/fddi/skfp/skfddi.c:91:
>> drivers/net/fddi/skfp/h/skfbi.h:362: warning: "IRQ_TIMER" redefined
362 | #define IRQ_TIMER (1L<<22) /* Bit 22: IRQ_TIMER */
|
In file included from arch/riscv/include/asm/ptrace.h:10,
from arch/riscv/include/asm/processor.h:11,
from arch/riscv/include/asm/irqflags.h:10,
from include/linux/irqflags.h:16,
from arch/riscv/include/asm/bitops.h:14,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/module.h:9,
from drivers/net/fddi/skfp/skfddi.c:73:
arch/riscv/include/asm/csr.h:135: note: this is the location of the previous definition
135 | # define IRQ_TIMER IRQ_S_TIMER
|
cc1: some warnings being treated as errors
--
In file included from arch/riscv/include/asm/ptrace.h:10,
from arch/riscv/include/asm/processor.h:11,
from arch/riscv/include/asm/irqflags.h:10,
from include/linux/irqflags.h:16,
from arch/riscv/include/asm/bitops.h:14,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/cpumask.h:10,
from arch/riscv/include/asm/smp.h:9,
from include/asm-generic/mmiowb.h:27,
from arch/riscv/include/asm/mmiowb.h:12,
from arch/riscv/include/asm/io.h:15,
from drivers/net/fddi/skfp/h/targetos.h:42,
from drivers/net/fddi/skfp/h/smc.h:46,
from drivers/net/fddi/skfp/hwmtm.c:25:
>> arch/riscv/include/asm/csr.h:135: warning: "IRQ_TIMER" redefined
135 | # define IRQ_TIMER IRQ_S_TIMER
|
In file included from drivers/net/fddi/skfp/h/targethw.h:24,
from drivers/net/fddi/skfp/h/smc.h:45,
from drivers/net/fddi/skfp/hwmtm.c:25:
drivers/net/fddi/skfp/h/skfbi.h:362: note: this is the location of the previous definition
362 | #define IRQ_TIMER (1L<<22) /* Bit 22: IRQ_TIMER */
|
In file included from arch/riscv/include/asm/pgtable.h:449,
from arch/riscv/include/asm/io.h:16,
from drivers/net/fddi/skfp/h/targetos.h:42,
from drivers/net/fddi/skfp/h/smc.h:46,
from drivers/net/fddi/skfp/hwmtm.c:25:
include/asm-generic/pgtable.h: In function 'pud_none_or_trans_huge_or_dev_or_clear_bad':
include/asm-generic/pgtable.h:920:52: error: implicit declaration of function 'pud_devmap'; did you mean 'pud_val'? [-Werror=implicit-function-declaration]
920 | if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
| ^~~~~~~~~~
| pud_val
In file included from include/linux/bvec.h:13,
from include/linux/skbuff.h:17,
from include/linux/if_ether.h:19,
from include/uapi/linux/ethtool.h:19,
from include/linux/ethtool.h:18,
from include/linux/netdevice.h:37,
from drivers/net/fddi/skfp/h/targetos.h:43,
from drivers/net/fddi/skfp/h/smc.h:46,
from drivers/net/fddi/skfp/hwmtm.c:25:
include/linux/mm.h: At top level:
include/linux/mm.h:572:19: error: static declaration of 'pud_devmap' follows non-static declaration
572 | static inline int pud_devmap(pud_t pud)
| ^~~~~~~~~~
In file included from arch/riscv/include/asm/pgtable.h:449,
from arch/riscv/include/asm/io.h:16,
from drivers/net/fddi/skfp/h/targetos.h:42,
from drivers/net/fddi/skfp/h/smc.h:46,
from drivers/net/fddi/skfp/hwmtm.c:25:
include/asm-generic/pgtable.h:920:52: note: previous implicit declaration of 'pud_devmap' was here
920 | if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
| ^~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/riscv/include/asm/pgtable.h:449,
from arch/riscv/include/asm/io.h:16,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from ./arch/riscv/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/pci.h:38,
from sound/pci/au88x0/au88x0.h:8,
from sound/pci/au88x0/au8810.c:3:
include/asm-generic/pgtable.h: In function 'pud_none_or_trans_huge_or_dev_or_clear_bad':
include/asm-generic/pgtable.h:920:52: error: implicit declaration of function 'pud_devmap' [-Werror=implicit-function-declaration]
920 | if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
| ^~~~~~~~~~
In file included from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1416,
from sound/pci/au88x0/au88x0.h:8,
from sound/pci/au88x0/au8810.c:3:
include/linux/mm.h: At top level:
include/linux/mm.h:572:19: error: static declaration of 'pud_devmap' follows non-static declaration
572 | static inline int pud_devmap(pud_t pud)
| ^~~~~~~~~~
In file included from arch/riscv/include/asm/pgtable.h:449,
from arch/riscv/include/asm/io.h:16,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from ./arch/riscv/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/linux/pci.h:38,
from sound/pci/au88x0/au88x0.h:8,
from sound/pci/au88x0/au8810.c:3:
include/asm-generic/pgtable.h:920:52: note: previous implicit declaration of 'pud_devmap' was here
920 | if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
| ^~~~~~~~~~
In file included from sound/pci/au88x0/au8810.c:3:
>> sound/pci/au88x0/au88x0.h:52: warning: "IRQ_TIMER" redefined
52 | #define IRQ_TIMER 0x1000
|
In file included from arch/riscv/include/asm/ptrace.h:10,
from arch/riscv/include/asm/processor.h:11,
from arch/riscv/include/asm/irqflags.h:10,
from include/linux/irqflags.h:16,
from arch/riscv/include/asm/bitops.h:14,
from include/linux/bitops.h:26,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/pci.h:32,
from sound/pci/au88x0/au88x0.h:8,
from sound/pci/au88x0/au8810.c:3:
arch/riscv/include/asm/csr.h:135: note: this is the location of the previous definition
135 | # define IRQ_TIMER IRQ_S_TIMER
|
cc1: some warnings being treated as errors
vim +/IRQ_TIMER +294 drivers/char/pcmcia/synclink_cs.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 289
^1da177e4c3f41 Linus Torvalds 2005-04-16 290 #define IRQ_BREAK_ON BIT15 // rx break detected
^1da177e4c3f41 Linus Torvalds 2005-04-16 291 #define IRQ_DATAOVERRUN BIT14 // receive data overflow
^1da177e4c3f41 Linus Torvalds 2005-04-16 292 #define IRQ_ALLSENT BIT13 // all sent
^1da177e4c3f41 Linus Torvalds 2005-04-16 293 #define IRQ_UNDERRUN BIT12 // transmit data underrun
^1da177e4c3f41 Linus Torvalds 2005-04-16 @294 #define IRQ_TIMER BIT11 // timer interrupt
^1da177e4c3f41 Linus Torvalds 2005-04-16 295 #define IRQ_CTS BIT10 // CTS status change
^1da177e4c3f41 Linus Torvalds 2005-04-16 296 #define IRQ_TXREPEAT BIT9 // tx message repeat
^1da177e4c3f41 Linus Torvalds 2005-04-16 297 #define IRQ_TXFIFO BIT8 // transmit pool ready
^1da177e4c3f41 Linus Torvalds 2005-04-16 298 #define IRQ_RXEOM BIT7 // receive message end
^1da177e4c3f41 Linus Torvalds 2005-04-16 299 #define IRQ_EXITHUNT BIT6 // receive frame start
^1da177e4c3f41 Linus Torvalds 2005-04-16 300 #define IRQ_RXTIME BIT6 // rx char timeout
^1da177e4c3f41 Linus Torvalds 2005-04-16 301 #define IRQ_DCD BIT2 // carrier detect status change
^1da177e4c3f41 Linus Torvalds 2005-04-16 302 #define IRQ_OVERRUN BIT1 // receive frame overflow
^1da177e4c3f41 Linus Torvalds 2005-04-16 303 #define IRQ_RXFIFO BIT0 // receive pool full
^1da177e4c3f41 Linus Torvalds 2005-04-16 304
:::::: The code at line 294 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[sashal-linux-stable:queue-5.4 99/290] kernel/trace/bpf_trace.c:190:8: error: implicit declaration of function 'probe_kernel_read_strict'; did you mean 'probe_kernel_read'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: de62e075613ad8d1b4979186b1962e3ae58156f2
commit: aec6ff2b4f2de4a2a013bc22ed8dab66660f47e5 [99/290] bpf: Add probe_read_{user, kernel} and probe_read_{user, kernel}_str helpers
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout aec6ff2b4f2de4a2a013bc22ed8dab66660f47e5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
Note: the sashal-linux-stable/queue-5.4 HEAD de62e075613ad8d1b4979186b1962e3ae58156f2 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>, old ones prefixed by <<):
kernel/trace/bpf_trace.c: In function 'bpf_probe_read_kernel_common':
>> kernel/trace/bpf_trace.c:190:8: error: implicit declaration of function 'probe_kernel_read_strict'; did you mean 'probe_kernel_read'? [-Werror=implicit-function-declaration]
190 | probe_kernel_read_strict(dst, unsafe_ptr, size);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| probe_kernel_read
kernel/trace/bpf_trace.c: In function 'bpf_probe_read_kernel_str_common':
>> kernel/trace/bpf_trace.c:245:8: error: implicit declaration of function 'strncpy_from_unsafe_strict'; did you mean 'strncpy_from_unsafe_user'? [-Werror=implicit-function-declaration]
245 | strncpy_from_unsafe_strict(dst, unsafe_ptr, size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| strncpy_from_unsafe_user
cc1: some warnings being treated as errors
vim +190 kernel/trace/bpf_trace.c
180
181 static __always_inline int
182 bpf_probe_read_kernel_common(void *dst, u32 size, const void *unsafe_ptr,
183 const bool compat)
184 {
185 int ret = security_locked_down(LOCKDOWN_BPF_READ);
186
187 if (unlikely(ret < 0))
188 goto out;
189 ret = compat ? probe_kernel_read(dst, unsafe_ptr, size) :
> 190 probe_kernel_read_strict(dst, unsafe_ptr, size);
191 if (unlikely(ret < 0))
192 out:
193 memset(dst, 0, size);
194 return ret;
195 }
196
197 BPF_CALL_3(bpf_probe_read_kernel, void *, dst, u32, size,
198 const void *, unsafe_ptr)
199 {
200 return bpf_probe_read_kernel_common(dst, size, unsafe_ptr, false);
201 }
202
203 static const struct bpf_func_proto bpf_probe_read_kernel_proto = {
204 .func = bpf_probe_read_kernel,
205 .gpl_only = true,
206 .ret_type = RET_INTEGER,
207 .arg1_type = ARG_PTR_TO_UNINIT_MEM,
208 .arg2_type = ARG_CONST_SIZE_OR_ZERO,
209 .arg3_type = ARG_ANYTHING,
210 };
211
212 BPF_CALL_3(bpf_probe_read_compat, void *, dst, u32, size,
213 const void *, unsafe_ptr)
214 {
215 return bpf_probe_read_kernel_common(dst, size, unsafe_ptr, true);
216 }
217
218 static const struct bpf_func_proto bpf_probe_read_compat_proto = {
219 .func = bpf_probe_read_compat,
220 .gpl_only = true,
221 .ret_type = RET_INTEGER,
222 .arg1_type = ARG_PTR_TO_UNINIT_MEM,
223 .arg2_type = ARG_CONST_SIZE_OR_ZERO,
224 .arg3_type = ARG_ANYTHING,
225 };
226
227 static __always_inline int
228 bpf_probe_read_kernel_str_common(void *dst, u32 size, const void *unsafe_ptr,
229 const bool compat)
230 {
231 int ret = security_locked_down(LOCKDOWN_BPF_READ);
232
233 if (unlikely(ret < 0))
234 goto out;
235 /*
236 * The strncpy_from_unsafe_*() call will likely not fill the entire
237 * buffer, but that's okay in this circumstance as we're probing
238 * arbitrary memory anyway similar to bpf_probe_read_*() and might
239 * as well probe the stack. Thus, memory is explicitly cleared
240 * only in error case, so that improper users ignoring return
241 * code altogether don't copy garbage; otherwise length of string
242 * is returned that can be used for bpf_perf_event_output() et al.
243 */
244 ret = compat ? strncpy_from_unsafe(dst, unsafe_ptr, size) :
> 245 strncpy_from_unsafe_strict(dst, unsafe_ptr, size);
246 if (unlikely(ret < 0))
247 out:
248 memset(dst, 0, size);
249 return ret;
250 }
251
---
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:modules/WIP 22/23] module.c:undefined reference to `ftrace_module_release'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git modules/WIP
head: f0d1d7d9b12e1f351715255a8569d2afde739a34
commit: 764e7a2977acd71af7da72e661b2152a5e9d4e4f [22/23] ftrace: Merge ftrace_module_{init,enable}()
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 764e7a2977acd71af7da72e661b2152a5e9d4e4f
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
ld: kernel/module.o: in function `__ia32_sys_delete_module':
>> module.c:(.text+0x2f96): undefined reference to `ftrace_module_release'
ld: kernel/module.o: in function `load_module':
module.c:(.text+0x58e0): undefined reference to `ftrace_module_release'
ld: kernel/module.o: in function `do_init_module':
module.c:(.text.unlikely+0x35f): undefined reference to `ftrace_module_release'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[rcu:dev.2020.05.09a 57/66] net/sched/cls_flower.c:298:12: warning: stack frame size of 1040 bytes in function 'fl_classify'
by kbuild test robot
CC: linux-kernel(a)vger.kernel.org
TO: Madhuparna Bhowmik <madhuparnabhowmik10(a)gmail.com>
CC: "Paul E. McKenney" <paulmck(a)kernel.org>
CC: Amol Grover <frextrite(a)gmail.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.05.09a
head: f947b264331dde395e790628cf7c41f632cad098
commit: d13fee049fa8e94649aa9914fd1ab5d07da51da4 [57/66] Default enable RCU list lockdep debugging with PROVE_RCU
config: powerpc-randconfig-r015-20200515 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 13d44b2a0c7ef404b13b16644765977cd5310fe2)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
git checkout d13fee049fa8e94649aa9914fd1ab5d07da51da4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> net/sched/cls_flower.c:298:12: warning: stack frame size of 1040 bytes in function 'fl_classify' [-Wframe-larger-than=]
static int fl_classify(struct sk_buff *skb, const struct tcf_proto *tp,
^
1 warning generated.
vim +/fl_classify +298 net/sched/cls_flower.c
e0ace68af2acfe Paul Blakey 2019-07-09 297
77b9900ef53ae0 Jiri Pirko 2015-05-12 @298 static int fl_classify(struct sk_buff *skb, const struct tcf_proto *tp,
77b9900ef53ae0 Jiri Pirko 2015-05-12 299 struct tcf_result *res)
77b9900ef53ae0 Jiri Pirko 2015-05-12 300 {
77b9900ef53ae0 Jiri Pirko 2015-05-12 301 struct cls_fl_head *head = rcu_dereference_bh(tp->root);
77b9900ef53ae0 Jiri Pirko 2015-05-12 302 struct fl_flow_key skb_mkey;
e0ace68af2acfe Paul Blakey 2019-07-09 303 struct fl_flow_key skb_key;
e0ace68af2acfe Paul Blakey 2019-07-09 304 struct fl_flow_mask *mask;
e0ace68af2acfe Paul Blakey 2019-07-09 305 struct cls_fl_filter *f;
77b9900ef53ae0 Jiri Pirko 2015-05-12 306
05cd271fd61a0b Paul Blakey 2018-04-30 307 list_for_each_entry_rcu(mask, &head->masks, list) {
8a9093c79863b5 Jason Baron 2020-02-17 308 flow_dissector_init_keys(&skb_key.control, &skb_key.basic);
05cd271fd61a0b Paul Blakey 2018-04-30 309 fl_clear_masked_range(&skb_key, mask);
bc3103f1ed405d Amir Vadai 2016-09-08 310
8212ed777f40c7 Jiri Pirko 2019-06-19 311 skb_flow_dissect_meta(skb, &mask->dissector, &skb_key);
05cd271fd61a0b Paul Blakey 2018-04-30 312 /* skb_flow_dissect() does not set n_proto in case an unknown
05cd271fd61a0b Paul Blakey 2018-04-30 313 * protocol, so do it rather here.
77b9900ef53ae0 Jiri Pirko 2015-05-12 314 */
77b9900ef53ae0 Jiri Pirko 2015-05-12 315 skb_key.basic.n_proto = skb->protocol;
05cd271fd61a0b Paul Blakey 2018-04-30 316 skb_flow_dissect_tunnel_info(skb, &mask->dissector, &skb_key);
e0ace68af2acfe Paul Blakey 2019-07-09 317 skb_flow_dissect_ct(skb, &mask->dissector, &skb_key,
e0ace68af2acfe Paul Blakey 2019-07-09 318 fl_ct_info_to_flower_map,
e0ace68af2acfe Paul Blakey 2019-07-09 319 ARRAY_SIZE(fl_ct_info_to_flower_map));
05cd271fd61a0b Paul Blakey 2018-04-30 320 skb_flow_dissect(skb, &mask->dissector, &skb_key, 0);
77b9900ef53ae0 Jiri Pirko 2015-05-12 321
05cd271fd61a0b Paul Blakey 2018-04-30 322 fl_set_masked_key(&skb_mkey, &skb_key, mask);
77b9900ef53ae0 Jiri Pirko 2015-05-12 323
5c72299fba9df4 Amritha Nambiar 2018-11-12 324 f = fl_lookup(mask, &skb_mkey, &skb_key);
e8eb36cd8ca93f Amir Vadai 2016-06-13 325 if (f && !tc_skip_sw(f->flags)) {
77b9900ef53ae0 Jiri Pirko 2015-05-12 326 *res = f->res;
77b9900ef53ae0 Jiri Pirko 2015-05-12 327 return tcf_exts_exec(skb, &f->exts, res);
77b9900ef53ae0 Jiri Pirko 2015-05-12 328 }
05cd271fd61a0b Paul Blakey 2018-04-30 329 }
77b9900ef53ae0 Jiri Pirko 2015-05-12 330 return -1;
77b9900ef53ae0 Jiri Pirko 2015-05-12 331 }
77b9900ef53ae0 Jiri Pirko 2015-05-12 332
:::::: The code at line 298 was first introduced by commit
:::::: 77b9900ef53ae047e36a37d13a2aa33bb2d60641 tc: introduce Flower classifier
:::::: TO: Jiri Pirko <jiri(a)resnulli.us>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[chrome-os:chromeos-5.4 33/111] ld.lld: error: section __ex_table at 0xFFFFFFFF81124390 of size 0x2008 exceeds available address space
by kbuild test robot
TO: cros-kernel-buildreports(a)googlegroups.com
TO: Guenter Roeck <groeck(a)google.com>
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 2d23dcabce805e9443ddc1a73ec5e8dee91eba56
commit: a9ee520fbaeae847ecb2fe401fec5e5e663ca6a1 [33/111] Revert "FROMLIST: OPP: Allow required-opps even if the device doesn't have power-domains"
config: mips-randconfig-r004-20200515 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project b31cb3aa5ee7ea92d830b06a0a7e42c7f2791dd4)
reproduce:
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 a9ee520fbaeae847ecb2fe401fec5e5e663ca6a1
# 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 errors (new ones prefixed by >>, old ones prefixed by <<):
ld.lld: error: section .text at 0xFFFFFFFF80010000 of size 0x1114388 exceeds available address space
>> ld.lld: error: section __ex_table at 0xFFFFFFFF81124390 of size 0x2008 exceeds available address space
>> ld.lld: error: section __dbe_table at 0xFFFFFFFF81126398 of size 0x0 exceeds available address space
>> ld.lld: error: section .notes at 0xFFFFFFFF81126398 of size 0x30 exceeds available address space
>> ld.lld: error: section .dummy at 0xFFFFFFFF811263C8 of size 0x0 exceeds available address space
ld.lld: error: section .rodata at 0xFFFFFFFF81127000 of size 0x65737B exceeds available address space
ld.lld: error: section .data..page_aligned at 0xFFFFFFFF8177F000 of size 0x2000 exceeds available address space
ld.lld: error: section .got at 0xFFFFFFFF81781000 of size 0x8 exceeds available address space
ld.lld: error: section .rodata1 at 0xFFFFFFFF81781008 of size 0x0 exceeds available address space
ld.lld: error: section .pci_fixup at 0xFFFFFFFF81781008 of size 0x0 exceeds available address space
ld.lld: error: section .builtin_fw at 0xFFFFFFFF81781008 of size 0x0 exceeds available address space
ld.lld: error: section __ksymtab at 0xFFFFFFFF81781008 of size 0x10434 exceeds available address space
ld.lld: error: section __ksymtab_gpl at 0xFFFFFFFF8179143C of size 0xFBF4 exceeds available address space
ld.lld: error: section __ksymtab_unused at 0xFFFFFFFF817A1030 of size 0x0 exceeds available address space
ld.lld: error: section __ksymtab_unused_gpl at 0xFFFFFFFF817A1030 of size 0x0 exceeds available address space
ld.lld: error: section __ksymtab_gpl_future at 0xFFFFFFFF817A1030 of size 0x0 exceeds available address space
ld.lld: error: section __kcrctab at 0xFFFFFFFF817A1030 of size 0x0 exceeds available address space
ld.lld: error: section __kcrctab_gpl at 0xFFFFFFFF817A1030 of size 0x0 exceeds available address space
ld.lld: error: section __kcrctab_unused at 0xFFFFFFFF817A1030 of size 0x0 exceeds available address space
ld.lld: error: section __kcrctab_unused_gpl at 0xFFFFFFFF817A1030 of size 0x0 exceeds available address space
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months