Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp953446rdh; Fri, 24 Nov 2023 01:49:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGoz6E/omjpALfm+ZXag5Z0cjlhsvRbskO0Xbi8a1gkta/MXzE670PVhHHg37wx/iiJkNFd X-Received: by 2002:a17:902:a401:b0:1cc:7ec0:bc8a with SMTP id p1-20020a170902a40100b001cc7ec0bc8amr1531348plq.66.1700819378838; Fri, 24 Nov 2023 01:49:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700819378; cv=none; d=google.com; s=arc-20160816; b=Lvn34/KlkeM6vL+8BlM0yjO+shV3IeBgSui1QWUvf4tdNYXS+FDy1WFZjWVYryzh0o +c41D7t1JcDyz1S244y+zMFtDNZPHFAXdcS+RylcEbP6BE0P8fA1Dq4LmaiAEG8NP+w6 I7YdAmNYL+nHBCkVPk7+JYcxdKiyCLiVUzXnXL189zdwoyO866yZYnIs/bnh5E7e5k8K uO0pF/TldpySKjaih0iN1i9aB/4J/pbDw5MPLlarfr2R69r4hrHGpCgo5MIf1Sq/Ocb7 KSC3eXrc7r/84E6hA+pfN7e/lq/aM69gg6UaCJpeD0eArl2vQRON022Jbobse/7qJbB+ /BVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lKQVwfqbYzOJkr6TS3oA/SQVYpET5LIr4XKfqKQJIHA=; fh=+l56dpxdlXGwecrHxshccQwX3GvFrO31V2eiWJvJBKY=; b=mLtn/JiwWL9wZIVIWIgrZHJhpJ/26QplSsSuFho4zGP+aNsGMHK9Ov6I7q/YTd7rg9 mqKvf/znUMJRQjHBAiBF/5L0G9K9zFnBIjhvblam2rQyxNWSSiCKM127rVr4QR+aNImD A2odOFHw7tUHRVMNAveEiF3e1CdI3YYX7zVqPzrtpm+nG7KdmUmFHMFJNaAvzIqPmPk/ o43VAdY5oFT89OzpzeeKBOpcllpFA0CUxihakE5zs6c9wlG/sGBkkR6xJDMMIPx2tBjE HnfDVTQ064TKCNI9GRXTwfoQwwFMHsxFQ/jJ9OeXlrTHYBf1J3Dmp9+tPymO7KTp6PVU VpAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BOylP2D1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id n5-20020a170902d2c500b001cf64c9b510si3151712plc.299.2023.11.24.01.49.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 01:49:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BOylP2D1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D00DF83746B4; Fri, 24 Nov 2023 01:49:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232995AbjKXJtI (ORCPT + 99 others); Fri, 24 Nov 2023 04:49:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230386AbjKXJtF (ORCPT ); Fri, 24 Nov 2023 04:49:05 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86E8710FA; Fri, 24 Nov 2023 01:49:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700819351; x=1732355351; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=m+O2iEouFoLlSPXcWmyIB9dFD9aAcWMkJLAYTZIh6qY=; b=BOylP2D1Mwy6QNmU0mTX9Z/AAYWBGtXRGiaxL24ihZnwFHZvolHGPsl8 wWeI5rkB7D7jt8qj0MVAuN4OLu7zJ3uSOU+cfNkWtypxxGzne1pX0ME6h bifyXFcaoA5WVSAdyrXAENvM0PJ8pntVY5xmdEQxfAwk90IPXWvMvlevW AK6qghAIAOTcmW7ONhGXL6tsKOg3qkVtM5mmWwBZeer9iYzErdncIvG4H BuwJV2SOZ+kJ9040PBoHqFUj3v5G44bd25ix+uW+9t0HnQPbnDwOMiz79 OPYEtA/rV8wPIEQVuNzzslF3gCHKr+fgzt8KY9fQ1IM+RYmMn4RvY4wxW g==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="371751267" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="371751267" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2023 01:49:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="838037405" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="838037405" Received: from lkp-server01.sh.intel.com (HELO d584ee6ebdcc) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 24 Nov 2023 01:49:08 -0800 Received: from kbuild by d584ee6ebdcc with local (Exim 4.96) (envelope-from ) id 1r6So5-0002L8-3D; Fri, 24 Nov 2023 09:49:06 +0000 Date: Fri, 24 Nov 2023 17:49:05 +0800 From: kernel test robot To: "David E. Box" , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, ilpo.jarvinen@linux.intel.com, rajvi.jingar@linux.intel.com, dave.hansen@linux.intel.com, peterz@infradead.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: Re: [PATCH V5 12/20] asm-generic/io.h: iounmap/ioport_unmap cleanup.h support Message-ID: <202311241214.jcL84du7-lkp@intel.com> References: <20231123040355.82139-13-david.e.box@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231123040355.82139-13-david.e.box@linux.intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 24 Nov 2023 01:49:31 -0800 (PST) Hi David, kernel test robot noticed the following build errors: [auto build test ERROR on b85ea95d086471afb4ad062012a4d73cd328fa86] url: https://github.com/intel-lab-lkp/linux/commits/David-E-Box/platform-x86-intel-vsec-Fix-xa_alloc-memory-leak/20231123-120726 base: b85ea95d086471afb4ad062012a4d73cd328fa86 patch link: https://lore.kernel.org/r/20231123040355.82139-13-david.e.box%40linux.intel.com patch subject: [PATCH V5 12/20] asm-generic/io.h: iounmap/ioport_unmap cleanup.h support config: s390-randconfig-001-20231123 (https://download.01.org/0day-ci/archive/20231124/202311241214.jcL84du7-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231124/202311241214.jcL84du7-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202311241214.jcL84du7-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:19: In file included from include/linux/msi.h:27: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:78: include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) ^ include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16' #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:19: In file included from include/linux/msi.h:27: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:78: include/asm-generic/io.h:574: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:35:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32' #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:19: In file included from include/linux/msi.h:27: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:78: include/asm-generic/io.h:585: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:595: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:605: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:693: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:701: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:709: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:718: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:727: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:736:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ >> include/asm-generic/io.h:1070:38: error: call to undeclared function 'iounmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] DEFINE_FREE(iounmap, void __iomem *, iounmap(_T)); ^ arch/s390/include/asm/io.h:29:17: note: expanded from macro 'iounmap' #define iounmap iounmap ^ include/asm-generic/io.h:1070:38: note: did you mean 'vunmap'? arch/s390/include/asm/io.h:29:17: note: expanded from macro 'iounmap' #define iounmap iounmap ^ include/linux/vmalloc.h:167:13: note: 'vunmap' declared here extern void vunmap(const void *addr); ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:19: In file included from include/linux/msi.h:27: In file included from include/linux/irq.h:591: In file included from arch/s390/include/asm/hw_irq.h:6: In file included from include/linux/pci.h:37: In file included from include/linux/device.h:32: In file included from include/linux/device/driver.h:21: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: include/linux/compat.h:454:22: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3]; ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:19: In file included from include/linux/msi.h:27: In file included from include/linux/irq.h:591: In file included from arch/s390/include/asm/hw_irq.h:6: In file included from include/linux/pci.h:37: In file included from include/linux/device.h:32: In file included from include/linux/device/driver.h:21: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: include/linux/compat.h:454:10: warning: array index 7 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds] case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3]; ^ ~ include/linux/compat.h:130:2: note: array 'sig' declared here compat_sigset_word sig[_COMPAT_NSIG_WORDS]; ^ include/linux/compat.h:454:42: warning: array index 6 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds] case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3]; ^ ~ include/linux/compat.h:130:2: note: array 'sig' declared here compat_sigset_word sig[_COMPAT_NSIG_WORDS]; ^ include/linux/compat.h:454:53: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3]; ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:19: In file included from include/linux/msi.h:27: In file included from include/linux/irq.h:591: In file included from arch/s390/include/asm/hw_irq.h:6: In file included from include/linux/pci.h:37: In file included from include/linux/device.h:32: In file included from include/linux/device/driver.h:21: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: include/linux/compat.h:456:22: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2]; ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here unsigned long sig[_NSIG_WORDS]; ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:19: In file included from include/linux/msi.h:27: In file included from include/linux/irq.h:591: In file included from arch/s390/include/asm/hw_irq.h:6: In file included from include/linux/pci.h:37: In file included from include/linux/device.h:32: In file included from include/linux/device/driver.h:21: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: include/linux/compat.h:456:10: warning: array index 5 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds] case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2]; ^ ~ include/linux/compat.h:130:2: note: array 'sig' declared here compat_sigset_word sig[_COMPAT_NSIG_WORDS]; ^ include/linux/compat.h:456:42: warning: array index 4 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds] case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2]; ^ ~ include/linux/compat.h:130:2: note: array 'sig' declared here compat_sigset_word sig[_COMPAT_NSIG_WORDS]; ^ include/linux/compat.h:456:53: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2]; vim +/iounmap +1070 include/asm-generic/io.h 1068 1069 #ifdef iounmap > 1070 DEFINE_FREE(iounmap, void __iomem *, iounmap(_T)); 1071 #endif 1072 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki