From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: Re: [PATCH net-next v22 1/2] mailbox/pcc: support mailbox management of the shared buffer
Date: Sat, 12 Jul 2025 06:13:39 +0800 [thread overview]
Message-ID: <202507120609.Myazax08-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20250710191209.737167-2-admiyo@os.amperecomputing.com>
References: <20250710191209.737167-2-admiyo@os.amperecomputing.com>
TO: admiyo@os.amperecomputing.com
TO: Sudeep Holla <sudeep.holla@arm.com>
TO: Jassi Brar <jassisinghbrar@gmail.com>
TO: Robert Moore <robert.moore@intel.com>
TO: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
TO: Len Brown <lenb@kernel.org>
CC: netdev@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: Jeremy Kerr <jk@codeconstruct.com.au>
CC: Matt Johnston <matt@codeconstruct.com.au>
CC: "David S . Miller" <davem@davemloft.net>
CC: Eric Dumazet <edumazet@google.com>
CC: Jakub Kicinski <kuba@kernel.org>
CC: Paolo Abeni <pabeni@redhat.com>
CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>
CC: Huisong Li <lihuisong@huawei.com>
Hi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/admiyo-os-amperecomputing-com/mailbox-pcc-support-mailbox-management-of-the-shared-buffer/20250711-031525
base: net-next/main
patch link: https://lore.kernel.org/r/20250710191209.737167-2-admiyo%40os.amperecomputing.com
patch subject: [PATCH net-next v22 1/2] mailbox/pcc: support mailbox management of the shared buffer
:::::: branch date: 27 hours ago
:::::: commit date: 27 hours ago
config: x86_64-randconfig-161-20250711 (https://download.01.org/0day-ci/archive/20250712/202507120609.Myazax08-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202507120609.Myazax08-lkp@intel.com/
smatch warnings:
drivers/mailbox/pcc.c:498 pcc_send_data() error: uninitialized symbol 'ret'.
vim +/ret +498 drivers/mailbox/pcc.c
e332edef98ddac Adam Young 2025-07-10 476
e332edef98ddac Adam Young 2025-07-10 477
86c22f8c9a3b71 Ashwin Chaugule 2014-11-12 478 /**
33350e6b1833b1 Ashwin Chaugule 2015-01-27 479 * pcc_send_data - Called from Mailbox Controller code. Used
33350e6b1833b1 Ashwin Chaugule 2015-01-27 480 * here only to ring the channel doorbell. The PCC client
33350e6b1833b1 Ashwin Chaugule 2015-01-27 481 * specific read/write is done in the client driver in
33350e6b1833b1 Ashwin Chaugule 2015-01-27 482 * order to maintain atomicity over PCC channel once
33350e6b1833b1 Ashwin Chaugule 2015-01-27 483 * OS has control over it. See above for flow of operations.
86c22f8c9a3b71 Ashwin Chaugule 2014-11-12 484 * @chan: Pointer to Mailbox channel over which to send data.
33350e6b1833b1 Ashwin Chaugule 2015-01-27 485 * @data: Client specific data written over channel. Used here
33350e6b1833b1 Ashwin Chaugule 2015-01-27 486 * only for debug after PCC transaction completes.
86c22f8c9a3b71 Ashwin Chaugule 2014-11-12 487 *
86c22f8c9a3b71 Ashwin Chaugule 2014-11-12 488 * Return: Err if something failed else 0 for success.
86c22f8c9a3b71 Ashwin Chaugule 2014-11-12 489 */
86c22f8c9a3b71 Ashwin Chaugule 2014-11-12 490 static int pcc_send_data(struct mbox_chan *chan, void *data)
86c22f8c9a3b71 Ashwin Chaugule 2014-11-12 491 {
c45ded7e11352d Sudeep Holla 2021-09-17 492 int ret;
bf18123e78f4d1 Sudeep Holla 2021-09-17 493 struct pcc_chan_info *pchan = chan->con_priv;
e332edef98ddac Adam Young 2025-07-10 494 struct acpi_pcct_ext_pcc_shared_memory __iomem *pcc_hdr;
e332edef98ddac Adam Young 2025-07-10 495
e332edef98ddac Adam Young 2025-07-10 496 if (pchan->chan.rx_alloc)
e332edef98ddac Adam Young 2025-07-10 497 ret = pcc_write_to_buffer(chan, data);
e332edef98ddac Adam Young 2025-07-10 @498 if (ret)
e332edef98ddac Adam Young 2025-07-10 499 return ret;
8b0f57889843af Prakash, Prashanth 2016-02-17 500
c45ded7e11352d Sudeep Holla 2021-09-17 501 ret = pcc_chan_reg_read_modify_write(&pchan->cmd_update);
c45ded7e11352d Sudeep Holla 2021-09-17 502 if (ret)
c45ded7e11352d Sudeep Holla 2021-09-17 503 return ret;
c45ded7e11352d Sudeep Holla 2021-09-17 504
e332edef98ddac Adam Young 2025-07-10 505 pcc_hdr = pchan->chan.shmem;
e332edef98ddac Adam Young 2025-07-10 506 if (ioread32(&pcc_hdr->flags) & PCC_CMD_COMPLETION_NOTIFY)
e332edef98ddac Adam Young 2025-07-10 507 pchan->chan.irq_ack = true;
e332edef98ddac Adam Young 2025-07-10 508
3db174e478cb0b Huisong Li 2023-08-01 509 ret = pcc_chan_reg_read_modify_write(&pchan->db);
e332edef98ddac Adam Young 2025-07-10 510
3db174e478cb0b Huisong Li 2023-08-01 511 if (!ret && pchan->plat_irq > 0)
3db174e478cb0b Huisong Li 2023-08-01 512 pchan->chan_in_use = true;
3db174e478cb0b Huisong Li 2023-08-01 513
3db174e478cb0b Huisong Li 2023-08-01 514 return ret;
86c22f8c9a3b71 Ashwin Chaugule 2014-11-12 515 }
86c22f8c9a3b71 Ashwin Chaugule 2014-11-12 516
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2025-07-11 22:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-11 22:13 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-07-10 19:12 [PATCH net-next v22 0/2] MCTP Over PCC Transport admiyo
2025-07-10 19:12 ` [PATCH net-next v22 1/2] mailbox/pcc: support mailbox management of the shared buffer admiyo
2025-07-11 6:51 ` kernel test robot
2025-07-14 19:37 ` Dan Carpenter
2025-07-14 23:02 ` Adam Young
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=202507120609.Myazax08-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@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.