[android-common:android15-6.6 2/2] arch/arm64/kvm/hyp_events.c:134:6: warning: no previous prototype for 'hyp_trace_init_event_early'
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
Hi Vincent, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android15-6.6 head: 24c059d9e217f32d61570fdbd7eb66bc999657a9 commit: 898e4d2aa33bd70705040b7c2f485c968cc3d594 [2/2] ANDROID: KVM: arm64: add support for early enablement nVHE hyp events config: arm64-randconfig-004-20260816 (https://download.01.org/0day-ci/archive/20260817/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 10.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260817/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): In file included from arch/arm64/kvm/hyp_events.c:9: arch/arm64/include/asm/kvm_define_hypevents.h:17:7: warning: no previous prototype for 'hyp_event_trace_hyp_enter' [-Wmissing-prototypes] 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^~~~~~~~~~~~~~~~ arch/arm64/include/asm/kvm_hypevents.h:14:1: note: in expansion of macro 'HYP_EVENT' 14 | HYP_EVENT(hyp_enter, | ^~~~~~~~~ arch/arm64/include/asm/kvm_define_hypevents.h:17:7: warning: no previous prototype for 'hyp_event_trace_hyp_exit' [-Wmissing-prototypes] 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^~~~~~~~~~~~~~~~ arch/arm64/include/asm/kvm_hypevents.h:23:1: note: in expansion of macro 'HYP_EVENT' 23 | HYP_EVENT(hyp_exit, | ^~~~~~~~~ >> arch/arm64/kvm/hyp_events.c:134:6: warning: no previous prototype for 'hyp_trace_init_event_early' [-Wmissing-prototypes] 134 | bool hyp_trace_init_event_early(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp_events.c:169:6: warning: no previous prototype for 'hyp_trace_init_event_tracefs' [-Wmissing-prototypes] 169 | void hyp_trace_init_event_tracefs(struct dentry *parent) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp_events.c:199:19: warning: no previous prototype for 'hyp_trace_find_event' [-Wmissing-prototypes] 199 | struct hyp_event *hyp_trace_find_event(int id) | ^~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp_events.c:212:5: warning: no previous prototype for 'hyp_trace_init_events' [-Wmissing-prototypes] 212 | int hyp_trace_init_events(void) | ^~~~~~~~~~~~~~~~~~~~~ vim +/hyp_trace_init_event_early +134 arch/arm64/kvm/hyp_events.c 133 > 134 bool hyp_trace_init_event_early(void) 135 { 136 char *token, *buf = early_events; 137 bool enabled = false; 138 139 while (true) { 140 token = strsep(&buf, ","); 141 142 if (!token) 143 break; 144 145 if (*token) { 146 struct hyp_event *event; 147 int ret; 148 149 event = find_hyp_event(token); 150 if (event) { 151 ret = enable_hyp_event(event, true); 152 if (ret) 153 pr_warn("Couldn't enable hyp event %s:%d\n", 154 token, ret); 155 else 156 enabled = true; 157 } else { 158 pr_warn("Couldn't find hyp event %s\n", token); 159 } 160 } 161 162 if (buf) 163 *(buf - 1) = ','; 164 } 165 166 return enabled; 167 } 168 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki