* [android-common:android-4.9-o-release 44/53] arch/x86/kernel/resource.c:28:20: warning: The scope of the variable 'entry' can be reduced. [variableScope]
@ 2020-01-10 14:40 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-10 14:40 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2129 bytes --]
Hi Josh,
First bad commit (maybe != root cause):
tree: https://android.googlesource.com/kernel/common android-4.9-o-release
head: a493de2ff342b94623e9241ba0b7926be9c09693
commit: 2d1579e6534c17bac9e927d85fe5d76b7c95b3ad [44/53] objtool, perf: Fix GCC 8 -Wrestrict error
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
cppcheck warnings: (new ones prefixed by >>)
>> arch/x86/kernel/resource.c:28:20: warning: The scope of the variable 'entry' can be reduced. [variableScope]
>> struct e820entry *entry;
^
--
>> arch/x86/kernel/paravirt_patch_64.c:18:12: warning: syntax error [syntaxError]
>> DEF_NATIVE(, mov32, "mov %edi, %eax");
^
vim +/entry +28 arch/x86/kernel/resource.c
4dc2287c1805e7 Bjorn Helgaas 2010-12-16 24
4dc2287c1805e7 Bjorn Helgaas 2010-12-16 25 static void remove_e820_regions(struct resource *avail)
4dc2287c1805e7 Bjorn Helgaas 2010-12-16 26 {
4dc2287c1805e7 Bjorn Helgaas 2010-12-16 27 int i;
4dc2287c1805e7 Bjorn Helgaas 2010-12-16 @28 struct e820entry *entry;
4dc2287c1805e7 Bjorn Helgaas 2010-12-16 29
475339684ef19e Denys Vlasenko 2016-09-17 30 for (i = 0; i < e820->nr_map; i++) {
475339684ef19e Denys Vlasenko 2016-09-17 31 entry = &e820->map[i];
4dc2287c1805e7 Bjorn Helgaas 2010-12-16 32
4dc2287c1805e7 Bjorn Helgaas 2010-12-16 33 resource_clip(avail, entry->addr,
4dc2287c1805e7 Bjorn Helgaas 2010-12-16 34 entry->addr + entry->size - 1);
4dc2287c1805e7 Bjorn Helgaas 2010-12-16 35 }
4dc2287c1805e7 Bjorn Helgaas 2010-12-16 36 }
4dc2287c1805e7 Bjorn Helgaas 2010-12-16 37
:::::: The code at line 28 was first introduced by commit
:::::: 4dc2287c1805e7fe8a7cb90bbcd44abee8cdb914 x86: avoid E820 regions when allocating address space
:::::: TO: Bjorn Helgaas <bjorn.helgaas@hp.com>
:::::: CC: Jesse Barnes <jbarnes@virtuousgeek.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-10 14:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10 14:40 [android-common:android-4.9-o-release 44/53] arch/x86/kernel/resource.c:28:20: warning: The scope of the variable 'entry' can be reduced. [variableScope] kbuild 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.