From: kernel test robot <lkp@intel.com>
To: Mike Leach <mike.leach@linaro.org>,
linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org,
mathieu.poirier@linaro.org, linux-doc@vger.kernel.org,
suzuki.poulose@arm.com
Cc: kbuild-all@lists.01.org, yabinc@google.com, corbet@lwn.net,
leo.yan@linaro.org, alexander.shishkin@linux.intel.com,
tingwei@codeaurora.org
Subject: Re: [PATCH v5 01/10] coresight: syscfg: Initial coresight system configuration
Date: Wed, 17 Mar 2021 06:52:55 +0800 [thread overview]
Message-ID: <202103170625.py5FnbfR-lkp@intel.com> (raw)
In-Reply-To: <20210316180400.7184-2-mike.leach@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 3526 bytes --]
Hi Mike,
I love your patch! Perhaps something to improve:
[auto build test WARNING on lwn/docs-next]
[also build test WARNING on linus/master v5.12-rc3 next-20210316]
[cannot apply to soc/for-next]
[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/Mike-Leach/CoreSight-configuration-management-ETM-strobing/20210317-021436
base: git://git.lwn.net/linux-2.6 docs-next
config: arm-randconfig-r035-20210316 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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/76d2cecb5af2a820d6910c10996ed11222799ce8
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mike-Leach/CoreSight-configuration-management-ETM-strobing/20210317-021436
git checkout 76d2cecb5af2a820d6910c10996ed11222799ce8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/hwtracing/coresight/coresight-syscfg.c:132:6: warning: no previous prototype for 'cscfg_dev_release' [-Wmissing-prototypes]
132 | void cscfg_dev_release(struct device *dev)
| ^~~~~~~~~~~~~~~~~
>> drivers/hwtracing/coresight/coresight-syscfg.c:139:5: warning: no previous prototype for 'cscfg_create_device' [-Wmissing-prototypes]
139 | int cscfg_create_device(void)
| ^~~~~~~~~~~~~~~~~~~
>> drivers/hwtracing/coresight/coresight-syscfg.c:168:6: warning: no previous prototype for 'cscfg_clear_device' [-Wmissing-prototypes]
168 | void cscfg_clear_device(void)
| ^~~~~~~~~~~~~~~~~~
vim +/cscfg_dev_release +132 drivers/hwtracing/coresight/coresight-syscfg.c
130
131 /* Must have a release function or the kernel will complain on module unload */
> 132 void cscfg_dev_release(struct device *dev)
133 {
134 kfree(cscfg_mgr);
135 cscfg_mgr = NULL;
136 }
137
138 /* a device is needed to "own" some kernel elements such as sysfs entries. */
> 139 int cscfg_create_device(void)
140 {
141 struct device *dev;
142 int err = -ENOMEM;
143
144 mutex_lock(&cscfg_mutex);
145 if (cscfg_mgr) {
146 err = -EINVAL;
147 goto create_dev_exit_unlock;
148 }
149
150 cscfg_mgr = kzalloc(sizeof(struct cscfg_manager), GFP_KERNEL);
151 if (!cscfg_mgr)
152 goto create_dev_exit_unlock;
153
154 /* setup the device */
155 dev = cscfg_device();
156 dev->release = cscfg_dev_release;
157 dev->init_name = "cs_system_cfg";
158
159 err = device_register(dev);
160 if (err)
161 cscfg_dev_release(dev);
162
163 create_dev_exit_unlock:
164 mutex_unlock(&cscfg_mutex);
165 return err;
166 }
167
> 168 void cscfg_clear_device(void)
169 {
170 mutex_lock(&cscfg_mutex);
171 device_unregister(cscfg_device());
172 mutex_unlock(&cscfg_mutex);
173 }
174
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33582 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-03-16 22:55 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-16 18:03 [PATCH v5 00/10] CoreSight configuration management; ETM strobing Mike Leach
2021-03-16 18:03 ` [PATCH v5 01/10] coresight: syscfg: Initial coresight system configuration Mike Leach
2021-03-16 22:52 ` kernel test robot [this message]
2021-03-29 19:54 ` Mathieu Poirier
2021-03-16 18:03 ` [PATCH v5 02/10] coresight: syscfg: Add registration and feature loading for cs devices Mike Leach
2021-03-29 21:35 ` Mathieu Poirier
2021-03-16 18:03 ` [PATCH v5 03/10] coresight: config: Add configuration and feature generic functions Mike Leach
2021-03-17 0:07 ` kernel test robot
2021-03-30 17:53 ` Mathieu Poirier
2021-03-16 18:03 ` [PATCH v5 04/10] coresight: etm-perf: update to handle configuration selection Mike Leach
2021-03-17 1:16 ` kernel test robot
2021-03-31 20:48 ` Mathieu Poirier
2021-04-01 13:45 ` Mike Leach
2021-03-16 18:03 ` [PATCH v5 05/10] coresight: syscfg: Add API to activate and enable configurations Mike Leach
2021-04-01 16:43 ` Mathieu Poirier
2021-03-16 18:03 ` [PATCH v5 06/10] coresight: etm-perf: Update to activate selected configuration Mike Leach
2021-04-01 16:53 ` Mathieu Poirier
2021-03-16 18:03 ` [PATCH v5 07/10] coresight: etm4x: Add complex configuration handlers to etmv4 Mike Leach
2021-04-01 17:10 ` Mathieu Poirier
2021-03-16 18:03 ` [PATCH v5 08/10] coresight: config: Add preloaded configurations Mike Leach
2021-04-01 17:21 ` Mathieu Poirier
2021-03-16 18:03 ` [PATCH v5 09/10] coresight: syscfg: Add initial configfs support Mike Leach
2021-04-05 20:56 ` Mathieu Poirier
2021-04-06 11:08 ` Mike Leach
2021-03-16 18:04 ` [PATCH v5 10/10] coresight: docs: Add documentation for CoreSight config Mike Leach
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=202103170625.py5FnbfR-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=corbet@lwn.net \
--cc=coresight@lists.linaro.org \
--cc=kbuild-all@lists.01.org \
--cc=leo.yan@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
--cc=mike.leach@linaro.org \
--cc=suzuki.poulose@arm.com \
--cc=tingwei@codeaurora.org \
--cc=yabinc@google.com \
/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;
as well as URLs for NNTP newsgroup(s).