[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200615063152.GN12456@shao2-debian>
Date: Mon, 15 Jun 2020 14:31:52 +0800
From: kernel test robot <lkp@...el.com>
To: Christophe Leroy <christophe.leroy@....fr>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Michael Ellerman <mpe@...erman.id.au>
Subject: arch/powerpc/mm/ptdump/hashpagetable.c:262:18: error: 'H_SUCCESS'
undeclared
Hi Christophe,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4a87b197c1da6b16608d5110709e0b3308e25dcd
commit: 65e701b2d2a8593c44c8855aee2e087be7e11e75 powerpc/ptdump: drop non vital #ifdefs
date: 10 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 10 months ago
config: powerpc64-randconfig-c021-20200614 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
arch/powerpc/mm/ptdump/hashpagetable.c: In function 'pseries_find':
>> arch/powerpc/mm/ptdump/hashpagetable.c:262:18: error: 'H_SUCCESS' undeclared (first use in this function)
262 | if (lpar_rc != H_SUCCESS)
| ^~~~~~~~~
arch/powerpc/mm/ptdump/hashpagetable.c:262:18: note: each undeclared identifier is reported only once for each function it appears in
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=65e701b2d2a8593c44c8855aee2e087be7e11e75
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 65e701b2d2a8593c44c8855aee2e087be7e11e75
vim +/H_SUCCESS +262 arch/powerpc/mm/ptdump/hashpagetable.c
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 239
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 240 static int pseries_find(unsigned long ea, int psize, bool primary, u64 *v, u64 *r)
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 241 {
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 242 struct hash_pte ptes[4];
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 243 unsigned long vsid, vpn, hash, hpte_group, want_v;
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 244 int i, j, ssize = mmu_kernel_ssize;
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 245 long lpar_rc = 0;
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 246 unsigned long shift = mmu_psize_defs[psize].shift;
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 247
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 248 /* calculate hash */
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 249 vsid = get_kernel_vsid(ea, ssize);
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 250 vpn = hpt_vpn(ea, vsid, ssize);
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 251 hash = hpt_hash(vpn, shift, ssize);
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 252 want_v = hpte_encode_avpn(vpn, psize, ssize);
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 253
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 254 /* to check in the secondary hash table, we invert the hash */
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 255 if (!primary)
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 256 hash = ~hash;
1531cff44b5bb3 arch/powerpc/mm/dump_hashpagetable.c Aneesh Kumar K.V 2018-06-29 257 hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP;
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 258 /* see if we can find an entry in the hpte with this hash */
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 259 for (i = 0; i < HPTES_PER_GROUP; i += 4, hpte_group += 4) {
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 260 lpar_rc = plpar_pte_read_4(0, hpte_group, (void *)ptes);
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 261
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 @262 if (lpar_rc != H_SUCCESS)
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 263 continue;
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 264 for (j = 0; j < 4; j++) {
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 265 if (HPTE_V_COMPARE(ptes[j].v, want_v) &&
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 266 (ptes[j].v & HPTE_V_VALID)) {
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 267 /* HPTE matches */
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 268 *v = ptes[j].v;
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 269 *r = ptes[j].r;
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 270 return 0;
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 271 }
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 272 }
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 273 }
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 274 return -1;
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 275 }
1515ab93215625 arch/powerpc/mm/dump_hashpagetable.c Rashmica Gupta 2016-05-27 276
:::::: The code at line 262 was first introduced by commit
:::::: 1515ab932156257afd8a5864506dab80f63ff38b powerpc/mm: Dump hash table
:::::: TO: Rashmica Gupta <rashmicy@...il.com>
:::::: CC: Michael Ellerman <mpe@...erman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (28587 bytes)
_______________________________________________
kbuild mailing list -- kbuild@...ts.01.org
To unsubscribe send an email to kbuild-leave@...ts.01.org
Powered by blists - more mailing lists