public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [arm-platforms:kvm-arm64/no-lazy-vgic-init 22/26] include/kvm/arm_pmu.h:134:46: warning: no return statement in function returning non-void
@ 2026-04-28 15:40 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-28 15:40 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: oe-kbuild-all, linux-arm-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/no-lazy-vgic-init
head:   3bba2d1179c5198c5788cd387feeeba2070e7cd9
commit: 4c12b5742e18dbd00b0b59f3882478219d73b463 [22/26] KVM: arm64: Simplify userspace notification of interrupt state
config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20260428/202604282305.uZdSNvk7-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260428/202604282305.uZdSNvk7-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604282305.uZdSNvk7-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/arm64/include/asm/kvm_host.h:38,
                    from include/linux/kvm_host.h:45,
                    from arch/arm64/kernel/asm-offsets.c:16:
   include/kvm/arm_pmu.h: In function 'kvm_pmu_update_run':
>> include/kvm/arm_pmu.h:134:46: warning: no return statement in function returning non-void [-Wreturn-type]
     134 | static inline bool kvm_pmu_update_run(struct kvm_vcpu *vcpu) {}
         |                                              ^~~~~~~~
--
   In file included from arch/arm64/include/asm/kvm_host.h:38,
                    from include/linux/kvm_host.h:45,
                    from arch/arm64/kernel/asm-offsets.c:16:
   include/kvm/arm_pmu.h: In function 'kvm_pmu_update_run':
>> include/kvm/arm_pmu.h:134:46: warning: no return statement in function returning non-void [-Wreturn-type]
     134 | static inline bool kvm_pmu_update_run(struct kvm_vcpu *vcpu) {}
         |                                              ^~~~~~~~


vim +134 include/kvm/arm_pmu.h

   106	
   107	#define kvm_arm_pmu_irq_initialized(v)	(false)
   108	static inline u64 kvm_pmu_get_counter_value(struct kvm_vcpu *vcpu,
   109						    u64 select_idx)
   110	{
   111		return 0;
   112	}
   113	static inline void kvm_pmu_set_counter_value(struct kvm_vcpu *vcpu,
   114						     u64 select_idx, u64 val) {}
   115	static inline void kvm_pmu_set_counter_value_user(struct kvm_vcpu *vcpu,
   116							  u64 select_idx, u64 val) {}
   117	static inline u64 kvm_pmu_implemented_counter_mask(struct kvm_vcpu *vcpu)
   118	{
   119		return 0;
   120	}
   121	static inline u64 kvm_pmu_accessible_counter_mask(struct kvm_vcpu *vcpu)
   122	{
   123		return 0;
   124	}
   125	static inline void kvm_pmu_vcpu_init(struct kvm_vcpu *vcpu) {}
   126	static inline void kvm_pmu_vcpu_destroy(struct kvm_vcpu *vcpu) {}
   127	static inline void kvm_pmu_reprogram_counter_mask(struct kvm_vcpu *vcpu, u64 val) {}
   128	static inline void kvm_pmu_flush_hwstate(struct kvm_vcpu *vcpu) {}
   129	static inline void kvm_pmu_sync_hwstate(struct kvm_vcpu *vcpu) {}
   130	static inline bool kvm_pmu_should_notify_user(struct kvm_vcpu *vcpu)
   131	{
   132		return false;
   133	}
 > 134	static inline bool kvm_pmu_update_run(struct kvm_vcpu *vcpu) {}
   135	static inline void kvm_pmu_software_increment(struct kvm_vcpu *vcpu, u64 val) {}
   136	static inline void kvm_pmu_handle_pmcr(struct kvm_vcpu *vcpu, u64 val) {}
   137	static inline void kvm_pmu_set_counter_event_type(struct kvm_vcpu *vcpu,
   138							  u64 data, u64 select_idx) {}
   139	static inline int kvm_arm_pmu_v3_set_attr(struct kvm_vcpu *vcpu,
   140						  struct kvm_device_attr *attr)
   141	{
   142		return -ENXIO;
   143	}
   144	static inline int kvm_arm_pmu_v3_get_attr(struct kvm_vcpu *vcpu,
   145						  struct kvm_device_attr *attr)
   146	{
   147		return -ENXIO;
   148	}
   149	static inline int kvm_arm_pmu_v3_has_attr(struct kvm_vcpu *vcpu,
   150						  struct kvm_device_attr *attr)
   151	{
   152		return -ENXIO;
   153	}
   154	static inline int kvm_arm_pmu_v3_enable(struct kvm_vcpu *vcpu)
   155	{
   156		return 0;
   157	}
   158	static inline u64 kvm_pmu_get_pmceid(struct kvm_vcpu *vcpu, bool pmceid1)
   159	{
   160		return 0;
   161	}
   162	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


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

only message in thread, other threads:[~2026-04-28 15:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-28 15:40 [arm-platforms:kvm-arm64/no-lazy-vgic-init 22/26] include/kvm/arm_pmu.h:134:46: warning: no return statement in function returning non-void kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox