[linux-next:master 3735/8019] ld.lld: error: pcm_native.c:(.text.fixup+0xF4): relocation R_ARM_THM_JUMP24 out of range: 16777746 is not in
by kernel test robot
CC: Linux Memory Management List <linux-mm(a)kvack.org>
TO: John Garry <john.garry(a)huawei.com>
CC: Jens Axboe <axboe(a)kernel.dk>
CC: Ming Lei <ming.lei(a)redhat.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ab5803bc555fe68b9b0d37b9a850d3ec601b938a
commit: d97e594c51660bea510a387731637b894651e4b5 [3735/8019] blk-mq: Use request queue-wide tags for tagset-wide sbitmap
config: arm-randconfig-r031-20210608 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d32cc150feb72f315a5bbd34f92e7beca21a50da)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# 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 d97e594c51660bea510a387731637b894651e4b5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-next/master HEAD ab5803bc555fe68b9b0d37b9a850d3ec601b938a builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
>> ld.lld: error: pcm_native.c:(.text.fixup+0xF4): relocation R_ARM_THM_JUMP24 out of range: 16777746 is not in [-16777216, 16777215]
>> ld.lld: error: pcm_native.c:(.text.fixup+0xFC): relocation R_ARM_THM_JUMP24 out of range: 16777780 is not in [-16777216, 16777215]
ld.lld: error: pcm_native.c:(.text.fixup+0x104): relocation R_ARM_THM_JUMP24 out of range: 16777860 is not in [-16777216, 16777215]
ld.lld: error: pcm_native.c:(.text.fixup+0x10C): relocation R_ARM_THM_JUMP24 out of range: 16777954 is not in [-16777216, 16777215]
ld.lld: error: pcm_lib.c:(.text.fixup+0x4): relocation R_ARM_THM_JUMP24 out of range: 16812428 is not in [-16777216, 16777215]
ld.lld: error: pcm_lib.c:(.text.fixup+0xC): relocation R_ARM_THM_JUMP24 out of range: 16812568 is not in [-16777216, 16777215]
ld.lld: error: pcm_lib.c:(.text.fixup+0x14): relocation R_ARM_THM_JUMP24 out of range: 16812594 is not in [-16777216, 16777215]
ld.lld: error: pcm_lib.c:(.text.fixup+0x1C): relocation R_ARM_THM_JUMP24 out of range: 16812672 is not in [-16777216, 16777215]
ld.lld: error: pcm_lib.c:(.text.fixup+0x24): relocation R_ARM_THM_JUMP24 out of range: 16812762 is not in [-16777216, 16777215]
ld.lld: error: rawmidi.c:(.text.fixup+0x8): relocation R_ARM_THM_JUMP24 out of range: 16835912 is not in [-16777216, 16777215]
ld.lld: error: rawmidi.c:(.text.fixup+0x14): relocation R_ARM_THM_JUMP24 out of range: 16835936 is not in [-16777216, 16777215]
ld.lld: error: rawmidi.c:(.text.fixup+0x20): relocation R_ARM_THM_JUMP24 out of range: 16835960 is not in [-16777216, 16777215]
ld.lld: error: rawmidi.c:(.text.fixup+0x2C): relocation R_ARM_THM_JUMP24 out of range: 16836352 is not in [-16777216, 16777215]
ld.lld: error: rawmidi.c:(.text.fixup+0x34): relocation R_ARM_THM_JUMP24 out of range: 16836412 is not in [-16777216, 16777215]
ld.lld: error: rawmidi.c:(.text.fixup+0x40): relocation R_ARM_THM_JUMP24 out of range: 16836444 is not in [-16777216, 16777215]
ld.lld: error: rawmidi.c:(.text.fixup+0x4C): relocation R_ARM_THM_JUMP24 out of range: 16840400 is not in [-16777216, 16777215]
ld.lld: error: rawmidi.c:(.text.fixup+0x54): relocation R_ARM_THM_JUMP24 out of range: 16840560 is not in [-16777216, 16777215]
ld.lld: error: rawmidi.c:(.text.fixup+0x60): relocation R_ARM_THM_JUMP24 out of range: 16840588 is not in [-16777216, 16777215]
ld.lld: error: rawmidi.c:(.text.fixup+0x6C): relocation R_ARM_THM_JUMP24 out of range: 16840616 is not in [-16777216, 16777215]
ld.lld: error: pcm_oss.c:(.text.fixup+0x4): relocation R_ARM_THM_JUMP24 out of range: 16847734 is not in [-16777216, 16777215]
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
1 year, 3 months
Re: [PATCH 1/1] NFSv4.1+ add trunking when server trunking detected
by kernel test robot
Hi Olga,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on nfs/linux-next]
[also build test WARNING on v5.13-rc5 next-20210608]
[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/Olga-Kornievskaia/NFSv4-1-add-tr...
base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-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/52d86dfa29146024beeca51af401aabbb...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Olga-Kornievskaia/NFSv4-1-add-trunking-when-server-trunking-detected/20210609-025208
git checkout 52d86dfa29146024beeca51af401aabbb329a942
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
fs/nfs/nfs4client.c: In function 'nfs4_add_trunk':
>> fs/nfs/nfs4client.c:369:20: warning: variable 'old_salen' set but not used [-Wunused-but-set-variable]
369 | size_t clp_salen, old_salen;
| ^~~~~~~~~
vim +/old_salen +369 fs/nfs/nfs4client.c
363
364 static void nfs4_add_trunk(struct nfs_client *clp, struct nfs_client *old)
365 {
366 struct sockaddr_storage clp_addr, old_addr;
367 struct sockaddr *clp_sap = (struct sockaddr *)&clp_addr;
368 struct sockaddr *old_sap = (struct sockaddr *)&old_addr;
> 369 size_t clp_salen, old_salen;
370 struct xprt_create xprt_args = {
371 .ident = old->cl_proto,
372 .net = old->cl_net,
373 .servername = old->cl_hostname,
374 };
375 struct nfs4_add_xprt_data xprtdata = {
376 .clp = old,
377 };
378 struct rpc_add_xprt_test rpcdata = {
379 .add_xprt_test = old->cl_mvops->session_trunk,
380 .data = &xprtdata,
381 };
382
383 if (clp->cl_proto != old->cl_proto)
384 return;
385 clp_salen = rpc_peeraddr(clp->cl_rpcclient, clp_sap, sizeof(clp_addr));
386 old_salen = rpc_peeraddr(old->cl_rpcclient, old_sap, sizeof(old_addr));
387
388 if (clp_addr.ss_family != old_addr.ss_family)
389 return;
390
391 xprt_args.dstaddr = clp_sap;
392 xprt_args.addrlen = clp_salen;
393
394 xprtdata.cred = nfs4_get_clid_cred(old);
395 rpc_clnt_add_xprt(old->cl_rpcclient, &xprt_args,
396 rpc_clnt_setup_test_and_add_xprt, &rpcdata);
397
398 if (xprtdata.cred)
399 put_cred(xprtdata.cred);
400 }
401
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[linux-stable-rc:linux-4.9.y 1640/2667] net/tipc/link.c:896:23: warning: variable 'hdr' is uninitialized when used here
by kernel test robot
Hi Hoang,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.9.y
head: 5f3a05577796b0a04f9705503ae9cfbfaa10cd8f
commit: 310014f572a59b311c175321265a08c9adfced0c [1640/2667] tipc: fix NULL deref in tipc_link_xmit()
config: arm64-randconfig-r015-20210608 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d32cc150feb72f315a5bbd34f92e7beca21a50da)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/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-4.9.y
git checkout 310014f572a59b311c175321265a08c9adfced0c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
net/tipc/link.c:299:5: warning: no previous prototype for function 'tipc_link_is_active' [-Wmissing-prototypes]
int tipc_link_is_active(struct tipc_link *l)
^
net/tipc/link.c:299:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int tipc_link_is_active(struct tipc_link *l)
^
static
net/tipc/link.c:375:5: warning: no previous prototype for function 'link_bc_rcv_gap' [-Wmissing-prototypes]
u16 link_bc_rcv_gap(struct tipc_link *l)
^
net/tipc/link.c:375:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
u16 link_bc_rcv_gap(struct tipc_link *l)
^
static
net/tipc/link.c:819:6: warning: no previous prototype for function 'link_prepare_wakeup' [-Wmissing-prototypes]
void link_prepare_wakeup(struct tipc_link *l)
^
net/tipc/link.c:819:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void link_prepare_wakeup(struct tipc_link *l)
^
static
>> net/tipc/link.c:896:23: warning: variable 'hdr' is uninitialized when used here [-Wuninitialized]
imp = msg_importance(hdr);
^~~
net/tipc/link.c:890:22: note: initialize the variable 'hdr' to silence this warning
struct tipc_msg *hdr;
^
= NULL
net/tipc/link.c:959:6: warning: no previous prototype for function 'tipc_link_advance_backlog' [-Wmissing-prototypes]
void tipc_link_advance_backlog(struct tipc_link *l, struct sk_buff_head *xmitq)
^
net/tipc/link.c:959:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void tipc_link_advance_backlog(struct tipc_link *l, struct sk_buff_head *xmitq)
^
static
net/tipc/link.c:1002:5: warning: no previous prototype for function 'tipc_link_retrans' [-Wmissing-prototypes]
int tipc_link_retrans(struct tipc_link *l, u16 from, u16 to,
^
net/tipc/link.c:1002:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int tipc_link_retrans(struct tipc_link *l, u16 from, u16 to,
^
static
6 warnings generated.
vim +/hdr +896 net/tipc/link.c
865
866 /**
867 * tipc_link_xmit(): enqueue buffer list according to queue situation
868 * @link: link to use
869 * @list: chain of buffers containing message
870 * @xmitq: returned list of packets to be sent by caller
871 *
872 * Consumes the buffer chain, except when returning -ELINKCONG,
873 * since the caller then may want to make more send attempts.
874 * Returns 0 if success, or errno: -ELINKCONG, -EMSGSIZE or -ENOBUFS
875 * Messages at TIPC_SYSTEM_IMPORTANCE are always accepted
876 */
877 int tipc_link_xmit(struct tipc_link *l, struct sk_buff_head *list,
878 struct sk_buff_head *xmitq)
879 {
880 unsigned int maxwin = l->window;
881 unsigned int i;
882 unsigned int mtu = l->mtu;
883 u16 ack = l->rcv_nxt - 1;
884 u16 seqno = l->snd_nxt;
885 u16 bc_ack = l->bc_rcvlink->rcv_nxt - 1;
886 struct sk_buff_head *transmq = &l->transmq;
887 struct sk_buff_head *backlogq = &l->backlogq;
888 struct sk_buff *skb, *_skb, *bskb;
889 int pkt_cnt = skb_queue_len(list);
890 struct tipc_msg *hdr;
891 int imp;
892
893 if (pkt_cnt <= 0)
894 return 0;
895
> 896 imp = msg_importance(hdr);
897 /* Match msg importance against this and all higher backlog limits: */
898 if (!skb_queue_empty(backlogq)) {
899 for (i = imp; i <= TIPC_SYSTEM_IMPORTANCE; i++) {
900 if (unlikely(l->backlog[i].len >= l->backlog[i].limit))
901 return link_schedule_user(l, list);
902 }
903 }
904
905 hdr = buf_msg(skb_peek(list));
906 if (unlikely(msg_size(hdr) > mtu)) {
907 skb_queue_purge(list);
908 return -EMSGSIZE;
909 }
910
911 if (pkt_cnt > 1) {
912 l->stats.sent_fragmented++;
913 l->stats.sent_fragments += pkt_cnt;
914 }
915
916 /* Prepare each packet for sending, and add to relevant queue: */
917 while (skb_queue_len(list)) {
918 skb = skb_peek(list);
919 hdr = buf_msg(skb);
920 msg_set_seqno(hdr, seqno);
921 msg_set_ack(hdr, ack);
922 msg_set_bcast_ack(hdr, bc_ack);
923
924 if (likely(skb_queue_len(transmq) < maxwin)) {
925 _skb = skb_clone(skb, GFP_ATOMIC);
926 if (!_skb) {
927 skb_queue_purge(list);
928 return -ENOBUFS;
929 }
930 __skb_dequeue(list);
931 __skb_queue_tail(transmq, skb);
932 __skb_queue_tail(xmitq, _skb);
933 TIPC_SKB_CB(skb)->ackers = l->ackers;
934 l->rcv_unacked = 0;
935 l->stats.sent_pkts++;
936 seqno++;
937 continue;
938 }
939 if (tipc_msg_bundle(skb_peek_tail(backlogq), hdr, mtu)) {
940 kfree_skb(__skb_dequeue(list));
941 l->stats.sent_bundled++;
942 continue;
943 }
944 if (tipc_msg_make_bundle(&bskb, hdr, mtu, l->addr)) {
945 kfree_skb(__skb_dequeue(list));
946 __skb_queue_tail(backlogq, bskb);
947 l->backlog[msg_importance(buf_msg(bskb))].len++;
948 l->stats.sent_bundled++;
949 l->stats.sent_bundles++;
950 continue;
951 }
952 l->backlog[imp].len += skb_queue_len(list);
953 skb_queue_splice_tail_init(list, backlogq);
954 }
955 l->snd_nxt = seqno;
956 return 0;
957 }
958
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[linux-stable-rc:linux-4.9.y 7442/9999] arch/x86/kvm/../../../virt/kvm/kvm_main.c:620:12: warning: no previous declaration for 'kvm_arch_post_init_vm'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.9.y
head: 6940a98776c9014fdcc806e39ab0ebc8316cf241
commit: c6e94acbf6abab3e3c25fcdd3343d0c2a3f160ca [7442/9999] kvm: x86: mmu: Recovery of shattered NX large pages
config: x86_64-randconfig-c022-20210607 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.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-4.9.y
git checkout c6e94acbf6abab3e3c25fcdd3343d0c2a3f160ca
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/kvm/../../../virt/kvm/kvm_main.c:620:12: warning: no previous declaration for 'kvm_arch_post_init_vm' [-Wmissing-declarations]
int __weak kvm_arch_post_init_vm(struct kvm *kvm)
^~~~~~~~~~~~~~~~~~~~~
>> arch/x86/kvm/../../../virt/kvm/kvm_main.c:629:13: warning: no previous declaration for 'kvm_arch_pre_destroy_vm' [-Wmissing-declarations]
void __weak kvm_arch_pre_destroy_vm(struct kvm *kvm)
^~~~~~~~~~~~~~~~~~~~~~~
--
arch/x86/kvm/x86.c: In function 'kvm_set_msr_common':
arch/x86/kvm/x86.c:2322:7: warning: variable 'gpa_offset' set but not used [-Wunused-but-set-variable]
u64 gpa_offset;
^~~~~~~~~~
arch/x86/kvm/x86.c: At top level:
arch/x86/kvm/x86.c:5078:5: warning: no previous declaration for 'kvm_emulate_wbinvd_noskip' [-Wmissing-declarations]
int kvm_emulate_wbinvd_noskip(struct kvm_vcpu *vcpu)
^~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/kvm/x86.c:8140:5: warning: no previous declaration for 'kvm_arch_post_init_vm' [-Wmissing-declarations]
int kvm_arch_post_init_vm(struct kvm *kvm)
^~~~~~~~~~~~~~~~~~~~~
>> arch/x86/kvm/x86.c:8251:6: warning: no previous declaration for 'kvm_arch_pre_destroy_vm' [-Wmissing-declarations]
void kvm_arch_pre_destroy_vm(struct kvm *kvm)
^~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/x86.c: In function 'vcpu_block':
arch/x86/kvm/x86.c:7111:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
vcpu->arch.mp_state =
arch/x86/kvm/x86.c:7113:2: note: here
case KVM_MP_STATE_RUNNABLE:
^~~~
arch/x86/include/asm/bitops.h: Assembler messages:
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
arch/x86/include/asm/bitops.h:96: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
vim +/kvm_arch_post_init_vm +620 arch/x86/kvm/../../../virt/kvm/kvm_main.c
615
616 /*
617 * Called after the VM is otherwise initialized, but just before adding it to
618 * the vm_list.
619 */
> 620 int __weak kvm_arch_post_init_vm(struct kvm *kvm)
621 {
622 return 0;
623 }
624
625 /*
626 * Called just after removing the VM from the vm_list, but before doing any
627 * other destruction.
628 */
> 629 void __weak kvm_arch_pre_destroy_vm(struct kvm *kvm)
630 {
631 }
632
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[linux-nvme:nvme-5.14 27/28] drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported'
by kernel test robot
tree: git://git.infradead.org/nvme.git nvme-5.14
head: b0386eb167134d958f1876a1a7e39e113385c516
commit: a854c5eb4e959f0dfc6e1c22b51128ac68bc051c [27/28] nvme-pci: use helper for ctrl sgl check
config: powerpc-randconfig-r013-20210608 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d32cc150feb72f315a5bbd34f92e7beca21a50da)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
git remote add linux-nvme git://git.infradead.org/nvme.git
git fetch --no-tags linux-nvme nvme-5.14
git checkout a854c5eb4e959f0dfc6e1c22b51128ac68bc051c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/nvme/host/pci.c:7:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:15:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:308:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported' [-Werror,-Wimplicit-function-declaration]
if (!nvme_ctrl_sgl_supported(&dev->ctrl))
^
drivers/nvme/host/pci.c:858:8: error: implicit declaration of function 'nvme_ctrl_sgl_supported' [-Werror,-Wimplicit-function-declaration]
nvme_ctrl_sgl_supported(&dev->ctrl))
^
1 warning and 2 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
Selected by
- PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
vim +/nvme_ctrl_sgl_supported +539 drivers/nvme/host/pci.c
530
531 static inline bool nvme_pci_use_sgls(struct nvme_dev *dev, struct request *req)
532 {
533 struct nvme_iod *iod = blk_mq_rq_to_pdu(req);
534 int nseg = blk_rq_nr_phys_segments(req);
535 unsigned int avg_seg_size;
536
537 avg_seg_size = DIV_ROUND_UP(blk_rq_payload_bytes(req), nseg);
538
> 539 if (!nvme_ctrl_sgl_supported(&dev->ctrl))
540 return false;
541 if (!iod->nvmeq->qid)
542 return false;
543 if (!sgl_threshold || avg_seg_size < sgl_threshold)
544 return false;
545 return true;
546 }
547
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[intel-linux-intel-lts:5.10/yocto 1743/8373] drivers/dma-buf/heaps/cma_heap.c:185:10: error: implicit declaration of function 'vmap'; did you mean 'kmap'?
by kernel test robot
Hi John,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git 5.10/yocto
head: 4c7b560468a13c89c9ef45855297f384be254e91
commit: f853204a169c95e2c5cb469c4528aeec6b1b59a2 [1743/8373] dma-buf: heaps: Move heap-helper logic into the cma_heap implementation
config: mips-allmodconfig (attached as .config)
compiler: mips-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/intel/linux-intel-lts/commit/f853204a169c95e2c5cb469c4...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.10/yocto
git checkout f853204a169c95e2c5cb469c4528aeec6b1b59a2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 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 >>):
drivers/dma-buf/heaps/cma_heap.c: In function 'cma_heap_do_vmap':
>> drivers/dma-buf/heaps/cma_heap.c:185:10: error: implicit declaration of function 'vmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration]
185 | vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL);
| ^~~~
| kmap
>> drivers/dma-buf/heaps/cma_heap.c:185:49: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MTE'?
185 | vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL);
| ^~~~~~
| VM_MTE
drivers/dma-buf/heaps/cma_heap.c:185:49: note: each undeclared identifier is reported only once for each function it appears in
drivers/dma-buf/heaps/cma_heap.c: In function 'cma_heap_vunmap':
>> drivers/dma-buf/heaps/cma_heap.c:225:3: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'? [-Werror=implicit-function-declaration]
225 | vunmap(buffer->vaddr);
| ^~~~~~
| kunmap
cc1: some warnings being treated as errors
vim +185 drivers/dma-buf/heaps/cma_heap.c
180
181 static void *cma_heap_do_vmap(struct cma_heap_buffer *buffer)
182 {
183 void *vaddr;
184
> 185 vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL);
186 if (!vaddr)
187 return ERR_PTR(-ENOMEM);
188
189 return vaddr;
190 }
191
192 static int cma_heap_vmap(struct dma_buf *dmabuf, struct dma_buf_map *map)
193 {
194 struct cma_heap_buffer *buffer = dmabuf->priv;
195 void *vaddr;
196 int ret = 0;
197
198 mutex_lock(&buffer->lock);
199 if (buffer->vmap_cnt) {
200 buffer->vmap_cnt++;
201 dma_buf_map_set_vaddr(map, buffer->vaddr);
202 goto out;
203 }
204
205 vaddr = cma_heap_do_vmap(buffer);
206 if (IS_ERR(vaddr)) {
207 ret = PTR_ERR(vaddr);
208 goto out;
209 }
210 buffer->vaddr = vaddr;
211 buffer->vmap_cnt++;
212 dma_buf_map_set_vaddr(map, buffer->vaddr);
213 out:
214 mutex_unlock(&buffer->lock);
215
216 return ret;
217 }
218
219 static void cma_heap_vunmap(struct dma_buf *dmabuf, struct dma_buf_map *map)
220 {
221 struct cma_heap_buffer *buffer = dmabuf->priv;
222
223 mutex_lock(&buffer->lock);
224 if (!--buffer->vmap_cnt) {
> 225 vunmap(buffer->vaddr);
226 buffer->vaddr = NULL;
227 }
228 mutex_unlock(&buffer->lock);
229 dma_buf_map_clear(map);
230 }
231
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH V4 16/16] net: iosm: infrastructure
by kernel test robot
Hi Chetan,
I love your patch! Perhaps something to improve:
[auto build test WARNING on net/master]
[also build test WARNING on ipvs/master net-next/master linus/master v5.13-rc5 next-20210608]
[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/M-Chetan-Kumar/net-iosm-PCIe-Dri...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git 7a6b1ab7475fd6478eeaf5c9d1163e7a18125c8f
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/8720122f89695c8d8577b373d58551163...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review M-Chetan-Kumar/net-iosm-PCIe-Driver-for-Intel-M-2-Modem/20210609-010731
git checkout 8720122f89695c8d8577b373d585511632aa69ec
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/net/wwan/iosm/iosm_ipc_wwan.c:231:21: error: variable 'iosm_wwan_ops' has initializer but incomplete type
231 | static const struct wwan_ops iosm_wwan_ops = {
| ^~~~~~~~
drivers/net/wwan/iosm/iosm_ipc_wwan.c:232:3: error: 'const struct wwan_ops' has no member named 'priv_size'
232 | .priv_size = sizeof(struct iosm_netdev_priv),
| ^~~~~~~~~
>> drivers/net/wwan/iosm/iosm_ipc_wwan.c:232:15: warning: excess elements in struct initializer
232 | .priv_size = sizeof(struct iosm_netdev_priv),
| ^~~~~~
drivers/net/wwan/iosm/iosm_ipc_wwan.c:232:15: note: (near initialization for 'iosm_wwan_ops')
drivers/net/wwan/iosm/iosm_ipc_wwan.c:233:3: error: 'const struct wwan_ops' has no member named 'setup'
233 | .setup = ipc_wwan_setup,
| ^~~~~
drivers/net/wwan/iosm/iosm_ipc_wwan.c:233:11: warning: excess elements in struct initializer
233 | .setup = ipc_wwan_setup,
| ^~~~~~~~~~~~~~
drivers/net/wwan/iosm/iosm_ipc_wwan.c:233:11: note: (near initialization for 'iosm_wwan_ops')
drivers/net/wwan/iosm/iosm_ipc_wwan.c:234:3: error: 'const struct wwan_ops' has no member named 'newlink'
234 | .newlink = ipc_wwan_newlink,
| ^~~~~~~
drivers/net/wwan/iosm/iosm_ipc_wwan.c:234:13: warning: excess elements in struct initializer
234 | .newlink = ipc_wwan_newlink,
| ^~~~~~~~~~~~~~~~
drivers/net/wwan/iosm/iosm_ipc_wwan.c:234:13: note: (near initialization for 'iosm_wwan_ops')
drivers/net/wwan/iosm/iosm_ipc_wwan.c:235:3: error: 'const struct wwan_ops' has no member named 'dellink'
235 | .dellink = ipc_wwan_dellink,
| ^~~~~~~
drivers/net/wwan/iosm/iosm_ipc_wwan.c:235:13: warning: excess elements in struct initializer
235 | .dellink = ipc_wwan_dellink,
| ^~~~~~~~~~~~~~~~
drivers/net/wwan/iosm/iosm_ipc_wwan.c:235:13: note: (near initialization for 'iosm_wwan_ops')
drivers/net/wwan/iosm/iosm_ipc_wwan.c: In function 'ipc_wwan_init':
drivers/net/wwan/iosm/iosm_ipc_wwan.c:319:6: error: implicit declaration of function 'wwan_register_ops' [-Werror=implicit-function-declaration]
319 | if (wwan_register_ops(ipc_wwan->dev, &iosm_wwan_ops, ipc_wwan)) {
| ^~~~~~~~~~~~~~~~~
drivers/net/wwan/iosm/iosm_ipc_wwan.c: In function 'ipc_wwan_deinit':
drivers/net/wwan/iosm/iosm_ipc_wwan.c:333:2: error: implicit declaration of function 'wwan_unregister_ops' [-Werror=implicit-function-declaration]
333 | wwan_unregister_ops(ipc_wwan->dev);
| ^~~~~~~~~~~~~~~~~~~
drivers/net/wwan/iosm/iosm_ipc_wwan.c: At top level:
drivers/net/wwan/iosm/iosm_ipc_wwan.c:231:30: error: storage size of 'iosm_wwan_ops' isn't known
231 | static const struct wwan_ops iosm_wwan_ops = {
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +232 drivers/net/wwan/iosm/iosm_ipc_wwan.c
a55422b04bda2b M Chetan Kumar 2021-06-08 230
a55422b04bda2b M Chetan Kumar 2021-06-08 @231 static const struct wwan_ops iosm_wwan_ops = {
a55422b04bda2b M Chetan Kumar 2021-06-08 @232 .priv_size = sizeof(struct iosm_netdev_priv),
a55422b04bda2b M Chetan Kumar 2021-06-08 233 .setup = ipc_wwan_setup,
a55422b04bda2b M Chetan Kumar 2021-06-08 234 .newlink = ipc_wwan_newlink,
a55422b04bda2b M Chetan Kumar 2021-06-08 235 .dellink = ipc_wwan_dellink,
a55422b04bda2b M Chetan Kumar 2021-06-08 236 };
a55422b04bda2b M Chetan Kumar 2021-06-08 237
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[linux-stable-rc:linux-5.4.y 3700/7049] arch/powerpc/kernel/smp.c:539:6: error: no previous prototype for function 'tick_broadcast'
by kernel test robot
Hi Michael,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head: 90487dc4fc3599ba4b2e00c89edcd0a397d2f051
commit: acac3f7d7d2283a1b8bc1e1c286dcd6c96e573e4 [3700/7049] powerpc: Drop -me200 addition to build flags
config: powerpc64-randconfig-r025-20210608 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d32cc150feb72f315a5bbd34f92e7beca21a50da)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# 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.4.y
git checkout acac3f7d7d2283a1b8bc1e1c286dcd6c96e573e4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-stable-rc/linux-5.4.y HEAD 90487dc4fc3599ba4b2e00c89edcd0a397d2f051 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
__do_insb
^
arch/powerpc/include/asm/io.h:542:56: note: expanded from macro '__do_insb'
#define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kernel/smp.c:22:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:9:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:45:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:602:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:47:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:543:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kernel/smp.c:22:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:9:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:47:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:602:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:49:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:544:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kernel/smp.c:22:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:9:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:49:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:602:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:51:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:545:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kernel/smp.c:22:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:9:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:51:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:602:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:53:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:546:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kernel/smp.c:22:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:9:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:605:
arch/powerpc/include/asm/io-defs.h:53:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:602:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:55:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:547:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> arch/powerpc/kernel/smp.c:539:6: error: no previous prototype for function 'tick_broadcast' [-Werror,-Wmissing-prototypes]
void tick_broadcast(const struct cpumask *mask)
^
arch/powerpc/kernel/smp.c:539:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void tick_broadcast(const struct cpumask *mask)
^
static
8 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FSL_EMB_PERFMON
Depends on E500 || PPC_83xx
Selected by
- PPC_FSL_BOOK3E
vim +/tick_broadcast +539 arch/powerpc/kernel/smp.c
ddd703ca06ede1 Nicholas Piggin 2016-12-20 537
1b67bee129a36c Srivatsa S. Bhat 2014-02-26 538 #ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST
1b67bee129a36c Srivatsa S. Bhat 2014-02-26 @539 void tick_broadcast(const struct cpumask *mask)
1b67bee129a36c Srivatsa S. Bhat 2014-02-26 540 {
1b67bee129a36c Srivatsa S. Bhat 2014-02-26 541 unsigned int cpu;
1b67bee129a36c Srivatsa S. Bhat 2014-02-26 542
1b67bee129a36c Srivatsa S. Bhat 2014-02-26 543 for_each_cpu(cpu, mask)
1b67bee129a36c Srivatsa S. Bhat 2014-02-26 544 do_message_pass(cpu, PPC_MSG_TICK_BROADCAST);
1b67bee129a36c Srivatsa S. Bhat 2014-02-26 545 }
1b67bee129a36c Srivatsa S. Bhat 2014-02-26 546 #endif
1b67bee129a36c Srivatsa S. Bhat 2014-02-26 547
:::::: The code at line 539 was first introduced by commit
:::::: 1b67bee129a36c22c17186cc2a9981678e9323ee powerpc: Implement tick broadcast IPI as a fixed IPI message
:::::: TO: Srivatsa S. Bhat <srivatsa.bhat(a)linux.vnet.ibm.com>
:::::: CC: Benjamin Herrenschmidt <benh(a)kernel.crashing.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[intel-tdx:guest 43/75] include/linux/protected_guest.h:6:10: fatal error: 'asm/tdx.h' file not found
by kernel test robot
tree: https://github.com/intel/tdx.git guest
head: 8b4d2e49aaab9cebdad4759a385bc89bc1f46dbe
commit: 10e4705c17f79458071933a2aeb148f5f2c2498a [43/75] driver: base: filter: Add device filter support
config: s390-randconfig-r025-20210608 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d32cc150feb72f315a5bbd34f92e7beca21a50da)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://github.com/intel/tdx/commit/10e4705c17f79458071933a2aeb148f5f2c2498a
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest
git checkout 10e4705c17f79458071933a2aeb148f5f2c2498a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 drivers/base/filter.c:15:
>> include/linux/protected_guest.h:6:10: fatal error: 'asm/tdx.h' file not found
#include <asm/tdx.h>
^~~~~~~~~~~
1 error generated.
vim +6 include/linux/protected_guest.h
6f6e2c40fa406a Kuppuswamy Sathyanarayanan 2021-05-12 4
6f6e2c40fa406a Kuppuswamy Sathyanarayanan 2021-05-12 5 #include <asm/processor.h>
6f6e2c40fa406a Kuppuswamy Sathyanarayanan 2021-05-12 @6 #include <asm/tdx.h>
6f6e2c40fa406a Kuppuswamy Sathyanarayanan 2021-05-12 7 #include <asm/sev.h>
6f6e2c40fa406a Kuppuswamy Sathyanarayanan 2021-05-12 8
:::::: The code at line 6 was first introduced by commit
:::::: 6f6e2c40fa406ab2d4b8601f80f29b3b8b6d6c9c x86: Introduce generic protected guest abstraction
:::::: TO: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy(a)linux.intel.com>
:::::: CC: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy(a)linux.intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months