mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* arch/powerpc/mm/ptdump/hashpagetable.c:262:18: error: 'H_SUCCESS' undeclared
@ 2020-06-15  6:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-15  6:31 UTC (permalink / raw)
  To: Christophe Leroy; +Cc: kbuild-all, linux-kernel, Michael Ellerman

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

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@intel.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@gmail.com>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>

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

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-leave@lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-15  6:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15  6:31 arch/powerpc/mm/ptdump/hashpagetable.c:262:18: error: 'H_SUCCESS' undeclared kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®