Search Linux Wireless

Re: [PATCH v2 3/3] mac80211: Unify mesh and mpp path removal function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Henning,

[auto build test WARNING on mac80211-next/master]
[also build test WARNING on v4.5-rc1 next-20160129]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Henning-Rogge/mac80211-add-cleanup-path-for-MPP-table-entries/20160129-181045
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git master
reproduce:
        # apt-get install sparse
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   include/linux/compiler.h:228:8: sparse: attribute 'no_sanitize_address': unknown attribute
>> net/mac80211/mesh_pathtbl.c:60:10: sparse: incompatible types in comparison expression (different address spaces)
>> net/mac80211/mesh_pathtbl.c:60:10: sparse: incompatible types in comparison expression (different address spaces)
>> net/mac80211/mesh_pathtbl.c:60:10: sparse: incompatible types in comparison expression (different address spaces)
>> net/mac80211/mesh_pathtbl.c:60:10: sparse: incompatible types in comparison expression (different address spaces)
>> net/mac80211/mesh_pathtbl.c:60:10: sparse: incompatible types in comparison expression (different address spaces)
>> net/mac80211/mesh_pathtbl.c:60:10: sparse: incompatible types in comparison expression (different address spaces)
>> net/mac80211/mesh_pathtbl.c:60:10: sparse: incompatible types in comparison expression (different address spaces)
>> net/mac80211/mesh_pathtbl.c:60:10: sparse: incompatible types in comparison expression (different address spaces)
>> net/mac80211/mesh_pathtbl.c:60:10: sparse: incompatible types in comparison expression (different address spaces)

vim +60 net/mac80211/mesh_pathtbl.c

    44	static struct mesh_table __rcu *mpp_paths; /* Store paths for MPP&MAP */
    45	
    46	int mesh_paths_generation;
    47	int mpp_paths_generation;
    48	
    49	/* This lock will have the grow table function as writer and add / delete nodes
    50	 * as readers. RCU provides sufficient protection only when reading the table
    51	 * (i.e. doing lookups).  Adding or adding or removing nodes requires we take
    52	 * the read lock or we risk operating on an old table.  The write lock is only
    53	 * needed when modifying the number of buckets a table.
    54	 */
    55	static DEFINE_RWLOCK(pathtbl_resize_lock);
    56	
    57	
    58	static inline struct mesh_table *resize_dereference_paths(struct mesh_table *table)
    59	{
  > 60	  return rcu_dereference_protected(table,
    61	    lockdep_is_held(&pathtbl_resize_lock));
    62	}
    63	
    64	static inline struct mesh_table *resize_dereference_mesh_paths(void)
    65	{
    66		return resize_dereference_paths(mesh_paths);
    67	}
    68	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux