From: kernel test robot <lkp@intel.com>
To: Marc Zyngier <maz@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org
Subject: [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
Date: Tue, 28 Apr 2026 23:40:40 +0800 [thread overview]
Message-ID: <202604282305.uZdSNvk7-lkp@intel.com> (raw)
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
reply other threads:[~2026-04-28 15:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202604282305.uZdSNvk7-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=maz@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox