Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp793025rbb; Sun, 25 Feb 2024 04:27:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUa8FZvO/WNBkzN0PKf7MV+IBxuQOZtOu0qNp+qqLS/REaJICnWQHM1bUFwcndXygc77ETZ2Gk5NwffMyjs0jvTm4LDAgvs6fTZCcJnHw== X-Google-Smtp-Source: AGHT+IHNDBnNA49L070e9OteYys1b8CS5HlCYJAyNOwHjxyKOcfjplcJ7s15dIiJVMC83xLySZed X-Received: by 2002:a05:6214:451f:b0:68f:7334:c2f6 with SMTP id oo31-20020a056214451f00b0068f7334c2f6mr6369863qvb.31.1708864061657; Sun, 25 Feb 2024 04:27:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708864061; cv=pass; d=google.com; s=arc-20160816; b=1JhZA6ty9mijsll+VPn9G3VJxiRIFS7XO+IdQlrz57PMBIFafH+ZWouH2Zlu2lNarn f+du6KJWPWDw2POXkM4dUxakrVuklyhBSiugtOaXakxbEaXoP8nAbJIFAMaGtWH+QJSA 635BKooPB3XSI4RsXbDWSxNXydyX9qCbf2mr7I0gzwQB0vJRfaMMWjVPH1AcVT3JkPd3 ngqsXo/8zfqjqjw2zyFqwIms4ZNaeXNqUexMrUxHoxMvtDaAT4NBn692jfSAuoeHGb9/ gBDPPXpjqGZhQyatdv1YEuOdScuM61SP2fXdX2sgmUi1gRQQoluahxU3B2SXy052bFk/ u4Pw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=HcDXVCLq37ozkRmfZuXBKVEiaPPSIyQbF6YIt8s3OHw=; fh=MPGvVCooHKEkVEmGXqc10uUfq7X4KsZElv/eyo8eLgk=; b=EFE5FGMlsPGW4P6qMUM0tzB/zHQAize0FFss8ET1Yo3arV4EublRN9dfM5nAWVi3Rf uCIX8/OvmnnZmuEGCXzJCKtts3okuwuZhmB8K39E9Q8nBEWVO1QKdfsgDRcqt7zvA7GE EOuzzSlLZ/LBZlpUdTpANoxfC0DMbEvbQpM1AH7lafgVBI+zC0OCFc+axlN3Jb7fYjlJ Fi8f2JOhRXqKUHWMUp3zgd+Ub9UZF2Nng5qXjExU8b4HNcvLIAg5Lcr8CKTcdiiUkJQl SSc5cC9mmcNNjrz7AF8w0wvCJlAoHbpFThM0WRGqWRc7J4Oec1eyaUE+zTMG1nokptTh qn6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RgekoWYw; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-80061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y3-20020a0ce803000000b0068feccf8d45si2572359qvn.412.2024.02.25.04.27.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 04:27:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RgekoWYw; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-80061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4FC711C209D3 for ; Sun, 25 Feb 2024 12:27:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52F0811CBD; Sun, 25 Feb 2024 12:27:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RgekoWYw" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 71F7F10A3C for ; Sun, 25 Feb 2024 12:27:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708864053; cv=none; b=f78Pl4xUa2erel2rjcCg0szh41/Xo8olPGF953+SUS3LYtgAp+B8zHoGCbRuRTgeqHDD+YfyZm0X0j3waoW7CGpYs3Yc5TNrCaCMLqd3EHVmrB/0vNaLKWzzM8GSemuotajUrUmkr3W2AiLccZfT78omZVCzEHMLsk+V72KtIoM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708864053; c=relaxed/simple; bh=Ila8XHMHQS98EyyxVLd87jbwGM+TtuluuiUsbSskovY=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=oyFtdcE7b0FFfOun8CXsgkGfT253pRw4KliQSBZrUznV2r/oGYeiF3zl0TCnHcX/uAwPdnvMvC2uDl0m4uYhvMji3qky+jDuwX9WVmHZfvkQY6oJNnze6p7NhjY9uPx2idBV9QXE0J34DGtUDSc5j3nTQ66FCvyHVXN+5cq9qaQ= 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=RgekoWYw; arc=none smtp.client-ip=192.198.163.12 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708864051; x=1740400051; h=date:from:to:cc:subject:message-id:mime-version; bh=Ila8XHMHQS98EyyxVLd87jbwGM+TtuluuiUsbSskovY=; b=RgekoWYwhUIb5Klt1GkUWXBDXlYf8XpCN7YTzXRrwVYWJdUgocs/3lIR Cz7q+UYAWLlfTPJ3WlLjXE/WY5P9M3G55fhJxfW71ccWX0OkzoG/Wyd7X eRLlBJhHktSi+p1KGpPe6fjZ9BSuuDC0/OUXQ5321oHrRWm4zaqVFRUEx DFeiiOmxDlx2gR62r6aC8H6qMYbKqqtUWiPuAKLwqgTRTzjqmR2Vzs26d X/KThSMnsr4lBkGoOJF3cRKEIYk1AmMIy8E/1tFSHv5eTDJzenjuxHGvP NmyK8XvlESw01bqEfZADppLF0cYUvnHxgP+He51NZD14xBZzuo8lHcBfp g==; X-IronPort-AV: E=McAfee;i="6600,9927,10994"; a="6936087" X-IronPort-AV: E=Sophos;i="6.06,183,1705392000"; d="scan'208";a="6936087" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2024 04:27:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,183,1705392000"; d="scan'208";a="11096253" Received: from lkp-server02.sh.intel.com (HELO 3c78fa4d504c) ([10.239.97.151]) by orviesa003.jf.intel.com with ESMTP; 25 Feb 2024 04:27:29 -0800 Received: from kbuild by 3c78fa4d504c with local (Exim 4.96) (envelope-from ) id 1reDbK-0009WA-06; Sun, 25 Feb 2024 12:27:26 +0000 Date: Sun, 25 Feb 2024 20:27:15 +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-next20240223 1/1] mm/mmu_gather.c:23:39: warning: comparison of distinct pointer types ('struct mmu_gather_batch *' and 'struct mmu_gather_batch_hdr *') Message-ID: <202402252018.GR2eyulM-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/WFAMNAE-next20240223 head: b23fc9e6ff31f4ef9e8de5580963cf53579ef0d4 commit: b23fc9e6ff31f4ef9e8de5580963cf53579ef0d4 [1/1] treewide: Address -Wflexible-array-member-not-at-end warnings config: x86_64-randconfig-161-20240225 (https://download.01.org/0day-ci/archive/20240225/202402252018.GR2eyulM-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240225/202402252018.GR2eyulM-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/202402252018.GR2eyulM-lkp@intel.com/ All warnings (new ones prefixed by >>): >> mm/mmu_gather.c:23:39: warning: comparison of distinct pointer types ('struct mmu_gather_batch *' and 'struct mmu_gather_batch_hdr *') [-Wcompare-distinct-pointer-types] 23 | if (tlb->delayed_rmap && tlb->active != &tlb->local) | ~~~~~~~~~~~ ^ ~~~~~~~~~~~ mm/mmu_gather.c:148:13: error: incompatible pointer types assigning to 'struct mmu_gather_batch *' from 'struct mmu_gather_batch_hdr *' [-Werror,-Wincompatible-pointer-types] 148 | for (batch = &tlb->local; batch && batch->nr; batch = batch->next) | ^ ~~~~~~~~~~~ mm/mmu_gather.c:150:14: error: incompatible pointer types assigning to 'struct mmu_gather_batch *' from 'struct mmu_gather_batch_hdr *' [-Werror,-Wincompatible-pointer-types] 150 | tlb->active = &tlb->local; | ^ ~~~~~~~~~~~ mm/mmu_gather.c:387:18: error: incompatible pointer types assigning to 'struct mmu_gather_batch *' from 'struct mmu_gather_batch_hdr *' [-Werror,-Wincompatible-pointer-types] 387 | tlb->active = &tlb->local; | ^ ~~~~~~~~~~~ 1 warning and 3 errors generated. vim +23 mm/mmu_gather.c 952a31c9e6fa96 Martin Schwidefsky 2018-09-18 17 196d9d8bb71dea Peter Zijlstra 2018-09-03 18 static bool tlb_next_batch(struct mmu_gather *tlb) 196d9d8bb71dea Peter Zijlstra 2018-09-03 19 { 196d9d8bb71dea Peter Zijlstra 2018-09-03 20 struct mmu_gather_batch *batch; 196d9d8bb71dea Peter Zijlstra 2018-09-03 21 c47454823bd4e3 Linus Torvalds 2022-12-06 22 /* Limit batching if we have delayed rmaps pending */ c47454823bd4e3 Linus Torvalds 2022-12-06 @23 if (tlb->delayed_rmap && tlb->active != &tlb->local) 5df397dec7c4c0 Linus Torvalds 2022-11-09 24 return false; 5df397dec7c4c0 Linus Torvalds 2022-11-09 25 196d9d8bb71dea Peter Zijlstra 2018-09-03 26 batch = tlb->active; 196d9d8bb71dea Peter Zijlstra 2018-09-03 27 if (batch->next) { 196d9d8bb71dea Peter Zijlstra 2018-09-03 28 tlb->active = batch->next; 196d9d8bb71dea Peter Zijlstra 2018-09-03 29 return true; 196d9d8bb71dea Peter Zijlstra 2018-09-03 30 } 196d9d8bb71dea Peter Zijlstra 2018-09-03 31 196d9d8bb71dea Peter Zijlstra 2018-09-03 32 if (tlb->batch_count == MAX_GATHER_BATCH_COUNT) 196d9d8bb71dea Peter Zijlstra 2018-09-03 33 return false; 196d9d8bb71dea Peter Zijlstra 2018-09-03 34 dcc1be119071f0 Lorenzo Stoakes 2023-03-13 35 batch = (void *)__get_free_page(GFP_NOWAIT | __GFP_NOWARN); 196d9d8bb71dea Peter Zijlstra 2018-09-03 36 if (!batch) 196d9d8bb71dea Peter Zijlstra 2018-09-03 37 return false; 196d9d8bb71dea Peter Zijlstra 2018-09-03 38 196d9d8bb71dea Peter Zijlstra 2018-09-03 39 tlb->batch_count++; 196d9d8bb71dea Peter Zijlstra 2018-09-03 40 batch->next = NULL; 196d9d8bb71dea Peter Zijlstra 2018-09-03 41 batch->nr = 0; 196d9d8bb71dea Peter Zijlstra 2018-09-03 42 batch->max = MAX_GATHER_BATCH; 196d9d8bb71dea Peter Zijlstra 2018-09-03 43 196d9d8bb71dea Peter Zijlstra 2018-09-03 44 tlb->active->next = batch; 196d9d8bb71dea Peter Zijlstra 2018-09-03 45 tlb->active = batch; 196d9d8bb71dea Peter Zijlstra 2018-09-03 46 196d9d8bb71dea Peter Zijlstra 2018-09-03 47 return true; 196d9d8bb71dea Peter Zijlstra 2018-09-03 48 } 196d9d8bb71dea Peter Zijlstra 2018-09-03 49 :::::: The code at line 23 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