mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Adam Young <admiyo@os.amperecomputing.com>,
	Jeremy Kerr <jk@codeconstruct.com.au>,
	Matt Johnston <matt@codeconstruct.com.au>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Sudeep Holla <sudeep.holla@arm.com>,
	Jonathan Cameron <Jonathan.Cameron@huawei.com>,
	Huisong Li <lihuisong@huawei.com>
Subject: Re: [PATCH net-next v28 1/1] mctp pcc: Implement MCTP over PCC Transport
Date: Fri, 5 Sep 2025 02:25:21 +0800	[thread overview]
Message-ID: <202509050150.wt57Mjwg-lkp@intel.com> (raw)
In-Reply-To: <20250904040544.598469-2-admiyo@os.amperecomputing.com>

Hi Adam,

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/Adam-Young/mctp-pcc-Implement-MCTP-over-PCC-Transport/20250904-120728
base:   net-next/main
patch link:    https://lore.kernel.org/r/20250904040544.598469-2-admiyo%40os.amperecomputing.com
patch subject: [PATCH net-next v28 1/1] mctp pcc: Implement MCTP over PCC Transport
config: i386-buildonly-randconfig-005-20250905 (https://download.01.org/0day-ci/archive/20250905/202509050150.wt57Mjwg-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250905/202509050150.wt57Mjwg-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/202509050150.wt57Mjwg-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/mctp/mctp-pcc.c:327:6: warning: variable 'rc' is uninitialized when used here [-Wuninitialized]
     327 |         if (rc)
         |             ^~
   drivers/net/mctp/mctp-pcc.c:303:8: note: initialize the variable 'rc' to silence this warning
     303 |         int rc;
         |               ^
         |                = 0
   1 warning generated.


vim +/rc +327 drivers/net/mctp/mctp-pcc.c

   293	
   294	static int mctp_pcc_driver_add(struct acpi_device *acpi_dev)
   295	{
   296		struct mctp_pcc_lookup_context context = {0};
   297		struct mctp_pcc_ndev *mctp_pcc_ndev;
   298		struct device *dev = &acpi_dev->dev;
   299		struct net_device *ndev;
   300		acpi_handle dev_handle;
   301		acpi_status status;
   302		char name[32];
   303		int rc;
   304	
   305		dev_dbg(dev, "Adding mctp_pcc device for HID %s\n",
   306			acpi_device_hid(acpi_dev));
   307		dev_handle = acpi_device_handle(acpi_dev);
   308		status = acpi_walk_resources(dev_handle, "_CRS", lookup_pcct_indices,
   309					     &context);
   310		if (!ACPI_SUCCESS(status)) {
   311			dev_err(dev, "FAILURE to lookup PCC indexes from CRS\n");
   312			return -EINVAL;
   313		}
   314	
   315		snprintf(name, sizeof(name), "mctppcc%d", context.inbox_index);
   316		ndev = alloc_netdev(sizeof(*mctp_pcc_ndev), name, NET_NAME_PREDICTABLE,
   317				    mctp_pcc_setup);
   318		if (!ndev)
   319			return -ENOMEM;
   320	
   321		mctp_pcc_ndev = netdev_priv(ndev);
   322	
   323		mctp_pcc_initialize_mailbox(dev, &mctp_pcc_ndev->inbox,
   324					    context.inbox_index);
   325		mctp_pcc_initialize_mailbox(dev, &mctp_pcc_ndev->outbox,
   326					    context.outbox_index);
 > 327		if (rc)
   328			goto free_netdev;
   329	
   330		mctp_pcc_ndev->outbox.client.tx_done = mctp_pcc_tx_done;
   331		mctp_pcc_ndev->acpi_device = acpi_dev;
   332		mctp_pcc_ndev->ndev = ndev;
   333		acpi_dev->driver_data = mctp_pcc_ndev;
   334	
   335		initialize_MTU(ndev);
   336	
   337		rc = mctp_register_netdev(ndev, NULL, MCTP_PHYS_BINDING_PCC);
   338		if (rc)
   339			goto free_netdev;
   340	
   341		return devm_add_action_or_reset(dev, mctp_cleanup_netdev, ndev);
   342	free_netdev:
   343		free_netdev(ndev);
   344		return rc;
   345	}
   346	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

      parent reply	other threads:[~2025-09-04 18:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-04  4:05 [PATCH net-next v28 0/1] MCTP Over " Adam Young
2025-09-04  4:05 ` [PATCH net-next v28 1/1] mctp pcc: Implement MCTP over " Adam Young
2025-09-04  6:16   ` Jeremy Kerr
2025-09-05 20:11     ` Adam Young
2025-09-04 10:48   ` Sudeep Holla
2025-09-04 16:54     ` Adam Young
2025-09-05 14:27       ` Sudeep Holla
2025-09-04 18:25   ` kernel test robot [this message]

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=202509050150.wt57Mjwg-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=admiyo@os.amperecomputing.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=jk@codeconstruct.com.au \
    --cc=kuba@kernel.org \
    --cc=lihuisong@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=matt@codeconstruct.com.au \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=sudeep.holla@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®