From: kernel test robot <lkp@intel.com>
To: Vivek Pernamitta <quic_vpernami@quicinc.com>, mhi@lists.linux.dev
Cc: oe-kbuild-all@lists.linux.dev, mrana@quicinc.com,
quic_qianyu@quicinc.com, manivannan.sadhasivam@linaro.org,
Vivek Pernamitta <quic_vpernami@quicinc.com>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH V1] net: mhi : Add support to enable ethernet interface
Date: Sun, 2 Jul 2023 21:37:15 +0800 [thread overview]
Message-ID: <202307022148.nlp4Fazk-lkp@intel.com> (raw)
In-Reply-To: <1688118281-13032-1-git-send-email-quic_vpernami@quicinc.com>
Hi Vivek,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
[also build test WARNING on net/main linus/master v6.4 next-20230630]
[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/Vivek-Pernamitta/net-mhi-Add-support-to-enable-ethernet-interface/20230630-174659
base: net-next/main
patch link: https://lore.kernel.org/r/1688118281-13032-1-git-send-email-quic_vpernami%40quicinc.com
patch subject: [PATCH V1] net: mhi : Add support to enable ethernet interface
config: i386-randconfig-i062-20230702 (https://download.01.org/0day-ci/archive/20230702/202307022148.nlp4Fazk-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230702/202307022148.nlp4Fazk-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/202307022148.nlp4Fazk-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/net/mhi_net.c:327:37: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected unsigned char [usertype] *addr @@ got unsigned char const *dev_addr @@
drivers/net/mhi_net.c:327:37: sparse: expected unsigned char [usertype] *addr
drivers/net/mhi_net.c:327:37: sparse: got unsigned char const *dev_addr
vim +327 drivers/net/mhi_net.c
320
321 static int mhi_net_newlink(struct mhi_device *mhi_dev, struct net_device *ndev, bool eth_dev)
322 {
323 struct mhi_net_dev *mhi_netdev;
324 int err;
325
326 if (eth_dev) {
> 327 eth_random_addr(ndev->dev_addr);
328 if (!is_valid_ether_addr(ndev->dev_addr))
329 return -EADDRNOTAVAIL;
330 }
331
332 mhi_netdev = netdev_priv(ndev);
333
334 dev_set_drvdata(&mhi_dev->dev, mhi_netdev);
335 mhi_netdev->ndev = ndev;
336 mhi_netdev->mdev = mhi_dev;
337 mhi_netdev->skbagg_head = NULL;
338 mhi_netdev->mru = mhi_dev->mhi_cntrl->mru;
339 mhi_netdev->ethernet_if = eth_dev;
340
341 INIT_DELAYED_WORK(&mhi_netdev->rx_refill, mhi_net_rx_refill_work);
342 u64_stats_init(&mhi_netdev->stats.rx_syncp);
343 u64_stats_init(&mhi_netdev->stats.tx_syncp);
344
345 /* Start MHI channels */
346 err = mhi_prepare_for_transfer(mhi_dev);
347 if (err)
348 return err;
349
350 /* Number of transfer descriptors determines size of the queue */
351 mhi_netdev->rx_queue_sz = mhi_get_free_desc_count(mhi_dev, DMA_FROM_DEVICE);
352
353 err = register_netdev(ndev);
354 if (err)
355 return err;
356
357 return 0;
358 }
359
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-07-02 13:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-30 9:44 [PATCH V1] net: mhi : Add support to enable ethernet interface Vivek Pernamitta
2023-06-30 9:55 ` Vivek Pernamitta
2023-06-30 11:55 ` Daniele Palmas
2023-06-30 13:13 ` Simon Horman
2023-06-30 13:46 ` kernel test robot
2023-07-02 13:37 ` kernel test robot [this message]
2023-07-11 7:50 ` kernel test robot
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=202307022148.nlp4Fazk-lkp@intel.com \
--to=lkp@intel.com \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=mhi@lists.linux.dev \
--cc=mrana@quicinc.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=quic_qianyu@quicinc.com \
--cc=quic_vpernami@quicinc.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.