* [acrn:acrn_6.1.80 31/33] drivers/virt/acrn/hvlog.c:127:13: error: expected parameter declarator
@ 2024-07-28 6:33 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-28 6:33 UTC (permalink / raw)
To: Fei Li; +Cc: llvm, oe-kbuild-all, wenlingz
tree: https://github.com/projectacrn/acrn-kernel acrn_6.1.80
head: 51b9a968e5ab57edbc20ecf1740ab54fd4f97ce0
commit: f528146c92c545c17a21206b87e70c7087247f88 [31/33] virt: acrn: add acrn hypervisor log back
config: x86_64-randconfig-001-20240728 (https://download.01.org/0day-ci/archive/20240728/202407281427.SHTjTbz4-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240728/202407281427.SHTjTbz4-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/202407281427.SHTjTbz4-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/virt/acrn/hvlog.c:127:13: error: expected parameter declarator
127 | early_param("hvlog", early_hvlog);
| ^
>> drivers/virt/acrn/hvlog.c:127:13: error: expected ')'
drivers/virt/acrn/hvlog.c:127:12: note: to match this '('
127 | early_param("hvlog", early_hvlog);
| ^
>> drivers/virt/acrn/hvlog.c:127:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
127 | early_param("hvlog", early_hvlog);
| ^
| int
>> drivers/virt/acrn/hvlog.c:127:12: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
127 | early_param("hvlog", early_hvlog);
| ^
| void
4 errors generated.
vim +127 drivers/virt/acrn/hvlog.c
103
104 static int __init early_hvlog(char *p)
105 {
106 int ret;
107
108 pr_debug("%s(%s)\n", __func__, p);
109 hvlog_buf_size = memparse(p, &p);
110 if (*p != '@')
111 return 0;
112 hvlog_buf_phyaddr_base = memparse(p + 1, &p);
113
114 if (!!hvlog_buf_phyaddr_base && !!hvlog_buf_size) {
115 ret = memblock_reserve(hvlog_buf_phyaddr_base, hvlog_buf_size);
116 if (ret) {
117 pr_err("%s: Error reserving hvlog memblock\n",
118 __func__);
119 hvlog_buf_phyaddr_base = 0;
120 hvlog_buf_size = 0;
121 return ret;
122 }
123 }
124
125 return 0;
126 }
> 127 early_param("hvlog", early_hvlog);
128
129
--
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:[~2024-07-28 6:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-28 6:33 [acrn:acrn_6.1.80 31/33] drivers/virt/acrn/hvlog.c:127:13: error: expected parameter declarator 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