* mm/memtest.c:84:33: sparse: cast from restricted __be64
@ 2015-04-27 3:17 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2015-04-27 3:17 UTC (permalink / raw)
To: Vladimir Murzin; +Cc: kbuild-all, Andrew Morton, Linux Memory Management List
tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b787f68c36d49bb1d9236f403813641efa74a031
commit: 4a20799d11f64e6b8725cacc7619b1ae1dbf9acd mm: move memtest under mm
date: 12 days ago
reproduce:
# apt-get install sparse
git checkout 4a20799d11f64e6b8725cacc7619b1ae1dbf9acd
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> mm/memtest.c:84:33: sparse: cast from restricted __be64
vim +84 mm/memtest.c
7dad169e arch/x86/mm/memtest.c Andreas Herrmann 2009-02-25 68 if (start_bad)
7dad169e arch/x86/mm/memtest.c Andreas Herrmann 2009-02-25 69 reserve_bad_mem(pattern, start_bad, last_bad + incr);
1f067167 arch/x86/mm/memtest.c Yinghai Lu 2008-07-15 70 }
1f067167 arch/x86/mm/memtest.c Yinghai Lu 2008-07-15 71
bfb4dc0d arch/x86/mm/memtest.c Andreas Herrmann 2009-02-25 72 static void __init do_one_pass(u64 pattern, u64 start, u64 end)
bfb4dc0d arch/x86/mm/memtest.c Andreas Herrmann 2009-02-25 73 {
8d89ac80 arch/x86/mm/memtest.c Tejun Heo 2011-07-12 74 u64 i;
8d89ac80 arch/x86/mm/memtest.c Tejun Heo 2011-07-12 75 phys_addr_t this_start, this_end;
bfb4dc0d arch/x86/mm/memtest.c Andreas Herrmann 2009-02-25 76
9a28f9dc arch/x86/mm/memtest.c Grygorii Strashko 2014-01-21 77 for_each_free_mem_range(i, NUMA_NO_NODE, &this_start, &this_end, NULL) {
8d89ac80 arch/x86/mm/memtest.c Tejun Heo 2011-07-12 78 this_start = clamp_t(phys_addr_t, this_start, start, end);
8d89ac80 arch/x86/mm/memtest.c Tejun Heo 2011-07-12 79 this_end = clamp_t(phys_addr_t, this_end, start, end);
8d89ac80 arch/x86/mm/memtest.c Tejun Heo 2011-07-12 80 if (this_start < this_end) {
bfb4dc0d arch/x86/mm/memtest.c Andreas Herrmann 2009-02-25 81 printk(KERN_INFO " %010llx - %010llx pattern %016llx\n",
8d89ac80 arch/x86/mm/memtest.c Tejun Heo 2011-07-12 82 (unsigned long long)this_start,
8d89ac80 arch/x86/mm/memtest.c Tejun Heo 2011-07-12 83 (unsigned long long)this_end,
bfb4dc0d arch/x86/mm/memtest.c Andreas Herrmann 2009-02-25 @84 (unsigned long long)cpu_to_be64(pattern));
8d89ac80 arch/x86/mm/memtest.c Tejun Heo 2011-07-12 85 memtest(pattern, this_start, this_end - this_start);
8d89ac80 arch/x86/mm/memtest.c Tejun Heo 2011-07-12 86 }
bfb4dc0d arch/x86/mm/memtest.c Andreas Herrmann 2009-02-25 87 }
bfb4dc0d arch/x86/mm/memtest.c Andreas Herrmann 2009-02-25 88 }
bfb4dc0d arch/x86/mm/memtest.c Andreas Herrmann 2009-02-25 89
1f067167 arch/x86/mm/memtest.c Yinghai Lu 2008-07-15 90 /* default is disabled */
1f067167 arch/x86/mm/memtest.c Yinghai Lu 2008-07-15 91 static int memtest_pattern __initdata;
1f067167 arch/x86/mm/memtest.c Yinghai Lu 2008-07-15 92
:::::: The code at line 84 was first introduced by commit
:::::: bfb4dc0da45f8fddc76eba7e62919420c7d6dae2 x86: memtest: wipe out test pattern from memory
:::::: TO: Andreas Herrmann <andreas.herrmann3@amd.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-04-27 3:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-27 3:17 mm/memtest.c:84:33: sparse: cast from restricted __be64 kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox