* [bcachefs:header_cleanup 23/50] drivers/gpu/drm/lima/lima_ctx.c:30:13: error: call to undeclared function 'task_pid_nr'; ISO C99 and later do not support implicit function declarations
@ 2023-12-17 15:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-17 15:01 UTC (permalink / raw)
To: Kent Overstreet; +Cc: llvm, oe-kbuild-all, Kent Overstreet
tree: https://evilpiepirate.org/git/bcachefs.git header_cleanup
head: 7288b19e061b7aa3f46f685e9944af128f10ffd5
commit: 90ffe33a843d713946918328956c4b72f662e7ce [23/50] sched.h: move pid helpers to pid.h
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20231217/202312172203.QCnaSNcw-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231217/202312172203.QCnaSNcw-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/202312172203.QCnaSNcw-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/lima/lima_ctx.c:30:13: error: call to undeclared function 'task_pid_nr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ctx->pid = task_pid_nr(current);
^
1 error generated.
vim +/task_pid_nr +30 drivers/gpu/drm/lima/lima_ctx.c
a1d2a6339961efc Qiang Yu 2019-03-09 8
a1d2a6339961efc Qiang Yu 2019-03-09 9 int lima_ctx_create(struct lima_device *dev, struct lima_ctx_mgr *mgr, u32 *id)
a1d2a6339961efc Qiang Yu 2019-03-09 10 {
a1d2a6339961efc Qiang Yu 2019-03-09 11 struct lima_ctx *ctx;
a1d2a6339961efc Qiang Yu 2019-03-09 12 int i, err;
a1d2a6339961efc Qiang Yu 2019-03-09 13
a1d2a6339961efc Qiang Yu 2019-03-09 14 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
a1d2a6339961efc Qiang Yu 2019-03-09 15 if (!ctx)
a1d2a6339961efc Qiang Yu 2019-03-09 16 return -ENOMEM;
a1d2a6339961efc Qiang Yu 2019-03-09 17 ctx->dev = dev;
a1d2a6339961efc Qiang Yu 2019-03-09 18 kref_init(&ctx->refcnt);
a1d2a6339961efc Qiang Yu 2019-03-09 19
a1d2a6339961efc Qiang Yu 2019-03-09 20 for (i = 0; i < lima_pipe_num; i++) {
a1d2a6339961efc Qiang Yu 2019-03-09 21 err = lima_sched_context_init(dev->pipe + i, ctx->context + i, &ctx->guilty);
a1d2a6339961efc Qiang Yu 2019-03-09 22 if (err)
a1d2a6339961efc Qiang Yu 2019-03-09 23 goto err_out0;
a1d2a6339961efc Qiang Yu 2019-03-09 24 }
a1d2a6339961efc Qiang Yu 2019-03-09 25
14d2bd53a47a7e1 Dave Airlie 2019-04-05 26 err = xa_alloc(&mgr->handles, id, ctx, xa_limit_32b, GFP_KERNEL);
a1d2a6339961efc Qiang Yu 2019-03-09 27 if (err < 0)
a1d2a6339961efc Qiang Yu 2019-03-09 28 goto err_out0;
a1d2a6339961efc Qiang Yu 2019-03-09 29
6ebd24b6bf106d3 Qiang Yu 2020-02-22 @30 ctx->pid = task_pid_nr(current);
6ebd24b6bf106d3 Qiang Yu 2020-02-22 31 get_task_comm(ctx->pname, current);
6ebd24b6bf106d3 Qiang Yu 2020-02-22 32
a1d2a6339961efc Qiang Yu 2019-03-09 33 return 0;
a1d2a6339961efc Qiang Yu 2019-03-09 34
a1d2a6339961efc Qiang Yu 2019-03-09 35 err_out0:
a1d2a6339961efc Qiang Yu 2019-03-09 36 for (i--; i >= 0; i--)
a1d2a6339961efc Qiang Yu 2019-03-09 37 lima_sched_context_fini(dev->pipe + i, ctx->context + i);
a1d2a6339961efc Qiang Yu 2019-03-09 38 kfree(ctx);
a1d2a6339961efc Qiang Yu 2019-03-09 39 return err;
a1d2a6339961efc Qiang Yu 2019-03-09 40 }
a1d2a6339961efc Qiang Yu 2019-03-09 41
:::::: The code at line 30 was first introduced by commit
:::::: 6ebd24b6bf106d3195bdbfeaa1ac77571e3dc670 drm/lima: save process info for debug usage
:::::: TO: Qiang Yu <yuq825@gmail.com>
:::::: CC: Qiang Yu <yuq825@gmail.com>
--
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:[~2023-12-17 15:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-17 15:01 [bcachefs:header_cleanup 23/50] drivers/gpu/drm/lima/lima_ctx.c:30:13: error: call to undeclared function 'task_pid_nr'; ISO C99 and later do not support implicit function declarations 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