All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Mike Rapoport <rppt@kernel.org>
Subject: [rppt:mm_init/mem_init/v0.1 10/13] arch/s390/mm/init.c:76:15: warning: unused variable 'page'
Date: Tue, 4 Mar 2025 22:42:00 +0800	[thread overview]
Message-ID: <202503042241.6Jpkxc2E-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git mm_init/mem_init/v0.1
head:   55eb95380e481029d5e7b8b442b0fdfbe79a9d3e
commit: 8708f0a685326c02e1927a7a18aa78bd58bef8b1 [10/13] dev: s390: make setup_zero_pages() use memblock
config: s390-allnoconfig (https://download.01.org/0day-ci/archive/20250304/202503042241.6Jpkxc2E-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250304/202503042241.6Jpkxc2E-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/202503042241.6Jpkxc2E-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/s390/mm/init.c:76:15: warning: unused variable 'page' [-Wunused-variable]
           struct page *page;
                        ^
>> arch/s390/mm/init.c:77:6: warning: unused variable 'i' [-Wunused-variable]
           int i;
               ^
   2 warnings generated.


vim +/page +76 arch/s390/mm/init.c

^1da177e4c3f41 Linus Torvalds            2005-04-16  71  
0999f1193a51de Jiang Liu                 2013-04-29  72  static void __init setup_zero_pages(void)
238ec4efeee446 Martin Schwidefsky        2010-10-25  73  {
cb088e38aab4c7 Wei Yang                  2024-08-08  74  	unsigned long total_pages = memblock_estimated_nr_free_pages();
238ec4efeee446 Martin Schwidefsky        2010-10-25  75  	unsigned int order;
238ec4efeee446 Martin Schwidefsky        2010-10-25 @76  	struct page *page;
238ec4efeee446 Martin Schwidefsky        2010-10-25 @77  	int i;
238ec4efeee446 Martin Schwidefsky        2010-10-25  78  
c7e8b2c21c6a6f Martin Schwidefsky        2015-11-10  79  	/* Latest machines require a mapping granularity of 512KB */
1f6b83e5e4d3ae Martin Schwidefsky        2015-01-14  80  	order = 7;
c7e8b2c21c6a6f Martin Schwidefsky        2015-11-10  81  
7919e91b34316e Martin Schwidefsky        2013-02-28  82  	/* Limit number of empty zero pages for small memory sizes */
37db17c1008c84 Wei Yang                  2024-06-16  83  	while (order > 2 && (total_pages >> 10) < (1UL << order))
1f6b83e5e4d3ae Martin Schwidefsky        2015-01-14  84  		order--;
238ec4efeee446 Martin Schwidefsky        2010-10-25  85  
8708f0a685326c Mike Rapoport (Microsoft  2025-03-03  86) 	empty_zero_page = (unsigned long)memblock_alloc(PAGE_SIZE << order, order);
238ec4efeee446 Martin Schwidefsky        2010-10-25  87  	if (!empty_zero_page)
238ec4efeee446 Martin Schwidefsky        2010-10-25  88  		panic("Out of memory in setup_zero_pages");
238ec4efeee446 Martin Schwidefsky        2010-10-25  89  
0999f1193a51de Jiang Liu                 2013-04-29  90  	zero_page_mask = ((PAGE_SIZE << order) - 1) & PAGE_MASK;
238ec4efeee446 Martin Schwidefsky        2010-10-25  91  }
238ec4efeee446 Martin Schwidefsky        2010-10-25  92  

:::::: The code at line 76 was first introduced by commit
:::::: 238ec4efeee4461d5cff2ed3e5a15a3ab850959b [S390] zero page cache synonyms

:::::: TO: Martin Schwidefsky <schwidefsky@de.ibm.com>
:::::: CC: Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>

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

                 reply	other threads:[~2025-03-04 14:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202503042241.6Jpkxc2E-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rppt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.