public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* Re: [PATCH RFC 5/9] mm/page_owner: add swap hooks
       [not found] <20251205231721.104505-6-mfo@igalia.com>
@ 2025-12-08  0:58 ` kernel test robot
  2025-12-08 13:39   ` Mauricio Faria de Oliveira
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2025-12-08  0:58 UTC (permalink / raw)
  To: Mauricio Faria de Oliveira; +Cc: llvm, oe-kbuild-all

Hi Mauricio,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on akpm-mm/mm-everything]

url:    https://github.com/intel-lab-lkp/linux/commits/Mauricio-Faria-de-Oliveira/mm-add-config-option-SWAP_PAGE_OWNER/20251206-072021
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/20251205231721.104505-6-mfo%40igalia.com
patch subject: [PATCH RFC 5/9] mm/page_owner: add swap hooks
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20251208/202512080831.Fl7k0uXy-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/20251208/202512080831.Fl7k0uXy-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512080831.Fl7k0uXy-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> mm/page_owner.c:593:7: warning: variable 'i' set but not used [-Wunused-but-set-variable]
     593 |         long i = 0, nr_pages = folio_nr_pages(folio);
         |              ^
   1 warning generated.


vim +/i +593 mm/page_owner.c

   584	
   585	/* Load the initial stack information from xarray to page_owner. */
   586	void __page_owner_swap_restore(swp_entry_t entry, struct folio *folio)
   587	{
   588		struct page_ext_iter iter;
   589		struct page_ext *page_ext;
   590		struct page_owner *page_owner;
   591		struct swap_page_owner *spo;
   592		depot_stack_handle_t handle = 0;
 > 593		long i = 0, nr_pages = folio_nr_pages(folio);
   594	
   595		rcu_read_lock();
   596		for_each_page_ext(&folio->page, nr_pages, page_ext, iter) {
   597			spo = (struct swap_page_owner *) load_swap_page_owner(entry);
   598			if (!spo) {
   599				rcu_read_unlock();
   600				return;
   601			}
   602	
   603			page_owner = get_page_owner(page_ext);
   604			copy_from_swap_page_owner(page_owner, spo);
   605	
   606			if (!handle)
   607				handle = page_owner->handle;
   608			i++;
   609			entry.val++;
   610		}
   611		rcu_read_unlock();
   612	
   613		/*
   614		 * Fix-up: decrement refcount of the swap-in allocation.
   615		 * It was incremented by the page-alloc at swap-in.
   616		 * (early_handle: see __reset_page_owner().)
   617		 *
   618		 * FIXME(mfo): 'dec_stack_record_count: refcount went to 0 ...'
   619		 * with stack_depot oops is hit occasionaly on tests or shutdown.
   620		 */
   621		if (handle != early_handle)
   622			dec_stack_record_count(handle, nr_pages);
   623	}
   624	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH RFC 5/9] mm/page_owner: add swap hooks
  2025-12-08  0:58 ` [PATCH RFC 5/9] mm/page_owner: add swap hooks kernel test robot
@ 2025-12-08 13:39   ` Mauricio Faria de Oliveira
  0 siblings, 0 replies; 2+ messages in thread
From: Mauricio Faria de Oliveira @ 2025-12-08 13:39 UTC (permalink / raw)
  To: kernel test robot; +Cc: llvm, oe-kbuild-all

On 2025-12-07 21:58, kernel test robot wrote:
>>> mm/page_owner.c:593:7: warning: variable 'i' set but not used [-Wunused-but-set-variable]
>      593 |         long i = 0, nr_pages = folio_nr_pages(folio);
>          |              ^
>    1 warning generated.

Queued for v2.

-- 
Mauricio

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-12-08 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20251205231721.104505-6-mfo@igalia.com>
2025-12-08  0:58 ` [PATCH RFC 5/9] mm/page_owner: add swap hooks kernel test robot
2025-12-08 13:39   ` Mauricio Faria de Oliveira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox