[asahilinux:nvme/dev 19/19] nios2-linux-ld: apple.c:undefined reference to `devm_apple_rtkit_init'
by kernel test robot
tree: https://github.com/AsahiLinux/linux nvme/dev
head: 462512213a677fa8bca25bbe2928f188848f5411
commit: 462512213a677fa8bca25bbe2928f188848f5411 [19/19] HACK/DO-NOT-MERGE: nvme-apple: add initial Apple SoC NVMe driver
config: nios2-allyesconfig (https://download.01.org/0day-ci/archive/20211218/202112181927.rVMtiuCD-lk...)
compiler: nios2-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/AsahiLinux/linux/commit/462512213a677fa8bca25bbe2928f1...
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux nvme/dev
git checkout 462512213a677fa8bca25bbe2928f188848f5411
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 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 >>):
nios2-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_sart_dma_free':
apple.c:(.text+0x5f4): undefined reference to `apple_sart_remove_allowed_region'
apple.c:(.text+0x5f4): relocation truncated to fit: R_NIOS2_CALL26 against `apple_sart_remove_allowed_region'
nios2-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_sart_dma_alloc':
apple.c:(.text+0x68c): undefined reference to `apple_sart_add_allowed_region'
apple.c:(.text+0x68c): relocation truncated to fit: R_NIOS2_CALL26 against `apple_sart_add_allowed_region'
nios2-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_probe':
apple.c:(.text+0x1754): undefined reference to `apple_sart_get'
apple.c:(.text+0x1754): relocation truncated to fit: R_NIOS2_CALL26 against `apple_sart_get'
>> nios2-linux-ld: apple.c:(.text+0x1970): undefined reference to `devm_apple_rtkit_init'
apple.c:(.text+0x1970): relocation truncated to fit: R_NIOS2_CALL26 against `devm_apple_rtkit_init'
nios2-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_disable':
apple.c:(.text+0x1bb0): undefined reference to `apple_rtkit_is_crashed'
apple.c:(.text+0x1bb0): relocation truncated to fit: R_NIOS2_CALL26 against `apple_rtkit_is_crashed'
nios2-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_shutdown':
apple.c:(.text+0x1de0): undefined reference to `apple_rtkit_is_running'
apple.c:(.text+0x1de0): relocation truncated to fit: R_NIOS2_CALL26 against `apple_rtkit_is_running'
>> nios2-linux-ld: apple.c:(.text+0x1df0): undefined reference to `apple_rtkit_shutdown'
apple.c:(.text+0x1df0): relocation truncated to fit: R_NIOS2_CALL26 against `apple_rtkit_shutdown'
nios2-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_remove':
apple.c:(.text+0x1e94): undefined reference to `apple_rtkit_is_running'
apple.c:(.text+0x1e94): relocation truncated to fit: R_NIOS2_CALL26 against `apple_rtkit_is_running'
nios2-linux-ld: apple.c:(.text+0x1ea4): undefined reference to `apple_rtkit_shutdown'
apple.c:(.text+0x1ea4): relocation truncated to fit: R_NIOS2_CALL26 against `apple_rtkit_shutdown'
nios2-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_reset_work':
apple.c:(.text+0x1f5c): undefined reference to `apple_rtkit_is_crashed'
apple.c:(.text+0x1f5c): relocation truncated to fit: R_NIOS2_CALL26 against `apple_rtkit_is_crashed'
>> nios2-linux-ld: apple.c:(.text+0x1fb4): undefined reference to `apple_rtkit_is_running'
apple.c:(.text+0x1fb4): additional relocation overflows omitted from the output
nios2-linux-ld: apple.c:(.text+0x2014): undefined reference to `apple_rtkit_shutdown'
>> nios2-linux-ld: apple.c:(.text+0x2028): undefined reference to `apple_rtkit_reinit'
>> nios2-linux-ld: apple.c:(.text+0x205c): undefined reference to `apple_rtkit_boot'
nios2-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_timeout':
apple.c:(.text+0x2750): undefined reference to `apple_rtkit_is_crashed'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months
[thomash:async_vma10 6/7] drivers/gpu/drm/i915/i915_vma_resource.c:379:39: error: format specifies type 'unsigned long' but the argument has type 'unsigned int'
by kernel test robot
tree: git://people.freedesktop.org/~thomash/linux async_vma10
head: 597bad76cbd833089ad27552582b3a0ac942f8ba
commit: 7a09f14a4d7a15d8b0568e527448617a72ee51e8 [6/7] drm/i915: Use vma resources for async unbinding
config: i386-randconfig-r011-20211216 (https://download.01.org/0day-ci/archive/20211218/202112181745.36r8RZEy-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4c9e31a4814592bbda7153833e46728dc7b21100)
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
git remote add thomash git://people.freedesktop.org/~thomash/linux
git fetch --no-tags thomash async_vma10
git checkout 7a09f14a4d7a15d8b0568e527448617a72ee51e8
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/i915/
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/gpu/drm/i915/i915_vma_resource.c:379:39: error: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Werror,-Wformat]
pr_err("vma resource size is %lu\n", sizeof(struct i915_vma_resource));
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%u
include/linux/printk.h:493:33: note: expanded from macro 'pr_err'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:450:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:422:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
1 error generated.
vim +379 drivers/gpu/drm/i915/i915_vma_resource.c
376
377 int __init i915_vma_resource_module_init(void)
378 {
> 379 pr_err("vma resource size is %lu\n", sizeof(struct i915_vma_resource));
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months
[linux-next:master 7642/8462] drivers/soc/tegra/fuse/fuse-tegra.c:188:20: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: c122052c3cb861b3e61a01d2c2ab9069e470663e
commit: 88724b78a84c85350c21ac8d4432f2cf5a77a10a [7642/8462] soc/tegra: fuse: Use resource-managed helpers
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20211218/202112181724.3i1cWCNa-lk...)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 88724b78a84c85350c21ac8d4432f2cf5a77a10a
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash drivers/soc/tegra/fuse/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/soc/tegra/fuse/fuse-tegra.c:188:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *base @@ got void *base @@
drivers/soc/tegra/fuse/fuse-tegra.c:188:20: sparse: expected void [noderef] __iomem *base
drivers/soc/tegra/fuse/fuse-tegra.c:188:20: sparse: got void *base
>> drivers/soc/tegra/fuse/fuse-tegra.c:198:63: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void *data @@ got void [noderef] __iomem *base @@
drivers/soc/tegra/fuse/fuse-tegra.c:198:63: sparse: expected void *data
drivers/soc/tegra/fuse/fuse-tegra.c:198:63: sparse: got void [noderef] __iomem *base
vim +188 drivers/soc/tegra/fuse/fuse-tegra.c
184
185 static void tegra_fuse_restore(void *base)
186 {
187 fuse->clk = NULL;
> 188 fuse->base = base;
189 }
190
191 static int tegra_fuse_probe(struct platform_device *pdev)
192 {
193 void __iomem *base = fuse->base;
194 struct nvmem_config nvmem;
195 struct resource *res;
196 int err;
197
> 198 err = devm_add_action(&pdev->dev, tegra_fuse_restore, base);
199 if (err)
200 return err;
201
202 /* take over the memory region from the early initialization */
203 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
204 fuse->phys = res->start;
205 fuse->base = devm_ioremap_resource(&pdev->dev, res);
206 if (IS_ERR(fuse->base)) {
207 err = PTR_ERR(fuse->base);
208 return err;
209 }
210
211 fuse->clk = devm_clk_get(&pdev->dev, "fuse");
212 if (IS_ERR(fuse->clk)) {
213 if (PTR_ERR(fuse->clk) != -EPROBE_DEFER)
214 dev_err(&pdev->dev, "failed to get FUSE clock: %ld",
215 PTR_ERR(fuse->clk));
216
217 return PTR_ERR(fuse->clk);
218 }
219
220 platform_set_drvdata(pdev, fuse);
221 fuse->dev = &pdev->dev;
222
223 err = devm_pm_runtime_enable(&pdev->dev);
224 if (err)
225 return err;
226
227 if (fuse->soc->probe) {
228 err = fuse->soc->probe(fuse);
229 if (err < 0)
230 return err;
231 }
232
233 memset(&nvmem, 0, sizeof(nvmem));
234 nvmem.dev = &pdev->dev;
235 nvmem.name = "fuse";
236 nvmem.id = -1;
237 nvmem.owner = THIS_MODULE;
238 nvmem.cells = tegra_fuse_cells;
239 nvmem.ncells = ARRAY_SIZE(tegra_fuse_cells);
240 nvmem.type = NVMEM_TYPE_OTP;
241 nvmem.read_only = true;
242 nvmem.root_only = true;
243 nvmem.reg_read = tegra_fuse_read;
244 nvmem.size = fuse->soc->info->size;
245 nvmem.word_size = 4;
246 nvmem.stride = 4;
247 nvmem.priv = fuse;
248
249 fuse->nvmem = devm_nvmem_register(&pdev->dev, &nvmem);
250 if (IS_ERR(fuse->nvmem)) {
251 err = PTR_ERR(fuse->nvmem);
252 dev_err(&pdev->dev, "failed to register NVMEM device: %d\n",
253 err);
254 return err;
255 }
256
257 fuse->rst = devm_reset_control_get_optional(&pdev->dev, "fuse");
258 if (IS_ERR(fuse->rst)) {
259 err = PTR_ERR(fuse->rst);
260 dev_err(&pdev->dev, "failed to get FUSE reset: %pe\n",
261 fuse->rst);
262 return err;
263 }
264
265 /*
266 * FUSE clock is enabled at a boot time, hence this resume/suspend
267 * disables the clock besides the h/w resetting.
268 */
269 err = pm_runtime_resume_and_get(&pdev->dev);
270 if (err)
271 return err;
272
273 err = reset_control_reset(fuse->rst);
274 pm_runtime_put(&pdev->dev);
275
276 if (err < 0) {
277 dev_err(&pdev->dev, "failed to reset FUSE: %d\n", err);
278 return err;
279 }
280
281 /* release the early I/O memory mapping */
282 iounmap(base);
283
284 return 0;
285 }
286
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months
Re: [PATCH 2/2] ata: pata_platform: Merge pata_of_platform into pata_platform
by kernel test robot
Hi Lad,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.16-rc5 next-20211217]
[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/Lad-Prabhakar/ata-pata_platform-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 6441998e2e37131b0a4c310af9156d79d3351c16
config: x86_64-randconfig-a015-20211216 (https://download.01.org/0day-ci/archive/20211218/202112181626.BwlfTnhn-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9043c3d65b11b442226015acfbf8167684586cfa)
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/2afb31eaebf47bea2adaec197e8aa2574...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Lad-Prabhakar/ata-pata_platform-Refurbish-the-driver/20211217-222115
git checkout 2afb31eaebf47bea2adaec197e8aa25744c15bf6
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/
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/ata/pata_platform.c:232:37: error: implicit declaration of function 'irq_get_trigger_type' [-Werror,-Wimplicit-function-declaration]
irq_res->flags = IORESOURCE_IRQ | irq_get_trigger_type(irq);
^
1 error generated.
vim +/irq_get_trigger_type +232 drivers/ata/pata_platform.c
193
194 static int pata_of_platform_get_pdata(struct platform_device *ofdev,
195 struct pata_platform_priv *priv)
196 {
197 struct device_node *dn = ofdev->dev.of_node;
198 struct resource *ctl_res;
199 struct resource *irq_res;
200 struct resource *io_res;
201 int pio_mode = 0;
202 int irq;
203 int ret;
204
205 ctl_res = devm_kzalloc(&ofdev->dev, sizeof(*ctl_res), GFP_KERNEL);
206 io_res = devm_kzalloc(&ofdev->dev, sizeof(*io_res), GFP_KERNEL);
207 irq_res = devm_kzalloc(&ofdev->dev, sizeof(*irq_res), GFP_KERNEL);
208 if (!ctl_res || !io_res || !irq_res)
209 return -ENOMEM;
210
211 ret = of_address_to_resource(dn, 0, io_res);
212 if (ret) {
213 dev_err(&ofdev->dev, "can't get IO address from device tree\n");
214 return -EINVAL;
215 }
216 priv->io_res = io_res;
217
218 ret = of_address_to_resource(dn, 1, ctl_res);
219 if (ret) {
220 dev_err(&ofdev->dev, "can't get CTL address from device tree\n");
221 return -EINVAL;
222 }
223 priv->ctl_res = ctl_res;
224
225 irq = platform_get_irq_optional(ofdev, 0);
226 if (irq <= 0 && irq != -ENXIO)
227 return irq ? irq : -ENXIO;
228
229 if (irq > 0) {
230 irq_res->start = irq;
231 irq_res->end = irq;
> 232 irq_res->flags = IORESOURCE_IRQ | irq_get_trigger_type(irq);
233 priv->irq_res = irq_res;
234 } else {
235 devm_kfree(&ofdev->dev, io_res);
236 }
237
238 of_property_read_u32(dn, "reg-shift", &priv->ioport_shift);
239
240 if (!of_property_read_u32(dn, "pio-mode", &pio_mode)) {
241 if (pio_mode > 6) {
242 dev_err(&ofdev->dev, "invalid pio-mode\n");
243 return -EINVAL;
244 }
245 } else {
246 dev_info(&ofdev->dev, "pio-mode unspecified, assuming PIO0\n");
247 }
248
249 priv->use16bit = of_property_read_bool(dn, "ata-generic,use16bit");
250
251 priv->mask = 1 << pio_mode;
252 priv->mask |= (1 << pio_mode) - 1;
253
254 return 0;
255 }
256
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months
[nbdd0121:riscv 1/4] arch/riscv/kernel/head.S:232:6: error: unknown operand
by kernel test robot
tree: https://github.com/nbdd0121/linux riscv
head: 696be59be32488c7c2417cd633008c2162f89fa8
commit: 4481ee1b02354fde9960268a3fd8d638124aba1a [1/4] riscv: enable TIME CSR in U mode
config: riscv-randconfig-r011-20211216 (https://download.01.org/0day-ci/archive/20211218/202112181654.Fct7RFbP-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9043c3d65b11b442226015acfbf8167684586cfa)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/nbdd0121/linux/commit/4481ee1b02354fde9960268a3fd8d638...
git remote add nbdd0121 https://github.com/nbdd0121/linux
git fetch --no-tags nbdd0121 riscv
git checkout 4481ee1b02354fde9960268a3fd8d638124aba1a
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv 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 >>):
>> arch/riscv/kernel/head.S:232:6: error: unknown operand
csrw, CSR_MCOUNTEREN, 2
^
vim +232 arch/riscv/kernel/head.S
203
204 ENTRY(_start_kernel)
205 /* Mask all interrupts */
206 csrw CSR_IE, zero
207 csrw CSR_IP, zero
208
209 #ifdef CONFIG_RISCV_M_MODE
210 /* flush the instruction cache */
211 fence.i
212
213 /* Reset all registers except ra, a0, a1 */
214 call reset_regs
215
216 /*
217 * Setup a PMP to permit access to all of memory. Some machines may
218 * not implement PMPs, so we set up a quick trap handler to just skip
219 * touching the PMPs on any trap.
220 */
221 la a0, pmp_done
222 csrw CSR_TVEC, a0
223
224 li a0, -1
225 csrw CSR_PMPADDR0, a0
226 li a0, (PMP_A_NAPOT | PMP_R | PMP_W | PMP_X)
227 csrw CSR_PMPCFG0, a0
228 .align 2
229 pmp_done:
230
231 /* Allow user-mode to access time CSR */
> 232 csrw, CSR_MCOUNTEREN, 2
233
234 /*
235 * The hartid in a0 is expected later on, and we have no firmware
236 * to hand it to us.
237 */
238 csrr a0, CSR_MHARTID
239 #endif /* CONFIG_RISCV_M_MODE */
240
241 /* Allow user-mode to access time CSR */
242 csrw CSR_SCOUNTEREN, 2
243
244 /* Load the global pointer */
245 .option push
246 .option norelax
247 la gp, __global_pointer$
248 .option pop
249
250 /*
251 * Disable FPU to detect illegal usage of
252 * floating point in kernel space
253 */
254 li t0, SR_FS
255 csrc CSR_STATUS, t0
256
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months
[intel-tdx:kvm-upstream 81/152] arch/x86/kvm/vmx/tdx_stubs.c:16:72: error: use of undeclared identifier 'ENOPNOTSUPP'
by kernel test robot
tree: https://github.com/intel/tdx.git kvm-upstream
head: bdfe06c17daab60c196ff80c1d98467a1d3734fa
commit: 2a1d7e9bae19b842ad5ac81f5e0b549066b58ff7 [81/152] KVM: TDX: Do TDX specific vcpu initialization
config: x86_64-randconfig-a013-20211216 (https://download.01.org/0day-ci/archive/20211218/202112181310.4ECj0YDS-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dd245bab9fbb364faa1581e4f92ba3119a872fba)
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/intel/tdx/commit/2a1d7e9bae19b842ad5ac81f5e0b549066b58ff7
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx kvm-upstream
git checkout 2a1d7e9bae19b842ad5ac81f5e0b549066b58ff7
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 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 >>):
arch/x86/kvm/vmx/tdx_stubs.c:4:13: warning: no previous prototype for function 'tdx_pre_kvm_init' [-Wmissing-prototypes]
void __init tdx_pre_kvm_init(unsigned int *vcpu_size,
^
arch/x86/kvm/vmx/tdx_stubs.c:4:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init tdx_pre_kvm_init(unsigned int *vcpu_size,
^
static
arch/x86/kvm/vmx/tdx_stubs.c:6:12: warning: no previous prototype for function 'tdx_hardware_setup' [-Wmissing-prototypes]
int __init tdx_hardware_setup(struct kvm_x86_ops *x86_ops) { return -EOPNOTSUPP; }
^
arch/x86/kvm/vmx/tdx_stubs.c:6:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __init tdx_hardware_setup(struct kvm_x86_ops *x86_ops) { return -EOPNOTSUPP; }
^
static
arch/x86/kvm/vmx/tdx_stubs.c:7:6: warning: no previous prototype for function 'tdx_hardware_enable' [-Wmissing-prototypes]
void tdx_hardware_enable(void) {}
^
arch/x86/kvm/vmx/tdx_stubs.c:7:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void tdx_hardware_enable(void) {}
^
static
arch/x86/kvm/vmx/tdx_stubs.c:8:6: warning: no previous prototype for function 'tdx_hardware_disable' [-Wmissing-prototypes]
void tdx_hardware_disable(void) {}
^
arch/x86/kvm/vmx/tdx_stubs.c:8:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void tdx_hardware_disable(void) {}
^
static
arch/x86/kvm/vmx/tdx_stubs.c:10:5: warning: no previous prototype for function 'tdx_vcpu_create' [-Wmissing-prototypes]
int tdx_vcpu_create(struct kvm_vcpu *vcpu) { return -EOPNOTSUPP; }
^
arch/x86/kvm/vmx/tdx_stubs.c:10:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int tdx_vcpu_create(struct kvm_vcpu *vcpu) { return -EOPNOTSUPP; }
^
static
arch/x86/kvm/vmx/tdx_stubs.c:11:6: warning: no previous prototype for function 'tdx_vcpu_free' [-Wmissing-prototypes]
void tdx_vcpu_free(struct kvm_vcpu *vcpu) {}
^
arch/x86/kvm/vmx/tdx_stubs.c:11:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void tdx_vcpu_free(struct kvm_vcpu *vcpu) {}
^
static
arch/x86/kvm/vmx/tdx_stubs.c:12:6: warning: no previous prototype for function 'tdx_vcpu_reset' [-Wmissing-prototypes]
void tdx_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event) {}
^
arch/x86/kvm/vmx/tdx_stubs.c:12:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void tdx_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event) {}
^
static
arch/x86/kvm/vmx/tdx_stubs.c:14:5: warning: no previous prototype for function 'tdx_dev_ioctl' [-Wmissing-prototypes]
int tdx_dev_ioctl(void __user *argp) { return -EOPNOTSUPP; }
^
arch/x86/kvm/vmx/tdx_stubs.c:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int tdx_dev_ioctl(void __user *argp) { return -EOPNOTSUPP; }
^
static
arch/x86/kvm/vmx/tdx_stubs.c:15:5: warning: no previous prototype for function 'tdx_vm_ioctl' [-Wmissing-prototypes]
int tdx_vm_ioctl(struct kvm *kvm, void __user *argp) { return -EOPNOTSUPP; }
^
arch/x86/kvm/vmx/tdx_stubs.c:15:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int tdx_vm_ioctl(struct kvm *kvm, void __user *argp) { return -EOPNOTSUPP; }
^
static
>> arch/x86/kvm/vmx/tdx_stubs.c:16:72: error: use of undeclared identifier 'ENOPNOTSUPP'
int tdx_vcpu_ioctl(struct kvm_vcpu *vcpu, void __user *argp) { return -ENOPNOTSUPP; }
^
arch/x86/kvm/vmx/tdx_stubs.c:16:5: warning: no previous prototype for function 'tdx_vcpu_ioctl' [-Wmissing-prototypes]
int tdx_vcpu_ioctl(struct kvm_vcpu *vcpu, void __user *argp) { return -ENOPNOTSUPP; }
^
arch/x86/kvm/vmx/tdx_stubs.c:16:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int tdx_vcpu_ioctl(struct kvm_vcpu *vcpu, void __user *argp) { return -ENOPNOTSUPP; }
^
static
10 warnings and 1 error generated.
vim +/ENOPNOTSUPP +16 arch/x86/kvm/vmx/tdx_stubs.c
13
14 int tdx_dev_ioctl(void __user *argp) { return -EOPNOTSUPP; }
15 int tdx_vm_ioctl(struct kvm *kvm, void __user *argp) { return -EOPNOTSUPP; }
> 16 int tdx_vcpu_ioctl(struct kvm_vcpu *vcpu, void __user *argp) { return -ENOPNOTSUPP; }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months
[nbdd0121:riscv 1/4] arch/riscv/kernel/head.S:232: Error: unrecognized opcode `csrw, CSR_MCOUNTEREN,2'
by kernel test robot
tree: https://github.com/nbdd0121/linux riscv
head: 696be59be32488c7c2417cd633008c2162f89fa8
commit: 4481ee1b02354fde9960268a3fd8d638124aba1a [1/4] riscv: enable TIME CSR in U mode
config: riscv-nommu_k210_defconfig (https://download.01.org/0day-ci/archive/20211218/202112181138.GXFKRI6J-lk...)
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/nbdd0121/linux/commit/4481ee1b02354fde9960268a3fd8d638...
git remote add nbdd0121 https://github.com/nbdd0121/linux
git fetch --no-tags nbdd0121 riscv
git checkout 4481ee1b02354fde9960268a3fd8d638124aba1a
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash 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 >>):
arch/riscv/kernel/head.S: Assembler messages:
>> arch/riscv/kernel/head.S:232: Error: unrecognized opcode `csrw, CSR_MCOUNTEREN,2'
vim +232 arch/riscv/kernel/head.S
203
204 ENTRY(_start_kernel)
205 /* Mask all interrupts */
206 csrw CSR_IE, zero
207 csrw CSR_IP, zero
208
209 #ifdef CONFIG_RISCV_M_MODE
210 /* flush the instruction cache */
211 fence.i
212
213 /* Reset all registers except ra, a0, a1 */
214 call reset_regs
215
216 /*
217 * Setup a PMP to permit access to all of memory. Some machines may
218 * not implement PMPs, so we set up a quick trap handler to just skip
219 * touching the PMPs on any trap.
220 */
221 la a0, pmp_done
222 csrw CSR_TVEC, a0
223
224 li a0, -1
225 csrw CSR_PMPADDR0, a0
226 li a0, (PMP_A_NAPOT | PMP_R | PMP_W | PMP_X)
227 csrw CSR_PMPCFG0, a0
228 .align 2
229 pmp_done:
230
231 /* Allow user-mode to access time CSR */
> 232 csrw, CSR_MCOUNTEREN, 2
233
234 /*
235 * The hartid in a0 is expected later on, and we have no firmware
236 * to hand it to us.
237 */
238 csrr a0, CSR_MHARTID
239 #endif /* CONFIG_RISCV_M_MODE */
240
241 /* Allow user-mode to access time CSR */
242 csrw CSR_SCOUNTEREN, 2
243
244 /* Load the global pointer */
245 .option push
246 .option norelax
247 la gp, __global_pointer$
248 .option pop
249
250 /*
251 * Disable FPU to detect illegal usage of
252 * floating point in kernel space
253 */
254 li t0, SR_FS
255 csrc CSR_STATUS, t0
256
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months
[asahilinux:nvme/dev 19/19] apple.c:undefined reference to `apple_sart_remove_allowed_region'
by kernel test robot
tree: https://github.com/AsahiLinux/linux nvme/dev
head: 462512213a677fa8bca25bbe2928f188848f5411
commit: 462512213a677fa8bca25bbe2928f188848f5411 [19/19] HACK/DO-NOT-MERGE: nvme-apple: add initial Apple SoC NVMe driver
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20211218/202112181118.zRu1n8Nv-lk...)
compiler: m68k-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/AsahiLinux/linux/commit/462512213a677fa8bca25bbe2928f1...
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux nvme/dev
git checkout 462512213a677fa8bca25bbe2928f188848f5411
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k 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 >>):
m68k-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_sart_dma_free':
>> apple.c:(.text+0x51e): undefined reference to `apple_sart_remove_allowed_region'
m68k-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_sart_dma_alloc':
>> apple.c:(.text+0x5c4): undefined reference to `apple_sart_add_allowed_region'
m68k-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_probe':
>> apple.c:(.text+0x1332): undefined reference to `apple_sart_get'
>> m68k-linux-ld: apple.c:(.text+0x152e): undefined reference to `devm_apple_rtkit_init'
m68k-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_disable':
>> apple.c:(.text+0x16e4): undefined reference to `apple_rtkit_is_crashed'
m68k-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_shutdown':
>> apple.c:(.text+0x191e): undefined reference to `apple_rtkit_is_running'
>> m68k-linux-ld: apple.c:(.text+0x1930): undefined reference to `apple_rtkit_shutdown'
m68k-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_remove':
apple.c:(.text+0x19d6): undefined reference to `apple_rtkit_is_running'
m68k-linux-ld: apple.c:(.text+0x19e6): undefined reference to `apple_rtkit_shutdown'
m68k-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_timeout':
apple.c:(.text+0x1a80): undefined reference to `apple_rtkit_is_crashed'
m68k-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_reset_work':
apple.c:(.text+0x1b8e): undefined reference to `apple_rtkit_is_crashed'
>> m68k-linux-ld: apple.c:(.text+0x1bec): undefined reference to `apple_rtkit_is_running'
m68k-linux-ld: apple.c:(.text+0x1c44): undefined reference to `apple_rtkit_shutdown'
>> m68k-linux-ld: apple.c:(.text+0x1c58): undefined reference to `apple_rtkit_reinit'
>> m68k-linux-ld: apple.c:(.text+0x1c94): undefined reference to `apple_rtkit_boot'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months