From: kbuild test robot <fengguang.wu@intel.com>
To: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 5871/6146] arch/sparc/include/asm/string_64.h:25:25: warning: 'start' may be used uninitialized in this function
Date: Wed, 7 Oct 2015 16:46:26 +0800 [thread overview]
Message-ID: <201510071617.hCOD5FXZ%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4571 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 15e5b1b566ed0689093effb31f13fe29e4c9905a
commit: 5196456ab776a5974d24994aea1b20afe0c8d020 [5871/6146] slab.h: sprinkle __assume_aligned attributes
config: sparc64-defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5196456ab776a5974d24994aea1b20afe0c8d020
# save the attached .config to linux build tree
make.cross ARCH=sparc64
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>):
In file included from arch/sparc/include/asm/string.h:4:0,
from include/linux/string.h:17,
from include/linux/dynamic_debug.h:111,
from include/linux/printk.h:277,
from include/linux/kernel.h:13,
from include/linux/list.h:8,
from include/linux/module.h:9,
from drivers/net/ethernet/broadcom/tg3.c:19:
drivers/net/ethernet/broadcom/tg3.c: In function 'tg3_set_eeprom':
>> arch/sparc/include/asm/string_64.h:25:25: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized]
#define memcpy(t, f, n) __builtin_memcpy(t, f, n)
^
drivers/net/ethernet/broadcom/tg3.c:12021:9: note: 'start' was declared here
__be32 start, end;
^
vim +/start +25 arch/sparc/include/asm/string_64.h
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 9 #ifndef __SPARC64_STRING_H__
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 10 #define __SPARC64_STRING_H__
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 11
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 12 /* Really, userland/ksyms should not see any of this stuff. */
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 13
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 14 #ifdef __KERNEL__
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 15
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 16 #include <asm/asi.h>
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 17
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 18 #ifndef EXPORT_SYMTAB_STROPS
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 19
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 20 /* First the mem*() things. */
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 21 #define __HAVE_ARCH_MEMMOVE
f05a6865 arch/sparc/include/asm/string_64.h Sam Ravnborg 2014-05-16 22 void *memmove(void *, const void *, __kernel_size_t);
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 23
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 24 #define __HAVE_ARCH_MEMCPY
4d14a459 arch/sparc/include/asm/string_64.h David S. Miller 2009-12-10 @25 #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 26
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 27 #define __HAVE_ARCH_MEMSET
4d14a459 arch/sparc/include/asm/string_64.h David S. Miller 2009-12-10 28 #define memset(s, c, count) __builtin_memset(s, c, count)
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 29
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 30 #define __HAVE_ARCH_MEMSCAN
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 31
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 32 #undef memscan
f5e706ad include/asm-sparc/string_64.h Sam Ravnborg 2008-07-17 33 #define memscan(__arg0, __char, __arg2) \
:::::: The code at line 25 was first introduced by commit
:::::: 4d14a459857bd151ecbd14bcd37b4628da00792b sparc: Stop trying to be so fancy and use __builtin_{memcpy,memset}()
:::::: TO: David S. Miller <davem@davemloft.net>
:::::: CC: David S. Miller <davem@davemloft.net>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 16548 bytes --]
next reply other threads:[~2015-10-07 8:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-07 8:46 kbuild test robot [this message]
2015-10-07 10:20 ` Rasmus Villemoes
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=201510071617.hCOD5FXZ%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=linux@rasmusvillemoes.dk \
/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