[joro:x86-testing 39/45] arch/x86/kernel/sev.c:2027:26: warning: no previous prototype for 'snp_find_cc_blob'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git x86-testing
head: 139c88cae82e33dfd6e49ecc4b015a5c7d39c80a
commit: d35494e7aba4b3a2e7b1c9be9add9968be6d8ffd [39/45] x86/sev: add SEV-SNP feature detection/setup
config: x86_64-buildonly-randconfig-r005-20211115 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git/commit/?id...
git remote add joro https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git
git fetch --no-tags joro x86-testing
git checkout d35494e7aba4b3a2e7b1c9be9add9968be6d8ffd
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/sev.c:2027:26: warning: no previous prototype for 'snp_find_cc_blob' [-Wmissing-prototypes]
2027 | struct cc_blob_sev_info *snp_find_cc_blob(struct boot_params *bp)
| ^~~~~~~~~~~~~~~~
vim +/snp_find_cc_blob +2027 arch/x86/kernel/sev.c
2013
2014 /*
2015 * Initial set up of SEV-SNP relies on information provided by the
2016 * Confidential Computing blob, which can be passed to the kernel
2017 * in the following ways, depending on how it is booted:
2018 *
2019 * - when booted via the boot/decompress kernel:
2020 * - via boot_params
2021 *
2022 * - when booted directly by firmware/bootloader (e.g. CONFIG_PVH):
2023 * - via a setup_data entry, as defined by the Linux Boot Protocol
2024 *
2025 * Scan for the blob in that order.
2026 */
> 2027 struct cc_blob_sev_info *snp_find_cc_blob(struct boot_params *bp)
2028 {
2029 struct cc_blob_sev_info *cc_info;
2030
2031 /* Boot kernel would have passed the CC blob via boot_params. */
2032 if (bp->cc_blob_address) {
2033 cc_info = (struct cc_blob_sev_info *)
2034 (unsigned long)bp->cc_blob_address;
2035 goto found_cc_info;
2036 }
2037
2038 /*
2039 * If kernel was booted directly, without the use of the
2040 * boot/decompression kernel, the CC blob may have been passed via
2041 * setup_data instead.
2042 */
2043 cc_info = snp_find_cc_blob_setup_data(bp);
2044 if (!cc_info)
2045 return NULL;
2046
2047 found_cc_info:
2048 if (cc_info->magic != CC_BLOB_SEV_HDR_MAGIC)
2049 sev_es_terminate(1, GHCB_SNP_UNSUPPORTED);
2050
2051 return cc_info;
2052 }
2053
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[mcgrof-next:20211118-sysctl-cleanups-set-04-v2 22/36] kernel/printk/sysctl.c:84:64: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211118-sysctl-cleanups-set-04-v2
head: 3110d41a56792588bd2f64621080948b0fceb6ab
commit: 384c95eff01a635ed28e48a8521095421bd853c2 [22/36] printk: move printk sysctl to printk/sysctl.c
config: nds32-allnoconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20211118-sysctl-cleanups-set-04-v2
git checkout 384c95eff01a635ed28e48a8521095421bd853c2
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nds32 SHELL=/bin/bash fs/ kernel/printk/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/printk/sysctl.c: In function 'printk_sysctl_init':
>> kernel/printk/sysctl.c:84:64: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
84 | register_sysctl_init("kernel", printk_sysctls, "printk");
| ^
In file included from kernel/printk/sysctl.c:6:
include/linux/sysctl.h:210: note: macro "register_sysctl_init" defined here
210 | #define register_sysctl_init(path, table) __register_sysctl_init(path, table, #table)
|
>> kernel/printk/sysctl.c:84:9: error: 'register_sysctl_init' undeclared (first use in this function); did you mean 'register_sysctl_paths'?
84 | register_sysctl_init("kernel", printk_sysctls, "printk");
| ^~~~~~~~~~~~~~~~~~~~
| register_sysctl_paths
kernel/printk/sysctl.c:84:9: note: each undeclared identifier is reported only once for each function it appears in
At top level:
kernel/printk/sysctl.c:23:25: warning: 'printk_sysctls' defined but not used [-Wunused-variable]
23 | static struct ctl_table printk_sysctls[] = {
| ^~~~~~~~~~~~~~
vim +/register_sysctl_init +84 kernel/printk/sysctl.c
81
82 void __init printk_sysctl_init(void)
83 {
> 84 register_sysctl_init("kernel", printk_sysctls, "printk");
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
Re: [PATCH v5 3/4] virt: Add efi_secret module to expose confidential computing secrets
by kernel test robot
Hi Dov,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on 42eb8fdac2fc5d62392dcfcf0253753e821a97b0]
url: https://github.com/0day-ci/linux/commits/Dov-Murik/Allow-guest-access-to-...
base: 42eb8fdac2fc5d62392dcfcf0253753e821a97b0
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/547e54014b34e24cd885e941dd66e3fde...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dov-Murik/Allow-guest-access-to-EFI-confidential-computing-secret-area/20211118-193724
git checkout 547e54014b34e24cd885e941dd66e3fdece3c0c6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/virt/coco/efi_secret/efi_secret.c: In function 'efi_secret_map_area':
>> drivers/virt/coco/efi_secret/efi_secret.c:181:26: error: implicit declaration of function 'ioremap_encrypted' [-Werror=implicit-function-declaration]
181 | s->secret_data = ioremap_encrypted(secret_area->base_pa, secret_area->size);
| ^~~~~~~~~~~~~~~~~
drivers/virt/coco/efi_secret/efi_secret.c:181:24: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
181 | s->secret_data = ioremap_encrypted(secret_area->base_pa, secret_area->size);
| ^
cc1: some warnings being treated as errors
vim +/ioremap_encrypted +181 drivers/virt/coco/efi_secret/efi_secret.c
157
158 static int efi_secret_map_area(void)
159 {
160 int ret;
161 struct efi_secret *s = efi_secret_get();
162 struct linux_efi_coco_secret_area *secret_area;
163
164 if (efi.coco_secret == EFI_INVALID_TABLE_ADDR) {
165 pr_err("Secret area address is not available\n");
166 return -EINVAL;
167 }
168
169 secret_area = memremap(efi.coco_secret, sizeof(*secret_area), MEMREMAP_WB);
170 if (secret_area == NULL) {
171 pr_err("Could not map secret area EFI config entry\n");
172 return -ENOMEM;
173 }
174 if (!secret_area->base_pa || secret_area->size < sizeof(struct secret_header)) {
175 pr_err("Invalid secret area memory location (base_pa=0x%llx size=0x%llx)\n",
176 secret_area->base_pa, secret_area->size);
177 ret = -EINVAL;
178 goto unmap;
179 }
180
> 181 s->secret_data = ioremap_encrypted(secret_area->base_pa, secret_area->size);
182 if (s->secret_data == NULL) {
183 pr_err("Could not map secret area\n");
184 ret = -ENOMEM;
185 goto unmap;
186 }
187
188 s->secret_data_len = secret_area->size;
189 ret = 0;
190
191 unmap:
192 memunmap(secret_area);
193 return ret;
194 }
195
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
Re: [PATCH 1/2] mmc: cavium: Fix voltage reg. switching for card slots
by kernel test robot
Hi Wojciech,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v5.16-rc1 next-20211118]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Wojciech-Bartczak/mmc-cavium-Fix...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: ia64-buildonly-randconfig-r005-20211119 (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/1a0194dde9d7f7c97c8257103835b04cb...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Wojciech-Bartczak/mmc-cavium-Fix-MMC-supply-switching-for-cards/20211118-063028
git checkout 1a0194dde9d7f7c97c8257103835b04cbaf50f3b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/mmc/host/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/mmc/host/cavium.c:205: warning: expecting prototype for pre_switch(). Prototype was for switch_vqmmc() instead
vim +205 drivers/mmc/host/cavium.c
ba3869ff32e4a6 Jan Glauber 2017-03-30 195
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 196 /**
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 197 * pre_switch - Switch voltage regulators
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 198 * @prev: Current slot, can be NULL
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 199 * @next: Next slot
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 200 *
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 201 * Switch between regulators used by slots. This call has to be done
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 202 * after call to pre_switch().
ba3869ff32e4a6 Jan Glauber 2017-03-30 203 */
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 204 static void switch_vqmmc(struct cvm_mmc_slot *prev, struct cvm_mmc_slot *next)
ba3869ff32e4a6 Jan Glauber 2017-03-30 @205 {
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 206 bool same_vqmmc = false;
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 207 struct regulator *next_vqmmc;
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 208 struct regulator *prev_vqmmc;
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 209
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 210 next_vqmmc = next->mmc->supply.vqmmc;
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 211 if (prev) {
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 212 prev_vqmmc = prev->mmc->supply.vqmmc;
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 213 /* Prev slot and next slot share vqmmc? */
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 214 same_vqmmc = prev_vqmmc == next_vqmmc;
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 215 /* Disable old regulator, if not the same */
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 216 if (!same_vqmmc && !IS_ERR_OR_NULL(prev_vqmmc))
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 217 regulator_disable(prev_vqmmc);
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 218 }
ba3869ff32e4a6 Jan Glauber 2017-03-30 219
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 220 /* Enable regulator for next slot */
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 221 if (!same_vqmmc && !IS_ERR_OR_NULL(next_vqmmc)) {
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 222 int ret;
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 223
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 224 ret = regulator_enable(next_vqmmc);
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 225 if (ret)
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 226 dev_err(mmc_classdev(next->mmc),
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 227 "Can't enable vqmmc, error (%d)!\n", ret);
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 228 }
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 229 }
1a0194dde9d7f7 Wojciech Bartczak 2021-11-17 230
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[jolsa-perf:bpf/batch 17/29] kernel/bpf/trampoline.c:118: undefined reference to `bpf_check_attach_target'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/batch
head: 5f1f613266bf58f8424a93e1f8b99c4ac8fa6c2b
commit: 12ea728e52b0432131a800281f2015a7358b3d81 [17/29] bpf: Resolve id in bpf_tramp_id_single
config: i386-randconfig-c023-20211118 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id...
git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
git fetch --no-tags jolsa-perf bpf/batch
git checkout 12ea728e52b0432131a800281f2015a7358b3d81
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: kernel/bpf/trampoline.o: in function `bpf_tramp_id_single':
>> kernel/bpf/trampoline.c:118: undefined reference to `bpf_check_attach_target'
>> ld: kernel/bpf/trampoline.c:129: undefined reference to `btf_obj_id'
ld: kernel/bpf/trampoline.o: in function `bpf_tramp_attach':
kernel/bpf/trampoline.c:644: undefined reference to `bpf_check_attach_model'
vim +118 kernel/bpf/trampoline.c
106
107 struct bpf_tramp_id *bpf_tramp_id_single(const struct bpf_prog *tgt_prog,
108 struct bpf_prog *prog, u32 btf_id,
109 struct bpf_attach_target_info *tgt_info)
110 {
111 struct bpf_tramp_id *id;
112
113 if (!tgt_info) {
114 struct bpf_attach_target_info __tgt_info = {};
115 int err;
116
117 tgt_info = &__tgt_info;
> 118 err = bpf_check_attach_target(NULL, prog, tgt_prog, btf_id,
119 tgt_info);
120 if (err)
121 return ERR_PTR(err);
122 }
123 id = bpf_tramp_id_alloc(1);
124 if (!id)
125 return ERR_PTR(-ENOMEM);
126 if (tgt_prog)
127 id->obj_id = tgt_prog->aux->id;
128 else
> 129 id->obj_id = btf_obj_id(prog->aux->attach_btf);
130 id->id[0] = btf_id;
131 id->addr[0] = (void *) tgt_info->tgt_addr;
132 id->cnt = 1;
133 return id;
134 }
135
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
Re: [RFC PATCH v3 18/29] KVM: arm64: Add kunit test for ID register validation
by kernel test robot
Hi Reiji,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on v5.16-rc1]
[also build test WARNING on next-20211118]
[cannot apply to kvmarm/next kvm/queue arm64/for-next/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Reiji-Watanabe/KVM-arm64-Make-CP...
base: fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/4b1edce3c1994d2991acee8d1a2b483d8...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Reiji-Watanabe/KVM-arm64-Make-CPU-ID-registers-writable-by-userspace/20211117-145539
git checkout 4b1edce3c1994d2991acee8d1a2b483d8134edaf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2455:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2455 | PMU_PMEVTYPER_EL0(23),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: note: (near initialization for 'sys_reg_descs[361].reset')
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2455:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2455 | PMU_PMEVTYPER_EL0(23),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: warning: initialized field overwritten [-Woverride-init]
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2456:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2456 | PMU_PMEVTYPER_EL0(24),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: note: (near initialization for 'sys_reg_descs[362].reset')
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2456:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2456 | PMU_PMEVTYPER_EL0(24),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: warning: initialized field overwritten [-Woverride-init]
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2457:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2457 | PMU_PMEVTYPER_EL0(25),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: note: (near initialization for 'sys_reg_descs[363].reset')
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2457:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2457 | PMU_PMEVTYPER_EL0(25),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: warning: initialized field overwritten [-Woverride-init]
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2458:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2458 | PMU_PMEVTYPER_EL0(26),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: note: (near initialization for 'sys_reg_descs[364].reset')
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2458:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2458 | PMU_PMEVTYPER_EL0(26),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: warning: initialized field overwritten [-Woverride-init]
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2459:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2459 | PMU_PMEVTYPER_EL0(27),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: note: (near initialization for 'sys_reg_descs[365].reset')
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2459:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2459 | PMU_PMEVTYPER_EL0(27),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: warning: initialized field overwritten [-Woverride-init]
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2460:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2460 | PMU_PMEVTYPER_EL0(28),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: note: (near initialization for 'sys_reg_descs[366].reset')
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2460:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2460 | PMU_PMEVTYPER_EL0(28),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: warning: initialized field overwritten [-Woverride-init]
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2461:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2461 | PMU_PMEVTYPER_EL0(29),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: note: (near initialization for 'sys_reg_descs[367].reset')
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2461:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2461 | PMU_PMEVTYPER_EL0(29),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: warning: initialized field overwritten [-Woverride-init]
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2462:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2462 | PMU_PMEVTYPER_EL0(30),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1678:20: note: (near initialization for 'sys_reg_descs[368].reset')
1678 | .reset = reset_pmevtyper, \
| ^~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2462:9: note: in expansion of macro 'PMU_PMEVTYPER_EL0'
2462 | PMU_PMEVTYPER_EL0(30),
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:2468:20: warning: initialized field overwritten [-Woverride-init]
2468 | .reset = reset_val, .reg = PMCCFILTR_EL0, .val = 0 },
| ^~~~~~~~~
arch/arm64/kvm/sys_regs.c:2468:20: note: (near initialization for 'sys_reg_descs[369].reset')
In file included from arch/arm64/kvm/sys_regs.c:3635:
>> arch/arm64/kvm/sys_regs_test.c:135:6: warning: no previous prototype for 'arm64_check_feature_one_test' [-Wmissing-prototypes]
135 | void arm64_check_feature_one_test(struct kunit *test)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kvm/sys_regs_test.c:217:6: warning: no previous prototype for 'arm64_check_features_test' [-Wmissing-prototypes]
217 | void arm64_check_features_test(struct kunit *test)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/arm64_check_feature_one_test +135 arch/arm64/kvm/sys_regs_test.c
134
> 135 void arm64_check_feature_one_test(struct kunit *test)
136 {
137 const struct check_feature_one_test *ft = test->param_value;
138
139 KUNIT_EXPECT_EQ(test,
140 arm64_check_feature_one(ft->type, ft->value, ft->limit),
141 ft->expected);
142 }
143
144 KUNIT_ARRAY_PARAM(feature_one, feature_one_params, feature_one_case_to_desc);
145
146
147 /* Test parameter information to test arm64_check_features */
148 struct check_features_test {
149 u64 check_types;
150 u64 value;
151 u64 limit;
152 int expected;
153 };
154
155 #define U_FEAT_TEST(shift, type, value, limit, exp) \
156 {U_FCT(shift, type), (u64)value << shift, (u64)limit << shift, exp}
157
158 #define S_FEAT_TEST(shift, type, value, limit, exp) \
159 {S_FCT(shift, type), (u64)value << shift, (u64)limit << shift, exp}
160
161 struct check_features_test features_params[] = {
162 /* Unsigned */
163 U_FEAT_TEST(0, FCT_LOWER_SAFE, 1, 2, 0),
164 U_FEAT_TEST(0, FCT_HIGHER_SAFE, 1, 2, -E2BIG),
165 U_FEAT_TEST(0, FCT_HIGHER_OR_ZERO_SAFE, 1, 2, -E2BIG),
166 U_FEAT_TEST(0, FCT_EXACT, 1, 2, -E2BIG),
167 U_FEAT_TEST(0, FCT_IGNORE, 1, 2, 0),
168 U_FEAT_TEST(0, FCT_LOWER_SAFE, 1, 0xf, 0),
169 U_FEAT_TEST(0, FCT_HIGHER_SAFE, 1, 0xf, -E2BIG),
170 U_FEAT_TEST(0, FCT_HIGHER_OR_ZERO_SAFE, 1, 0xf, -E2BIG),
171 U_FEAT_TEST(0, FCT_EXACT, 1, 0xf, -E2BIG),
172 U_FEAT_TEST(0, FCT_IGNORE, 1, 0xf, 0),
173 U_FEAT_TEST(60, FCT_LOWER_SAFE, 1, 2, 0),
174 U_FEAT_TEST(60, FCT_HIGHER_SAFE, 1, 2, -E2BIG),
175 U_FEAT_TEST(60, FCT_HIGHER_OR_ZERO_SAFE, 1, 2, -E2BIG),
176 U_FEAT_TEST(60, FCT_EXACT, 1, 2, -E2BIG),
177 U_FEAT_TEST(60, FCT_IGNORE, 1, 2, 0),
178 U_FEAT_TEST(60, FCT_LOWER_SAFE, 1, 0xf, 0),
179 U_FEAT_TEST(60, FCT_HIGHER_SAFE, 1, 0xf, -E2BIG),
180 U_FEAT_TEST(60, FCT_HIGHER_OR_ZERO_SAFE, 1, 0xf, -E2BIG),
181 U_FEAT_TEST(60, FCT_EXACT, 1, 0xf, -E2BIG),
182 U_FEAT_TEST(60, FCT_IGNORE, 1, 0xf, 0),
183
184 /* Signed */
185 S_FEAT_TEST(0, FCT_LOWER_SAFE, 1, 2, 0),
186 S_FEAT_TEST(0, FCT_HIGHER_SAFE, 1, 2, -E2BIG),
187 S_FEAT_TEST(0, FCT_HIGHER_OR_ZERO_SAFE, 1, 2, -E2BIG),
188 S_FEAT_TEST(0, FCT_EXACT, 1, 2, -E2BIG),
189 S_FEAT_TEST(0, FCT_IGNORE, 1, 2, 0),
190 S_FEAT_TEST(0, FCT_LOWER_SAFE, 1, 0xf, -E2BIG),
191 S_FEAT_TEST(0, FCT_HIGHER_SAFE, 1, 0xf, 0),
192 S_FEAT_TEST(0, FCT_HIGHER_OR_ZERO_SAFE, 1, 0xf, 0),
193 S_FEAT_TEST(0, FCT_EXACT, 1, 0xf, -E2BIG),
194 S_FEAT_TEST(0, FCT_IGNORE, 1, 0xf, 0),
195 S_FEAT_TEST(60, FCT_LOWER_SAFE, 1, 2, 0),
196 S_FEAT_TEST(60, FCT_HIGHER_SAFE, 1, 2, -E2BIG),
197 S_FEAT_TEST(60, FCT_HIGHER_OR_ZERO_SAFE, 1, 2, -E2BIG),
198 S_FEAT_TEST(60, FCT_EXACT, 1, 2, -E2BIG),
199 S_FEAT_TEST(60, FCT_IGNORE, 1, 2, 0),
200 S_FEAT_TEST(60, FCT_LOWER_SAFE, 1, 0xf, -E2BIG),
201 S_FEAT_TEST(60, FCT_HIGHER_SAFE, 1, 0xf, 0),
202 S_FEAT_TEST(60, FCT_HIGHER_OR_ZERO_SAFE, 1, 0xf, 0),
203 S_FEAT_TEST(60, FCT_EXACT, 1, 0xf, -E2BIG),
204 S_FEAT_TEST(60, FCT_IGNORE, 1, 0xf, 0),
205 };
206
207 static void features_case_to_desc(struct check_features_test *t, char *desc)
208 {
209 snprintf(desc, KUNIT_PARAM_DESC_SIZE,
210 "check_types:0x%llx, value:0x%llx, limit:0x%llx\n",
211 t->check_types, t->value, t->limit);
212 }
213
214 KUNIT_ARRAY_PARAM(features, features_params, features_case_to_desc);
215
216
> 217 void arm64_check_features_test(struct kunit *test)
218 {
219 const struct check_features_test *ft = test->param_value;
220
221 KUNIT_EXPECT_EQ(test,
222 arm64_check_features(ft->check_types, ft->value, ft->limit),
223 ft->expected);
224 }
225
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[shenki:microwatt-v5.16 3/9] drivers/mmc/host/litex_mmc.c:96:6: warning: no previous prototype for 'sdclk_set_clk'
by kernel test robot
tree: https://github.com/shenki/linux microwatt-v5.16
head: 8e96c87e7fba5fb249efd40842c26c2bb426d49c
commit: 332995960c8d441be0974f27a128b2856139074a [3/9] LiteX: driver for LiteSDCard (litex_mmc)
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/shenki/linux/commit/332995960c8d441be0974f27a128b28561...
git remote add shenki https://github.com/shenki/linux
git fetch --no-tags shenki microwatt-v5.16
git checkout 332995960c8d441be0974f27a128b2856139074a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/mmc/host/litex_mmc.c:96:6: warning: no previous prototype for 'sdclk_set_clk' [-Wmissing-prototypes]
96 | void sdclk_set_clk(struct litex_mmc_host *host, unsigned int clk_freq) {
| ^~~~~~~~~~~~~
vim +/sdclk_set_clk +96 drivers/mmc/host/litex_mmc.c
94
95
> 96 void sdclk_set_clk(struct litex_mmc_host *host, unsigned int clk_freq) {
97 u32 div = clk_freq ? host->freq / clk_freq : 256;
98 div = roundup_pow_of_two(div);
99 div = min(max(div, (u32)2), (u32)256);
100 dev_info(&host->dev->dev,
101 "Requested clk_freq=%d: set to %d via div=%d\n",
102 clk_freq, host->freq / div, div);
103 litex_write16(host->sdphy + LITEX_MMC_SDPHY_CLOCKERDIV_OFF, div);
104 }
105
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[mcgrof-next:20211118-sysctl-cleanups-set-04-v2 8/36] fs/aio.c:246:62: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211118-sysctl-cleanups-set-04-v2
head: 3110d41a56792588bd2f64621080948b0fceb6ab
commit: f413b2178aaff38d62d6c905d716d218388537a2 [8/36] aio: move aio sysctl to aio.c
config: nds32-allnoconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20211118-sysctl-cleanups-set-04-v2
git checkout f413b2178aaff38d62d6c905d716d218388537a2
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nds32 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
fs/aio.c: In function 'aio_sysctl_init':
>> fs/aio.c:246:62: error: macro "register_sysctl_init" passed 3 arguments, but takes just 2
246 | register_sysctl_init("fs", aio_sysctls, "aio_sysctls");
| ^
In file included from include/linux/key.h:17,
from include/linux/cred.h:13,
from include/linux/sched/signal.h:10,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/uapi/linux/aio_abi.h:31,
from fs/aio.c:18:
include/linux/sysctl.h:210: note: macro "register_sysctl_init" defined here
210 | #define register_sysctl_init(path, table) __register_sysctl_init(path, table, #table)
|
>> fs/aio.c:246:9: error: 'register_sysctl_init' undeclared (first use in this function); did you mean 'register_sysctl_paths'?
246 | register_sysctl_init("fs", aio_sysctls, "aio_sysctls");
| ^~~~~~~~~~~~~~~~~~~~
| register_sysctl_paths
fs/aio.c:246:9: note: each undeclared identifier is reported only once for each function it appears in
At top level:
fs/aio.c:226:25: warning: 'aio_sysctls' defined but not used [-Wunused-variable]
226 | static struct ctl_table aio_sysctls[] = {
| ^~~~~~~~~~~
vim +/register_sysctl_init +246 fs/aio.c
243
244 static void __init aio_sysctl_init(void)
245 {
> 246 register_sysctl_init("fs", aio_sysctls, "aio_sysctls");
247 }
248 #else
249 #define aio_sysctl_init() do { } while (0)
250 #endif
251
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months