From: kernel test robot <lkp@intel.com>
To: alison.schofield@intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v3 2/3] cxl/region: Calculate a target position in a region interleave
Date: Thu, 26 Oct 2023 03:30:37 +0800 [thread overview]
Message-ID: <202310260337.UEpEsYux-lkp@intel.com> (raw)
In-Reply-To: <7709896423244c523e810d9f5d2ef625e7babf3b.1698254338.git.alison.schofield@intel.com>
Hi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa]
url: https://github.com/intel-lab-lkp/linux/commits/alison-schofield-intel-com/cxl-region-Prepare-the-decoder-match-range-helper-for-reuse/20231026-013232
base: 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa
patch link: https://lore.kernel.org/r/7709896423244c523e810d9f5d2ef625e7babf3b.1698254338.git.alison.schofield%40intel.com
patch subject: [PATCH v3 2/3] cxl/region: Calculate a target position in a region interleave
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20231026/202310260337.UEpEsYux-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231026/202310260337.UEpEsYux-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/202310260337.UEpEsYux-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/cxl/core/region.c:1526: warning: expecting prototype for cxl_find_pos_and_ways(). Prototype was for find_pos_and_ways() instead
vim +1526 drivers/cxl/core/region.c
1503
1504 /**
1505 * cxl_find_pos_and_ways() - find the position of a port in a parent
1506 * and the parent interleave ways
1507 *
1508 * @port: the port in search of parent info
1509 * @range: the hpa range that the parent must map
1510 * @pos: the position of @port in the parent decoder target list
1511 * @ways: the interleave ways of the parent decoder
1512 *
1513 * This helper function for cxl_calc_interleave_pos() provides the
1514 * @pos and @ways used to calculate the endpoint position in a region
1515 * interleave.
1516 *
1517 * Use @range to find @port's parent port and follow that to the
1518 * parent switch decoder. Extract @ways from the switch decoder and
1519 * lookup the @port @pos in the switch decoder target list.
1520 *
1521 * Returns: 0: success, @pos and @ways are updated
1522 * -ENXIO: failed to find @pos or @ways
1523 */
1524 static int find_pos_and_ways(struct cxl_port *port, struct range *range,
1525 int *pos, int *ways)
> 1526 {
1527 struct cxl_switch_decoder *cxlsd;
1528 struct cxl_port *parent;
1529 struct device *dev;
1530 int rc = -ENXIO;
1531
1532 parent = next_port(port);
1533 if (!parent)
1534 return rc;
1535
1536 dev = device_find_child(&parent->dev, range,
1537 match_switch_decoder_by_range);
1538 if (!dev) {
1539 dev_err(port->uport_dev,
1540 "failed to find decoder mapping %#llx-%#llx\n",
1541 range->start, range->end);
1542 return rc;
1543 }
1544 cxlsd = to_cxl_switch_decoder(dev);
1545 *ways = cxlsd->cxld.interleave_ways;
1546
1547 for (int i = 0; i < *ways; i++) {
1548 if (cxlsd->target[i] == port->parent_dport) {
1549 *pos = i;
1550 rc = 0;
1551 break;
1552 }
1553 }
1554 put_device(dev);
1555
1556 return rc;
1557 }
1558
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-10-25 19:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-25 17:31 [PATCH v3 0/3] cxl/region: Autodiscovery position repair alison.schofield
2023-10-25 17:31 ` [PATCH v3 1/3] cxl/region: Prepare the decoder match range helper for reuse alison.schofield
2023-10-25 17:31 ` [PATCH v3 2/3] cxl/region: Calculate a target position in a region interleave alison.schofield
2023-10-25 19:05 ` Dan Williams
2023-10-25 19:30 ` kernel test robot [this message]
2023-10-25 17:31 ` [PATCH v3 3/3] cxl/region: Use cxl_calc_interleave_pos() for auto-discovery alison.schofield
2023-10-25 19:07 ` Dan Williams
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=202310260337.UEpEsYux-lkp@intel.com \
--to=lkp@intel.com \
--cc=alison.schofield@intel.com \
--cc=oe-kbuild-all@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.