All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [arm-integrator:kasan 6/6] mm/kasan/init.c:318:9: warning: variable 'pud' set but not used
Date: Fri, 02 Oct 2020 06:25:46 +0800	[thread overview]
Message-ID: <202010020641.i181Kexx-lkp@intel.com> (raw)

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

Hi Andrey,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kasan
head:   fb5e749f76335be35afcb3ea74ad3fa0926900db
commit: fb5e749f76335be35afcb3ea74ad3fa0926900db [6/6] ARM: Enable KASan for ARM
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-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/linusw/linux-integrator.git/commit/?id=fb5e749f76335be35afcb3ea74ad3fa0926900db
        git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
        git fetch --no-tags arm-integrator kasan
        git checkout fb5e749f76335be35afcb3ea74ad3fa0926900db
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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 >>):

   mm/kasan/init.c: In function 'kasan_free_pud':
>> mm/kasan/init.c:318:9: warning: variable 'pud' set but not used [-Wunused-but-set-variable]
     318 |  pud_t *pud;
         |         ^~~

vim +/pud +318 mm/kasan/init.c

0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  315  
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  316  static void kasan_free_pud(pud_t *pud_start, p4d_t *p4d)
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  317  {
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17 @318  	pud_t *pud;
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  319  	int i;
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  320  
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  321  	for (i = 0; i < PTRS_PER_PUD; i++) {
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  322  		pud = pud_start + i;
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  323  		if (!pud_none(*pud))
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  324  			return;
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  325  	}
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  326  
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  327  	pud_free(&init_mm, (pud_t *)page_to_virt(p4d_page(*p4d)));
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  328  	p4d_clear(p4d);
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  329  }
0207df4fa1a869 mm/kasan/kasan_init.c Andrey Ryabinin 2018-08-17  330  

:::::: The code@line 318 was first introduced by commit
:::::: 0207df4fa1a869281ddbf72db6203dbf036b3e1a kernel/memremap, kasan: make ZONE_DEVICE with work with KASAN

:::::: TO: Andrey Ryabinin <aryabinin@virtuozzo.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

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

             reply	other threads:[~2020-10-01 22:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-01 22:25 kernel test robot [this message]
2020-10-02  9:19 ` [arm-integrator:kasan 6/6] mm/kasan/init.c:318:9: warning: variable 'pud' set but not used Linus Walleij
2020-10-21 15:02   ` Xia, Hui

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=202010020641.i181Kexx-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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.