mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christophe Leroy <christophe.leroy@c-s.fr>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Michael Ellerman <mpe@ellerman.id.au>
Subject: arch/powerpc/mm/ptdump/hashpagetable.c:262:18: error: 'H_SUCCESS' undeclared
Date: Mon, 15 Jun 2020 14:31:52 +0800	[thread overview]
Message-ID: <20200615063152.GN12456@shao2-debian> (raw)

[-- 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

                 reply	other threads:[~2020-06-15  6:32 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=20200615063152.GN12456@shao2-debian \
    --to=lkp@intel.com \
    --cc=christophe.leroy@c-s.fr \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpe@ellerman.id.au \
    /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

all inboxes | Powered by JetHome®