public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kent Overstreet <kmo@daterainc.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Kent Overstreet <kmo@daterainc.com>
Subject: [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
Date: Sun, 17 Dec 2023 23:01:26 +0800	[thread overview]
Message-ID: <202312172203.QCnaSNcw-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-12-17 15:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202312172203.QCnaSNcw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kmo@daterainc.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox