* [morimoto:card2-trigger-order-2023-02-28 25/33] drivers/hwtracing/coresight/coresight-platform.c:289:9: sparse: sparse: incorrect type in argument 1 (different modifiers)
@ 2024-02-29 0:20 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-29 0:20 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: oe-kbuild-all
tree: https://github.com/morimoto/linux card2-trigger-order-2023-02-28
head: 7954e5e1bfde7e92159d3cc1922b94fbd5957915
commit: 9d527a5dc80bc8b77f67a23ef1cb3361098805dc [25/33] of: property: replace of_graph_get_next_device_endpoint()
config: arm-randconfig-r133-20240228 (https://download.01.org/0day-ci/archive/20240229/202402290803.LLryuAO6-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240229/202402290803.LLryuAO6-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/202402290803.LLryuAO6-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/hwtracing/coresight/coresight-platform.c:289:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct device_node *parent @@ got struct device_node const *[assigned] parent @@
drivers/hwtracing/coresight/coresight-platform.c:289:9: sparse: expected struct device_node *parent
drivers/hwtracing/coresight/coresight-platform.c:289:9: sparse: got struct device_node const *[assigned] parent
>> drivers/hwtracing/coresight/coresight-platform.c:289:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct device_node *parent @@ got struct device_node const *[assigned] parent @@
drivers/hwtracing/coresight/coresight-platform.c:289:9: sparse: expected struct device_node *parent
drivers/hwtracing/coresight/coresight-platform.c:289:9: sparse: got struct device_node const *[assigned] parent
vim +289 drivers/hwtracing/coresight/coresight-platform.c
6575fdb74645c1 drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 260
f03631da4be332 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2019-06-19 261 static int of_get_coresight_platform_data(struct device *dev,
f03631da4be332 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2019-06-19 262 struct coresight_platform_data *pdata)
a06ae8609b3dd0 drivers/coresight/of_coresight.c Pratik Patel 2014-11-03 263 {
c2c729415b2d21 drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 264 int ret = 0;
a06ae8609b3dd0 drivers/coresight/of_coresight.c Pratik Patel 2014-11-03 265 struct device_node *ep = NULL;
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 266 const struct device_node *parent = NULL;
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 267 bool legacy_binding = false;
f03631da4be332 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2019-06-19 268 struct device_node *node = dev->of_node;
a06ae8609b3dd0 drivers/coresight/of_coresight.c Pratik Patel 2014-11-03 269
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 270 parent = of_coresight_get_output_ports_node(node);
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 271 /*
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 272 * If the DT uses obsoleted bindings, the ports are listed
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 273 * under the device and we need to filter out the input
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 274 * ports.
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 275 */
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 276 if (!parent) {
ae7f2b5a7b569f drivers/hwtracing/coresight/coresight-platform.c James Clark 2023-04-25 277 /*
8ddfa4b1c6de6d drivers/hwtracing/coresight/coresight-platform.c Kuninori Morimoto 2024-02-02 278 * Avoid warnings in for_each_endpoint_of_node()
ae7f2b5a7b569f drivers/hwtracing/coresight/coresight-platform.c James Clark 2023-04-25 279 * if the device doesn't have any graph connections
ae7f2b5a7b569f drivers/hwtracing/coresight/coresight-platform.c James Clark 2023-04-25 280 */
ae7f2b5a7b569f drivers/hwtracing/coresight/coresight-platform.c James Clark 2023-04-25 281 if (!of_graph_is_present(node))
ae7f2b5a7b569f drivers/hwtracing/coresight/coresight-platform.c James Clark 2023-04-25 282 return 0;
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 283 legacy_binding = true;
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 284 parent = node;
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 285 dev_warn_once(dev, "Uses obsolete Coresight DT bindings\n");
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 286 }
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 287
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 288 /* Iterate through each output port to discover topology */
8ddfa4b1c6de6d drivers/hwtracing/coresight/coresight-platform.c Kuninori Morimoto 2024-02-02 @289 for_each_endpoint_of_node(parent, ep) {
a06ae8609b3dd0 drivers/coresight/of_coresight.c Pratik Patel 2014-11-03 290 /*
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 291 * Legacy binding mixes input/output ports under the
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 292 * same parent. So, skip the input ports if we are dealing
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 293 * with legacy binding, as they processed with their
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 294 * connected output ports.
a06ae8609b3dd0 drivers/coresight/of_coresight.c Pratik Patel 2014-11-03 295 */
5ecc7120194c6f drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 296 if (legacy_binding && of_coresight_legacy_ep_is_input(ep))
a06ae8609b3dd0 drivers/coresight/of_coresight.c Pratik Patel 2014-11-03 297 continue;
a06ae8609b3dd0 drivers/coresight/of_coresight.c Pratik Patel 2014-11-03 298
d375b356e687f2 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2020-05-18 299 ret = of_coresight_parse_endpoint(dev, ep, pdata);
d375b356e687f2 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2020-05-18 300 if (ret)
f03631da4be332 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2019-06-19 301 return ret;
6575fdb74645c1 drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2018-09-20 302 }
04c9490035691a drivers/hwtracing/coresight/of_coresight.c Suzuki K Poulose 2017-06-05 303
f03631da4be332 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2019-06-19 304 return 0;
f03631da4be332 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2019-06-19 305 }
f03631da4be332 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2019-06-19 306 #else
f03631da4be332 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2019-06-19 307 static inline int
f03631da4be332 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2019-06-19 308 of_get_coresight_platform_data(struct device *dev,
f03631da4be332 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2019-06-19 309 struct coresight_platform_data *pdata)
f03631da4be332 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2019-06-19 310 {
f03631da4be332 drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2019-06-19 311 return -ENOENT;
a06ae8609b3dd0 drivers/coresight/of_coresight.c Pratik Patel 2014-11-03 312 }
40a1c5b31969eb drivers/hwtracing/coresight/coresight-platform.c Suzuki K Poulose 2019-06-19 313
:::::: The code at line 289 was first introduced by commit
:::::: 8ddfa4b1c6de6d0e795163279fd71707dcf309fb hwtracing: use for_each_endpoint_of_node()
:::::: TO: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
:::::: CC: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-29 0:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-29 0:20 [morimoto:card2-trigger-order-2023-02-28 25/33] drivers/hwtracing/coresight/coresight-platform.c:289:9: sparse: sparse: incorrect type in argument 1 (different modifiers) kernel test robot
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.