From: kernel test robot <lkp@intel.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>,
Alexander Aring <alex.aring@gmail.com>,
Stefan Schmidt <stefan@datenfreihafen.org>,
linux-wpan@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Eric Dumazet <edumazet@google.com>,
netdev@vger.kernel.org, David Girault <david.girault@qorvo.com>,
Romuald Despres <romuald.despres@qorvo.com>,
Frederic Blain <frederic.blain@qorvo.com>,
Nicolas Schodet <nico@ni.fr.eu.org>,
Guilhem Imberton <guilhem.imberton@qorvo.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Miquel Raynal <miquel.raynal@bootlin.com>
Subject: Re: [PATCH wpan-next v4 04/11] mac802154: Handle associating
Date: Mon, 25 Sep 2023 19:35:22 +0800 [thread overview]
Message-ID: <202309251904.eSN2jHxq-lkp@intel.com> (raw)
In-Reply-To: <20230922155029.592018-5-miquel.raynal@bootlin.com>
Hi Miquel,
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.6-rc3 next-20230925]
[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/Miquel-Raynal/ieee802154-Let-PAN-IDs-be-reset/20230923-000250
base: net-next/main
patch link: https://lore.kernel.org/r/20230922155029.592018-5-miquel.raynal%40bootlin.com
patch subject: [PATCH wpan-next v4 04/11] mac802154: Handle associating
config: i386-randconfig-061-20230925 (https://download.01.org/0day-ci/archive/20230925/202309251904.eSN2jHxq-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230925/202309251904.eSN2jHxq-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/202309251904.eSN2jHxq-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> net/mac802154/cfg.c:379:39: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted __le16 [usertype] pan_id @@ got int @@
net/mac802154/cfg.c:379:39: sparse: expected restricted __le16 [usertype] pan_id
net/mac802154/cfg.c:379:39: sparse: got int
vim +379 net/mac802154/cfg.c
317
318 static int mac802154_associate(struct wpan_phy *wpan_phy,
319 struct wpan_dev *wpan_dev,
320 struct ieee802154_addr *coord)
321 {
322 struct ieee802154_local *local = wpan_phy_priv(wpan_phy);
323 u64 ceaddr = swab64((__force u64)coord->extended_addr);
324 struct ieee802154_sub_if_data *sdata;
325 struct ieee802154_pan_device *parent;
326 __le16 short_addr;
327 int ret;
328
329 ASSERT_RTNL();
330
331 sdata = IEEE802154_WPAN_DEV_TO_SUB_IF(wpan_dev);
332
333 if (wpan_dev->parent) {
334 dev_err(&sdata->dev->dev,
335 "Device %8phC is already associated\n", &ceaddr);
336 return -EPERM;
337 }
338
339 if (coord->mode == IEEE802154_SHORT_ADDRESSING)
340 return -EINVAL;
341
342 parent = kzalloc(sizeof(*parent), GFP_KERNEL);
343 if (!parent)
344 return -ENOMEM;
345
346 parent->pan_id = coord->pan_id;
347 parent->mode = coord->mode;
348 parent->extended_addr = coord->extended_addr;
349 parent->short_addr = cpu_to_le16(IEEE802154_ADDR_SHORT_BROADCAST);
350
351 /* Set the PAN ID hardware address filter beforehand to avoid dropping
352 * the association response with a destination PAN ID field set to the
353 * "new" PAN ID.
354 */
355 if (local->hw.flags & IEEE802154_HW_AFILT) {
356 ret = drv_set_pan_id(local, coord->pan_id);
357 if (ret < 0)
358 goto free_parent;
359 }
360
361 ret = mac802154_perform_association(sdata, parent, &short_addr);
362 if (ret)
363 goto reset_panid;
364
365 if (local->hw.flags & IEEE802154_HW_AFILT) {
366 ret = drv_set_short_addr(local, short_addr);
367 if (ret < 0)
368 goto reset_panid;
369 }
370
371 wpan_dev->pan_id = coord->pan_id;
372 wpan_dev->short_addr = short_addr;
373 wpan_dev->parent = parent;
374
375 return 0;
376
377 reset_panid:
378 if (local->hw.flags & IEEE802154_HW_AFILT)
> 379 drv_set_pan_id(local, IEEE802154_PAN_ID_BROADCAST);
380
381 free_parent:
382 kfree(parent);
383 return ret;
384 }
385
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-09-25 11:35 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-22 15:50 [PATCH wpan-next v4 00/11] ieee802154: Associations between devices Miquel Raynal
2023-09-22 15:50 ` [PATCH wpan-next v4 01/11] ieee802154: Let PAN IDs be reset Miquel Raynal
2023-09-24 20:42 ` Alexander Aring
2023-09-25 7:34 ` Miquel Raynal
2023-09-22 15:50 ` [PATCH wpan-next v4 02/11] ieee802154: Internal PAN management Miquel Raynal
2023-09-24 20:47 ` Alexander Aring
2023-09-27 16:10 ` Miquel Raynal
2023-09-29 0:22 ` Alexander Aring
2023-09-22 15:50 ` [PATCH wpan-next v4 03/11] ieee802154: Add support for user association requests Miquel Raynal
2023-09-22 15:50 ` [PATCH wpan-next v4 04/11] mac802154: Handle associating Miquel Raynal
2023-09-25 11:35 ` kernel test robot [this message]
2023-09-22 15:50 ` [PATCH wpan-next v4 05/11] ieee802154: Add support for user disassociation requests Miquel Raynal
2023-09-22 15:50 ` [PATCH wpan-next v4 06/11] mac802154: Handle disassociations Miquel Raynal
2023-09-22 15:50 ` [PATCH wpan-next v4 07/11] mac802154: Handle association requests from peers Miquel Raynal
2023-09-25 0:13 ` Alexander Aring
2023-09-25 7:43 ` Miquel Raynal
2023-09-27 1:31 ` Alexander Aring
2023-09-27 14:39 ` Miquel Raynal
2023-09-27 1:37 ` Alexander Aring
2023-09-27 15:40 ` Miquel Raynal
2023-09-29 0:19 ` Alexander Aring
2023-09-22 15:50 ` [PATCH wpan-next v4 08/11] ieee802154: Add support for limiting the number of associated devices Miquel Raynal
2023-09-22 15:50 ` [PATCH wpan-next v4 09/11] mac802154: Follow " Miquel Raynal
2023-09-22 15:50 ` [PATCH wpan-next v4 10/11] mac802154: Handle disassociation notifications from peers Miquel Raynal
2023-09-22 15:50 ` [PATCH wpan-next v4 11/11] ieee802154: Give the user the association list Miquel Raynal
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=202309251904.eSN2jHxq-lkp@intel.com \
--to=lkp@intel.com \
--cc=alex.aring@gmail.com \
--cc=david.girault@qorvo.com \
--cc=edumazet@google.com \
--cc=frederic.blain@qorvo.com \
--cc=guilhem.imberton@qorvo.com \
--cc=kuba@kernel.org \
--cc=linux-wpan@vger.kernel.org \
--cc=miquel.raynal@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=nico@ni.fr.eu.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=romuald.despres@qorvo.com \
--cc=stefan@datenfreihafen.org \
--cc=thomas.petazzoni@bootlin.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;
as well as URLs for NNTP newsgroup(s).