[linux-stable-rc:linux-5.12.y 158/1078] discard.c:undefined reference to `atomic64_read_386'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.12.y
head: 77b8af76d4c0a1c1e5abf27ed2cb55889d58580a
commit: 63d01008da136dc3de36de5852cc29c2b8694249 [158/1078] btrfs: fix exhaustion of the system chunk array due to concurrent allocations
config: um-randconfig-r014-20210512 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.12.y
git checkout 63d01008da136dc3de36de5852cc29c2b8694249
# save the attached .config to linux build tree
make W=1 W=1 ARCH=um
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 >>):
/usr/bin/ld: xfs_log.c:(.text+0x1f19): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/xfs/xfs_log.o: in function `xlog_grant_push_threshold':
xfs_log.c:(.text+0x217f): undefined reference to `atomic64_read_386'
/usr/bin/ld: xfs_log.c:(.text+0x21ac): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/xfs/xfs_log.o: in function `xlog_state_do_callback':
xfs_log.c:(.text+0x2a38): undefined reference to `atomic64_read_386'
/usr/bin/ld: xfs_log.c:(.text+0x2ab2): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/xfs/xfs_inode_item.o: in function `xfs_inode_item_format':
xfs_inode_item.c:(.text+0x10b6): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/xfs/xfs_log_recover.o: in function `xlog_set_state':
xfs_log_recover.c:(.text+0x1b9): undefined reference to `atomic64_set_386'
/usr/bin/ld: xfs_log_recover.c:(.text+0x1d6): undefined reference to `atomic64_set_386'
/usr/bin/ld: xfs_log_recover.c:(.text+0x1f5): undefined reference to `atomic64_set_386'
/usr/bin/ld: xfs_log_recover.c:(.text+0x214): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/xfs/xfs_log_recover.o: in function `xlog_check_unmount_rec':
xfs_log_recover.c:(.text+0x316e): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/xfs/xfs_log_recover.o:xfs_log_recover.c:(.text+0x3184): more undefined references to `atomic64_set_386' follow
/usr/bin/ld: fs/xfs/xfs_log_recover.o: in function `xlog_find_tail':
xfs_log_recover.c:(.text+0x49e8): undefined reference to `atomic64_read_386'
/usr/bin/ld: xfs_log_recover.c:(.text+0x4aab): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/nilfs2/inode.o: in function `nilfs_inode_add_blocks':
inode.c:(.text+0x613): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/nilfs2/inode.o: in function `nilfs_inode_sub_blocks':
inode.c:(.text+0x65f): undefined reference to `atomic64_sub_386'
/usr/bin/ld: fs/nilfs2/inode.o: in function `nilfs_new_inode':
inode.c:(.text+0x7e2): undefined reference to `atomic64_inc_386'
/usr/bin/ld: fs/nilfs2/inode.o: in function `nilfs_evict_inode':
inode.c:(.text+0x1b1c): undefined reference to `atomic64_dec_386'
/usr/bin/ld: fs/nilfs2/the_nilfs.o: in function `nilfs_find_or_create_root':
the_nilfs.c:(.text+0x1621): undefined reference to `atomic64_set_386'
/usr/bin/ld: the_nilfs.c:(.text+0x1629): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/nilfs2/segment.o: in function `nilfs_segctor_do_construct':
segment.c:(.text+0x3f3d): undefined reference to `atomic64_read_386'
/usr/bin/ld: segment.c:(.text+0x3f51): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/nilfs2/ifile.o: in function `nilfs_ifile_count_free_inodes':
ifile.c:(.text+0x30d): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/btrfs/ctree.o: in function `__tree_mod_log_insert':
ctree.c:(.text+0x9df): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: fs/btrfs/ctree.o: in function `btrfs_get_tree_mod_seq':
ctree.c:(.text+0x3533): undefined reference to `atomic64_inc_return_386'
/usr/bin/ld: fs/btrfs/transaction.o: in function `join_transaction':
transaction.c:(.text+0xe2e): undefined reference to `atomic64_set_386'
/usr/bin/ld: transaction.c:(.text+0xf5c): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/btrfs/transaction.o: in function `btrfs_trans_release_chunk_metadata':
transaction.c:(.text+0x19b1): undefined reference to `atomic64_sub_386'
/usr/bin/ld: fs/btrfs/xattr.o: in function `inode_maybe_inc_iversion.constprop.0':
xattr.c:(.text+0x72): undefined reference to `atomic64_read_386'
/usr/bin/ld: xattr.c:(.text+0xaa): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/btrfs/volumes.o: in function `create_chunk':
volumes.c:(.text+0x38a0): undefined reference to `atomic64_sub_386'
/usr/bin/ld: fs/btrfs/volumes.o: in function `btrfs_remove_chunk':
volumes.c:(.text+0x5aa5): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/btrfs/volumes.o: in function `btrfs_shrink_device':
volumes.c:(.text+0x7c66): undefined reference to `atomic64_sub_386'
/usr/bin/ld: volumes.c:(.text+0x816a): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/btrfs/volumes.o: in function `btrfs_init_new_device':
volumes.c:(.text+0xca06): undefined reference to `atomic64_add_386'
/usr/bin/ld: volumes.c:(.text+0xce9f): undefined reference to `atomic64_sub_386'
/usr/bin/ld: fs/btrfs/volumes.o: in function `read_one_dev':
volumes.c:(.text+0xdaa1): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/btrfs/ioctl.o: in function `inode_inc_iversion':
ioctl.c:(.text+0x2534): undefined reference to `atomic64_read_386'
/usr/bin/ld: ioctl.c:(.text+0x256c): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: fs/btrfs/tree-log.o: in function `fill_inode_item':
tree-log.c:(.text+0x2ec7): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/btrfs/free-space-cache.o: in function `btrfs_find_space_for_alloc':
free-space-cache.c:(.text+0x61e8): undefined reference to `atomic64_add_386'
/usr/bin/ld: free-space-cache.c:(.text+0x623f): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/btrfs/free-space-cache.o: in function `btrfs_alloc_from_cluster':
free-space-cache.c:(.text+0x6749): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/btrfs/scrub.o: in function `scrub_repair_page_from_good_copy':
scrub.c:(.text+0x623): undefined reference to `atomic64_inc_386'
/usr/bin/ld: fs/btrfs/scrub.o: in function `scrub_wr_bio_end_io_worker':
scrub.c:(.text+0x1d6e): undefined reference to `atomic64_inc_386'
/usr/bin/ld: fs/btrfs/scrub.o: in function `scrub_write_block_to_dev_replace':
scrub.c:(.text+0x371a): undefined reference to `atomic64_inc_386'
/usr/bin/ld: fs/btrfs/scrub.o: in function `scrub_handle_errored_block':
scrub.c:(.text+0x42d6): undefined reference to `atomic64_inc_386'
/usr/bin/ld: fs/btrfs/scrub.o: in function `scrub_enumerate_chunks':
scrub.c:(.text+0x79b6): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/btrfs/dev-replace.o: in function `btrfs_dev_replace_start':
dev-replace.c:(.text+0x13f6): undefined reference to `atomic64_set_386'
/usr/bin/ld: dev-replace.c:(.text+0x1401): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/btrfs/dev-replace.o: in function `btrfs_init_dev_replace':
dev-replace.c:(.text+0x16e2): undefined reference to `atomic64_set_386'
/usr/bin/ld: dev-replace.c:(.text+0x16ed): undefined reference to `atomic64_set_386'
/usr/bin/ld: dev-replace.c:(.text+0x180d): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/btrfs/dev-replace.o:dev-replace.c:(.text+0x182c): more undefined references to `atomic64_set_386' follow
/usr/bin/ld: fs/btrfs/dev-replace.o: in function `btrfs_run_dev_replace':
dev-replace.c:(.text+0x1dac): undefined reference to `atomic64_read_386'
/usr/bin/ld: dev-replace.c:(.text+0x1dc5): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/btrfs/dev-replace.o: in function `btrfs_dev_replace_status':
dev-replace.c:(.text+0x20e9): undefined reference to `atomic64_read_386'
/usr/bin/ld: dev-replace.c:(.text+0x20fa): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/btrfs/space-info.o: in function `calc_available_free_space':
space-info.c:(.text+0xf4): undefined reference to `atomic64_read_386'
/usr/bin/ld: fs/btrfs/block-group.o:block-group.c:(.text+0x5ffd): more undefined references to `atomic64_read_386' follow
/usr/bin/ld: fs/btrfs/block-group.o: in function `check_system_chunk':
block-group.c:(.text+0x612d): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/btrfs/discard.o: in function `btrfs_discard_calc_delay':
>> discard.c:(.text+0xc51): undefined reference to `atomic64_read_386'
>> /usr/bin/ld: discard.c:(.text+0xc67): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/btrfs/discard.o: in function `btrfs_discard_update_discardable':
discard.c:(.text+0xdcd): undefined reference to `atomic64_add_386'
/usr/bin/ld: fs/btrfs/discard.o: in function `btrfs_discard_init':
discard.c:(.text+0xf91): undefined reference to `atomic64_set_386'
/usr/bin/ld: discard.c:(.text+0x1000): undefined reference to `atomic64_set_386'
/usr/bin/ld: fs/btrfs/reflink.o: in function `clone_finish_inode_update':
reflink.c:(.text+0xca): undefined reference to `atomic64_read_386'
/usr/bin/ld: reflink.c:(.text+0x102): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: drivers/dma-buf/dma-fence.o: in function `dma_fence_context_alloc':
dma-fence.c:(.text+0x55d): undefined reference to `cmpxchg8b_emu'
/usr/bin/ld: drivers/mtd/nand/raw/nand_legacy.o:(.altinstructions+0x8): undefined reference to `X86_FEATURE_XMM2'
/usr/bin/ld: drivers/mtd/nand/raw/nand_legacy.o:(.altinstructions+0x15): undefined reference to `X86_FEATURE_XMM2'
/usr/bin/ld: drivers/fpga/altera-pr-ip-core.o:(.altinstructions+0x8): undefined reference to `X86_FEATURE_XMM2'
/usr/bin/ld: drivers/fpga/altera-pr-ip-core.o:(.altinstructions+0x15): undefined reference to `X86_FEATURE_XMM'
/usr/bin/ld: drivers/fpga/altera-pr-ip-core.o:(.altinstructions+0x22): undefined reference to `X86_FEATURE_XMM2'
/usr/bin/ld: drivers/fpga/altera-pr-ip-core.o:(.altinstructions+0x2f): undefined reference to `X86_FEATURE_XMM'
/usr/bin/ld: drivers/fpga/altera-pr-ip-core.o:(.altinstructions+0x3c): undefined reference to `X86_FEATURE_XMM'
/usr/bin/ld: drivers/fpga/altera-pr-ip-core.o:(.altinstructions+0x49): undefined reference to `X86_FEATURE_XMM2'
collect2: error: ld returned 1 exit status
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[sashal-linux-stable:queue-5.4 56/241] arch/s390/kvm/vsie.c:1004:36: error: 'struct kvm_s390_sie_block' has no member named 'mcic'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 876253994894857f5d099a55147612e4f036d1c3
commit: 6b9b252fa791f704fb19ec451010bc6446ea44ce [56/241] KVM: s390: VSIE: correctly handle MVPG when in VSIE
config: s390-randconfig-r014-20210512 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 6b9b252fa791f704fb19ec451010bc6446ea44ce
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/kvm_host.h:36,
from arch/s390/kvm/vsie.c:10:
arch/s390/include/asm/kvm_host.h:290:1: warning: alignment 1 of 'struct kvm_s390_sie_block' is less than 8 [-Wpacked-not-aligned]
290 | } __attribute__((packed));
| ^
arch/s390/kvm/vsie.c: In function 'vsie_handle_mvpg':
>> arch/s390/kvm/vsie.c:1004:36: error: 'struct kvm_s390_sie_block' has no member named 'mcic'
1004 | u64 *pei_block = &vsie_page->scb_o->mcic;
| ^~
arch/s390/kvm/vsie.c:1010:9: error: implicit declaration of function '_kvm_s390_logical_to_effective'; did you mean 'kvm_s390_logical_to_effective'? [-Werror=implicit-function-declaration]
1010 | mask = _kvm_s390_logical_to_effective(&scb_s->gpsw, PAGE_MASK);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| kvm_s390_logical_to_effective
arch/s390/kvm/vsie.c:1015:12: error: too many arguments to function 'kvm_s390_shadow_fault'
1015 | rc_dest = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, dest, &pei_dest);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from arch/s390/kvm/vsie.c:22:
arch/s390/kvm/gaccess.h:362:5: note: declared here
362 | int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *shadow,
| ^~~~~~~~~~~~~~~~~~~~~
arch/s390/kvm/vsie.c:1016:11: error: too many arguments to function 'kvm_s390_shadow_fault'
1016 | rc_src = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, src, &pei_src);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from arch/s390/kvm/vsie.c:22:
arch/s390/kvm/gaccess.h:362:5: note: declared here
362 | int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *shadow,
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +1004 arch/s390/kvm/vsie.c
999
1000 static int vsie_handle_mvpg(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page)
1001 {
1002 struct kvm_s390_sie_block *scb_s = &vsie_page->scb_s;
1003 unsigned long pei_dest, pei_src, src, dest, mask;
> 1004 u64 *pei_block = &vsie_page->scb_o->mcic;
1005 int edat, rc_dest, rc_src;
1006 union ctlreg0 cr0;
1007
1008 cr0.val = vcpu->arch.sie_block->gcr[0];
1009 edat = cr0.edat && test_kvm_facility(vcpu->kvm, 8);
1010 mask = _kvm_s390_logical_to_effective(&scb_s->gpsw, PAGE_MASK);
1011
1012 dest = vsie_get_register(vcpu, vsie_page, scb_s->ipb >> 20) & mask;
1013 src = vsie_get_register(vcpu, vsie_page, scb_s->ipb >> 16) & mask;
1014
1015 rc_dest = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, dest, &pei_dest);
1016 rc_src = kvm_s390_shadow_fault(vcpu, vsie_page->gmap, src, &pei_src);
1017 /*
1018 * Either everything went well, or something non-critical went wrong
1019 * e.g. because of a race. In either case, simply retry.
1020 */
1021 if (rc_dest == -EAGAIN || rc_src == -EAGAIN || (!rc_dest && !rc_src)) {
1022 retry_vsie_icpt(vsie_page);
1023 return -EAGAIN;
1024 }
1025 /* Something more serious went wrong, propagate the error */
1026 if (rc_dest < 0)
1027 return rc_dest;
1028 if (rc_src < 0)
1029 return rc_src;
1030
1031 /* The only possible suppressing exception: just deliver it */
1032 if (rc_dest == PGM_TRANSLATION_SPEC || rc_src == PGM_TRANSLATION_SPEC) {
1033 clear_vsie_icpt(vsie_page);
1034 rc_dest = kvm_s390_inject_program_int(vcpu, PGM_TRANSLATION_SPEC);
1035 WARN_ON_ONCE(rc_dest);
1036 return 1;
1037 }
1038
1039 /*
1040 * Forward the PEI intercept to the guest if it was a page fault, or
1041 * also for segment and region table faults if EDAT applies.
1042 */
1043 if (edat) {
1044 rc_dest = rc_dest == PGM_ASCE_TYPE ? rc_dest : 0;
1045 rc_src = rc_src == PGM_ASCE_TYPE ? rc_src : 0;
1046 } else {
1047 rc_dest = rc_dest != PGM_PAGE_TRANSLATION ? rc_dest : 0;
1048 rc_src = rc_src != PGM_PAGE_TRANSLATION ? rc_src : 0;
1049 }
1050 if (!rc_dest && !rc_src) {
1051 pei_block[0] = pei_dest;
1052 pei_block[1] = pei_src;
1053 return 1;
1054 }
1055
1056 retry_vsie_icpt(vsie_page);
1057
1058 /*
1059 * The host has edat, and the guest does not, or it was an ASCE type
1060 * exception. The host needs to inject the appropriate DAT interrupts
1061 * into the guest.
1062 */
1063 if (rc_dest)
1064 return inject_fault(vcpu, rc_dest, dest, 1);
1065 return inject_fault(vcpu, rc_src, src, 0);
1066 }
1067
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
drivers/infiniband/core/nldev.c:2187:1: warning: unused function '__chk_RDMA_NL_NLDEV'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 88b06399c9c766c283e070b022b5ceafa4f63f19
commit: 919067cc845f323a80b6fe987b64238bd82d309e net: add CONFIG_PCPU_DEV_REFCNT
date: 8 weeks ago
config: mips-randconfig-r032-20210512 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 919067cc845f323a80b6fe987b64238bd82d309e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/infiniband/core/nldev.c:2187:1: warning: unused function '__chk_RDMA_NL_NLDEV'
MODULE_ALIAS_RDMA_NETLINK(RDMA_NL_NLDEV, 5);
^
include/rdma/rdma_netlink.h:33:21: note: expanded from macro 'MODULE_ALIAS_RDMA_NETLINK'
static inline void __chk_##_index(void) ^
<scratch space>:27:1: note: expanded from here
__chk_RDMA_NL_NLDEV
^
fatal error: error in backend: Nested variants found in inline asm string: ' .set push
.set mips64r2
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/atomic.h", .line = 154, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $1, $2 # atomic_fetch_sub
subu $0, $1, $3
sc $0, $2
beqz $0, 1b
.set pop
move $0, $1
'
clang-13: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 13.0.0 (git://gitmirror/llvm_project a0fed635fe1701470062495a6ffee1c608f3f1bc)
Target: mips-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/cross/clang-a0fed635fe/bin
clang-13: note: diagnostic msg:
Makefile arch drivers fs include kernel mm net scripts source usr
--
>> net/ipv6/ip6_gre.c:861:20: warning: unused function 'ip6gre_tnl_addr_conflict'
static inline bool ip6gre_tnl_addr_conflict(const struct ip6_tnl
^
fatal error: error in backend: Nested variants found in inline asm string: ' .set push
.set mips64r2
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/atomic.h", .line = 154, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $1, $2 # atomic_fetch_sub
subu $0, $1, $3
sc $0, $2
beqz $0, 1b
.set pop
move $0, $1
'
clang-13: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 13.0.0 (git://gitmirror/llvm_project a0fed635fe1701470062495a6ffee1c608f3f1bc)
Target: mips-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/cross/clang-a0fed635fe/bin
clang-13: note: diagnostic msg:
Makefile arch drivers fs include kernel mm net scripts source usr
vim +/__chk_RDMA_NL_NLDEV +2187 drivers/infiniband/core/nldev.c
e3bf14bdc17a8e Jason Gunthorpe 2017-08-14 2186
e3bf14bdc17a8e Jason Gunthorpe 2017-08-14 @2187 MODULE_ALIAS_RDMA_NETLINK(RDMA_NL_NLDEV, 5);
:::::: The code at line 2187 was first introduced by commit
:::::: e3bf14bdc17a8e917f337760cc7cacf3232d7dbc rdma: Autoload netlink client modules
:::::: TO: Jason Gunthorpe <jgunthorpe(a)obsidianresearch.com>
:::::: CC: Doug Ledford <dledford(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:1693:1: error: non-void function does not return a value in all control paths
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20210508-185249/Pavel-Skr...
head: 4cebd9463b967e1f4806a5c269dfef4ddaf812f1
commit: 4cebd9463b967e1f4806a5c269dfef4ddaf812f1 staging: media: atomisp: code cleanup
date: 4 days ago
config: x86_64-randconfig-r024-20210512 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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
# https://github.com/0day-ci/linux/commit/4cebd9463b967e1f4806a5c269dfef4dd...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20210508-185249/Pavel-Skripkin/staging-media-atomisp-remove-useless-breaks/20210507-041134
git checkout 4cebd9463b967e1f4806a5c269dfef4ddaf812f1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:1693:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]
}
^
1 error generated.
vim +1693 drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1616
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1617 // Fills the parameters to config.csi_value[port]
39bc26e49a5f94 drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-07-20 1618 static input_system_err_t input_system_configure_channel_sensor(
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1619 const channel_cfg_t channel)
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1620 {
bdfe0beb95eebc drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1621 const u32 port = channel.source_cfg.csi_cfg.csi_port;
39bc26e49a5f94 drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-07-20 1622 input_system_err_t status = INPUT_SYSTEM_ERR_NO_ERROR;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1623
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1624 input_system_multiplex_t mux;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1625
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1626 if (port >= N_INPUT_SYSTEM_PORTS)
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1627 return INPUT_SYSTEM_ERR_GENERIC;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1628
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1629 //check if port > N_INPUT_SYSTEM_MULTIPLEX
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1630
eaa399eb542cdf drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1631 status = set_source_type(&config.source_type, channel.source_type,
eaa399eb542cdf drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1632 &config.source_type_flags);
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1633 if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1634
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1635 // Check for conflicts on source (implicitly on multicast, capture unit and input buffer).
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1636
eaa399eb542cdf drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1637 status = set_csi_cfg(&config.csi_value[port], &channel.source_cfg.csi_cfg,
eaa399eb542cdf drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1638 &config.csi_flags[port]);
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1639 if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1640
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1641 switch (channel.source_cfg.csi_cfg.buffering_mode) {
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1642 case INPUT_SYSTEM_FIFO_CAPTURE:
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1643
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1644 // Check for conflicts on mux.
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1645 mux = INPUT_SYSTEM_MIPI_PORT0 + port;
eaa399eb542cdf drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1646 status = input_system_multiplexer_cfg(&config.multiplexer, mux,
eaa399eb542cdf drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1647 &config.multiplexer_flags);
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1648 if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1649 config.multicast[port] = INPUT_SYSTEM_CSI_BACKEND;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1650
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1651 // Shared resource, so it should be blocked.
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1652 //config.mux_flags |= INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1653 //config.csi_buffer_flags[port] |= INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1654 //config.acquisition_buffer_unique_flags |= INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1655
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1656 break;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1657 case INPUT_SYSTEM_SRAM_BUFFERING:
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1658
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1659 // Check for conflicts on mux.
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1660 mux = INPUT_SYSTEM_ACQUISITION_UNIT;
eaa399eb542cdf drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1661 status = input_system_multiplexer_cfg(&config.multiplexer, mux,
eaa399eb542cdf drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1662 &config.multiplexer_flags);
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1663 if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1664 config.multicast[port] = INPUT_SYSTEM_INPUT_BUFFER;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1665
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1666 // Shared resource, so it should be blocked.
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1667 //config.mux_flags |= INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1668 //config.csi_buffer_flags[port] |= INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1669 //config.acquisition_buffer_unique_flags |= INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1670
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1671 break;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1672 case INPUT_SYSTEM_XMEM_BUFFERING:
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1673
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1674 // Check for conflicts on mux.
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1675 mux = INPUT_SYSTEM_ACQUISITION_UNIT;
eaa399eb542cdf drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1676 status = input_system_multiplexer_cfg(&config.multiplexer, mux,
eaa399eb542cdf drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1677 &config.multiplexer_flags);
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1678 if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1679 config.multicast[port] = INPUT_SYSTEM_INPUT_BUFFER;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1680
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1681 // Shared resource, so it should be blocked.
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1682 //config.mux_flags |= INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1683 //config.csi_buffer_flags[port] |= INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1684 //config.acquisition_buffer_unique_flags |= INPUT_SYSTEM_CFG_FLAG_BLOCKED;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1685
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1686 break;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1687 case INPUT_SYSTEM_FIFO_CAPTURE_WITH_COUNTING:
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1688 case INPUT_SYSTEM_XMEM_CAPTURE:
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1689 case INPUT_SYSTEM_XMEM_ACQUIRE:
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1690 default:
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1691 return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED;
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1692 }
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 @1693 }
ad85094b293e40 drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/host/input_system.c Mauro Carvalho Chehab 2020-04-19 1694
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[sashal-linux-stable:queue-4.9 100/170] drivers/tty/serial/stm32-usart.c:180:34: error: 'USART_CR_TC' undeclared; did you mean 'USART_SR_TC'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.9
head: 397027034d454e3ad94e49e88938860ee15d7de6
commit: 2d843653785d83e84dd658e7ca9643ae0a42aaa5 [100/170] serial: stm32: fix tx_empty condition
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-4.9
git checkout 2d843653785d83e84dd658e7ca9643ae0a42aaa5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross W=1 ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/err.h:4:0,
from include/linux/clk.h:15,
from drivers/tty/serial/stm32-usart.c:14:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/nios2/include/asm/page.h:90:33: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
# define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && \
^
include/linux/compiler.h:184:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/scatterlist.h:140:2: note: in expansion of macro 'BUG_ON'
BUG_ON(!virt_addr_valid(buf));
^~~~~~
arch/nios2/include/asm/page.h:94:33: note: in expansion of macro 'pfn_valid'
# define virt_addr_valid(vaddr) pfn_valid(PFN_DOWN(virt_to_phys(vaddr)))
^~~~~~~~~
include/linux/scatterlist.h:140:10: note: in expansion of macro 'virt_addr_valid'
BUG_ON(!virt_addr_valid(buf));
^~~~~~~~~~~~~~~
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/nios2/include/asm/page.h:90:33: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
# define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && \
^
include/linux/compiler.h:184:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/dma-mapping.h:284:2: note: in expansion of macro 'BUG_ON'
BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
^~~~~~
include/linux/dma-mapping.h:284:9: note: in expansion of macro 'pfn_valid'
BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
^~~~~~~~~
drivers/tty/serial/stm32-usart.c: In function 'stm32_tx_dma_complete':
>> drivers/tty/serial/stm32-usart.c:180:34: error: 'USART_CR_TC' undeclared (first use in this function); did you mean 'USART_SR_TC'?
stm32_set_bits(port, ofs->icr, USART_CR_TC);
^~~~~~~~~~~
USART_SR_TC
drivers/tty/serial/stm32-usart.c:180:34: note: each undeclared identifier is reported only once for each function it appears in
drivers/tty/serial/stm32-usart.c: In function 'stm32_transmit_chars_dma':
drivers/tty/serial/stm32-usart.c:223:15: warning: variable 'cookie' set but not used [-Wunused-but-set-variable]
dma_cookie_t cookie;
^~~~~~
drivers/tty/serial/stm32-usart.c: In function 'stm32_of_dma_rx_probe':
drivers/tty/serial/stm32-usart.c:736:15: warning: variable 'cookie' set but not used [-Wunused-but-set-variable]
dma_cookie_t cookie;
^~~~~~
vim +180 drivers/tty/serial/stm32-usart.c
48a6092fb41fab Maxime Coquelin 2015-06-10 160
3489187204eb75 Alexandre TORGUE 2016-09-15 161 static void stm32_tx_dma_complete(void *arg)
3489187204eb75 Alexandre TORGUE 2016-09-15 162 {
3489187204eb75 Alexandre TORGUE 2016-09-15 163 struct uart_port *port = arg;
3489187204eb75 Alexandre TORGUE 2016-09-15 164 struct stm32_port *stm32port = to_stm32_port(port);
3489187204eb75 Alexandre TORGUE 2016-09-15 165 struct stm32_usart_offsets *ofs = &stm32port->info->ofs;
3489187204eb75 Alexandre TORGUE 2016-09-15 166 unsigned int isr;
3489187204eb75 Alexandre TORGUE 2016-09-15 167 int ret;
3489187204eb75 Alexandre TORGUE 2016-09-15 168
3489187204eb75 Alexandre TORGUE 2016-09-15 169 ret = readl_relaxed_poll_timeout_atomic(port->membase + ofs->isr,
3489187204eb75 Alexandre TORGUE 2016-09-15 170 isr,
3489187204eb75 Alexandre TORGUE 2016-09-15 171 (isr & USART_SR_TC),
3489187204eb75 Alexandre TORGUE 2016-09-15 172 10, 100000);
3489187204eb75 Alexandre TORGUE 2016-09-15 173
3489187204eb75 Alexandre TORGUE 2016-09-15 174 if (ret)
3489187204eb75 Alexandre TORGUE 2016-09-15 175 dev_err(port->dev, "terminal count not set\n");
3489187204eb75 Alexandre TORGUE 2016-09-15 176
3489187204eb75 Alexandre TORGUE 2016-09-15 177 if (ofs->icr == UNDEF_REG)
3489187204eb75 Alexandre TORGUE 2016-09-15 178 stm32_clr_bits(port, ofs->isr, USART_SR_TC);
3489187204eb75 Alexandre TORGUE 2016-09-15 179 else
3489187204eb75 Alexandre TORGUE 2016-09-15 @180 stm32_set_bits(port, ofs->icr, USART_CR_TC);
3489187204eb75 Alexandre TORGUE 2016-09-15 181
3489187204eb75 Alexandre TORGUE 2016-09-15 182 stm32_clr_bits(port, ofs->cr3, USART_CR3_DMAT);
3489187204eb75 Alexandre TORGUE 2016-09-15 183 stm32port->tx_dma_busy = false;
3489187204eb75 Alexandre TORGUE 2016-09-15 184
3489187204eb75 Alexandre TORGUE 2016-09-15 185 /* Let's see if we have pending data to send */
3489187204eb75 Alexandre TORGUE 2016-09-15 186 stm32_transmit_chars(port);
3489187204eb75 Alexandre TORGUE 2016-09-15 187 }
3489187204eb75 Alexandre TORGUE 2016-09-15 188
:::::: The code at line 180 was first introduced by commit
:::::: 3489187204eb75e5635d8836babfd0a18be613f4 serial: stm32: adding dma support
:::::: TO: Alexandre TORGUE <alexandre.torgue(a)st.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
arch/mips/loongson64/cop2-ex.c:97:29: error: 'struct thread_struct' has no member named 'fpu'
by kernel test robot
Hi Huacai,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 88b06399c9c766c283e070b022b5ceafa4f63f19
commit: f83e4f9896eff614d0f2547a561fa5f39f9cddde MIPS: Loongson-3: Add some unaligned instructions emulation
date: 1 year, 1 month ago
config: mips-randconfig-r013-20210512 (attached as .config)
compiler: mips64el-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout f83e4f9896eff614d0f2547a561fa5f39f9cddde
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/mips/loongson64/cop2-ex.c: In function 'loongson_cu2_call':
arch/mips/loongson64/cop2-ex.c:44:15: error: implicit declaration of function '__is_fpu_owner'; did you mean 'is_fpu_owner'? [-Werror=implicit-function-declaration]
44 | fpu_owned = __is_fpu_owner();
| ^~~~~~~~~~~~~~
| is_fpu_owner
>> arch/mips/loongson64/cop2-ex.c:97:29: error: 'struct thread_struct' has no member named 'fpu'
97 | set_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:99:29: error: 'struct thread_struct' has no member named 'fpu'
99 | set_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:132:42: error: 'struct thread_struct' has no member named 'fpu'
132 | value_next = get_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:139:37: error: 'struct thread_struct' has no member named 'fpu'
139 | value = get_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:206:29: error: 'struct thread_struct' has no member named 'fpu'
206 | set_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:223:29: error: 'struct thread_struct' has no member named 'fpu'
223 | set_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:288:37: error: 'struct thread_struct' has no member named 'fpu'
288 | value = get_fpr64(current->thread.fpu.fpr,
| ^
arch/mips/loongson64/cop2-ex.c:307:37: error: 'struct thread_struct' has no member named 'fpu'
307 | value = get_fpr64(current->thread.fpu.fpr,
| ^
cc1: some warnings being treated as errors
vim +97 arch/mips/loongson64/cop2-ex.c
26
27 static int loongson_cu2_call(struct notifier_block *nfb, unsigned long action,
28 void *data)
29 {
30 unsigned int res, fpu_owned;
31 unsigned long ra, value, value_next;
32 union mips_instruction insn;
33 int fr = !test_thread_flag(TIF_32BIT_FPREGS);
34 struct pt_regs *regs = (struct pt_regs *)data;
35 void __user *addr = (void __user *)regs->cp0_badvaddr;
36 unsigned int __user *pc = (unsigned int __user *)exception_epc(regs);
37
38 ra = regs->regs[31];
39 __get_user(insn.word, pc);
40
41 switch (action) {
42 case CU2_EXCEPTION:
43 preempt_disable();
44 fpu_owned = __is_fpu_owner();
45 if (!fr)
46 set_c0_status(ST0_CU1 | ST0_CU2);
47 else
48 set_c0_status(ST0_CU1 | ST0_CU2 | ST0_FR);
49 enable_fpu_hazard();
50 KSTK_STATUS(current) |= (ST0_CU1 | ST0_CU2);
51 if (fr)
52 KSTK_STATUS(current) |= ST0_FR;
53 else
54 KSTK_STATUS(current) &= ~ST0_FR;
55 /* If FPU is owned, we needn't init or restore fp */
56 if (!fpu_owned) {
57 set_thread_flag(TIF_USEDFPU);
58 init_fp_ctx(current);
59 _restore_fp(current);
60 }
61 preempt_enable();
62
63 return NOTIFY_STOP; /* Don't call default notifier */
64
65 case CU2_LWC2_OP:
66 if (insn.loongson3_lswc2_format.ls == 0)
67 goto sigbus;
68
69 if (insn.loongson3_lswc2_format.fr == 0) { /* gslq */
70 if (!access_ok(addr, 16))
71 goto sigbus;
72
73 LoadDW(addr, value, res);
74 if (res)
75 goto fault;
76
77 LoadDW(addr + 8, value_next, res);
78 if (res)
79 goto fault;
80
81 regs->regs[insn.loongson3_lswc2_format.rt] = value;
82 regs->regs[insn.loongson3_lswc2_format.rq] = value_next;
83 compute_return_epc(regs);
84 } else { /* gslqc1 */
85 if (!access_ok(addr, 16))
86 goto sigbus;
87
88 lose_fpu(1);
89 LoadDW(addr, value, res);
90 if (res)
91 goto fault;
92
93 LoadDW(addr + 8, value_next, res);
94 if (res)
95 goto fault;
96
> 97 set_fpr64(current->thread.fpu.fpr,
98 insn.loongson3_lswc2_format.rt, value);
99 set_fpr64(current->thread.fpu.fpr,
100 insn.loongson3_lswc2_format.rq, value_next);
101 compute_return_epc(regs);
102 own_fpu(1);
103 }
104 return NOTIFY_STOP; /* Don't call default notifier */
105
106 case CU2_SWC2_OP:
107 if (insn.loongson3_lswc2_format.ls == 0)
108 goto sigbus;
109
110 if (insn.loongson3_lswc2_format.fr == 0) { /* gssq */
111 if (!access_ok(addr, 16))
112 goto sigbus;
113
114 /* write upper 8 bytes first */
115 value_next = regs->regs[insn.loongson3_lswc2_format.rq];
116
117 StoreDW(addr + 8, value_next, res);
118 if (res)
119 goto fault;
120 value = regs->regs[insn.loongson3_lswc2_format.rt];
121
122 StoreDW(addr, value, res);
123 if (res)
124 goto fault;
125
126 compute_return_epc(regs);
127 } else { /* gssqc1 */
128 if (!access_ok(addr, 16))
129 goto sigbus;
130
131 lose_fpu(1);
132 value_next = get_fpr64(current->thread.fpu.fpr,
133 insn.loongson3_lswc2_format.rq);
134
135 StoreDW(addr + 8, value_next, res);
136 if (res)
137 goto fault;
138
139 value = get_fpr64(current->thread.fpu.fpr,
140 insn.loongson3_lswc2_format.rt);
141
142 StoreDW(addr, value, res);
143 if (res)
144 goto fault;
145
146 compute_return_epc(regs);
147 own_fpu(1);
148 }
149 return NOTIFY_STOP; /* Don't call default notifier */
150
151 case CU2_LDC2_OP:
152 switch (insn.loongson3_lsdc2_format.opcode1) {
153 /*
154 * Loongson-3 overridden ldc2 instructions.
155 * opcode1 instruction
156 * 0x1 gslhx: load 2 bytes to GPR
157 * 0x2 gslwx: load 4 bytes to GPR
158 * 0x3 gsldx: load 8 bytes to GPR
159 * 0x6 gslwxc1: load 4 bytes to FPR
160 * 0x7 gsldxc1: load 8 bytes to FPR
161 */
162 case 0x1:
163 if (!access_ok(addr, 2))
164 goto sigbus;
165
166 LoadHW(addr, value, res);
167 if (res)
168 goto fault;
169
170 compute_return_epc(regs);
171 regs->regs[insn.loongson3_lsdc2_format.rt] = value;
172 break;
173 case 0x2:
174 if (!access_ok(addr, 4))
175 goto sigbus;
176
177 LoadW(addr, value, res);
178 if (res)
179 goto fault;
180
181 compute_return_epc(regs);
182 regs->regs[insn.loongson3_lsdc2_format.rt] = value;
183 break;
184 case 0x3:
185 if (!access_ok(addr, 8))
186 goto sigbus;
187
188 LoadDW(addr, value, res);
189 if (res)
190 goto fault;
191
192 compute_return_epc(regs);
193 regs->regs[insn.loongson3_lsdc2_format.rt] = value;
194 break;
195 case 0x6:
196 die_if_kernel("Unaligned FP access in kernel code", regs);
197 BUG_ON(!used_math());
198 if (!access_ok(addr, 4))
199 goto sigbus;
200
201 lose_fpu(1);
202 LoadW(addr, value, res);
203 if (res)
204 goto fault;
205
206 set_fpr64(current->thread.fpu.fpr,
207 insn.loongson3_lsdc2_format.rt, value);
208 compute_return_epc(regs);
209 own_fpu(1);
210
211 break;
212 case 0x7:
213 die_if_kernel("Unaligned FP access in kernel code", regs);
214 BUG_ON(!used_math());
215 if (!access_ok(addr, 8))
216 goto sigbus;
217
218 lose_fpu(1);
219 LoadDW(addr, value, res);
220 if (res)
221 goto fault;
222
223 set_fpr64(current->thread.fpu.fpr,
224 insn.loongson3_lsdc2_format.rt, value);
225 compute_return_epc(regs);
226 own_fpu(1);
227 break;
228
229 }
230 return NOTIFY_STOP; /* Don't call default notifier */
231
232 case CU2_SDC2_OP:
233 switch (insn.loongson3_lsdc2_format.opcode1) {
234 /*
235 * Loongson-3 overridden sdc2 instructions.
236 * opcode1 instruction
237 * 0x1 gsshx: store 2 bytes from GPR
238 * 0x2 gsswx: store 4 bytes from GPR
239 * 0x3 gssdx: store 8 bytes from GPR
240 * 0x6 gsswxc1: store 4 bytes from FPR
241 * 0x7 gssdxc1: store 8 bytes from FPR
242 */
243 case 0x1:
244 if (!access_ok(addr, 2))
245 goto sigbus;
246
247 compute_return_epc(regs);
248 value = regs->regs[insn.loongson3_lsdc2_format.rt];
249
250 StoreHW(addr, value, res);
251 if (res)
252 goto fault;
253
254 break;
255 case 0x2:
256 if (!access_ok(addr, 4))
257 goto sigbus;
258
259 compute_return_epc(regs);
260 value = regs->regs[insn.loongson3_lsdc2_format.rt];
261
262 StoreW(addr, value, res);
263 if (res)
264 goto fault;
265
266 break;
267 case 0x3:
268 if (!access_ok(addr, 8))
269 goto sigbus;
270
271 compute_return_epc(regs);
272 value = regs->regs[insn.loongson3_lsdc2_format.rt];
273
274 StoreDW(addr, value, res);
275 if (res)
276 goto fault;
277
278 break;
279
280 case 0x6:
281 die_if_kernel("Unaligned FP access in kernel code", regs);
282 BUG_ON(!used_math());
283
284 if (!access_ok(addr, 4))
285 goto sigbus;
286
287 lose_fpu(1);
288 value = get_fpr64(current->thread.fpu.fpr,
289 insn.loongson3_lsdc2_format.rt);
290
291 StoreW(addr, value, res);
292 if (res)
293 goto fault;
294
295 compute_return_epc(regs);
296 own_fpu(1);
297
298 break;
299 case 0x7:
300 die_if_kernel("Unaligned FP access in kernel code", regs);
301 BUG_ON(!used_math());
302
303 if (!access_ok(addr, 8))
304 goto sigbus;
305
306 lose_fpu(1);
307 value = get_fpr64(current->thread.fpu.fpr,
308 insn.loongson3_lsdc2_format.rt);
309
310 StoreDW(addr, value, res);
311 if (res)
312 goto fault;
313
314 compute_return_epc(regs);
315 own_fpu(1);
316
317 break;
318 }
319 return NOTIFY_STOP; /* Don't call default notifier */
320 }
321
322 return NOTIFY_OK; /* Let default notifier send signals */
323
324 fault:
325 /* roll back jump/branch */
326 regs->regs[31] = ra;
327 regs->cp0_epc = (unsigned long)pc;
328 /* Did we have an exception handler installed? */
329 if (fixup_exception(regs))
330 return NOTIFY_STOP; /* Don't call default notifier */
331
332 die_if_kernel("Unhandled kernel unaligned access", regs);
333 force_sig(SIGSEGV);
334
335 return NOTIFY_STOP; /* Don't call default notifier */
336
337 sigbus:
338 die_if_kernel("Unhandled kernel unaligned access", regs);
339 force_sig(SIGBUS);
340
341 return NOTIFY_STOP; /* Don't call default notifier */
342 }
343
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-next:master 2620/2633] include/linux/kernel.h:53:43: error: dereferencing pointer to incomplete type 'struct module'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ec85c95b0c90a17413901b018e8ade7b9eae7cad
commit: fecf694f2b4b583d7740d55f584411b3062afa7e [2620/2633] module: add printk formats to add module build ID to stacktraces
config: m68k-randconfig-r034-20210512 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout fecf694f2b4b583d7740d55f584411b3062afa7e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=m68k
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 >>):
kernel/kallsyms.c: In function 'kallsyms_lookup_size_offset':
kernel/kallsyms.c:310:11: error: too many arguments to function 'module_address_lookup'
310 | return !!module_address_lookup(addr, symbolsize, offset, NULL, NULL, namebuf) ||
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/kallsyms.h:14,
from kernel/kallsyms.c:15:
include/linux/module.h:745:27: note: declared here
745 | static inline const char *module_address_lookup(unsigned long addr,
| ^~~~~~~~~~~~~~~~~~~~~
kernel/kallsyms.c: At top level:
kernel/kallsyms.c:314:13: warning: no previous prototype for 'kallsyms_lookup_buildid' [-Wmissing-prototypes]
314 | const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize,
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/kallsyms.c: In function 'kallsyms_lookup_buildid':
kernel/kallsyms.c:341:18: error: passing argument 5 of 'module_address_lookup' from incompatible pointer type [-Werror=incompatible-pointer-types]
341 | modname, modbuildid, namebuf);
| ^~~~~~~~~~
| |
| const unsigned char **
In file included from include/linux/kallsyms.h:14,
from kernel/kallsyms.c:15:
include/linux/module.h:749:14: note: expected 'char *' but argument is of type 'const unsigned char **'
749 | char *namebuf)
| ~~~~~~^~~~~~~
kernel/kallsyms.c:340:8: error: too many arguments to function 'module_address_lookup'
340 | ret = module_address_lookup(addr, symbolsize, offset,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/kallsyms.h:14,
from kernel/kallsyms.c:15:
include/linux/module.h:745:27: note: declared here
745 | static inline const char *module_address_lookup(unsigned long addr,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/bits.h:22,
from include/linux/bitops.h:6,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/preempt.h:11,
from arch/m68k/include/asm/irqflags.h:6,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/mm_types_task.h:13,
from include/linux/mm_types.h:5,
from include/linux/buildid.h:5,
from include/linux/kallsyms.h:10,
from kernel/kallsyms.c:15:
kernel/kallsyms.c: In function '__sprint_symbol':
>> include/linux/kernel.h:53:43: error: dereferencing pointer to incomplete type 'struct module'
53 | #define typeof_member(T, m) typeof(((T*)0)->m)
| ^~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
kernel/kallsyms.c:454:4: note: in expansion of macro 'static_assert'
454 | static_assert(sizeof(typeof_member(struct module, build_id)) == 20);
| ^~~~~~~~~~~~~
kernel/kallsyms.c:454:25: note: in expansion of macro 'typeof_member'
454 | static_assert(sizeof(typeof_member(struct module, build_id)) == 20);
| ^~~~~~~~~~~~~
>> include/linux/build_bug.h:78:41: error: static assertion failed: "sizeof(typeof_member(struct module, build_id)) == 20"
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~~~~~~~~~~~
include/linux/build_bug.h:77:34: note: in expansion of macro '__static_assert'
77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^~~~~~~~~~~~~~~
kernel/kallsyms.c:454:4: note: in expansion of macro 'static_assert'
454 | static_assert(sizeof(typeof_member(struct module, build_id)) == 20);
| ^~~~~~~~~~~~~
kernel/kallsyms.c: At top level:
kernel/kallsyms.c:570:12: warning: no previous prototype for 'arch_get_kallsym' [-Wmissing-prototypes]
570 | int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +53 include/linux/kernel.h
3ed605bc8a0a68 Gustavo Padovan 2016-04-26 52
ce251e0e3c0597 Alexey Dobriyan 2019-07-16 @53 #define typeof_member(T, m) typeof(((T*)0)->m)
ce251e0e3c0597 Alexey Dobriyan 2019-07-16 54
:::::: The code at line 53 was first introduced by commit
:::::: ce251e0e3c0597ea8cab5787df579bd1f9c1aca1 include/linux/kernel.h: add typeof_member() macro
:::::: TO: Alexey Dobriyan <adobriyan(a)gmail.com>
:::::: 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
1 year, 4 months
Re: [PATCH] nvmet: Reset ns->file when open fails
by kernel test robot
Hi Daniel,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linux/master]
[also build test WARNING on hch-configfs/for-next linus/master v5.13-rc1 next-20210512]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Daniel-Wagner/nvmet-Reset-ns-fil...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git dd860052c99b1e088352bdd4fb7aef46f8d2ef47
config: nios2-randconfig-p002-20210512 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/406c65a33980a0f58f21c897d9283d9ff...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Daniel-Wagner/nvmet-Reset-ns-file-when-open-fails/20210512-181435
git checkout 406c65a33980a0f58f21c897d9283d9fff9a4eb5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/nvme/target/io-cmd-file.c: In function 'nvmet_file_ns_enable':
>> drivers/nvme/target/io-cmd-file.c:54:7: warning: assignment to 'int' from 'struct file *' makes integer from pointer without a cast [-Wint-conversion]
54 | ret = ns->file;
| ^
>> drivers/nvme/target/io-cmd-file.c:56:18: warning: passing argument 1 of 'PTR_ERR' makes pointer from integer without a cast [-Wint-conversion]
56 | return PTR_ERR(ret);
| ^~~
| |
| int
In file included from include/linux/kernfs.h:10,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/dma-mapping.h:7,
from drivers/nvme/target/nvmet.h:9,
from drivers/nvme/target/io-cmd-file.c:11:
include/linux/err.h:29:61: note: expected 'const void *' but argument is of type 'int'
29 | static inline long __must_check PTR_ERR(__force const void *ptr)
| ~~~~~~~~~~~~^~~
vim +54 drivers/nvme/target/io-cmd-file.c
41
42 int nvmet_file_ns_enable(struct nvmet_ns *ns)
43 {
44 int flags = O_RDWR | O_LARGEFILE;
45 int ret;
46
47 if (!ns->buffered_io)
48 flags |= O_DIRECT;
49
50 ns->file = filp_open(ns->device_path, flags, 0);
51 if (IS_ERR(ns->file)) {
52 pr_err("failed to open file %s: (%ld)\n",
53 ns->device_path, PTR_ERR(ns->file));
> 54 ret = ns->file;
55 ns->file = NULL;
> 56 return PTR_ERR(ret);
57 }
58
59 ret = nvmet_file_ns_revalidate(ns);
60 if (ret)
61 goto err;
62
63 /*
64 * i_blkbits can be greater than the universally accepted upper bound,
65 * so make sure we export a sane namespace lba_shift.
66 */
67 ns->blksize_shift = min_t(u8,
68 file_inode(ns->file)->i_blkbits, 12);
69
70 ns->bvec_cache = kmem_cache_create("nvmet-bvec",
71 NVMET_MAX_MPOOL_BVEC * sizeof(struct bio_vec),
72 0, SLAB_HWCACHE_ALIGN, NULL);
73 if (!ns->bvec_cache) {
74 ret = -ENOMEM;
75 goto err;
76 }
77
78 ns->bvec_pool = mempool_create(NVMET_MIN_MPOOL_OBJ, mempool_alloc_slab,
79 mempool_free_slab, ns->bvec_cache);
80
81 if (!ns->bvec_pool) {
82 ret = -ENOMEM;
83 goto err;
84 }
85
86 return ret;
87 err:
88 ns->size = 0;
89 ns->blksize_shift = 0;
90 nvmet_file_ns_disable(ns);
91 return ret;
92 }
93
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
Re: [PATCH] nvmet: Reset ns->file when open fails
by kernel test robot
Hi Daniel,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linux/master]
[also build test WARNING on hch-configfs/for-next linus/master v5.13-rc1 next-20210512]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Daniel-Wagner/nvmet-Reset-ns-fil...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git dd860052c99b1e088352bdd4fb7aef46f8d2ef47
config: riscv-randconfig-r011-20210512 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/406c65a33980a0f58f21c897d9283d9ff...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Daniel-Wagner/nvmet-Reset-ns-file-when-open-fails/20210512-181435
git checkout 406c65a33980a0f58f21c897d9283d9fff9a4eb5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/nvme/target/io-cmd-file.c:54:7: warning: incompatible pointer to integer conversion assigning to 'int' from 'struct file *' [-Wint-conversion]
ret = ns->file;
^ ~~~~~~~~
>> drivers/nvme/target/io-cmd-file.c:56:18: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const void *' [-Wint-conversion]
return PTR_ERR(ret);
^~~
include/linux/err.h:29:61: note: passing argument to parameter 'ptr' here
static inline long __must_check PTR_ERR(__force const void *ptr)
^
2 warnings generated.
vim +54 drivers/nvme/target/io-cmd-file.c
41
42 int nvmet_file_ns_enable(struct nvmet_ns *ns)
43 {
44 int flags = O_RDWR | O_LARGEFILE;
45 int ret;
46
47 if (!ns->buffered_io)
48 flags |= O_DIRECT;
49
50 ns->file = filp_open(ns->device_path, flags, 0);
51 if (IS_ERR(ns->file)) {
52 pr_err("failed to open file %s: (%ld)\n",
53 ns->device_path, PTR_ERR(ns->file));
> 54 ret = ns->file;
55 ns->file = NULL;
> 56 return PTR_ERR(ret);
57 }
58
59 ret = nvmet_file_ns_revalidate(ns);
60 if (ret)
61 goto err;
62
63 /*
64 * i_blkbits can be greater than the universally accepted upper bound,
65 * so make sure we export a sane namespace lba_shift.
66 */
67 ns->blksize_shift = min_t(u8,
68 file_inode(ns->file)->i_blkbits, 12);
69
70 ns->bvec_cache = kmem_cache_create("nvmet-bvec",
71 NVMET_MAX_MPOOL_BVEC * sizeof(struct bio_vec),
72 0, SLAB_HWCACHE_ALIGN, NULL);
73 if (!ns->bvec_cache) {
74 ret = -ENOMEM;
75 goto err;
76 }
77
78 ns->bvec_pool = mempool_create(NVMET_MIN_MPOOL_OBJ, mempool_alloc_slab,
79 mempool_free_slab, ns->bvec_cache);
80
81 if (!ns->bvec_pool) {
82 ret = -ENOMEM;
83 goto err;
84 }
85
86 return ret;
87 err:
88 ns->size = 0;
89 ns->blksize_shift = 0;
90 nvmet_file_ns_disable(ns);
91 return ret;
92 }
93
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-iv:topic/v1_acpi_cpu_capacity 2/2] arch/x86/include/asm/topology.h:223:9: warning: 'arch_init_invariance_cppc' macro redefined
by kernel test robot
tree: https://git.gitlab.arm.com/linux-arm/linux-iv.git topic/v1_acpi_cpu_capacity
head: eece74e8aaac3da75e29d0d24730d90c85c7b0ea
commit: eece74e8aaac3da75e29d0d24730d90c85c7b0ea [2/2] arch_topology: obtain cpu capacity using information from CPPC
config: x86_64-randconfig-r013-20210512 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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 remote add linux-iv https://git.gitlab.arm.com/linux-arm/linux-iv.git
git fetch --no-tags linux-iv topic/v1_acpi_cpu_capacity
git checkout eece74e8aaac3da75e29d0d24730d90c85c7b0ea
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/x86/kernel/asm-offsets.c:9:
In file included from include/linux/crypto.h:20:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:9:
In file included from include/linux/topology.h:36:
>> arch/x86/include/asm/topology.h:223:9: warning: 'arch_init_invariance_cppc' macro redefined [-Wmacro-redefined]
#define arch_init_invariance_cppc init_freq_invariance_cppc
^
include/linux/arch_topology.h:16:9: note: previous definition is here
#define arch_init_invariance_cppc init_cpu_capacity_cppc
^
1 warning generated.
--
In file included from kernel/time/hrtimer.c:25:
In file included from include/linux/cpu.h:17:
In file included from include/linux/node.h:18:
In file included from include/linux/device.h:16:
In file included from include/linux/energy_model.h:7:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:19:
In file included from include/linux/xarray.h:14:
In file included from include/linux/gfp.h:9:
In file included from include/linux/topology.h:36:
>> arch/x86/include/asm/topology.h:223:9: warning: 'arch_init_invariance_cppc' macro redefined [-Wmacro-redefined]
#define arch_init_invariance_cppc init_freq_invariance_cppc
^
include/linux/arch_topology.h:16:9: note: previous definition is here
#define arch_init_invariance_cppc init_cpu_capacity_cppc
^
kernel/time/hrtimer.c:120:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[CLOCK_REALTIME] = HRTIMER_BASE_REALTIME,
^~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:118:27: note: previous initialization is here
[0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES,
^~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:121:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC,
^~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:118:27: note: previous initialization is here
[0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES,
^~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:122:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME,
^~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:118:27: note: previous initialization is here
[0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES,
^~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:123:17: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[CLOCK_TAI] = HRTIMER_BASE_TAI,
^~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:118:27: note: previous initialization is here
[0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES,
^~~~~~~~~~~~~~~~~~~~~~~
kernel/time/hrtimer.c:147:20: warning: unused function 'is_migration_base' [-Wunused-function]
static inline bool is_migration_base(struct hrtimer_clock_base *base)
^
6 warnings generated.
--
In file included from arch/x86/kernel/asm-offsets.c:9:
In file included from include/linux/crypto.h:20:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:9:
In file included from include/linux/topology.h:36:
>> arch/x86/include/asm/topology.h:223:9: warning: 'arch_init_invariance_cppc' macro redefined [-Wmacro-redefined]
#define arch_init_invariance_cppc init_freq_invariance_cppc
^
include/linux/arch_topology.h:16:9: note: previous definition is here
#define arch_init_invariance_cppc init_cpu_capacity_cppc
^
1 warning generated.
vim +/arch_init_invariance_cppc +223 arch/x86/include/asm/topology.h
1567c3e3467cdd Giovanni Gherdovich 2020-01-22 220
41ea667227bad5 Nathan Fontenot 2020-11-12 221 #ifdef CONFIG_ACPI_CPPC_LIB
41ea667227bad5 Nathan Fontenot 2020-11-12 222 void init_freq_invariance_cppc(void);
3efe78be8d652a Ionela Voinescu 2021-03-18 @223 #define arch_init_invariance_cppc init_freq_invariance_cppc
41ea667227bad5 Nathan Fontenot 2020-11-12 224 #endif
41ea667227bad5 Nathan Fontenot 2020-11-12 225
:::::: The code at line 223 was first introduced by commit
:::::: 3efe78be8d652a157bd19b6dbd371a2762f953d2 x86, ACPI: rename init_freq_invariance_cppc to arch_init_invariance_cppc
:::::: TO: Ionela Voinescu <ionela.voinescu(a)arm.com>
:::::: CC: Ionela Voinescu <ionela.voinescu(a)arm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months