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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62FF4C433EF for ; Fri, 20 May 2022 06:33:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345873AbiETGdX (ORCPT ); Fri, 20 May 2022 02:33:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235315AbiETGdV (ORCPT ); Fri, 20 May 2022 02:33:21 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98E0C14CA03 for ; Thu, 19 May 2022 23:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653028400; x=1684564400; h=date:from:to:cc:subject:message-id:mime-version; bh=kTIPLuMMhYIb9gAUdTsnisHkLhqTeVG36MB99AR/ruo=; b=P3lFH245Lv0mP/OwwdRbYQIWO0+qO+uj8Txa5W4/YReVIpgT06fwpazp 6M3u3BCRx6TTZY0kgsmnru3tAc6yRSAncuHy+/NrOKL+9VbyKECwHcvdV EN32sqq+THN/fSj0piAuTbNj1CfYTI/fTas2RP1Xm9NMvk1ygHWK5cF4R We0Hi4jDDZt/r9na04mfNnP85gvMHAXA18CIegxE3JWxlu74IBJLxNRdN hgmcf7mCHnZnzZkj91KhL06yVPFeVgMRoWiL8mqaJ8uKYybo/JIQIqA3A zwJLGbeFO+29cMqrCSBaziVFOUjZLg86yrgbC/Np/mt9uk8FNC35H5dUu A==; X-IronPort-AV: E=McAfee;i="6400,9594,10352"; a="253024365" X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="253024365" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2022 23:33:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="818398254" Received: from lkp-server02.sh.intel.com (HELO 242b25809ac7) ([10.239.97.151]) by fmsmga006.fm.intel.com with ESMTP; 19 May 2022 23:33:19 -0700 Received: from kbuild by 242b25809ac7 with local (Exim 4.95) (envelope-from ) id 1nrwCM-0004Mq-J9; Fri, 20 May 2022 06:33:18 +0000 Date: Fri, 20 May 2022 14:32:43 +0800 From: kernel test robot To: Anup Patel Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [avpatel:riscv_iommu_dtbind_v1 30/37] include/linux/stddef.h:8:14: warning: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast Message-ID: <202205201424.VySxQhcM-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://github.com/avpatel/linux.git riscv_iommu_dtbind_v1 head: faeb35c454e84e3b0cc70389d5ae25a84416dad6 commit: 2e1468f8a505d8b65cf6e3e77348690d9b167923 [30/37] RISC-V: KVM: Add G-stage ioremap() and iounmap() functions config: arm64-defconfig (https://download.01.org/0day-ci/archive/20220520/202205201424.VySxQhcM-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 11.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/avpatel/linux/commit/2e1468f8a505d8b65cf6e3e77348690d9b167923 git remote add avpatel https://github.com/avpatel/linux.git git fetch --no-tags avpatel riscv_iommu_dtbind_v1 git checkout 2e1468f8a505d8b65cf6e3e77348690d9b167923 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/uapi/linux/posix_types.h:5, from include/uapi/linux/types.h:14, from include/linux/types.h:6, from include/linux/kasan-checks.h:5, from include/asm-generic/rwonce.h:26, from arch/arm64/include/asm/rwonce.h:71, from include/linux/compiler.h:248, from include/asm-generic/bug.h:5, from arch/arm64/include/asm/bug.h:26, from include/linux/bug.h:5, from include/linux/mmdebug.h:5, from include/linux/mm.h:6, from include/linux/mman.h:5, from arch/arm64/kvm/mmu.c:7: arch/arm64/kvm/mmu.c: In function 'kvm_phys_addr_ioremap': >> include/linux/stddef.h:8:14: warning: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 8 | #define NULL ((void *)0) | ^ arch/arm64/kvm/mmu.c:767:62: note: in expansion of macro 'NULL' 767 | struct kvm_mmu_memory_cache cache = { 0, __GFP_ZERO, NULL, }; | ^~~~ include/linux/stddef.h:8:14: note: (near initialization for 'cache.gfp_atomic') 8 | #define NULL ((void *)0) | ^ arch/arm64/kvm/mmu.c:767:62: note: in expansion of macro 'NULL' 767 | struct kvm_mmu_memory_cache cache = { 0, __GFP_ZERO, NULL, }; | ^~~~ vim +8 include/linux/stddef.h ^1da177e4c3f41 Linus Torvalds 2005-04-16 6 ^1da177e4c3f41 Linus Torvalds 2005-04-16 7 #undef NULL ^1da177e4c3f41 Linus Torvalds 2005-04-16 @8 #define NULL ((void *)0) 6e218287432472 Richard Knutsson 2006-09-30 9 :::::: The code at line 8 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://01.org/lkp