[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201051750.E7q77hPA-lkp@intel.com>
Date: Wed, 5 Jan 2022 17:31:47 +0800
From: kernel test robot <lkp@...el.com>
To: Miaoqian Lin <linmq006@...il.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
0day robot <lkp@...el.com>
Subject: drivers/remoteproc/remoteproc_debugfs.c:395:24: warning: returning
'long int' from a function with return type 'struct dentry *' makes pointer
from integer without a cast
tree: https://github.com/0day-ci/linux/commits/UPDATE-20220105-144328/Miaoqian-Lin/remoteproc-Fix-NULL-vs-IS_ERR-checking-in-rproc_create_trace_file/20211227-170725
head: e2c26738760efa9568ce3fef6180fb4311e28d08
commit: e2c26738760efa9568ce3fef6180fb4311e28d08 remoteproc: Fix NULL vs IS_ERR() checking in rproc_create_trace_file
date: 3 hours ago
config: arm-buildonly-randconfig-r006-20220105 (https://download.01.org/0day-ci/archive/20220105/202201051750.E7q77hPA-lkp@intel.com/config)
compiler: arm-linux-gnueabi-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/e2c26738760efa9568ce3fef6180fb4311e28d08
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20220105-144328/Miaoqian-Lin/remoteproc-Fix-NULL-vs-IS_ERR-checking-in-rproc_create_trace_file/20211227-170725
git checkout e2c26738760efa9568ce3fef6180fb4311e28d08
# 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=arm SHELL=/bin/bash drivers/remoteproc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
drivers/remoteproc/remoteproc_debugfs.c: In function 'rproc_create_trace_file':
>> drivers/remoteproc/remoteproc_debugfs.c:395:24: warning: returning 'long int' from a function with return type 'struct dentry *' makes pointer from integer without a cast [-Wint-conversion]
395 | return PTR_ERR(tfile);
| ^~~~~~~~~~~~~~
vim +395 drivers/remoteproc/remoteproc_debugfs.c
385
386 struct dentry *rproc_create_trace_file(const char *name, struct rproc *rproc,
387 struct rproc_debug_trace *trace)
388 {
389 struct dentry *tfile;
390
391 tfile = debugfs_create_file(name, 0400, rproc->dbg_dir, trace,
392 &trace_rproc_ops);
393 if (IS_ERR(tfile)) {
394 dev_err(&rproc->dev, "failed to create debugfs trace entry\n");
> 395 return PTR_ERR(tfile);
396 }
397
398 return tfile;
399 }
400
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists