[PATCH v2 2/4] powerpc/perf: update attribute_group data structure

kbuild test robot lkp at intel.com
Tue Nov 15 16:00:23 AEDT 2016


Hi Madhavan,

[auto build test ERROR on powerpc/next]
[also build test ERROR on v4.9-rc5 next-20161114]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Madhavan-Srinivasan/powerpc-perf-factor-out-the-event-format-field/20161115-041335
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-pasemi_defconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

Note: the linux-review/Madhavan-Srinivasan/powerpc-perf-factor-out-the-event-format-field/20161115-041335 HEAD 51c82e12f03b6f83703ad810dfa72a7bf2205983 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   arch/powerpc/perf/power9-pmu.c: In function 'init_power9_pmu':
>> arch/powerpc/perf/power9-pmu.c:294:5: error: 'rc' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     if (rc)
        ^
   cc1: all warnings being treated as errors

vim +/rc +294 arch/powerpc/perf/power9-pmu.c

8c002dbd Madhavan Srinivasan 2016-06-26  288  		return -ENODEV;
8c002dbd Madhavan Srinivasan 2016-06-26  289  
4a3d1bb1 Madhavan Srinivasan 2016-11-14  290  	if (cpu_has_feature(CPU_FTR_POWER9_DD1)) {
4a3d1bb1 Madhavan Srinivasan 2016-11-14  291  		rc = register_power_pmu(&power9_isa207_pmu);
4a3d1bb1 Madhavan Srinivasan 2016-11-14  292  	}
4a3d1bb1 Madhavan Srinivasan 2016-11-14  293  
8c002dbd Madhavan Srinivasan 2016-06-26 @294  	if (rc)
8c002dbd Madhavan Srinivasan 2016-06-26  295  		return rc;
8c002dbd Madhavan Srinivasan 2016-06-26  296  
8c002dbd Madhavan Srinivasan 2016-06-26  297  	/* Tell userspace that EBB is supported */

:::::: The code at line 294 was first introduced by commit
:::::: 8c002dbd05eecbb2933e9668da9614b33c7a97d2 powerpc/perf: Power9 PMU support

:::::: TO: Madhavan Srinivasan <maddy at linux.vnet.ibm.com>
:::::: CC: Michael Ellerman <mpe at ellerman.id.au>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 19754 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20161115/00bec71b/attachment-0001.gz>


More information about the Linuxppc-dev mailing list