[PATCH 2/2] KVM: PPC: hypervisor large decrementer support

kbuild test robot lkp at intel.com
Tue Apr 12 14:53:30 AEST 2016


Hi Oliver,

[auto build test WARNING on powerpc/next]
[also build test WARNING on v4.6-rc3 next-20160411]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Oliver-O-Halloran/powerpc-timer-large-decrementer-support/20160412-124302
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-allmodconfig (attached as .config)
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 warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:13:0,
                    from include/linux/jiffies.h:5,
                    from arch/powerpc/kvm/emulate.c:21:
   arch/powerpc/kvm/emulate.c: In function 'kvmppc_emulate_dec':
>> arch/powerpc/kvm/emulate.c:42:11: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'u64 {aka long long unsigned int}' [-Wformat=]
     pr_debug("mtDEC: %x\n", vcpu->arch.dec);
              ^
   include/linux/printk.h:236:21: note: in definition of macro 'pr_fmt'
    #define pr_fmt(fmt) fmt
                        ^
   include/linux/printk.h:283:2: note: in expansion of macro 'dynamic_pr_debug'
     dynamic_pr_debug(fmt, ##__VA_ARGS__)
     ^
>> arch/powerpc/kvm/emulate.c:42:2: note: in expansion of macro 'pr_debug'
     pr_debug("mtDEC: %x\n", vcpu->arch.dec);
     ^

vim +42 arch/powerpc/kvm/emulate.c

bbf45ba57 Hollis Blanchard 2008-04-16  15   * Copyright IBM Corp. 2007
dfd4d47e9 Scott Wood       2011-11-17  16   * Copyright 2011 Freescale Semiconductor, Inc.
bbf45ba57 Hollis Blanchard 2008-04-16  17   *
bbf45ba57 Hollis Blanchard 2008-04-16  18   * Authors: Hollis Blanchard <hollisb at us.ibm.com>
bbf45ba57 Hollis Blanchard 2008-04-16  19   */
bbf45ba57 Hollis Blanchard 2008-04-16  20  
bbf45ba57 Hollis Blanchard 2008-04-16 @21  #include <linux/jiffies.h>
544c6761b Alexander Graf   2009-11-02  22  #include <linux/hrtimer.h>
bbf45ba57 Hollis Blanchard 2008-04-16  23  #include <linux/types.h>
bbf45ba57 Hollis Blanchard 2008-04-16  24  #include <linux/string.h>
bbf45ba57 Hollis Blanchard 2008-04-16  25  #include <linux/kvm_host.h>
6e35994d1 Bharat Bhushan   2012-04-18  26  #include <linux/clockchips.h>
bbf45ba57 Hollis Blanchard 2008-04-16  27  
75f74f0db Hollis Blanchard 2008-11-05  28  #include <asm/reg.h>
bbf45ba57 Hollis Blanchard 2008-04-16  29  #include <asm/time.h>
bbf45ba57 Hollis Blanchard 2008-04-16  30  #include <asm/byteorder.h>
bbf45ba57 Hollis Blanchard 2008-04-16  31  #include <asm/kvm_ppc.h>
c381a0431 Hollis Blanchard 2008-11-05  32  #include <asm/disassemble.h>
9123c5ed4 Hongtao Jia      2013-04-28  33  #include <asm/ppc-opcode.h>
73e75b416 Hollis Blanchard 2008-12-02  34  #include "timing.h"
46f43c6ee Marcelo Tosatti  2009-06-18  35  #include "trace.h"
bbf45ba57 Hollis Blanchard 2008-04-16  36  
75f74f0db Hollis Blanchard 2008-11-05  37  void kvmppc_emulate_dec(struct kvm_vcpu *vcpu)
bbf45ba57 Hollis Blanchard 2008-04-16  38  {
544c6761b Alexander Graf   2009-11-02  39  	unsigned long dec_nsec;
dc2babfea Bharat Bhushan   2011-10-19  40  	unsigned long long dec_time;
9a7a9b09f Alexander Graf   2009-10-30  41  
544c6761b Alexander Graf   2009-11-02 @42  	pr_debug("mtDEC: %x\n", vcpu->arch.dec);
dfd4d47e9 Scott Wood       2011-11-17  43  	hrtimer_try_to_cancel(&vcpu->arch.dec_timer);
dfd4d47e9 Scott Wood       2011-11-17  44  
00c3a37ca Alexander Graf   2010-04-16  45  #ifdef CONFIG_PPC_BOOK3S

:::::: The code at line 42 was first introduced by commit
:::::: 544c6761bb05a1dd19a39cb9bed096273f9bdb36 Use hrtimers for the decrementer

:::::: TO: Alexander Graf <agraf at suse.de>
:::::: CC: Benjamin Herrenschmidt <benh at kernel.crashing.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/octet-stream
Size: 48567 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20160412/41c67161/attachment-0001.obj>


More information about the Linuxppc-dev mailing list