From: kernel test robot <lkp@intel.com>
To: Mao Jinlong <quic_jinlmao@quicinc.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Mike Leach <mike.leach@linaro.org>,
James Clark <james.clark@arm.com>, Leo Yan <leo.yan@linaro.org>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: oe-kbuild-all@lists.linux.dev,
Mao Jinlong <quic_jinlmao@quicinc.com>,
coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v2 1/2] coresight: core: Add device name support
Date: Tue, 16 Jan 2024 18:09:42 +0800 [thread overview]
Message-ID: <202401161751.IuhpKb75-lkp@intel.com> (raw)
In-Reply-To: <20240115164252.26510-2-quic_jinlmao@quicinc.com>
Hi Mao,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v6.7 next-20240112]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Mao-Jinlong/coresight-core-Add-device-name-support/20240116-004557
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20240115164252.26510-2-quic_jinlmao%40quicinc.com
patch subject: [PATCH v2 1/2] coresight: core: Add device name support
config: arm-randconfig-r112-20240116 (https://download.01.org/0day-ci/archive/20240116/202401161751.IuhpKb75-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240116/202401161751.IuhpKb75-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/202401161751.IuhpKb75-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/hwtracing/coresight/coresight-core.c:1775:14: sparse: sparse: incorrect type in assignment (different modifiers) @@ expected char *name @@ got char const * @@
drivers/hwtracing/coresight/coresight-core.c:1775:14: sparse: expected char *name
drivers/hwtracing/coresight/coresight-core.c:1775:14: sparse: got char const *
vim +1775 drivers/hwtracing/coresight/coresight-core.c
1758
1759 /*
1760 * coresight_alloc_device_name - Get an index for a given device in the
1761 * device index list specific to a driver. An index is allocated for a
1762 * device and is tracked with the fwnode_handle to prevent allocating
1763 * duplicate indices for the same device (e.g, if we defer probing of
1764 * a device due to dependencies), in case the index is requested again.
1765 */
1766 char *coresight_alloc_device_name(struct coresight_dev_list *dict,
1767 struct device *dev)
1768 {
1769 int idx;
1770 char *name = NULL;
1771 struct fwnode_handle **list;
1772
1773 mutex_lock(&coresight_mutex);
1774
> 1775 name = coresight_get_device_name(dev);
1776 if (!name) {
1777 idx = coresight_search_device_idx(dict, dev_fwnode(dev));
1778 if (idx < 0) {
1779 /* Make space for the new entry */
1780 idx = dict->nr_idx;
1781 list = krealloc_array(dict->fwnode_list,
1782 idx + 1, sizeof(*dict->fwnode_list),
1783 GFP_KERNEL);
1784 if (ZERO_OR_NULL_PTR(list)) {
1785 idx = -ENOMEM;
1786 goto done;
1787 }
1788
1789 list[idx] = dev_fwnode(dev);
1790 dict->fwnode_list = list;
1791 dict->nr_idx = idx + 1;
1792 }
1793
1794 name = devm_kasprintf(dev, GFP_KERNEL, "%s%d", dict->pfx, idx);
1795 }
1796 done:
1797 mutex_unlock(&coresight_mutex);
1798 return name;
1799 }
1800 EXPORT_SYMBOL_GPL(coresight_alloc_device_name);
1801
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Mao Jinlong <quic_jinlmao@quicinc.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Mike Leach <mike.leach@linaro.org>,
James Clark <james.clark@arm.com>, Leo Yan <leo.yan@linaro.org>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: oe-kbuild-all@lists.linux.dev,
Mao Jinlong <quic_jinlmao@quicinc.com>,
coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v2 1/2] coresight: core: Add device name support
Date: Tue, 16 Jan 2024 18:09:42 +0800 [thread overview]
Message-ID: <202401161751.IuhpKb75-lkp@intel.com> (raw)
In-Reply-To: <20240115164252.26510-2-quic_jinlmao@quicinc.com>
Hi Mao,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v6.7 next-20240112]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Mao-Jinlong/coresight-core-Add-device-name-support/20240116-004557
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20240115164252.26510-2-quic_jinlmao%40quicinc.com
patch subject: [PATCH v2 1/2] coresight: core: Add device name support
config: arm-randconfig-r112-20240116 (https://download.01.org/0day-ci/archive/20240116/202401161751.IuhpKb75-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240116/202401161751.IuhpKb75-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/202401161751.IuhpKb75-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/hwtracing/coresight/coresight-core.c:1775:14: sparse: sparse: incorrect type in assignment (different modifiers) @@ expected char *name @@ got char const * @@
drivers/hwtracing/coresight/coresight-core.c:1775:14: sparse: expected char *name
drivers/hwtracing/coresight/coresight-core.c:1775:14: sparse: got char const *
vim +1775 drivers/hwtracing/coresight/coresight-core.c
1758
1759 /*
1760 * coresight_alloc_device_name - Get an index for a given device in the
1761 * device index list specific to a driver. An index is allocated for a
1762 * device and is tracked with the fwnode_handle to prevent allocating
1763 * duplicate indices for the same device (e.g, if we defer probing of
1764 * a device due to dependencies), in case the index is requested again.
1765 */
1766 char *coresight_alloc_device_name(struct coresight_dev_list *dict,
1767 struct device *dev)
1768 {
1769 int idx;
1770 char *name = NULL;
1771 struct fwnode_handle **list;
1772
1773 mutex_lock(&coresight_mutex);
1774
> 1775 name = coresight_get_device_name(dev);
1776 if (!name) {
1777 idx = coresight_search_device_idx(dict, dev_fwnode(dev));
1778 if (idx < 0) {
1779 /* Make space for the new entry */
1780 idx = dict->nr_idx;
1781 list = krealloc_array(dict->fwnode_list,
1782 idx + 1, sizeof(*dict->fwnode_list),
1783 GFP_KERNEL);
1784 if (ZERO_OR_NULL_PTR(list)) {
1785 idx = -ENOMEM;
1786 goto done;
1787 }
1788
1789 list[idx] = dev_fwnode(dev);
1790 dict->fwnode_list = list;
1791 dict->nr_idx = idx + 1;
1792 }
1793
1794 name = devm_kasprintf(dev, GFP_KERNEL, "%s%d", dict->pfx, idx);
1795 }
1796 done:
1797 mutex_unlock(&coresight_mutex);
1798 return name;
1799 }
1800 EXPORT_SYMBOL_GPL(coresight_alloc_device_name);
1801
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
_______________________________________________
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:[~2024-01-16 10:10 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-15 16:42 [PATCH v2 0/2] coresight: core: Add device name support Mao Jinlong
2024-01-15 16:42 ` Mao Jinlong
2024-01-15 16:42 ` [PATCH v2 1/2] " Mao Jinlong
2024-01-15 16:42 ` Mao Jinlong
2024-01-16 10:09 ` kernel test robot [this message]
2024-01-16 10:09 ` kernel test robot
2024-01-16 10:41 ` kernel test robot
2024-01-16 10:41 ` kernel test robot
2024-01-16 11:34 ` kernel test robot
2024-01-16 11:34 ` kernel test robot
2024-01-15 16:42 ` [PATCH v2 2/2] dt-bindings: arm: Add device-name in the coresight components Mao Jinlong
2024-01-15 16:42 ` Mao Jinlong
2024-01-15 18:35 ` Rob Herring
2024-01-15 18:35 ` Rob Herring
2024-01-15 18:37 ` Krzysztof Kozlowski
2024-01-15 18:37 ` Krzysztof Kozlowski
2024-01-16 20:34 ` kernel test robot
2024-01-16 20:34 ` kernel test robot
2024-01-16 13:43 ` [PATCH v2 0/2] coresight: core: Add device name support Suzuki K Poulose
2024-01-16 13:43 ` Suzuki K Poulose
2024-01-17 1:58 ` Jinlong Mao
2024-01-17 1:58 ` Jinlong Mao
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=202401161751.IuhpKb75-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=coresight@lists.linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=james.clark@arm.com \
--cc=konrad.dybcio@linaro.org \
--cc=krzk@kernel.org \
--cc=leo.yan@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mathieu.poirier@linaro.org \
--cc=mcoquelin.stm32@gmail.com \
--cc=mike.leach@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=quic_jinlmao@quicinc.com \
--cc=robh+dt@kernel.org \
--cc=suzuki.poulose@arm.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 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.