[linux-next:master 5981/6698] net/wireless/wext-core.c:671:3: note: in expansion of macro 'memcpy'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   2646738520338211e74394857e36df7c455a8a91
commit: b0c05fe8eccb85a4dc80da0eb11a4d58b8ab912e [5981/6698] init/Kconfig: enable -O3 for all arches
config: i386-randconfig-g002-20200109 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
        git checkout b0c05fe8eccb85a4dc80da0eb11a4d58b8ab912e
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/string.h:3:0,
                    from include/linux/string.h:20,
                    from arch/x86/include/asm/page_32.h:35,
                    from arch/x86/include/asm/page.h:14,
                    from arch/x86/include/asm/thread_info.h:12,
                    from include/linux/thread_info.h:38,
                    from arch/x86/include/asm/preempt.h:7,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:51,
                    from include/linux/seqlock.h:36,
                    from include/linux/time.h:6,
                    from include/linux/ktime.h:24,
                    from include/linux/timer.h:6,
                    from include/linux/netdevice.h:24,
                    from net/wireless/wext-core.c:11:
   net/wireless/wext-core.c: In function 'wext_handle_ioctl':
   arch/x86/include/asm/string_32.h:182:25: warning: argument 1 null where non-null expected [-Wnonnull]
    #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~
>> net/wireless/wext-core.c:671:3: note: in expansion of macro 'memcpy'
      memcpy(extra, stats, sizeof(struct iw_statistics));
      ^~~~~~
   arch/x86/include/asm/string_32.h:182:25: note: in a call to built-in function '__builtin_memcpy'
    #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
                            ^~~~~~~~~~~~~~~~~~~~~~~~~
>> net/wireless/wext-core.c:671:3: note: in expansion of macro 'memcpy'
      memcpy(extra, stats, sizeof(struct iw_statistics));
      ^~~~~~

vim +/memcpy +671 net/wireless/wext-core.c

881d966b48b035 net/wireless/wext.c      Eric W. Biederman 2007-09-17  659  
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  660  static int iw_handler_get_iwstats(struct net_device *		dev,
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  661  				  struct iw_request_info *	info,
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  662  				  union iwreq_data *		wrqu,
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  663  				  char *			extra)
881d966b48b035 net/wireless/wext.c      Eric W. Biederman 2007-09-17  664  {
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  665  	/* Get stats from the driver */
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  666  	struct iw_statistics *stats;
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  667  
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  668  	stats = get_wireless_stats(dev);
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  669  	if (stats) {
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  670  		/* Copy statistics to extra */
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29 @671  		memcpy(extra, stats, sizeof(struct iw_statistics));
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  672  		wrqu->data.length = sizeof(struct iw_statistics);
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  673  
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  674  		/* Check if we need to clear the updated flag */
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  675  		if (wrqu->data.flags != 0)
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  676  			stats->qual.updated &= ~IW_QUAL_ALL_UPDATED;
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  677  		return 0;
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  678  	} else
3d23e349d80717 net/wireless/wext-core.c Johannes Berg     2009-09-29  679  		return -EOPNOTSUPP;
881d966b48b035 net/wireless/wext.c      Eric W. Biederman 2007-09-17  680  }
^1da177e4c3f41 net/core/wireless.c      Linus Torvalds    2005-04-16  681  

:::::: The code at line 671 was first introduced by commit
:::::: 3d23e349d807177eaf519d444677cee86b1a04cf wext: refactor

:::::: TO: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
:::::: CC: John W. Linville <linville@xxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux