tree: https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git master head: d8c53de23eec2c010894c814ceac769700182cf8 commit: 6a01797c6de0fe44c98eb92c690d04ca2d226599 [22/37] Merge remote-tracking branch 'drm-misc/for-linux-next' into renesas-drivers reproduce: # apt-get install sparse git checkout 6a01797c6de0fe44c98eb92c690d04ca2d226599 make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/lima/lima_ctx.c:26:43: sparse: incorrect type in argument 3 (different base types) @@ expected void *entry @@ got unsignvoid *entry @@ drivers/gpu/drm/lima/lima_ctx.c:26:43: expected void *entry drivers/gpu/drm/lima/lima_ctx.c:26:43: got unsigned int >> drivers/gpu/drm/lima/lima_ctx.c:26:53: sparse: incorrect type in argument 4 (invalid types) @@ expected struct xa_limit limit @@ got struct lima_struct xa_limit limit @@ drivers/gpu/drm/lima/lima_ctx.c:26:53: expected struct xa_limit limit drivers/gpu/drm/lima/lima_ctx.c:26:53: got struct lima_ctx *[assigned] ctx vim +26 drivers/gpu/drm/lima/lima_ctx.c a1d2a633 Qiang Yu 2019-03-09 8 a1d2a633 Qiang Yu 2019-03-09 9 int lima_ctx_create(struct lima_device *dev, struct lima_ctx_mgr *mgr, u32 *id) a1d2a633 Qiang Yu 2019-03-09 10 { a1d2a633 Qiang Yu 2019-03-09 11 struct lima_ctx *ctx; a1d2a633 Qiang Yu 2019-03-09 12 int i, err; a1d2a633 Qiang Yu 2019-03-09 13 a1d2a633 Qiang Yu 2019-03-09 14 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); a1d2a633 Qiang Yu 2019-03-09 15 if (!ctx) a1d2a633 Qiang Yu 2019-03-09 16 return -ENOMEM; a1d2a633 Qiang Yu 2019-03-09 17 ctx->dev = dev; a1d2a633 Qiang Yu 2019-03-09 18 kref_init(&ctx->refcnt); a1d2a633 Qiang Yu 2019-03-09 19 a1d2a633 Qiang Yu 2019-03-09 20 for (i = 0; i < lima_pipe_num; i++) { a1d2a633 Qiang Yu 2019-03-09 21 err = lima_sched_context_init(dev->pipe + i, ctx->context + i, &ctx->guilty); a1d2a633 Qiang Yu 2019-03-09 22 if (err) a1d2a633 Qiang Yu 2019-03-09 23 goto err_out0; a1d2a633 Qiang Yu 2019-03-09 24 } a1d2a633 Qiang Yu 2019-03-09 25 a1d2a633 Qiang Yu 2019-03-09 @26 err = xa_alloc(&mgr->handles, id, UINT_MAX, ctx, GFP_KERNEL); a1d2a633 Qiang Yu 2019-03-09 27 if (err < 0) a1d2a633 Qiang Yu 2019-03-09 28 goto err_out0; a1d2a633 Qiang Yu 2019-03-09 29 a1d2a633 Qiang Yu 2019-03-09 30 return 0; a1d2a633 Qiang Yu 2019-03-09 31 a1d2a633 Qiang Yu 2019-03-09 32 err_out0: a1d2a633 Qiang Yu 2019-03-09 33 for (i--; i >= 0; i--) a1d2a633 Qiang Yu 2019-03-09 34 lima_sched_context_fini(dev->pipe + i, ctx->context + i); a1d2a633 Qiang Yu 2019-03-09 35 kfree(ctx); a1d2a633 Qiang Yu 2019-03-09 36 return err; a1d2a633 Qiang Yu 2019-03-09 37 } a1d2a633 Qiang Yu 2019-03-09 38 :::::: The code at line 26 was first introduced by commit :::::: a1d2a6339961efc078208dc3b2f006e9e9a8e119 drm/lima: driver for ARM Mali4xx GPUs :::::: TO: Qiang Yu <yuq825@xxxxxxxxx> :::::: CC: Eric Anholt <eric@xxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation