All of lore.kernel.org
 help / color / mirror / Atom feed
* [sschmidt-wpan-next:master 8/9] net/mac802154/scan.c:422:43: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2023-01-29  3:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-29  3:20 UTC (permalink / raw)
  To: Miquel Raynal; +Cc: oe-kbuild-all, Stefan Schmidt, David Girault

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan-next.git master
head:   622bd6ea90086beb98ac439edd7d57de73d1d6f9
commit: 3accf4762734a69ebd03cba989249c78ac7dfc7e [8/9] mac802154: Handle basic beaconing
config: openrisc-randconfig-s041-20230129 (https://download.01.org/0day-ci/archive/20230129/202301291108.uQEw8WLv-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 12.1.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan-next.git/commit/?id=3accf4762734a69ebd03cba989249c78ac7dfc7e
        git remote add sschmidt-wpan-next https://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan-next.git
        git fetch --no-tags sschmidt-wpan-next master
        git checkout 3accf4762734a69ebd03cba989249c78ac7dfc7e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=openrisc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=openrisc SHELL=/bin/bash net/mac802154/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

sparse warnings: (new ones prefixed by >>)
>> net/mac802154/scan.c:422:43: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned short [usertype] val @@     got restricted __le16 [usertype] pan_id @@
   net/mac802154/scan.c:422:43: sparse:     expected unsigned short [usertype] val
   net/mac802154/scan.c:422:43: sparse:     got restricted __le16 [usertype] pan_id
>> net/mac802154/scan.c:422:43: sparse: sparse: cast from restricted __le16
>> net/mac802154/scan.c:422:43: sparse: sparse: cast from restricted __le16
>> net/mac802154/scan.c:423:50: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned long long [usertype] val @@     got restricted __le64 [usertype] extended_addr @@
   net/mac802154/scan.c:423:50: sparse:     expected unsigned long long [usertype] val
   net/mac802154/scan.c:423:50: sparse:     got restricted __le64 [usertype] extended_addr
>> net/mac802154/scan.c:423:50: sparse: sparse: cast from restricted __le64
>> net/mac802154/scan.c:423:50: sparse: sparse: cast from restricted __le64
>> net/mac802154/scan.c:423:50: sparse: sparse: cast from restricted __le64
>> net/mac802154/scan.c:423:50: sparse: sparse: cast from restricted __le64
>> net/mac802154/scan.c:423:50: sparse: sparse: cast from restricted __le64
>> net/mac802154/scan.c:423:50: sparse: sparse: cast from restricted __le64
>> net/mac802154/scan.c:423:50: sparse: sparse: cast from restricted __le64
>> net/mac802154/scan.c:423:50: sparse: sparse: cast from restricted __le64

vim +422 net/mac802154/scan.c

   395	
   396	int mac802154_send_beacons_locked(struct ieee802154_sub_if_data *sdata,
   397					  struct cfg802154_beacon_request *request)
   398	{
   399		struct ieee802154_local *local = sdata->local;
   400	
   401		ASSERT_RTNL();
   402	
   403		if (mac802154_is_beaconing(local))
   404			mac802154_stop_beacons_locked(local, sdata);
   405	
   406		/* Store beaconing parameters */
   407		rcu_assign_pointer(local->beacon_req, request);
   408	
   409		set_bit(IEEE802154_IS_BEACONING, &local->ongoing);
   410	
   411		memset(&local->beacon, 0, sizeof(local->beacon));
   412		local->beacon.mhr.fc.type = IEEE802154_FC_TYPE_BEACON;
   413		local->beacon.mhr.fc.security_enabled = 0;
   414		local->beacon.mhr.fc.frame_pending = 0;
   415		local->beacon.mhr.fc.ack_request = 0;
   416		local->beacon.mhr.fc.intra_pan = 0;
   417		local->beacon.mhr.fc.dest_addr_mode = IEEE802154_NO_ADDRESSING;
   418		local->beacon.mhr.fc.version = IEEE802154_2003_STD;
   419		local->beacon.mhr.fc.source_addr_mode = IEEE802154_EXTENDED_ADDRESSING;
   420		atomic_set(&request->wpan_dev->bsn, -1);
   421		local->beacon.mhr.source.mode = IEEE802154_ADDR_LONG;
 > 422		local->beacon.mhr.source.pan_id = cpu_to_le16(request->wpan_dev->pan_id);
 > 423		local->beacon.mhr.source.extended_addr = cpu_to_le64(request->wpan_dev->extended_addr);

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-29  3:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-29  3:20 [sschmidt-wpan-next:master 8/9] net/mac802154/scan.c:422:43: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot

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.