From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B927A50 for ; Mon, 2 Dec 2024 05:18:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733116724; cv=none; b=afw4lg8NmLe6xCi5iMHp6dGIz8szXcBzJBnJlMVdrXyxd8TxDSks0hU9pje01KQfJ/P00k0VAcbyytSHb80lCyD9q14mPBePOJ1JLQ36ru7IREvmf2WMizUXeMvNhmHpbCvPzkShzDjWaqvFUseaiVxpUskV6h9ubtYybPtQbAw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733116724; c=relaxed/simple; bh=F86biJbl+/WQfOZfbXWoP3U3NSVgPocY5z06UdIyWwE=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=t8DKexWXuE3lwEFj3UEKayhy0fNB/4bXeX6FH/kTuQu8vsJxVF+xMQHCPcNe9GROjbP+tZxhKnwfgiO5Iz3whbet4zWm2XdYjmLBrrrAJteA5eiqKmu97v3HcDgiMBrFGx+Tt8mvuotuN1eN79gmzgo9aKbnh1u3LgLlvqNhV4Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MxrW77OW; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MxrW77OW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1733116722; x=1764652722; h=date:from:to:cc:subject:message-id:mime-version; bh=F86biJbl+/WQfOZfbXWoP3U3NSVgPocY5z06UdIyWwE=; b=MxrW77OW+F7QFIGbvOnIsFfUqJaAU+tYgSSnr2Jq92We500BPefq6Prg cUWud2+AkYCvrJtfHuIfjoeYtxSGCg1dhTr+T3a33BE7eIXrtWY8ACPEp ic0diJQc3JeElX/x64xrhXy3Vf3wtqBPdWfr9mOz+hi9+JDUcSVJtfe8E 3/3yLsV+Spk5wPbZFOtPTKTo3/rd7hIwPSydXmUhCh6n2yqE8gJYQDTqk wShamkxEpk4jW4RTfGpeH1OmDlWNq8oQle43iDCoiW0GCuOFpWMEDkJAH Q7LbI9BykzMk673LcSww0cN4sQHLbfkyCEH1Q0VGjJmveJKyH3SUoeWn3 A==; X-CSE-ConnectionGUID: QkbGxv+ZRVWWf0BEHIFfSg== X-CSE-MsgGUID: spO1CAVFTHigmecYPaF3PQ== X-IronPort-AV: E=McAfee;i="6700,10204,11273"; a="33013127" X-IronPort-AV: E=Sophos;i="6.12,201,1728975600"; d="scan'208";a="33013127" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2024 21:18:41 -0800 X-CSE-ConnectionGUID: IAVbfQOnS76AtU0XsYRLKA== X-CSE-MsgGUID: rC6E8V5LRf2lMowkeo4bHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,201,1728975600"; d="scan'208";a="93474272" Received: from lkp-server02.sh.intel.com (HELO 36a1563c48ff) ([10.239.97.151]) by fmviesa009.fm.intel.com with ESMTP; 01 Dec 2024 21:18:39 -0800 Received: from kbuild by 36a1563c48ff with local (Exim 4.96) (envelope-from ) id 1tHypR-00026T-1K; Mon, 02 Dec 2024 05:18:37 +0000 Date: Mon, 2 Dec 2024 13:18:31 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android15-6.6 10091/20103] arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:338:17: error: no member named 'end' in 'struct iommu_iotlb_gather' Message-ID: <202412021305.4e1AEJod-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Mostafa, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android15-6.6 head: d66e9166bfa175691dd2d0ad7f65c9fec54aa520 commit: c220ef36a11e4fe05cc1e583f8e24d2a61541a87 [10091/20103] ANDROID: KVM: arm64: iommu: support iommu_iotlb_gather config: arm64-randconfig-004-20241111 (https://download.01.org/0day-ci/archive/20241202/202412021305.4e1AEJod-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241202/202412021305.4e1AEJod-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/202412021305.4e1AEJod-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:8: In file included from arch/arm64/include/asm/kvm_hyp.h:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:2180: include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 509 | item]; | ~~~~ include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 516 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 528 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 537 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:85:5: warning: no previous prototype for function 'kvm_iommu_refill' [-Wmissing-prototypes] 85 | int kvm_iommu_refill(struct kvm_hyp_memcache *host_mc) | ^ arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:85:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 85 | int kvm_iommu_refill(struct kvm_hyp_memcache *host_mc) | ^ | static arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:90:6: warning: no previous prototype for function 'kvm_iommu_reclaim' [-Wmissing-prototypes] 90 | void kvm_iommu_reclaim(struct kvm_hyp_memcache *host_mc, int target) | ^ arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:90:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 90 | void kvm_iommu_reclaim(struct kvm_hyp_memcache *host_mc, int target) | ^ | static arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:95:5: warning: no previous prototype for function 'kvm_iommu_reclaimable' [-Wmissing-prototypes] 95 | int kvm_iommu_reclaimable(void) | ^ arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:95:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 95 | int kvm_iommu_reclaimable(void) | ^ | static >> arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:338:17: error: no member named 'end' in 'struct iommu_iotlb_gather' 338 | return gather->end != 0 && | ~~~~~~ ^ >> arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:339:22: error: no member named 'start' in 'struct iommu_iotlb_gather' 339 | (end + 1 < gather->start || start > gather->end + 1); | ~~~~~~ ^ arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:339:47: error: no member named 'end' in 'struct iommu_iotlb_gather' 339 | (end + 1 < gather->start || start > gather->end + 1); | ~~~~~~ ^ arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:347:14: error: no member named 'start' in 'struct iommu_iotlb_gather' 347 | if (gather->start > iova) | ~~~~~~ ^ arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:348:11: error: no member named 'start' in 'struct iommu_iotlb_gather' 348 | gather->start = iova; | ~~~~~~ ^ arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:349:14: error: no member named 'end' in 'struct iommu_iotlb_gather' 349 | if (gather->end < end) | ~~~~~~ ^ arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:350:11: error: no member named 'end' in 'struct iommu_iotlb_gather' 350 | gather->end = end; | ~~~~~~ ^ >> arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:358:15: error: no member named 'pgsize' in 'struct iommu_iotlb_gather' 358 | if ((gather->pgsize && gather->pgsize != size) || | ~~~~~~ ^ arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:358:33: error: no member named 'pgsize' in 'struct iommu_iotlb_gather' 358 | if ((gather->pgsize && gather->pgsize != size) || | ~~~~~~ ^ arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:362:10: error: no member named 'pgsize' in 'struct iommu_iotlb_gather' 362 | gather->pgsize = size; | ~~~~~~ ^ 8 warnings and 10 errors generated. vim +338 arch/arm64/kvm/hyp/nvhe/iommu/iommu.c 332 333 static bool kvm_iommu_iotlb_gather_is_disjoint(struct iommu_iotlb_gather *gather, 334 unsigned long iova, size_t size) 335 { 336 unsigned long start = iova, end = start + size - 1; 337 > 338 return gather->end != 0 && > 339 (end + 1 < gather->start || start > gather->end + 1); 340 } 341 342 static inline void kvm_iommu_iotlb_gather_add_range(struct iommu_iotlb_gather *gather, 343 unsigned long iova, size_t size) 344 { 345 unsigned long end = iova + size - 1; 346 347 if (gather->start > iova) > 348 gather->start = iova; 349 if (gather->end < end) 350 gather->end = end; 351 } 352 353 void kvm_iommu_iotlb_gather_add_page(void *cookie, 354 struct iommu_iotlb_gather *gather, 355 unsigned long iova, 356 size_t size) 357 { > 358 if ((gather->pgsize && gather->pgsize != size) || 359 kvm_iommu_iotlb_gather_is_disjoint(gather, iova, size)) 360 kvm_iommu_iotlb_sync(cookie, gather); 361 362 gather->pgsize = size; 363 kvm_iommu_iotlb_gather_add_range(gather, iova, size); 364 } 365 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki