From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B4C9ECAAA1 for ; Mon, 19 Sep 2022 16:54:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F0D2E940007; Mon, 19 Sep 2022 12:54:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EBC816B0074; Mon, 19 Sep 2022 12:54:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D8459940007; Mon, 19 Sep 2022 12:54:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id C5F196B0073 for ; Mon, 19 Sep 2022 12:54:51 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 9681D40BCD for ; Mon, 19 Sep 2022 16:54:51 +0000 (UTC) X-FDA: 79929434382.04.430272F Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by imf06.hostedemail.com (Postfix) with ESMTP id CEA24180094 for ; Mon, 19 Sep 2022 16:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663606490; x=1695142490; h=date:from:to:cc:subject:message-id:mime-version; bh=Zb/LvzkMEbecCuJqoYtnMcwZNvj6h7AGGaDv1wDqzzY=; b=coEWxSU8xbkBTPr0SLizaxwJHzIyKBi9I2E9ireCBhh47tSGHLNotTJd 56Dm/vhpQ9gF/5zjQyX122GpDajg1OkqaZLf7P9qThKMKu194MHKY7W+v n2/rI/W2EvWc9s6es1xFeLozE4pve4E/CUDtNS6MgT4fT6N8fnvjJXYHc xhUPHsnsAJEl/ZeptzzJD6yVDpYV9sf7bOPOY+/oUoEx6IewkfNbfW3tE RgYKlGAby9fukm6P28KZ6ZaGdo/gWqR8REuwQHEDXllcvNG39r2o5Wh46 S4rdtXl0yiWE+ghFq1YU4vjoVZM5DWcxziXoXtYK5GRXTswGHKGs3Wjye A==; X-IronPort-AV: E=McAfee;i="6500,9779,10475"; a="298183257" X-IronPort-AV: E=Sophos;i="5.93,328,1654585200"; d="scan'208";a="298183257" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2022 09:54:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,328,1654585200"; d="scan'208";a="760941825" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 19 Sep 2022 09:54:47 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1oaK2h-000271-0H; Mon, 19 Sep 2022 16:54:47 +0000 Date: Tue, 20 Sep 2022 00:54:05 +0800 From: kernel test robot To: Robin Murphy Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , Joerg Roedel Subject: [linux-next:master 4740/7934] drivers/iommu/ipmmu-vmsa.c:946:34: warning: unused variable 'ipmmu_of_ids' Message-ID: <202209200834.EFwaTsIj-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663606491; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=5o+i2LT13j2kWzl58YF0YtV5UVOBjuua0yiFNpCw8hU=; b=UO4yqIpnnpcEK9WiE/m+1x3P+rtclyRvffaX271JO88mlJZSqAG5Fq+5b/ePzu0tf+Cstp NvqUEqbSTf5mVQtQQrwChVJeHxbTbGCuu2uFNj1bcwJSeKCtX9OXC7qO8Nbc7dAecgo/zf 1RGidD6PahGvWfcMiTnpEj32HSR8ar0= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=coEWxSU8; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663606491; a=rsa-sha256; cv=none; b=ZmAFKZP650tsa4EXyB8mQmB+jeU7+j27LuhwvZV5aL3HXOE3JYb+zTfrufQZjPSmw4kyVz ldvbfdYjKG6tyavuzsnguCSzgY9x8TfhlfXCFuQnfKkpDsu4KK9AqfR0Qs+5QKc5tRCsfa hwpMn7At0pk5trW6fCEw0I+NE5BfGVc= X-Stat-Signature: fr3c8ufjy8ok4iy3kphuhmyobrw5ginq X-Rspamd-Queue-Id: CEA24180094 Authentication-Results: imf06.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=coEWxSU8; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-Rspamd-Server: rspam06 X-HE-Tag: 1663606490-72321 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 4c9ca5b1597e3222177ba2a94658f78fa5ef4f58 commit: b87d6d7fa405e23478f1e1dff6d66b5a533a5433 [4740/7934] iommu/ipmmu-vmsa: Clean up bus_set_iommu() config: s390-randconfig-r005-20220919 (https://download.01.org/0day-ci/archive/20220920/202209200834.EFwaTsIj-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) 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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b87d6d7fa405e23478f1e1dff6d66b5a533a5433 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 b87d6d7fa405e23478f1e1dff6d66b5a533a5433 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from drivers/iommu/ipmmu-vmsa.c:11: In file included from include/linux/dma-mapping.h:10: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:547: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:560: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 drivers/iommu/ipmmu-vmsa.c:11: In file included from include/linux/dma-mapping.h:10: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:573: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 drivers/iommu/ipmmu-vmsa.c:11: In file included from include/linux/dma-mapping.h:10: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:584: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:594: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:604: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:692: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:700: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:708: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:717: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:726: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:735:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ >> drivers/iommu/ipmmu-vmsa.c:946:34: warning: unused variable 'ipmmu_of_ids' [-Wunused-const-variable] static const struct of_device_id ipmmu_of_ids[] = { ^ 13 warnings generated. vim +/ipmmu_of_ids +946 drivers/iommu/ipmmu-vmsa.c 7a62ced8ebd0e1 Yoshihiro Shimoda 2021-09-07 945 33f3ac9b511612 Magnus Damm 2017-10-16 @946 static const struct of_device_id ipmmu_of_ids[] = { 33f3ac9b511612 Magnus Damm 2017-10-16 947 { 33f3ac9b511612 Magnus Damm 2017-10-16 948 .compatible = "renesas,ipmmu-vmsa", 33f3ac9b511612 Magnus Damm 2017-10-16 949 .data = &ipmmu_features_default, 60fb0083c9d43b Fabrizio Castro 2018-08-23 950 }, { 60fb0083c9d43b Fabrizio Castro 2018-08-23 951 .compatible = "renesas,ipmmu-r8a774a1", 60fb0083c9d43b Fabrizio Castro 2018-08-23 952 .data = &ipmmu_features_rcar_gen3, 757f26a3a9ec2c Biju Das 2019-09-27 953 }, { 757f26a3a9ec2c Biju Das 2019-09-27 954 .compatible = "renesas,ipmmu-r8a774b1", 757f26a3a9ec2c Biju Das 2019-09-27 955 .data = &ipmmu_features_rcar_gen3, b6d39cd82241bf Fabrizio Castro 2018-12-13 956 }, { b6d39cd82241bf Fabrizio Castro 2018-12-13 957 .compatible = "renesas,ipmmu-r8a774c0", b6d39cd82241bf Fabrizio Castro 2018-12-13 958 .data = &ipmmu_features_rcar_gen3, 4b2aa7a6f9b793 Marian-Cristian Rotariu 2020-07-14 959 }, { 4b2aa7a6f9b793 Marian-Cristian Rotariu 2020-07-14 960 .compatible = "renesas,ipmmu-r8a774e1", 4b2aa7a6f9b793 Marian-Cristian Rotariu 2020-07-14 961 .data = &ipmmu_features_rcar_gen3, 58b8e8bf409236 Magnus Damm 2017-10-16 962 }, { 58b8e8bf409236 Magnus Damm 2017-10-16 963 .compatible = "renesas,ipmmu-r8a7795", 0b8ac1409641e1 Magnus Damm 2018-06-14 964 .data = &ipmmu_features_rcar_gen3, 0b8ac1409641e1 Magnus Damm 2018-06-14 965 }, { 0b8ac1409641e1 Magnus Damm 2018-06-14 966 .compatible = "renesas,ipmmu-r8a7796", 0b8ac1409641e1 Magnus Damm 2018-06-14 967 .data = &ipmmu_features_rcar_gen3, 17fe1618163980 Yoshihiro Shimoda 2020-06-11 968 }, { 17fe1618163980 Yoshihiro Shimoda 2020-06-11 969 .compatible = "renesas,ipmmu-r8a77961", 17fe1618163980 Yoshihiro Shimoda 2020-06-11 970 .data = &ipmmu_features_rcar_gen3, 98dbffd39a6513 Jacopo Mondi 2018-06-14 971 }, { 98dbffd39a6513 Jacopo Mondi 2018-06-14 972 .compatible = "renesas,ipmmu-r8a77965", 98dbffd39a6513 Jacopo Mondi 2018-06-14 973 .data = &ipmmu_features_rcar_gen3, 3701c123e1c13c Simon Horman 2018-06-14 974 }, { 3701c123e1c13c Simon Horman 2018-06-14 975 .compatible = "renesas,ipmmu-r8a77970", 3701c123e1c13c Simon Horman 2018-06-14 976 .data = &ipmmu_features_rcar_gen3, 1cdeb52e5c245b Nikita Yushchenko 2021-09-23 977 }, { 1cdeb52e5c245b Nikita Yushchenko 2021-09-23 978 .compatible = "renesas,ipmmu-r8a77980", 1cdeb52e5c245b Nikita Yushchenko 2021-09-23 979 .data = &ipmmu_features_rcar_gen3, b0c32912150565 Hai Nguyen Pham 2018-10-17 980 }, { b0c32912150565 Hai Nguyen Pham 2018-10-17 981 .compatible = "renesas,ipmmu-r8a77990", b0c32912150565 Hai Nguyen Pham 2018-10-17 982 .data = &ipmmu_features_rcar_gen3, 3701c123e1c13c Simon Horman 2018-06-14 983 }, { 3701c123e1c13c Simon Horman 2018-06-14 984 .compatible = "renesas,ipmmu-r8a77995", 3701c123e1c13c Simon Horman 2018-06-14 985 .data = &ipmmu_features_rcar_gen3, 7a62ced8ebd0e1 Yoshihiro Shimoda 2021-09-07 986 }, { 7a62ced8ebd0e1 Yoshihiro Shimoda 2021-09-07 987 .compatible = "renesas,ipmmu-r8a779a0", ae684caf465b7d Yoshihiro Shimoda 2022-02-08 988 .data = &ipmmu_features_rcar_gen4, ae684caf465b7d Yoshihiro Shimoda 2022-02-08 989 }, { 9f7d09fe23a011 Yoshihiro Shimoda 2022-06-17 990 .compatible = "renesas,rcar-gen4-ipmmu-vmsa", ae684caf465b7d Yoshihiro Shimoda 2022-02-08 991 .data = &ipmmu_features_rcar_gen4, 33f3ac9b511612 Magnus Damm 2017-10-16 992 }, { 33f3ac9b511612 Magnus Damm 2017-10-16 993 /* Terminator */ 33f3ac9b511612 Magnus Damm 2017-10-16 994 }, 33f3ac9b511612 Magnus Damm 2017-10-16 995 }; 33f3ac9b511612 Magnus Damm 2017-10-16 996 :::::: The code at line 946 was first introduced by commit :::::: 33f3ac9b511612153bae1d328b0c84c0367cd08d iommu/ipmmu-vmsa: Introduce features, break out alias :::::: TO: Magnus Damm :::::: CC: Alex Williamson -- 0-DAY CI Kernel Test Service https://01.org/lkp