All of lore.kernel.org
 help / color / mirror / Atom feed
* [arm-platforms:kvm-arm64/nv-wip-5.2-rc5 1/77] arch/arm/include/asm/cp15.h:66:31: error: '__write_sysreg' undeclared; did you mean 'vcpu_write_spsr'?
@ 2019-06-19  6:24 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-06-19  6:24 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: Sudeep Holla, kbuild-all, linux-arm-kernel, Dave Martin

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/nv-wip-5.2-rc5
head:   3cccb52b15c5e14819d7528ab50ae7c87a0d0590
commit: b05b11e098628793251d448d1e98fa85a8512b17 [1/77] KVM: arm64: VHE: Migrate _elx sysreg accessors to msr_s/mrs_s
config: arm-axm55xx_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout b05b11e098628793251d448d1e98fa85a8512b17
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c: In function 'kvm_timer_should_fire':
>> arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:240:1: error: macro "__read_sysreg" requires 4 arguments, but only 1 given
       cnt_ctl = read_sysreg_el0(SYS_CNTV_CTL);
    ^  ~~~~~~~~~~~~~
   In file included from arch/arm/include/asm/kvm_hyp.h:23:0,
                    from arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:17:
>> arch/arm/include/asm/cp15.h:63:27: error: '__read_sysreg' undeclared (first use in this function); did you mean 'vcpu_sysreg'?
    #define read_sysreg(...)  __read_sysreg(__VA_ARGS__)
                              ^
>> arch/arm/include/asm/kvm_hyp.h:96:29: note: in expansion of macro 'read_sysreg'
    #define read_sysreg_el0(r)  read_sysreg(r##_el0)
                                ^~~~~~~~~~~
>> arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:240:14: note: in expansion of macro 'read_sysreg_el0'
       cnt_ctl = read_sysreg_el0(SYS_CNTV_CTL);
                 ^~~~~~~~~~~~~~~
   arch/arm/include/asm/cp15.h:63:27: note: each undeclared identifier is reported only once for each function it appears in
    #define read_sysreg(...)  __read_sysreg(__VA_ARGS__)
                              ^
>> arch/arm/include/asm/kvm_hyp.h:96:29: note: in expansion of macro 'read_sysreg'
    #define read_sysreg_el0(r)  read_sysreg(r##_el0)
                                ^~~~~~~~~~~
>> arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:240:14: note: in expansion of macro 'read_sysreg_el0'
       cnt_ctl = read_sysreg_el0(SYS_CNTV_CTL);
                 ^~~~~~~~~~~~~~~
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:243:1: error: macro "__read_sysreg" requires 4 arguments, but only 1 given
       cnt_ctl = read_sysreg_el0(SYS_CNTP_CTL);
    ^  ~~~~~~~~~~~~~
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c: In function 'timer_save_state':
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:352:1: error: macro "__read_sysreg" requires 4 arguments, but only 1 given
      ctx->cnt_ctl = read_sysreg_el0(SYS_CNTV_CTL);
    ^ ~~~~~~~~~~~~~~
   In file included from arch/arm/include/asm/kvm_hyp.h:23:0,
                    from arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:17:
>> arch/arm/include/asm/cp15.h:63:27: error: '__read_sysreg' undeclared (first use in this function); did you mean 'vcpu_sysreg'?
    #define read_sysreg(...)  __read_sysreg(__VA_ARGS__)
                              ^
>> arch/arm/include/asm/kvm_hyp.h:96:29: note: in expansion of macro 'read_sysreg'
    #define read_sysreg_el0(r)  read_sysreg(r##_el0)
                                ^~~~~~~~~~~
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:352:18: note: in expansion of macro 'read_sysreg_el0'
      ctx->cnt_ctl = read_sysreg_el0(SYS_CNTV_CTL);
                     ^~~~~~~~~~~~~~~
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:353:1: error: macro "__read_sysreg" requires 4 arguments, but only 1 given
      ctx->cnt_cval = read_sysreg_el0(SYS_CNTV_CVAL);
    ^ ~~~~~~~~~~~~~~~
>> arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:356:1: error: macro "__write_sysreg" requires 5 arguments, but only 2 given
      write_sysreg_el0(0, SYS_CNTV_CTL);
    ^ ~~~~~~~~~~~~~~
   In file included from arch/arm/include/asm/kvm_hyp.h:23:0,
                    from arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:17:
>> arch/arm/include/asm/cp15.h:66:31: error: '__write_sysreg' undeclared (first use in this function); did you mean '__read_sysreg'?
    #define write_sysreg(v, ...)  __write_sysreg(v, __VA_ARGS__)
                                  ^
>> arch/arm/include/asm/kvm_hyp.h:97:33: note: in expansion of macro 'write_sysreg'
    #define write_sysreg_el0(v, r)  write_sysreg(v, r##_el0)
                                    ^~~~~~~~~~~~
>> arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:356:3: note: in expansion of macro 'write_sysreg_el0'
      write_sysreg_el0(0, SYS_CNTV_CTL);
      ^~~~~~~~~~~~~~~~
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:361:1: error: macro "__read_sysreg" requires 4 arguments, but only 1 given
      ctx->cnt_ctl = read_sysreg_el0(SYS_CNTP_CTL);
    ^ ~~~~~~~~~~~~~~
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:362:1: error: macro "__read_sysreg" requires 4 arguments, but only 1 given
      ctx->cnt_cval = read_sysreg_el0(SYS_CNTP_CVAL);
    ^ ~~~~~~~~~~~~~~~
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:365:1: error: macro "__write_sysreg" requires 5 arguments, but only 2 given
      write_sysreg_el0(0, SYS_CNTP_CTL);
    ^ ~~~~~~~~~~~~~~
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c: In function 'timer_restore_state':
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:431:1: error: macro "__write_sysreg" requires 5 arguments, but only 2 given
      write_sysreg_el0(ctx->cnt_cval, SYS_CNTV_CVAL);
    ^ ~~~~~~~~~~~~~~~
   In file included from arch/arm/include/asm/kvm_hyp.h:23:0,
                    from arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:17:
>> arch/arm/include/asm/cp15.h:66:31: error: '__write_sysreg' undeclared (first use in this function); did you mean 'vcpu_write_spsr'?
    #define write_sysreg(v, ...)  __write_sysreg(v, __VA_ARGS__)
                                  ^
>> arch/arm/include/asm/kvm_hyp.h:97:33: note: in expansion of macro 'write_sysreg'
    #define write_sysreg_el0(v, r)  write_sysreg(v, r##_el0)
                                    ^~~~~~~~~~~~
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:431:3: note: in expansion of macro 'write_sysreg_el0'
      write_sysreg_el0(ctx->cnt_cval, SYS_CNTV_CVAL);
      ^~~~~~~~~~~~~~~~
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:433:1: error: macro "__write_sysreg" requires 5 arguments, but only 2 given
      write_sysreg_el0(ctx->cnt_ctl, SYS_CNTV_CTL);
    ^ ~~~~~~~~~~~~~~
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:436:1: error: macro "__write_sysreg" requires 5 arguments, but only 2 given
      write_sysreg_el0(ctx->cnt_cval, SYS_CNTP_CVAL);
    ^ ~~~~~~~~~~~~~~~
   arch/arm/kvm/../../../virt/kvm/arm/arch_timer.c:438:1: error: macro "__write_sysreg" requires 5 arguments, but only 2 given
      write_sysreg_el0(ctx->cnt_ctl, SYS_CNTP_CTL);
    ^ ~~~~~~~~~~~~~~

vim +66 arch/arm/include/asm/cp15.h

b849a60e Uwe Kleine-König 2012-01-16  52  
4f254638 Vladimir Murzin  2016-09-12  53  #define __ACCESS_CP15(CRn, Op1, CRm, Op2)	\
4f254638 Vladimir Murzin  2016-09-12  54  	"mrc", "mcr", __stringify(p15, Op1, %0, CRn, CRm, Op2), u32
4f254638 Vladimir Murzin  2016-09-12  55  #define __ACCESS_CP15_64(Op1, CRm)		\
4f254638 Vladimir Murzin  2016-09-12  56  	"mrrc", "mcrr", __stringify(p15, Op1, %Q0, %R0, CRm), u64
4f254638 Vladimir Murzin  2016-09-12  57  
4f254638 Vladimir Murzin  2016-09-12  58  #define __read_sysreg(r, w, c, t) ({				\
4f254638 Vladimir Murzin  2016-09-12  59  	t __val;						\
4f254638 Vladimir Murzin  2016-09-12  60  	asm volatile(r " " c : "=r" (__val));			\
4f254638 Vladimir Murzin  2016-09-12  61  	__val;							\
4f254638 Vladimir Murzin  2016-09-12  62  })
4f254638 Vladimir Murzin  2016-09-12 @63  #define read_sysreg(...)		__read_sysreg(__VA_ARGS__)
4f254638 Vladimir Murzin  2016-09-12  64  
4f254638 Vladimir Murzin  2016-09-12  65  #define __write_sysreg(v, r, w, c, t)	asm volatile(w " " c : : "r" ((t)(v)))
4f254638 Vladimir Murzin  2016-09-12 @66  #define write_sysreg(v, ...)		__write_sysreg(v, __VA_ARGS__)
4f254638 Vladimir Murzin  2016-09-12  67  

:::::: The code at line 66 was first introduced by commit
:::::: 4f2546384150e78cad8045e59a9587fabcd9f9fe ARM: Move system register accessors to asm/cp15.h

:::::: TO: Vladimir Murzin <vladimir.murzin@arm.com>
:::::: CC: Christoffer Dall <christoffer.dall@linaro.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 21176 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-19  6:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-19  6:24 [arm-platforms:kvm-arm64/nv-wip-5.2-rc5 1/77] arch/arm/include/asm/cp15.h:66:31: error: '__write_sysreg' undeclared; did you mean 'vcpu_write_spsr'? kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.