linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Nathan Lynch <nathanl@linux.ibm.com>, linuxppc-dev@lists.ozlabs.org
Cc: danielhb413@gmail.com, tyreld@linux.ibm.com,
	ldufour@linux.ibm.com, kbuild-all@lists.01.org,
	aneesh.kumar@linux.ibm.com
Subject: Re: [PATCH 3/3] powerpc/pseries/cpuhp: delete add/remove_by_count code
Date: Tue, 21 Sep 2021 05:50:55 +0800	[thread overview]
Message-ID: <202109210529.5aeg0dNd-lkp@intel.com> (raw)
In-Reply-To: <20210920135504.1792219-4-nathanl@linux.ibm.com>

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

Hi Nathan,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on powerpc/next]
[also build test ERROR on linus/master v5.15-rc2 next-20210920]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Nathan-Lynch/CPU-DLPAR-hotplug-for-v5-16/20210920-215907
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-allmodconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.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://github.com/0day-ci/linux/commit/72ea4c8a5398a4a72da34051a66f260ab0154f57
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Nathan-Lynch/CPU-DLPAR-hotplug-for-v5-16/20210920-215907
        git checkout 72ea4c8a5398a4a72da34051a66f260ab0154f57
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc 

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/platforms/pseries/hotplug-cpu.c: In function 'dlpar_cpu':
>> arch/powerpc/platforms/pseries/hotplug-cpu.c:746:13: error: variable 'count' set but not used [-Werror=unused-but-set-variable]
     746 |         u32 count, drc_index;
         |             ^~~~~
   cc1: all warnings being treated as errors


vim +/count +746 arch/powerpc/platforms/pseries/hotplug-cpu.c

ac71380071d19d Nathan Fontenot         2015-12-16  743  
ac71380071d19d Nathan Fontenot         2015-12-16  744  int dlpar_cpu(struct pseries_hp_errorlog *hp_elog)
ac71380071d19d Nathan Fontenot         2015-12-16  745  {
ac71380071d19d Nathan Fontenot         2015-12-16 @746  	u32 count, drc_index;
ac71380071d19d Nathan Fontenot         2015-12-16  747  	int rc;
ac71380071d19d Nathan Fontenot         2015-12-16  748  
ac71380071d19d Nathan Fontenot         2015-12-16  749  	count = hp_elog->_drc_u.drc_count;
ac71380071d19d Nathan Fontenot         2015-12-16  750  	drc_index = hp_elog->_drc_u.drc_index;
ac71380071d19d Nathan Fontenot         2015-12-16  751  
ac71380071d19d Nathan Fontenot         2015-12-16  752  	lock_device_hotplug();
ac71380071d19d Nathan Fontenot         2015-12-16  753  
ac71380071d19d Nathan Fontenot         2015-12-16  754  	switch (hp_elog->action) {
ac71380071d19d Nathan Fontenot         2015-12-16  755  	case PSERIES_HP_ELOG_ACTION_REMOVE:
72ea4c8a5398a4 Nathan Lynch            2021-09-20  756  		if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_INDEX) {
ac71380071d19d Nathan Fontenot         2015-12-16  757  			rc = dlpar_cpu_remove_by_index(drc_index);
29c9a2699e71a7 Daniel Henrique Barboza 2021-04-16  758  			/*
29c9a2699e71a7 Daniel Henrique Barboza 2021-04-16  759  			 * Setting the isolation state of an UNISOLATED/CONFIGURED
29c9a2699e71a7 Daniel Henrique Barboza 2021-04-16  760  			 * device to UNISOLATE is a no-op, but the hypervisor can
29c9a2699e71a7 Daniel Henrique Barboza 2021-04-16  761  			 * use it as a hint that the CPU removal failed.
29c9a2699e71a7 Daniel Henrique Barboza 2021-04-16  762  			 */
29c9a2699e71a7 Daniel Henrique Barboza 2021-04-16  763  			if (rc)
29c9a2699e71a7 Daniel Henrique Barboza 2021-04-16  764  				dlpar_unisolate_drc(drc_index);
29c9a2699e71a7 Daniel Henrique Barboza 2021-04-16  765  		}
ac71380071d19d Nathan Fontenot         2015-12-16  766  		else
ac71380071d19d Nathan Fontenot         2015-12-16  767  			rc = -EINVAL;
ac71380071d19d Nathan Fontenot         2015-12-16  768  		break;
90edf184b9b727 Nathan Fontenot         2015-12-16  769  	case PSERIES_HP_ELOG_ACTION_ADD:
72ea4c8a5398a4 Nathan Lynch            2021-09-20  770  		if (hp_elog->id_type == PSERIES_HP_ELOG_ID_DRC_INDEX)
90edf184b9b727 Nathan Fontenot         2015-12-16  771  			rc = dlpar_cpu_add(drc_index);
90edf184b9b727 Nathan Fontenot         2015-12-16  772  		else
90edf184b9b727 Nathan Fontenot         2015-12-16  773  			rc = -EINVAL;
90edf184b9b727 Nathan Fontenot         2015-12-16  774  		break;
ac71380071d19d Nathan Fontenot         2015-12-16  775  	default:
ac71380071d19d Nathan Fontenot         2015-12-16  776  		pr_err("Invalid action (%d) specified\n", hp_elog->action);
ac71380071d19d Nathan Fontenot         2015-12-16  777  		rc = -EINVAL;
ac71380071d19d Nathan Fontenot         2015-12-16  778  		break;
ac71380071d19d Nathan Fontenot         2015-12-16  779  	}
ac71380071d19d Nathan Fontenot         2015-12-16  780  
ac71380071d19d Nathan Fontenot         2015-12-16  781  	unlock_device_hotplug();
ac71380071d19d Nathan Fontenot         2015-12-16  782  	return rc;
ac71380071d19d Nathan Fontenot         2015-12-16  783  }
ac71380071d19d Nathan Fontenot         2015-12-16  784  

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

  reply	other threads:[~2021-09-22  2:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-20 13:55 [PATCH 0/3] CPU DLPAR/hotplug for v5.16 Nathan Lynch
2021-09-20 13:55 ` [PATCH 1/3] powerpc/pseries/cpuhp: cache node corrections Nathan Lynch
2021-09-20 23:59   ` Daniel Henrique Barboza
2021-09-20 13:55 ` [PATCH 2/3] powerpc/cpuhp: BUG -> WARN conversion in offline path Nathan Lynch
2021-09-20 14:26   ` Christophe Leroy
2021-09-20 14:39     ` Nathan Lynch
2021-09-21  0:05   ` Daniel Henrique Barboza
2021-09-20 13:55 ` [PATCH 3/3] powerpc/pseries/cpuhp: delete add/remove_by_count code Nathan Lynch
2021-09-20 21:50   ` kernel test robot [this message]
2021-09-21  0:18   ` Daniel Henrique Barboza
2021-09-21  0:43     ` Nathan Lynch

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=202109210529.5aeg0dNd-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aneesh.kumar@linux.ibm.com \
    --cc=danielhb413@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=ldufour@linux.ibm.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=nathanl@linux.ibm.com \
    --cc=tyreld@linux.ibm.com \
    /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;
as well as URLs for NNTP newsgroup(s).