From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 91475382383 for ; Wed, 29 Apr 2026 18:08:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777486101; cv=none; b=hFM+m0Yb9H2gaJTQ1NeRv9cb/5rJswN0bWMMOVQuXWTHDRorXF0XZNCruFbQHz17f8pRf+JQuDxGPCae3FrKheQtVBtuWr3wT1Ur/sg41eb7U6URTIrKidEA083r/i65DCJb2L6n4QfPUcT/DciRFTpGUF9chcMPIsZf+MDbKjk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777486101; c=relaxed/simple; bh=C3ABFjD6RgNlYEfmnMOiTrz40n4+AjVIYLul8owY5tE=; h=Date:From:To:Cc:Subject:Message-ID; b=uPJWopOP4O6V/KNbE6F/M8H+4l1KLhIEmiNPyOg8QOd6f5RadlBelahTbRuKq2U5z+WL3xnrN3cb1WkSIuM9Wjl02qf7mKrn0jmi0epowTwafcNxvy1y0wAzK9g7GZyTthdm3kAHPSsQc0kMkGFn4TK17nYAXR0bxoBhMV5s/90= 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=hGiMsp86; arc=none smtp.client-ip=192.198.163.19 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="hGiMsp86" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1777486100; x=1809022100; h=date:from:to:cc:subject:message-id; bh=C3ABFjD6RgNlYEfmnMOiTrz40n4+AjVIYLul8owY5tE=; b=hGiMsp86zKyHdv6z2WkyydkUgeYZsuKGcrRDjZoX1Xvb6ufzALD0/t1G 2jUkfNO23YGR6jkx6PCvFHYYO14CxCzUTg4vg9pFOjT1+DlPEeX9zkci+ tfRrKVrj/bHYexQu8mfgO2R/9ChY0LC/FtVf06pkO4pHT55whZy4tbae/ JIAYY8r5mIp8FbPshW2juirOINEaWXGYYCEJVxhoI0gkCc/JtMeTDIneg U5w4WM08pxzI13lD7LTqq/E5q0ZxKEU2uXv0F7lRXDFbmmij6x1kKtbeB 3gVVVx6APjV69wxpiKwm5ktjq/J79MRdV8frkEWB60PjamJ0JQunEIM4j w==; X-CSE-ConnectionGUID: 1c4FZb4ASGq5sUprLrFAhg== X-CSE-MsgGUID: PMgsCEuCTo6e7e/f27TMUg== X-IronPort-AV: E=McAfee;i="6800,10657,11771"; a="77451454" X-IronPort-AV: E=Sophos;i="6.23,206,1770624000"; d="scan'208";a="77451454" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2026 11:08:19 -0700 X-CSE-ConnectionGUID: FtJe4HP0Rd2zaGHAtKB9/g== X-CSE-MsgGUID: jYFQv4ZtTHCZhyjMJ4iSOg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,206,1770624000"; d="scan'208";a="234219750" Received: from lkp-server01.sh.intel.com (HELO aa799cca880d) ([10.239.97.150]) by orviesa008.jf.intel.com with ESMTP; 29 Apr 2026 11:08:18 -0700 Received: from kbuild by aa799cca880d with local (Exim 4.98.2) (envelope-from ) id 1wI9KY-00000000BLM-3y3x; Wed, 29 Apr 2026 18:08:14 +0000 Date: Thu, 30 Apr 2026 02:07:32 +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-next20260408 12/20] mm/mmu_gather.c:90:18: warning: comparison of distinct pointer types ('struct mmu_gather_batch *' and 'struct mmu_gather_batch_hdr *') Message-ID: <202604300202.KAqBB6Qb-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-next20260408 head: 6d701ba0454b8785a162a4ed3af4a26b4bd592e9 commit: 8f75bd4b2651d0fc1d9335ce0c94748cabf7d16f [12/20] mm/mmu_gather: avoid dozens of -Wflex-array-member-not-at-end warnings config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20260430/202604300202.KAqBB6Qb-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260430/202604300202.KAqBB6Qb-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/202604300202.KAqBB6Qb-lkp@intel.com/ All warnings (new ones prefixed by >>): >> mm/mmu_gather.c:90:18: warning: comparison of distinct pointer types ('struct mmu_gather_batch *' and 'struct mmu_gather_batch_hdr *') [-Wcompare-distinct-pointer-types] 90 | if (tlb->active != &tlb->local) | ~~~~~~~~~~~ ^ ~~~~~~~~~~~ 1 warning generated. 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 8f75bd4b2651d0 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