From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 541854A3E for ; Thu, 30 Apr 2026 00:07:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777507634; cv=none; b=C64miMzRBSChVAGY8X0nJfFYRqUe/wrANZv2GMh4Fo/NT4zDMR0yuehcmzA5q4iw7B67Hn7JwXyx3x57gzGLFE6/NEDZZljH6ST0yzAUfaxLuDS8O+D0zT8mzOY9Lu4riRpfOsn/kTLT7s+ir/E5JhDwevRMSaL9CMuVR9wFhdw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777507634; c=relaxed/simple; bh=kUuPK2Upzb3skF4hDU00RTgPlhwNtBKSeVP5pUjhA7Y=; h=Date:From:To:Cc:Subject:Message-ID; b=fFM661zidQvOD7qVIWccnHuxW+sQyrsiqIE4h2YO2Pw4pnI7GOAg3YptlU07tVs3l/FjNShXRXc6xi67yb45/xMXCuzfQeu7gulaoZbjZIcLoF5mRriAbfM9mbUjqSZ1mbUlwFj3C+RAHHv7fc+NyESFBxhV9cAZXkLWvCH4XuM= 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=HXPcZGer; arc=none smtp.client-ip=192.198.163.8 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="HXPcZGer" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1777507633; x=1809043633; h=date:from:to:cc:subject:message-id; bh=kUuPK2Upzb3skF4hDU00RTgPlhwNtBKSeVP5pUjhA7Y=; b=HXPcZGerwv3XNE6I56rC5mrp9NU8GzvEf0cZdRobcG0NkK+3WkNgVUi5 qgLEZajGn2dVfp8LzeRIIdhhbTrfuabcMYJhK0OkTQGmiTd3bBtQhnrgg JE1mL4irNtyrWgmseI6vPkTZ8OZ7XVt3hyu5NOxAbrtRDKwPa2tyqufHD ntSVvybk7/e7ais3rmS48omWf0fVjB5ZnqF/fwIvmn8BtljQ7oJ+y8NsQ i7IFLHN8l4Xrosfvqdowc9vZUR05RFp8CUxL+aodLrHPSVP5csuYsP6CY S4y8NMQHAx2pi8wlYrBLz4tnePQ4CisaAoUseNioGaA1eSEXEKFUPfWh2 g==; X-CSE-ConnectionGUID: 65WBYpKwRh6JdoaRPbHZfQ== X-CSE-MsgGUID: OMLxbPIpTHWYY0xxU5VZmA== X-IronPort-AV: E=McAfee;i="6800,10657,11771"; a="96014450" X-IronPort-AV: E=Sophos;i="6.23,207,1770624000"; d="scan'208";a="96014450" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2026 17:07:13 -0700 X-CSE-ConnectionGUID: Ur9IlTKZSCS8yOb0IRsjGA== X-CSE-MsgGUID: v8eTJKtzSmG1wUFsOq9hnw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,207,1770624000"; d="scan'208";a="239402354" Received: from lkp-server01.sh.intel.com (HELO aa799cca880d) ([10.239.97.150]) by fmviesa005.fm.intel.com with ESMTP; 29 Apr 2026 17:07:11 -0700 Received: from kbuild by aa799cca880d with local (Exim 4.98.2) (envelope-from ) id 1wIEvs-00000000Bgg-3aB9; Thu, 30 Apr 2026 00:07:08 +0000 Date: Thu, 30 Apr 2026 08:06:20 +0800 From: kernel test robot To: "Gustavo A. R. Silva" Cc: oe-kbuild-all@lists.linux.dev, "Gustavo A. R. Silva" , LKML Subject: [gustavoars:testing/wfamnae-next20260407 13/19] mm/mmu_gather.c:90:25: sparse: sparse: incompatible types in comparison expression (different base types): Message-ID: <202604300741.UELmFWex-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20260407 head: 9505f43094e1efb72854c166160fb7666517f07a commit: c9b77f29ae08cb9afc5965f0d31fc8e5d3d44497 [13/19] mm/mmu_gather: avoid dozens of -Wflex-array-member-not-at-end warnings config: sparc64-randconfig-r112-20260430 (https://download.01.org/0day-ci/archive/20260430/202604300741.UELmFWex-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260430/202604300741.UELmFWex-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/202604300741.UELmFWex-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> mm/mmu_gather.c:90:25: sparse: sparse: incompatible types in comparison expression (different base types): mm/mmu_gather.c:90:25: sparse: struct mmu_gather_batch * mm/mmu_gather.c:90:25: sparse: struct mmu_gather_batch_hdr * vim +90 mm/mmu_gather.c c47454823bd4e3 Linus Torvalds 2022-12-06 73 5df397dec7c4c0 Linus Torvalds 2022-11-09 74 /** 5df397dec7c4c0 Linus Torvalds 2022-11-09 75 * tlb_flush_rmaps - do pending rmap removals after we have flushed the TLB 5df397dec7c4c0 Linus Torvalds 2022-11-09 76 * @tlb: the current mmu_gather 19134bc23500a0 Matthew Wilcox (Oracle 2023-08-18 77) * @vma: The memory area from which the pages are being removed. 5df397dec7c4c0 Linus Torvalds 2022-11-09 78 * 5df397dec7c4c0 Linus Torvalds 2022-11-09 79 * Note that because of how tlb_next_batch() above works, we will c47454823bd4e3 Linus Torvalds 2022-12-06 80 * never start multiple new batches with pending delayed rmaps, so c47454823bd4e3 Linus Torvalds 2022-12-06 81 * we only need to walk through the current active batch and the c47454823bd4e3 Linus Torvalds 2022-12-06 82 * original local one. 5df397dec7c4c0 Linus Torvalds 2022-11-09 83 */ 5df397dec7c4c0 Linus Torvalds 2022-11-09 84 void tlb_flush_rmaps(struct mmu_gather *tlb, struct vm_area_struct *vma) 5df397dec7c4c0 Linus Torvalds 2022-11-09 85 { f036c8184f8b67 Alexander Gordeev 2022-11-16 86 if (!tlb->delayed_rmap) f036c8184f8b67 Alexander Gordeev 2022-11-16 87 return; f036c8184f8b67 Alexander Gordeev 2022-11-16 88 c9b77f29ae08cb Gustavo A. R. Silva 2026-03-10 89 tlb_flush_rmap_batch(MMU_GATHER_BATCH_FROM_HDR(&tlb->local), vma); c47454823bd4e3 Linus Torvalds 2022-12-06 @90 if (tlb->active != &tlb->local) c47454823bd4e3 Linus Torvalds 2022-12-06 91 tlb_flush_rmap_batch(tlb->active, vma); 5df397dec7c4c0 Linus Torvalds 2022-11-09 92 tlb->delayed_rmap = 0; 5df397dec7c4c0 Linus Torvalds 2022-11-09 93 } 5df397dec7c4c0 Linus Torvalds 2022-11-09 94 #endif 5df397dec7c4c0 Linus Torvalds 2022-11-09 95 :::::: The code at line 90 was first introduced by commit :::::: c47454823bd4e3ab34ed3f795afd4479ab938a3f mm: mmu_gather: allow more than one batch of delayed rmaps :::::: TO: Linus Torvalds :::::: CC: Andrew Morton -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki