From: kernel test robot <lkp@intel.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [PATCH v5 11/11] rpmsg: Fix kfree() of static memory on setting driver_override
Date: Thu, 17 Mar 2022 07:35:05 +0800 [thread overview]
Message-ID: <202203170751.5CsN55tm-lkp@intel.com> (raw)
In-Reply-To: <20220316150803.421897-5-krzysztof.kozlowski@canonical.com>
Hi Krzysztof,
I love your patch! Yet something to improve:
[auto build test ERROR on next-20220315]
[cannot apply to remoteproc/rpmsg-next driver-core/driver-core-testing helgaas-pci/next linus/master v5.17-rc8 v5.17-rc7 v5.17-rc6 v5.17-rc8]
[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/Krzysztof-Kozlowski/Fix-broken-usage-of-driver_override-and-kfree-of-static-memory/20220316-233055
base: a32cd981a6da2373c093d471ee4405a915e217d5
config: x86_64-randconfig-a011-20220314 (https://download.01.org/0day-ci/archive/20220317/202203170751.5CsN55tm-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a6ec1e3d798f8eab43fb3a91028c6ab04e115fcb)
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/a69b0ffffb78c59cee263272190b3fe28df84452
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Krzysztof-Kozlowski/Fix-broken-usage-of-driver_override-and-kfree-of-static-memory/20220316-233055
git checkout a69b0ffffb78c59cee263272190b3fe28df84452
# 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@intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/rpmsg/qcom_glink_native.c:23:
>> drivers/rpmsg/rpmsg_internal.h:98:2: error: use of undeclared identifier 'ret'
ret = driver_set_override(&rpdev->dev, &rpdev->driver_override,
^
drivers/rpmsg/rpmsg_internal.h:100:6: error: use of undeclared identifier 'ret'
if (ret)
^
drivers/rpmsg/rpmsg_internal.h:101:10: error: use of undeclared identifier 'ret'
return ret;
^
drivers/rpmsg/rpmsg_internal.h:103:2: error: use of undeclared identifier 'ret'
ret = rpmsg_register_device(rpdev);
^
drivers/rpmsg/rpmsg_internal.h:104:6: error: use of undeclared identifier 'ret'
if (ret)
^
drivers/rpmsg/rpmsg_internal.h:107:9: error: use of undeclared identifier 'ret'
return ret;
^
6 errors generated.
vim +/ret +98 drivers/rpmsg/rpmsg_internal.h
80
81 struct device *rpmsg_find_device(struct device *parent,
82 struct rpmsg_channel_info *chinfo);
83
84 struct rpmsg_device *rpmsg_create_channel(struct rpmsg_device *rpdev,
85 struct rpmsg_channel_info *chinfo);
86 int rpmsg_release_channel(struct rpmsg_device *rpdev,
87 struct rpmsg_channel_info *chinfo);
88 /**
89 * rpmsg_ctrldev_register_device() - register a char device for control based on rpdev
90 * @rpdev: prepared rpdev to be used for creating endpoints
91 *
92 * This function wraps rpmsg_register_device() preparing the rpdev for use as
93 * basis for the rpmsg chrdev.
94 */
95 static inline int rpmsg_ctrldev_register_device(struct rpmsg_device *rpdev)
96 {
97 strcpy(rpdev->id.name, "rpmsg_ctrl");
> 98 ret = driver_set_override(&rpdev->dev, &rpdev->driver_override,
99 "rpmsg_ctrl", strlen("rpmsg_ctrl"));
100 if (ret)
101 return ret;
102
103 ret = rpmsg_register_device(rpdev);
104 if (ret)
105 kfree(rpdev->driver_override);
106
107 return ret;
108 }
109
---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
prev parent reply other threads:[~2022-03-16 23:35 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-16 15:05 [PATCH v5 00/11] Fix broken usage of driver_override (and kfree of static memory) Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:05 ` [PATCH v5 01/11] driver: platform: Add helper for safer setting of driver_override Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:54 ` Andy Shevchenko
2022-03-16 15:54 ` Andy Shevchenko
2022-03-16 15:54 ` Andy Shevchenko
2022-03-16 15:54 ` Andy Shevchenko
2022-04-03 18:26 ` Krzysztof Kozlowski
2022-04-03 18:26 ` Krzysztof Kozlowski
2022-03-16 15:05 ` [PATCH v5 02/11] amba: Use driver_set_override() instead of open-coding Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:05 ` [PATCH v5 03/11] fsl-mc: " Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:05 ` [PATCH v5 04/11] hv: " Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:05 ` [PATCH v5 05/11] PCI: " Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:05 ` [PATCH v5 06/11] s390/cio: " Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:05 ` Krzysztof Kozlowski
2022-03-16 15:07 ` [PATCH v5 07/11] spi: Use helper for safer setting of driver_override Krzysztof Kozlowski
2022-03-16 15:07 ` Krzysztof Kozlowski
2022-03-16 15:07 ` Krzysztof Kozlowski
2022-03-16 15:08 ` [PATCH v5 08/11] vdpa: " Krzysztof Kozlowski
2022-03-16 15:08 ` Krzysztof Kozlowski
2022-03-16 15:08 ` Krzysztof Kozlowski
2022-03-16 15:08 ` [PATCH v5 09/11] clk: imx: scu: Fix kfree() of static memory on setting driver_override Krzysztof Kozlowski
2022-03-16 15:08 ` Krzysztof Kozlowski
2022-03-16 15:08 ` Krzysztof Kozlowski
2022-03-16 15:08 ` [PATCH v5 10/11] slimbus: qcom-ngd: " Krzysztof Kozlowski
2022-03-16 15:08 ` Krzysztof Kozlowski
2022-03-16 15:08 ` Krzysztof Kozlowski
2022-03-16 15:08 ` [PATCH v5 11/11] rpmsg: " Krzysztof Kozlowski
2022-03-16 15:08 ` Krzysztof Kozlowski
2022-03-16 15:08 ` Krzysztof Kozlowski
2022-03-16 19:38 ` Krzysztof Kozlowski
2022-03-16 19:38 ` Krzysztof Kozlowski
2022-03-16 19:38 ` Krzysztof Kozlowski
2022-03-16 23:35 ` kernel test robot [this message]
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=202203170751.5CsN55tm-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=krzk@kernel.org \
--cc=llvm@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.