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 39E031A9FA8 for ; Tue, 9 Sep 2025 03:27:41 +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=1757388462; cv=none; b=oD1Mag1844tcqp2GXV2Ux5b2EnuKZsEoQQ7WmQefWqUdOJ3tKzszaSPTrxHJWUhKPxpGP3ft2Zb5RpVWh02mvAelOE8iUnn3wCo4BAe2YgfQ/rzMbiw5T4Gemj8GEKyTTs0lOZe6NZv9CUUDw5lQXX8+bq4aqUNaz/kCYYeYlyI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757388462; c=relaxed/simple; bh=eZ3BEh7dIzsbZ8wWnjIfjfaoUhrneuAaCSsHRmPz5F4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FVS3laf68yVkItZXAxLGoziN6AiaBZHP8AhJxLQFqgHBXj0Gq4mpe8jwE+zJmvFZiEd0H7UVHLbxE/HF3hXsQs7ShoxAxYC58nuTB+QQWV1RT7I3APuX6MUjAVL0wFkZi3OumETyiVx8f1UbMn7+284c9RsmR6q3qwsL1xyXFUQ= 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=lRmaqaRm; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lRmaqaRm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1757388461; x=1788924461; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=eZ3BEh7dIzsbZ8wWnjIfjfaoUhrneuAaCSsHRmPz5F4=; b=lRmaqaRmUnV8qAtyg31kFzHBfsstbkYMKAXnL96nrvJtDvEBPo2vPRVU WMg+gT7Gp6WOXMrArJn2nUZr4MJ2GVS0+4Vs7kGa1ycGys+ZRBwWtZZx3 RbI/V6iYHyca6ta+1TIvzuZECz3mGDm8/qOjltBw993d9UdDwelU/9Jtj qjdUOR26zoCb4q6Kabnv8qbBxoDq9YanbBBJqASdC0eXOvlpzD5P5DKlq ulMnkMWbZDHyvo6jpnbLXJT3DyqtQNYBR+wWU6LePElo2V5xJ6yBN8F// Y8+Y28bQ5szmq+yRAb1Efa5kYVeVErpCW6IFOqHpLD6W6ygTb4o5BmycZ Q==; X-CSE-ConnectionGUID: q+B2EyrsQkWQIwL0ICLS8A== X-CSE-MsgGUID: MDr1qC9bT4SU5PbWArwaWw== X-IronPort-AV: E=McAfee;i="6800,10657,11547"; a="63490252" X-IronPort-AV: E=Sophos;i="6.18,250,1751266800"; d="scan'208";a="63490252" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2025 20:27:40 -0700 X-CSE-ConnectionGUID: HleFm4PdSee9xcpbhiGQ4A== X-CSE-MsgGUID: PlIdZEEHR/ucSkVRcfSFIg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,250,1751266800"; d="scan'208";a="203746262" Received: from lkp-server01.sh.intel.com (HELO 114d98da2b6c) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 08 Sep 2025 20:27:32 -0700 Received: from kbuild by 114d98da2b6c with local (Exim 4.96) (envelope-from ) id 1uvp10-0004Nr-1K; Tue, 09 Sep 2025 03:27:30 +0000 Date: Tue, 9 Sep 2025 11:26:50 +0800 From: kernel test robot To: Lorenzo Stoakes , Andrew Morton Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Jonathan Corbet , Matthew Wilcox , Guo Ren , Thomas Bogendoerfer , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , "David S . Miller" , Andreas Larsson , Arnd Bergmann , Greg Kroah-Hartman , Dan Williams , Vishal Verma , Dave Jiang , Nicolas Pitre , Muchun Song , Oscar Salvador , David Hildenbrand , Konstantin Komarov , Baoquan He , Vivek Goyal , Dave Young , Tony Luck , Reinette Chatre , Dave Martin , James Morse Subject: Re: [PATCH 12/16] mm: update resctl to use mmap_prepare, mmap_complete, mmap_abort Message-ID: <202509091127.USj6agt3-lkp@intel.com> References: 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 In-Reply-To: Hi Lorenzo, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] [cannot apply to brauner-vfs/vfs.all char-misc/char-misc-testing char-misc/char-misc-next char-misc/char-misc-linus s390/features lwn/docs-next linus/master v6.17-rc5 next-20250908] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Lorenzo-Stoakes/mm-shmem-update-shmem-to-use-mmap_prepare/20250908-191516 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/d9e9407d2ee4119c83a704a80763e5344afb42f5.1757329751.git.lorenzo.stoakes%40oracle.com patch subject: [PATCH 12/16] mm: update resctl to use mmap_prepare, mmap_complete, mmap_abort config: i386-buildonly-randconfig-001-20250909 (https://download.01.org/0day-ci/archive/20250909/202509091127.USj6agt3-lkp@intel.com/config) compiler: gcc-13 (Debian 13.3.0-16) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250909/202509091127.USj6agt3-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/202509091127.USj6agt3-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/mm.h:1096, from include/linux/mman.h:6, from fs/resctrl/pseudo_lock.c:19: include/linux/huge_mm.h: In function 'split_huge_page_to_list_to_order': include/linux/huge_mm.h:591:23: warning: unused variable 'folio' [-Wunused-variable] 591 | struct folio *folio = page_folio(page); | ^~~~~ include/linux/huge_mm.h: In function 'split_huge_page': include/linux/huge_mm.h:598:23: warning: unused variable 'folio' [-Wunused-variable] 598 | struct folio *folio = page_folio(page); | ^~~~~ fs/resctrl/pseudo_lock.c: In function 'pseudo_lock_dev_mmap_complete': >> fs/resctrl/pseudo_lock.c:1006:23: warning: variable 'psize' set but not used [-Wunused-but-set-variable] 1006 | unsigned long psize; | ^~~~~ vim +/psize +1006 fs/resctrl/pseudo_lock.c 7168ae330e8105 James Morse 2025-05-15 997 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 998 static int pseudo_lock_dev_mmap_complete(struct file *filp, struct vm_area_struct *vma, 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 999 const void *context) 7168ae330e8105 James Morse 2025-05-15 1000 { 7168ae330e8105 James Morse 2025-05-15 1001 unsigned long vsize = vma->vm_end - vma->vm_start; 7168ae330e8105 James Morse 2025-05-15 1002 unsigned long off = vma->vm_pgoff << PAGE_SHIFT; 7168ae330e8105 James Morse 2025-05-15 1003 struct pseudo_lock_region *plr; 7168ae330e8105 James Morse 2025-05-15 1004 struct rdtgroup *rdtgrp; 7168ae330e8105 James Morse 2025-05-15 1005 unsigned long physical; 7168ae330e8105 James Morse 2025-05-15 @1006 unsigned long psize; 7168ae330e8105 James Morse 2025-05-15 1007 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1008 rdtgrp = filp->private_data; 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1009 plr = rdtgrp->plr; 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1010 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1011 physical = __pa(plr->kmem) >> PAGE_SHIFT; 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1012 psize = plr->size - off; 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1013 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1014 memset(plr->kmem + off, 0, vsize); 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1015 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1016 if (remap_pfn_range_complete(vma, vma->vm_start, physical + vma->vm_pgoff, 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1017 vsize, vma->vm_page_prot)) { 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1018 mutex_unlock(&rdtgroup_mutex); 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1019 return -EAGAIN; 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1020 } 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1021 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1022 mutex_unlock(&rdtgroup_mutex); 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1023 return 0; 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1024 } 5ef190013e9b31 Lorenzo Stoakes 2025-09-08 1025 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki