linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: David Hildenbrand <david@redhat.com>
Cc: kbuild-all@lists.01.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Oscar Salvador <osalvador@suse.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-stable-rc:linux-4.19.y 7414/9999] mm/memory_hotplug.c:482:16: warning: variable 'start_pfn' set but not used
Date: Sun, 21 Mar 2021 04:18:15 +0800	[thread overview]
Message-ID: <202103210402.E4YCQqhX-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3905 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head:   e864f43593ccf9180c61738abdf1c1dde091367d
commit: 86834898d5a5e5aef9ae6d285201f2d99a4eb300 [7414/9999] mm/memory_hotplug: shrink zones when offlining memory
config: ia64-randconfig-r031-20210318 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=86834898d5a5e5aef9ae6d285201f2d99a4eb300
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc linux-4.19.y
        git checkout 86834898d5a5e5aef9ae6d285201f2d99a4eb300
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from arch/ia64/include/asm/pgtable.h:154,
                    from include/linux/memremap.h:7,
                    from include/linux/mm.h:27,
                    from mm/memory_hotplug.c:8:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     137 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                         ^~~~~~~
   mm/memory_hotplug.c: In function '__remove_section':
>> mm/memory_hotplug.c:482:16: warning: variable 'start_pfn' set but not used [-Wunused-but-set-variable]
     482 |  unsigned long start_pfn;
         |                ^~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for FRAME_POINTER
   Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
   Selected by
   - FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND && !ARC && !X86


vim +/start_pfn +482 mm/memory_hotplug.c

815121d2b5cd56 Yasuaki Ishimatsu 2013-02-22  478  
86834898d5a5e5 David Hildenbrand 2020-01-28  479  static void __remove_section(struct mem_section *ms, unsigned long map_offset,
efaa8fb877a081 David Hildenbrand 2020-01-28  480  			     struct vmem_altmap *altmap)
ea01ea937dcae2 Badari Pulavarty  2008-04-28  481  {
815121d2b5cd56 Yasuaki Ishimatsu 2013-02-22 @482  	unsigned long start_pfn;
815121d2b5cd56 Yasuaki Ishimatsu 2013-02-22  483  	int scn_nr;
ea01ea937dcae2 Badari Pulavarty  2008-04-28  484  
efaa8fb877a081 David Hildenbrand 2020-01-28  485  	if (WARN_ON_ONCE(!valid_section(ms)))
efaa8fb877a081 David Hildenbrand 2020-01-28  486  		return;
ea01ea937dcae2 Badari Pulavarty  2008-04-28  487  
815121d2b5cd56 Yasuaki Ishimatsu 2013-02-22  488  	scn_nr = __section_nr(ms);
1dd2bfc86818dd YASUAKI ISHIMATSU 2017-10-03  489  	start_pfn = section_nr_to_pfn((unsigned long)scn_nr);
815121d2b5cd56 Yasuaki Ishimatsu 2013-02-22  490  
dc6be8597c8c29 David Hildenbrand 2020-01-28  491  	sparse_remove_one_section(ms, map_offset, altmap);
ea01ea937dcae2 Badari Pulavarty  2008-04-28  492  }
ea01ea937dcae2 Badari Pulavarty  2008-04-28  493  

:::::: The code at line 482 was first introduced by commit
:::::: 815121d2b5cd56f1757d4468dc3abadd06a0ed6b memory_hotplug: clear zone when removing the memory

:::::: TO: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28048 bytes --]

                 reply	other threads:[~2021-03-20 20:18 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=202103210402.E4YCQqhX-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@redhat.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=osalvador@suse.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox