[PATCH] powerpc/pseries: Move CMO code from plapr_wrappers.h to platforms/pseries

kbuild test robot lkp at intel.com
Mon Nov 14 19:15:52 AEDT 2016


Hi Michael,

[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/Michael-Ellerman/powerpc-pseries-Move-CMO-code-from-plapr_wrappers-h-to-platforms-pseries/20161114-145812
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-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 

All errors (new ones prefixed by >>):

   arch/powerpc/platforms/pseries/lparcfg.c: In function 'pseries_cmo_data':
   arch/powerpc/platforms/pseries/lparcfg.c:403:40: error: implicit declaration of function 'cmo_get_primary_psp' [-Werror=implicit-function-declaration]
     seq_printf(m, "cmo_primary_psp=%d\n", cmo_get_primary_psp());
                                           ^~~~~~~~~~~~~~~~~~~
   arch/powerpc/platforms/pseries/lparcfg.c:404:42: error: implicit declaration of function 'cmo_get_secondary_psp' [-Werror=implicit-function-declaration]
     seq_printf(m, "cmo_secondary_psp=%d\n", cmo_get_secondary_psp());
                                             ^~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/platforms/pseries/lparcfg.c:405:39: error: implicit declaration of function 'cmo_get_page_size' [-Werror=implicit-function-declaration]
     seq_printf(m, "cmo_page_size=%lu\n", cmo_get_page_size());
                                          ^~~~~~~~~~~~~~~~~
>> arch/powerpc/platforms/pseries/lparcfg.c:405:33: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Werror=format=]
     seq_printf(m, "cmo_page_size=%lu\n", cmo_get_page_size());
                                    ^
   cc1: all warnings being treated as errors

vim +405 arch/powerpc/platforms/pseries/lparcfg.c

7ffcf8ec arch/powerpc/kernel/lparcfg.c Anton Blanchard 2013-08-07  397  		cmo_fault_time += be64_to_cpu(lppaca_of(cpu).cmo_fault_time);
ffa5abbd arch/powerpc/kernel/lparcfg.c Brian King      2008-07-24  398  	}
ffa5abbd arch/powerpc/kernel/lparcfg.c Brian King      2008-07-24  399  
ffa5abbd arch/powerpc/kernel/lparcfg.c Brian King      2008-07-24  400  	seq_printf(m, "cmo_faults=%lu\n", cmo_faults);
ffa5abbd arch/powerpc/kernel/lparcfg.c Brian King      2008-07-24  401  	seq_printf(m, "cmo_fault_time_usec=%lu\n",
ffa5abbd arch/powerpc/kernel/lparcfg.c Brian King      2008-07-24  402  		   cmo_fault_time / tb_ticks_per_usec);
ac22429d arch/powerpc/kernel/lparcfg.c Robert Jennings 2008-08-16 @403  	seq_printf(m, "cmo_primary_psp=%d\n", cmo_get_primary_psp());
ac22429d arch/powerpc/kernel/lparcfg.c Robert Jennings 2008-08-16  404  	seq_printf(m, "cmo_secondary_psp=%d\n", cmo_get_secondary_psp());
ac22429d arch/powerpc/kernel/lparcfg.c Robert Jennings 2008-08-16 @405  	seq_printf(m, "cmo_page_size=%lu\n", cmo_get_page_size());
ffa5abbd arch/powerpc/kernel/lparcfg.c Brian King      2008-07-24  406  }
ffa5abbd arch/powerpc/kernel/lparcfg.c Brian King      2008-07-24  407  
0559f0a7 arch/powerpc/kernel/lparcfg.c Anton Blanchard 2009-03-31  408  static void splpar_dispatch_data(struct seq_file *m)

:::::: The code at line 405 was first introduced by commit
:::::: ac22429df22c1c793245c3cca33ccde4046d9c1f powerpc: Add CMO enabled flag and paging space data to lparcfg

:::::: TO: Robert Jennings <rcj at linux.vnet.ibm.com>
:::::: CC: Paul Mackerras <paulus at samba.org>

---
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: 22504 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20161114/367860b1/attachment-0001.gz>


More information about the Linuxppc-dev mailing list