Re: [PATCH 1/3] staging: androind: Replace BUG_ONs with WARN_ONs
by kernel test robot
Hi Tomer,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on staging/staging-testing]
[also build test ERROR on v5.8 next-20200814]
[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/Tomer-Samara/Replac-BAG-BAG_ON-w...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 86cfccb66937dd6cbf26ed619958b9e587e6a115
config: arc-allyesconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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/android/ion/ion_page_pool.c: In function 'ion_page_pool_remove':
>> drivers/staging/android/ion/ion_page_pool.c:50:15: error: expected ';' before ':' token
50 | return NULL:
| ^
# https://github.com/0day-ci/linux/commit/71d27df2e46fe435ada18ac3dae964d6b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Tomer-Samara/Replac-BAG-BAG_ON-with-WARN-WARN_ON/20200817-012333
git checkout 71d27df2e46fe435ada18ac3dae964d6b9a74664
vim +50 drivers/staging/android/ion/ion_page_pool.c
43
44 static struct page *ion_page_pool_remove(struct ion_page_pool *pool, bool high)
45 {
46 struct page *page;
47
48 if (high) {
49 if (WARN_ON(!pool->high_count))
> 50 return NULL:
51 page = list_first_entry(&pool->high_items, struct page, lru);
52 pool->high_count--;
53 } else {
54 if (WARN_ON(!pool->low_count))
55 return NULL;
56 page = list_first_entry(&pool->low_items, struct page, lru);
57 pool->low_count--;
58 }
59
60 list_del(&page->lru);
61 mod_node_page_state(page_pgdat(page), NR_KERNEL_MISC_RECLAIMABLE,
62 -(1 << pool->order));
63 return page;
64 }
65
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
net/tipc/udp_media.c:743: undefined reference to `ipv6_dev_find'
by kernel test robot
Hi Xin,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4b6c093e21d36bede0fd88fd0aeb3b03647260e4
commit: 5a6f6f579178dbeb33002d93b4f646c31348fac9 tipc: set ub->ifindex for local ipv6 address
date: 11 days ago
config: parisc-randconfig-r032-20200816 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5a6f6f579178dbeb33002d93b4f646c31348fac9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
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 >>):
hppa-linux-ld: net/tipc/udp_media.o: in function `tipc_udp_enable':
>> net/tipc/udp_media.c:743: undefined reference to `ipv6_dev_find'
vim +743 net/tipc/udp_media.c
642
643 /**
644 * tipc_udp_enable - callback to create a new udp bearer instance
645 * @net: network namespace
646 * @b: pointer to generic tipc_bearer
647 * @attrs: netlink bearer configuration
648 *
649 * validate the bearer parameters and initialize the udp bearer
650 * rtnl_lock should be held
651 */
652 static int tipc_udp_enable(struct net *net, struct tipc_bearer *b,
653 struct nlattr *attrs[])
654 {
655 int err = -EINVAL;
656 struct udp_bearer *ub;
657 struct udp_media_addr remote = {0};
658 struct udp_media_addr local = {0};
659 struct udp_port_cfg udp_conf = {0};
660 struct udp_tunnel_sock_cfg tuncfg = {NULL};
661 struct nlattr *opts[TIPC_NLA_UDP_MAX + 1];
662 u8 node_id[NODE_ID_LEN] = {0,};
663 int rmcast = 0;
664
665 ub = kzalloc(sizeof(*ub), GFP_ATOMIC);
666 if (!ub)
667 return -ENOMEM;
668
669 INIT_LIST_HEAD(&ub->rcast.list);
670
671 if (!attrs[TIPC_NLA_BEARER_UDP_OPTS])
672 goto err;
673
674 if (nla_parse_nested_deprecated(opts, TIPC_NLA_UDP_MAX, attrs[TIPC_NLA_BEARER_UDP_OPTS], tipc_nl_udp_policy, NULL))
675 goto err;
676
677 if (!opts[TIPC_NLA_UDP_LOCAL] || !opts[TIPC_NLA_UDP_REMOTE]) {
678 pr_err("Invalid UDP bearer configuration");
679 err = -EINVAL;
680 goto err;
681 }
682
683 err = tipc_parse_udp_addr(opts[TIPC_NLA_UDP_LOCAL], &local,
684 &ub->ifindex);
685 if (err)
686 goto err;
687
688 err = tipc_parse_udp_addr(opts[TIPC_NLA_UDP_REMOTE], &remote, NULL);
689 if (err)
690 goto err;
691
692 if (remote.proto != local.proto) {
693 err = -EINVAL;
694 goto err;
695 }
696
697 /* Checking remote ip address */
698 rmcast = tipc_udp_is_mcast_addr(&remote);
699
700 /* Autoconfigure own node identity if needed */
701 if (!tipc_own_id(net)) {
702 memcpy(node_id, local.ipv6.in6_u.u6_addr8, 16);
703 tipc_net_init(net, node_id, 0);
704 }
705 if (!tipc_own_id(net)) {
706 pr_warn("Failed to set node id, please configure manually\n");
707 err = -EINVAL;
708 goto err;
709 }
710
711 b->bcast_addr.media_id = TIPC_MEDIA_TYPE_UDP;
712 b->bcast_addr.broadcast = TIPC_BROADCAST_SUPPORT;
713 rcu_assign_pointer(b->media_ptr, ub);
714 rcu_assign_pointer(ub->bearer, b);
715 tipc_udp_media_addr_set(&b->addr, &local);
716 if (local.proto == htons(ETH_P_IP)) {
717 struct net_device *dev;
718
719 dev = __ip_dev_find(net, local.ipv4.s_addr, false);
720 if (!dev) {
721 err = -ENODEV;
722 goto err;
723 }
724 udp_conf.family = AF_INET;
725
726 /* Switch to use ANY to receive packets from group */
727 if (rmcast)
728 udp_conf.local_ip.s_addr = htonl(INADDR_ANY);
729 else
730 udp_conf.local_ip.s_addr = local.ipv4.s_addr;
731 udp_conf.use_udp_checksums = false;
732 ub->ifindex = dev->ifindex;
733 if (tipc_mtu_bad(dev, sizeof(struct iphdr) +
734 sizeof(struct udphdr))) {
735 err = -EINVAL;
736 goto err;
737 }
738 b->mtu = b->media->mtu;
739 #if IS_ENABLED(CONFIG_IPV6)
740 } else if (local.proto == htons(ETH_P_IPV6)) {
741 struct net_device *dev;
742
> 743 dev = ipv6_dev_find(net, &local.ipv6);
744 if (!dev) {
745 err = -ENODEV;
746 goto err;
747 }
748 udp_conf.family = AF_INET6;
749 udp_conf.use_udp6_tx_checksums = true;
750 udp_conf.use_udp6_rx_checksums = true;
751 if (rmcast)
752 udp_conf.local_ip6 = in6addr_any;
753 else
754 udp_conf.local_ip6 = local.ipv6;
755 ub->ifindex = dev->ifindex;
756 b->mtu = 1280;
757 #endif
758 } else {
759 err = -EAFNOSUPPORT;
760 goto err;
761 }
762 udp_conf.local_udp_port = local.port;
763 err = udp_sock_create(net, &udp_conf, &ub->ubsock);
764 if (err)
765 goto err;
766 tuncfg.sk_user_data = ub;
767 tuncfg.encap_type = 1;
768 tuncfg.encap_rcv = tipc_udp_recv;
769 tuncfg.encap_destroy = NULL;
770 setup_udp_tunnel_sock(net, ub->ubsock, &tuncfg);
771
772 err = dst_cache_init(&ub->rcast.dst_cache, GFP_ATOMIC);
773 if (err)
774 goto free;
775
776 /**
777 * The bcast media address port is used for all peers and the ip
778 * is used if it's a multicast address.
779 */
780 memcpy(&b->bcast_addr.value, &remote, sizeof(remote));
781 if (rmcast)
782 err = enable_mcast(ub, &remote);
783 else
784 err = tipc_udp_rcast_add(b, &remote);
785 if (err)
786 goto free;
787
788 return 0;
789
790 free:
791 dst_cache_destroy(&ub->rcast.dst_cache);
792 udp_tunnel_sock_release(ub->ubsock);
793 err:
794 kfree(ub);
795 return err;
796 }
797
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[monstr-microblaze:for-test 691/1134] drivers/fpga/zynqmp-fpga.c:186 zynqmp_fpga_read_cfgreg() error: uninitialized symbol 'ret'.
by kernel test robot
tree: git://git.monstr.eu/linux-2.6-microblaze for-test
head: 21f70b89dfef52f69ce1413868950cf5baf3868d
commit: 6af82e03b38e89985269329ceeace439a0d3d30c [691/1134] fpga: zynqmp-fpga: Add support for pl configuration readback
config: i386-randconfig-m021-20200816 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
drivers/fpga/zynqmp-fpga.c:186 zynqmp_fpga_read_cfgreg() error: uninitialized symbol 'ret'.
git remote add monstr-microblaze git://git.monstr.eu/linux-2.6-microblaze
git fetch --no-tags monstr-microblaze for-test
git checkout 6af82e03b38e89985269329ceeace439a0d3d30c
vim +/ret +186 drivers/fpga/zynqmp-fpga.c
156
157 static int zynqmp_fpga_read_cfgreg(struct fpga_manager *mgr,
158 struct seq_file *s)
159 {
160 const struct zynqmp_eemi_ops *eemi_ops = zynqmp_pm_get_eemi_ops();
161 int ret, val;
162 unsigned int *buf;
163 dma_addr_t dma_addr;
164 struct zynqmp_configreg *p = cfgreg;
165
166 buf = dma_alloc_coherent(mgr->dev.parent, READ_DMA_SIZE,
167 &dma_addr, GFP_KERNEL);
168 if (!buf)
169 return -ENOMEM;
170
171 seq_puts(s, "zynqMP FPGA Configuration register contents are\n");
172
173 while (p->reg) {
174 ret = eemi_ops->fpga_read(p->offset, dma_addr, readback_type,
175 &val);
176 if (ret)
177 goto free_dmabuf;
178 seq_printf(s, "%s --> \t %x \t\r\n", p->reg, val);
179 p++;
180 }
181
182 free_dmabuf:
183 dma_free_coherent(mgr->dev.parent, READ_DMA_SIZE, buf,
184 dma_addr);
185
> 186 return ret;
187 }
188
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[alexshi:lrunext0813 28/29] undefined reference to `__bad_cmpxchg'
by kernel test robot
tree: https://github.com/alexshi/linux.git lrunext0813
head: 1c1171d98eb66e2baa74b742c64b7274d94f2f74
commit: 79404b968cecd4e1b666078ffa3ac7e9dbbf6559 [28/29] mm/pageblock: mitigation cmpxchg false sharing in pageblock flags
config: arm-allyesconfig (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
git checkout 79404b968cecd4e1b666078ffa3ac7e9dbbf6559
# 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 errors (new ones prefixed by >>):
arm-linux-gnueabi-ld: mm/page_alloc.o: in function `set_pfnblock_flags_mask':
>> (.text+0x32b4): undefined reference to `__bad_cmpxchg'
>> arm-linux-gnueabi-ld: (.text+0x32e0): undefined reference to `__bad_cmpxchg'
arm-linux-gnueabi-ld: drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.o: in function `hw_atl_b0_get_mac_temp':
hw_atl_b0.c:(.text+0x30fc): undefined reference to `__bad_udelay'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[rppt:secretmemfd/v3 3/6] mm/secretmem.c:166:7: warning: Variable 'file' is reassigned a value before the old one has been used.
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git secretmemfd/v3
head: 807167124581cd8d39ff386e86fb5f138e650e26
commit: a7c74dfbd307d0fdde021d1da82bccbdd69655cc [3/6] mm: introduce memfd_secret system call to create "secret" memory areas
compiler: riscv64-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
cppcheck warnings: (new ones prefixed by >>)
>> mm/secretmem.c:166:7: warning: Variable 'file' is reassigned a value before the old one has been used. [redundantAssignment]
file = alloc_file_pseudo(inode, secretmem_mnt, "secretmem",
^
mm/secretmem.c:154:0: note: Variable 'file' is reassigned a value before the old one has been used.
struct file *file = ERR_PTR(-ENOMEM);
^
mm/secretmem.c:166:7: note: Variable 'file' is reassigned a value before the old one has been used.
file = alloc_file_pseudo(inode, secretmem_mnt, "secretmem",
^
# https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git/commit/?id...
git remote add rppt https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git
git fetch --no-tags rppt secretmemfd/v3
git checkout a7c74dfbd307d0fdde021d1da82bccbdd69655cc
vim +/file +166 mm/secretmem.c
151
152 static struct file *secretmem_file_create(unsigned long flags)
153 {
154 struct file *file = ERR_PTR(-ENOMEM);
155 struct secretmem_ctx *ctx;
156 struct inode *inode;
157
158 inode = alloc_anon_inode(secretmem_mnt->mnt_sb);
159 if (IS_ERR(inode))
160 return ERR_CAST(inode);
161
162 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
163 if (!ctx)
164 goto err_free_inode;
165
> 166 file = alloc_file_pseudo(inode, secretmem_mnt, "secretmem",
167 O_RDWR, &secretmem_fops);
168 if (IS_ERR(file))
169 goto err_free_ctx;
170
171 mapping_set_unevictable(inode->i_mapping);
172
173 inode->i_mapping->private_data = ctx;
174 inode->i_mapping->a_ops = &secretmem_aops;
175
176 /* pretend we are a normal file with zero size */
177 inode->i_mode |= S_IFREG;
178 inode->i_size = 0;
179
180 file->private_data = ctx;
181
182 ctx->mode = flags & SECRETMEM_MODE_MASK;
183
184 return file;
185
186 err_free_ctx:
187 kfree(ctx);
188 err_free_inode:
189 iput(inode);
190 return file;
191 }
192
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[rppt:secretmemfd/v3 4/6] <stdin>:1526:2: warning: syscall memfd_secret not implemented
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git secretmemfd/v3
head: 807167124581cd8d39ff386e86fb5f138e650e26
commit: 1ffcc5c9d91d24065b6bd72cb6a3d8d4b15fb952 [4/6] arch, mm: wire up memfd_secret system call were relevant
config: s390-randconfig-r035-20200816 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ab9fc8bae805c785066779e76e7846aabad5609e)
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
git checkout 1ffcc5c9d91d24065b6bd72cb6a3d8d4b15fb952
# 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 warnings (new ones prefixed by >>):
>> <stdin>:1526:2: warning: syscall memfd_secret not implemented [-W#warnings]
#warning syscall memfd_secret not implemented
^
1 warning generated.
--
>> <stdin>:1526:2: warning: syscall memfd_secret not implemented [-W#warnings]
#warning syscall memfd_secret not implemented
^
1 warning generated.
--
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
^
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0xff000000UL) >> 24)))
^
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
__fswab32(x))
^
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
20 warnings generated.
>> <stdin>:1526:2: warning: syscall memfd_secret not implemented [-W#warnings]
#warning syscall memfd_secret not implemented
^
1 warning generated.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[rppt:secretmemfd/v3 4/6] <stdin>:1526:2: warning: #warning syscall memfd_secret not implemented
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git secretmemfd/v3
head: 807167124581cd8d39ff386e86fb5f138e650e26
commit: 1ffcc5c9d91d24065b6bd72cb6a3d8d4b15fb952 [4/6] arch, mm: wire up memfd_secret system call were relevant
config: ia64-randconfig-r033-20200816 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 1ffcc5c9d91d24065b6bd72cb6a3d8d4b15fb952
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
<stdin>:1511:2: warning: #warning syscall clone3 not implemented [-Wcpp]
>> <stdin>:1526:2: warning: #warning syscall memfd_secret not implemented [-Wcpp]
--
<stdin>:1511:2: warning: #warning syscall clone3 not implemented [-Wcpp]
>> <stdin>:1526:2: warning: #warning syscall memfd_secret not implemented [-Wcpp]
--
cc1: warning: ./arch/ia64/include/generated: No such file or directory [-Wmissing-include-dirs]
cc1: warning: ./arch/ia64/include/generated/uapi: No such file or directory [-Wmissing-include-dirs]
cc1: warning: ./include/generated/uapi: No such file or directory [-Wmissing-include-dirs]
arch/ia64/kernel/nr-irqs.c:15:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
15 | void foo(void)
| ^~~
arch/ia64/kernel/asm-offsets.c:23:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
23 | void foo(void)
| ^~~
<stdin>:1511:2: warning: #warning syscall clone3 not implemented [-Wcpp]
>> <stdin>:1526:2: warning: #warning syscall memfd_secret not implemented [-Wcpp]
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
arch/powerpc/mm/book3s64/hash_utils.c:1119:21: error: 'default_uamor' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4b6c093e21d36bede0fd88fd0aeb3b03647260e4
commit: 6553fb799f601497ca0703682e2aff131197dc5c powerpc/pkeys: Fix boot failures with Nemo board (A-EON AmigaOne X1000)
date: 6 days ago
config: powerpc-skiroot_defconfig (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 6553fb799f601497ca0703682e2aff131197dc5c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/powerpc/include/asm/processor.h:9,
from arch/powerpc/include/asm/thread_info.h:40,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/powerpc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from arch/powerpc/mm/book3s64/hash_utils.c:21:
arch/powerpc/mm/book3s64/hash_utils.c: In function 'hash__early_init_mmu_secondary':
>> arch/powerpc/mm/book3s64/hash_utils.c:1119:21: error: 'default_uamor' undeclared (first use in this function)
1119 | mtspr(SPRN_UAMOR, default_uamor);
| ^~~~~~~~~~~~~
arch/powerpc/include/asm/reg.h:1394:33: note: in definition of macro 'mtspr'
1394 | : "r" ((unsigned long)(v)) \
| ^
arch/powerpc/mm/book3s64/hash_utils.c:1119:21: note: each undeclared identifier is reported only once for each function it appears in
1119 | mtspr(SPRN_UAMOR, default_uamor);
| ^~~~~~~~~~~~~
arch/powerpc/include/asm/reg.h:1394:33: note: in definition of macro 'mtspr'
1394 | : "r" ((unsigned long)(v)) \
| ^
arch/powerpc/mm/book3s64/hash_utils.c: At top level:
arch/powerpc/mm/book3s64/hash_utils.c:1503:5: error: no previous prototype for '__hash_page' [-Werror=missing-prototypes]
1503 | int __hash_page(unsigned long trap, unsigned long ea, unsigned long dsisr,
| ^~~~~~~~~~~
arch/powerpc/mm/book3s64/hash_utils.c:1838:6: error: no previous prototype for 'low_hash_fault' [-Werror=missing-prototypes]
1838 | void low_hash_fault(struct pt_regs *regs, unsigned long address, int rc)
| ^~~~~~~~~~~~~~
arch/powerpc/mm/book3s64/hash_utils.c:1855:6: error: no previous prototype for 'hpte_insert_repeating' [-Werror=missing-prototypes]
1855 | long hpte_insert_repeating(unsigned long hash, unsigned long vpn,
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
# 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 6553fb799f601497ca0703682e2aff131197dc5c
vim +/default_uamor +1119 arch/powerpc/mm/book3s64/hash_utils.c
757c74d298dc84 arch/powerpc/mm/hash_utils_64.c Benjamin Herrenschmidt 2009-03-19 1098
757c74d298dc84 arch/powerpc/mm/hash_utils_64.c Benjamin Herrenschmidt 2009-03-19 1099 #ifdef CONFIG_SMP
756d08d1ba169e arch/powerpc/mm/hash_utils_64.c Aneesh Kumar K.V 2016-04-29 1100 void hash__early_init_mmu_secondary(void)
757c74d298dc84 arch/powerpc/mm/hash_utils_64.c Benjamin Herrenschmidt 2009-03-19 1101 {
757c74d298dc84 arch/powerpc/mm/hash_utils_64.c Benjamin Herrenschmidt 2009-03-19 1102 /* Initialize hash table for that CPU */
b5dcc6096971b7 arch/powerpc/mm/hash_utils_64.c Aneesh Kumar K.V 2016-04-29 1103 if (!firmware_has_feature(FW_FEATURE_LPAR)) {
cac4a185405d44 arch/powerpc/mm/hash_utils_64.c Aneesh Kumar K.V 2016-11-17 1104
b5dcc6096971b7 arch/powerpc/mm/hash_utils_64.c Aneesh Kumar K.V 2016-04-29 1105 if (!cpu_has_feature(CPU_FTR_ARCH_300))
799d6046d3fb55 arch/powerpc/mm/hash_utils_64.c Paul Mackerras 2005-11-10 1106 mtspr(SPRN_SDR1, _SDR1);
b5dcc6096971b7 arch/powerpc/mm/hash_utils_64.c Aneesh Kumar K.V 2016-04-29 1107 else
5223134029a87d arch/powerpc/mm/book3s64/hash_utils.c Claudio Carvalho 2019-08-22 1108 set_ptcr_when_no_uv(__pa(partition_tb) |
5223134029a87d arch/powerpc/mm/book3s64/hash_utils.c Claudio Carvalho 2019-08-22 1109 (PATB_SIZE_SHIFT - 12));
b5dcc6096971b7 arch/powerpc/mm/hash_utils_64.c Aneesh Kumar K.V 2016-04-29 1110 }
376af5947c0e44 arch/powerpc/mm/hash_utils_64.c Michael Ellerman 2014-07-10 1111 /* Initialize SLB */
757c74d298dc84 arch/powerpc/mm/hash_utils_64.c Benjamin Herrenschmidt 2009-03-19 1112 slb_initialize();
d4748276ae14ce arch/powerpc/mm/hash_utils_64.c Nicholas Piggin 2017-12-24 1113
d4748276ae14ce arch/powerpc/mm/hash_utils_64.c Nicholas Piggin 2017-12-24 1114 if (cpu_has_feature(CPU_FTR_ARCH_206)
d4748276ae14ce arch/powerpc/mm/hash_utils_64.c Nicholas Piggin 2017-12-24 1115 && cpu_has_feature(CPU_FTR_HVMODE))
d4748276ae14ce arch/powerpc/mm/hash_utils_64.c Nicholas Piggin 2017-12-24 1116 tlbiel_all();
e0d8e991be641b arch/powerpc/mm/book3s64/hash_utils.c Aneesh Kumar K.V 2020-07-09 1117
6553fb799f6014 arch/powerpc/mm/book3s64/hash_utils.c Aneesh Kumar K.V 2020-08-10 1118 if (IS_ENABLED(CONFIG_PPC_MEM_KEYS) && mmu_has_feature(MMU_FTR_PKEY))
e0d8e991be641b arch/powerpc/mm/book3s64/hash_utils.c Aneesh Kumar K.V 2020-07-09 @1119 mtspr(SPRN_UAMOR, default_uamor);
799d6046d3fb55 arch/powerpc/mm/hash_utils_64.c Paul Mackerras 2005-11-10 1120 }
757c74d298dc84 arch/powerpc/mm/hash_utils_64.c Benjamin Herrenschmidt 2009-03-19 1121 #endif /* CONFIG_SMP */
799d6046d3fb55 arch/powerpc/mm/hash_utils_64.c Paul Mackerras 2005-11-10 1122
:::::: The code at line 1119 was first introduced by commit
:::::: e0d8e991be641ba0034c67785bf86f6c097869d6 powerpc/book3s64/kuap: Move UAMOR setup to key init function
:::::: TO: Aneesh Kumar K.V <aneesh.kumar(a)linux.ibm.com>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month