All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [rppt:memblock/iterators-cleanup/v3 12/17] arch/powerpc/mm/kasan/kasan_init_32.c:150:3: error: 'ret' undeclared; did you mean
Date: Mon, 10 Aug 2020 03:27:36 +0800	[thread overview]
Message-ID: <202008100334.AS9dMDKN%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git memblock/iterators-cleanup/v3
head:   f0d593460d044672ca2ea065efc283e30dd23ef1
commit: 01b2e0673f21479222dd0f387b5b73ec037d8096 [12/17] arch, drivers: replace for_each_membock() with for_each_mem_range()
config: powerpc64-randconfig-r026-20200810 (attached as .config)
compiler: powerpc-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
        git checkout 01b2e0673f21479222dd0f387b5b73ec037d8096
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64 

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

All errors (new ones prefixed by >>):

   arch/powerpc/mm/kasan/kasan_init_32.c: In function 'kasan_init':
>> arch/powerpc/mm/kasan/kasan_init_32.c:150:3: error: 'ret' undeclared (first use in this function); did you mean 'net'?
     150 |   ret = kasan_init_region(__va(base), top - base);
         |   ^~~
         |   net
   arch/powerpc/mm/kasan/kasan_init_32.c:150:3: note: each undeclared identifier is reported only once for each function it appears in

vim +150 arch/powerpc/mm/kasan/kasan_init_32.c

41ea93cf7ba4e0 Christophe Leroy 2020-07-02  138  
41ea93cf7ba4e0 Christophe Leroy 2020-07-02  139  void __init kasan_init(void)
41ea93cf7ba4e0 Christophe Leroy 2020-07-02  140  {
01b2e0673f2147 Mike Rapoport    2020-07-26  141  	phys_addr_t base, end;
01b2e0673f2147 Mike Rapoport    2020-07-26  142  	u64 i;
2edb16efc899f9 Christophe Leroy 2019-04-26  143  
01b2e0673f2147 Mike Rapoport    2020-07-26  144  	for_each_mem_range(i, &base, &end) {
01b2e0673f2147 Mike Rapoport    2020-07-26  145  		phys_addr_t top = min(end, total_lowmem);
2edb16efc899f9 Christophe Leroy 2019-04-26  146  
2edb16efc899f9 Christophe Leroy 2019-04-26  147  		if (base >= top)
2edb16efc899f9 Christophe Leroy 2019-04-26  148  			continue;
2edb16efc899f9 Christophe Leroy 2019-04-26  149  
2edb16efc899f9 Christophe Leroy 2019-04-26 @150  		ret = kasan_init_region(__va(base), top - base);
2edb16efc899f9 Christophe Leroy 2019-04-26  151  		if (ret)
2edb16efc899f9 Christophe Leroy 2019-04-26  152  			panic("kasan: kasan_init_region() failed");
2edb16efc899f9 Christophe Leroy 2019-04-26  153  	}
ec97d022f621c6 Christophe Leroy 2020-05-19  154  
2edb16efc899f9 Christophe Leroy 2019-04-26  155  	kasan_remap_early_shadow_ro();
2edb16efc899f9 Christophe Leroy 2019-04-26  156  
2edb16efc899f9 Christophe Leroy 2019-04-26  157  	clear_page(kasan_early_shadow_page);
2edb16efc899f9 Christophe Leroy 2019-04-26  158  
2edb16efc899f9 Christophe Leroy 2019-04-26  159  	/* At this point kasan is fully initialized. Enable error messages */
2edb16efc899f9 Christophe Leroy 2019-04-26  160  	init_task.kasan_depth = 0;
2edb16efc899f9 Christophe Leroy 2019-04-26  161  	pr_info("KASAN init done\n");
2edb16efc899f9 Christophe Leroy 2019-04-26  162  }
2edb16efc899f9 Christophe Leroy 2019-04-26  163  

:::::: The code at line 150 was first introduced by commit
:::::: 2edb16efc899f9c232e2d880930b855e4cf55df4 powerpc/32: Add KASAN support

:::::: TO: Christophe Leroy <christophe.leroy@c-s.fr>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>

---
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: 25159 bytes --]

                 reply	other threads:[~2020-08-09 19:27 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=202008100334.AS9dMDKN%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.