[sashal-linux-stable:queue-5.4 123/189] drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c:413:7: error: implicit declaration of function 'is_cgx_config_permitted'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 74cb9d74e6b6e93cae875cc04536f543eacb1704
commit: 4cf21c3f82edaae97528a6650781f58cc5d7a40f [123/189] octeontx2-af: Fix missing check bugs in rvu_cgx.c
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 4cf21c3f82edaae97528a6650781f58cc5d7a40f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c: In function 'rvu_mbox_handler_cgx_mac_addr_set':
>> drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c:413:7: error: implicit declaration of function 'is_cgx_config_permitted' [-Werror=implicit-function-declaration]
413 | if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86
vim +/is_cgx_config_permitted +413 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
405
406 int rvu_mbox_handler_cgx_mac_addr_set(struct rvu *rvu,
407 struct cgx_mac_addr_set_or_get *req,
408 struct cgx_mac_addr_set_or_get *rsp)
409 {
410 int pf = rvu_get_pf(req->hdr.pcifunc);
411 u8 cgx_id, lmac_id;
412
> 413 if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
414 return -EPERM;
415
416 rvu_get_cgx_lmac_id(rvu->pf2cgxlmac_map[pf], &cgx_id, &lmac_id);
417
418 cgx_lmac_addr_set(cgx_id, lmac_id, req->mac_addr);
419
420 return 0;
421 }
422
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Eigentum
by Qi Zhu
Schöne Grüße,
Sie haben Immobilien bei uns. Antworten Sie auf Akzeptanz
1 year, 6 months
[sashal-linux-stable:queue-5.4 12196/12326] fs/btrfs/inode.c:9055:39: error: passing argument 1 of 'btrfs_dec_test_ordered_pending' from incompatible pointer type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 74cb9d74e6b6e93cae875cc04536f543eacb1704
commit: ddf7e924603ee9838823a02de7e3940cc061f43f [12196/12326] btrfs: make btrfs_invalidatepage work on btrfs_inode
config: parisc-randconfig-m031-20210321 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout ddf7e924603ee9838823a02de7e3940cc061f43f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/mm.h:99,
from include/linux/highmem.h:8,
from include/linux/bio.h:8,
from fs/btrfs/inode.c:7:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
arch/parisc/include/asm/pgtable.h:316:34: note: in expansion of macro 'set_pte_at'
316 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:91:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
91 | pte_t old_pte; \
| ^~~~~~~
include/asm-generic/pgtable.h:629:2: note: in expansion of macro 'set_pte_at'
629 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
fs/btrfs/inode.c: In function 'btrfs_invalidatepage':
>> fs/btrfs/inode.c:9055:39: error: passing argument 1 of 'btrfs_dec_test_ordered_pending' from incompatible pointer type [-Werror=incompatible-pointer-types]
9055 | if (btrfs_dec_test_ordered_pending(inode, &ordered,
| ^~~~~
| |
| struct btrfs_inode *
In file included from fs/btrfs/btrfs_inode.h:12,
from fs/btrfs/transaction.h:10,
from fs/btrfs/inode.c:36:
fs/btrfs/ordered-data.h:156:50: note: expected 'struct inode *' but argument is of type 'struct btrfs_inode *'
156 | int btrfs_dec_test_ordered_pending(struct inode *inode,
| ~~~~~~~~~~~~~~^~~~~
>> fs/btrfs/inode.c:9085:25: error: passing argument 1 of 'btrfs_qgroup_free_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
9085 | btrfs_qgroup_free_data(inode, NULL, page_start, PAGE_SIZE);
| ^~~~~
| |
| struct btrfs_inode *
In file included from fs/btrfs/inode.c:49:
fs/btrfs/qgroup.h:350:42: note: expected 'struct inode *' but argument is of type 'struct btrfs_inode *'
350 | int btrfs_qgroup_free_data(struct inode *inode,
| ~~~~~~~~~~~~~~^~~~~
cc1: some warnings being treated as errors
vim +/btrfs_dec_test_ordered_pending +9055 fs/btrfs/inode.c
e6dcd2dc9c4891 Chris Mason 2008-07-17 8994
d47992f86b3079 Lukas Czerner 2013-05-21 8995 static void btrfs_invalidatepage(struct page *page, unsigned int offset,
d47992f86b3079 Lukas Czerner 2013-05-21 8996 unsigned int length)
39279cc3d2704c Chris Mason 2007-06-12 8997 {
ddf7e924603ee9 Nikolay Borisov 2020-08-31 8998 struct btrfs_inode *inode = BTRFS_I(page->mapping->host);
ddf7e924603ee9 Nikolay Borisov 2020-08-31 8999 struct extent_io_tree *tree = &inode->io_tree;
e6dcd2dc9c4891 Chris Mason 2008-07-17 9000 struct btrfs_ordered_extent *ordered;
2ac55d41b5d6bf Josef Bacik 2010-02-03 9001 struct extent_state *cached_state = NULL;
e6dcd2dc9c4891 Chris Mason 2008-07-17 9002 u64 page_start = page_offset(page);
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 9003 u64 page_end = page_start + PAGE_SIZE - 1;
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9004 u64 start;
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9005 u64 end;
ddf7e924603ee9 Nikolay Borisov 2020-08-31 9006 int inode_evicting = inode->vfs_inode.i_state & I_FREEING;
39279cc3d2704c Chris Mason 2007-06-12 9007
8b62b72b26bcd7 Chris Mason 2009-09-02 9008 /*
8b62b72b26bcd7 Chris Mason 2009-09-02 9009 * we have the page locked, so new writeback can't start,
8b62b72b26bcd7 Chris Mason 2009-09-02 9010 * and the dirty bit won't be cleared while we are here.
8b62b72b26bcd7 Chris Mason 2009-09-02 9011 *
8b62b72b26bcd7 Chris Mason 2009-09-02 9012 * Wait for IO on this page so that we can safely clear
8b62b72b26bcd7 Chris Mason 2009-09-02 9013 * the PagePrivate2 bit and do ordered accounting
8b62b72b26bcd7 Chris Mason 2009-09-02 9014 */
e6dcd2dc9c4891 Chris Mason 2008-07-17 9015 wait_on_page_writeback(page);
8b62b72b26bcd7 Chris Mason 2009-09-02 9016
e6dcd2dc9c4891 Chris Mason 2008-07-17 9017 if (offset) {
a52d9a8033c454 Chris Mason 2007-08-27 9018 btrfs_releasepage(page, GFP_NOFS);
e6dcd2dc9c4891 Chris Mason 2008-07-17 9019 return;
e6dcd2dc9c4891 Chris Mason 2008-07-17 9020 }
131e404a2a54d3 Filipe David Borba Manana 2013-11-19 9021
131e404a2a54d3 Filipe David Borba Manana 2013-11-19 9022 if (!inode_evicting)
ff13db41f184f8 David Sterba 2015-12-03 9023 lock_extent_bits(tree, page_start, page_end, &cached_state);
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9024 again:
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9025 start = page_start;
ddf7e924603ee9 Nikolay Borisov 2020-08-31 9026 ordered = btrfs_lookup_ordered_range(inode, start, page_end - start + 1);
e6dcd2dc9c4891 Chris Mason 2008-07-17 9027 if (ordered) {
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9028 end = min(page_end, ordered->file_offset + ordered->len - 1);
eb84ae039e10f1 Chris Mason 2008-07-17 9029 /*
eb84ae039e10f1 Chris Mason 2008-07-17 9030 * IO on this page will never be started, so we need
eb84ae039e10f1 Chris Mason 2008-07-17 9031 * to account for any ordered extents now
eb84ae039e10f1 Chris Mason 2008-07-17 9032 */
131e404a2a54d3 Filipe David Borba Manana 2013-11-19 9033 if (!inode_evicting)
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9034 clear_extent_bit(tree, start, end,
e182163d9cbe86 Omar Sandoval 2019-08-15 9035 EXTENT_DELALLOC | EXTENT_DELALLOC_NEW |
9e8a4a8b0b9484 Liu Bo 2012-09-05 9036 EXTENT_LOCKED | EXTENT_DO_ACCOUNTING |
ae0f162534e98a David Sterba 2017-10-31 9037 EXTENT_DEFRAG, 1, 0, &cached_state);
8b62b72b26bcd7 Chris Mason 2009-09-02 9038 /*
8b62b72b26bcd7 Chris Mason 2009-09-02 9039 * whoever cleared the private bit is responsible
8b62b72b26bcd7 Chris Mason 2009-09-02 9040 * for the finish_ordered_io
8b62b72b26bcd7 Chris Mason 2009-09-02 9041 */
77cef2ec548456 Josef Bacik 2013-08-29 9042 if (TestClearPagePrivate2(page)) {
77cef2ec548456 Josef Bacik 2013-08-29 9043 struct btrfs_ordered_inode_tree *tree;
77cef2ec548456 Josef Bacik 2013-08-29 9044 u64 new_len;
77cef2ec548456 Josef Bacik 2013-08-29 9045
ddf7e924603ee9 Nikolay Borisov 2020-08-31 9046 tree = &inode->ordered_tree;
77cef2ec548456 Josef Bacik 2013-08-29 9047
77cef2ec548456 Josef Bacik 2013-08-29 9048 spin_lock_irq(&tree->lock);
77cef2ec548456 Josef Bacik 2013-08-29 9049 set_bit(BTRFS_ORDERED_TRUNCATED, &ordered->flags);
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9050 new_len = start - ordered->file_offset;
77cef2ec548456 Josef Bacik 2013-08-29 9051 if (new_len < ordered->truncated_len)
77cef2ec548456 Josef Bacik 2013-08-29 9052 ordered->truncated_len = new_len;
77cef2ec548456 Josef Bacik 2013-08-29 9053 spin_unlock_irq(&tree->lock);
77cef2ec548456 Josef Bacik 2013-08-29 9054
77cef2ec548456 Josef Bacik 2013-08-29 @9055 if (btrfs_dec_test_ordered_pending(inode, &ordered,
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9056 start,
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9057 end - start + 1, 1))
5fd02043553b02 Josef Bacik 2012-05-02 9058 btrfs_finish_ordered_io(ordered);
8b62b72b26bcd7 Chris Mason 2009-09-02 9059 }
e6dcd2dc9c4891 Chris Mason 2008-07-17 9060 btrfs_put_ordered_extent(ordered);
131e404a2a54d3 Filipe David Borba Manana 2013-11-19 9061 if (!inode_evicting) {
2ac55d41b5d6bf Josef Bacik 2010-02-03 9062 cached_state = NULL;
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9063 lock_extent_bits(tree, start, end,
131e404a2a54d3 Filipe David Borba Manana 2013-11-19 9064 &cached_state);
e6dcd2dc9c4891 Chris Mason 2008-07-17 9065 }
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9066
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9067 start = end + 1;
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9068 if (start < page_end)
dbfdb6d1b369b8 Chandan Rajendra 2016-01-21 9069 goto again;
e6dcd2dc9c4891 Chris Mason 2008-07-17 9070 }
131e404a2a54d3 Filipe David Borba Manana 2013-11-19 9071
b9d0b38928e215 Qu Wenruo 2015-09-29 9072 /*
b9d0b38928e215 Qu Wenruo 2015-09-29 9073 * Qgroup reserved space handler
b9d0b38928e215 Qu Wenruo 2015-09-29 9074 * Page here will be either
85c417050fc7fe Qu Wenruo 2020-07-17 9075 * 1) Already written to disk or ordered extent already submitted
85c417050fc7fe Qu Wenruo 2020-07-17 9076 * Then its QGROUP_RESERVED bit in io_tree is already cleaned.
85c417050fc7fe Qu Wenruo 2020-07-17 9077 * Qgroup will be handled by its qgroup_record then.
85c417050fc7fe Qu Wenruo 2020-07-17 9078 * btrfs_qgroup_free_data() call will do nothing here.
85c417050fc7fe Qu Wenruo 2020-07-17 9079 *
85c417050fc7fe Qu Wenruo 2020-07-17 9080 * 2) Not written to disk yet
85c417050fc7fe Qu Wenruo 2020-07-17 9081 * Then btrfs_qgroup_free_data() call will clear the QGROUP_RESERVED
85c417050fc7fe Qu Wenruo 2020-07-17 9082 * bit of its io_tree, and free the qgroup reserved data space.
85c417050fc7fe Qu Wenruo 2020-07-17 9083 * Since the IO will never happen for this page.
85c417050fc7fe Qu Wenruo 2020-07-17 9084 */
bc42bda22345ef Qu Wenruo 2017-02-27 @9085 btrfs_qgroup_free_data(inode, NULL, page_start, PAGE_SIZE);
131e404a2a54d3 Filipe David Borba Manana 2013-11-19 9086 if (!inode_evicting) {
e182163d9cbe86 Omar Sandoval 2019-08-15 9087 clear_extent_bit(tree, page_start, page_end, EXTENT_LOCKED |
a7e3b975a0f929 Filipe Manana 2017-04-03 9088 EXTENT_DELALLOC | EXTENT_DELALLOC_NEW |
a7e3b975a0f929 Filipe Manana 2017-04-03 9089 EXTENT_DO_ACCOUNTING | EXTENT_DEFRAG, 1, 1,
ae0f162534e98a David Sterba 2017-10-31 9090 &cached_state);
131e404a2a54d3 Filipe David Borba Manana 2013-11-19 9091
e6dcd2dc9c4891 Chris Mason 2008-07-17 9092 __btrfs_releasepage(page, GFP_NOFS);
131e404a2a54d3 Filipe David Borba Manana 2013-11-19 9093 }
e6dcd2dc9c4891 Chris Mason 2008-07-17 9094
4a096752796740 Chris Mason 2008-07-21 9095 ClearPageChecked(page);
9ad6b7bc2e00ba Chris Mason 2008-04-18 9096 if (PagePrivate(page)) {
9ad6b7bc2e00ba Chris Mason 2008-04-18 9097 ClearPagePrivate(page);
9ad6b7bc2e00ba Chris Mason 2008-04-18 9098 set_page_private(page, 0);
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 9099 put_page(page);
9ad6b7bc2e00ba Chris Mason 2008-04-18 9100 }
39279cc3d2704c Chris Mason 2007-06-12 9101 }
39279cc3d2704c Chris Mason 2007-06-12 9102
:::::: The code at line 9055 was first introduced by commit
:::::: 77cef2ec5484564eca6bd12a2b4a1e88fd766fbc Btrfs: allow partial ordered extent completion
:::::: TO: Josef Bacik <jbacik(a)fusionio.com>
:::::: CC: Chris Mason <chris.mason(a)fusionio.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[PATCH] drm/amd/display/dc/calcs/dce_calcs: fix noderef.cocci warnings
by kernel test robot
From: kernel test robot <lkp(a)intel.com>
drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c:2054:17-23: ERROR: application of sizeof to pointer
drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c:2058:17-23: ERROR: application of sizeof to pointer
sizeof when applied to a pointer typed expression gives the size of
the pointer
Generated by: scripts/coccinelle/misc/noderef.cocci
CC: Lee Jones <lee.jones(a)linaro.org>
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
url: https://github.com/0day-ci/linux/commits/Lee-Jones/Rid-GPU-from-W-1-warni...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 8b12a62a4e3ed4ae99c715034f557eb391d6b196
dce_calcs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c
+++ b/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c
@@ -2051,11 +2051,11 @@ void bw_calcs_init(struct bw_calcs_dceip
enum bw_calcs_version version = bw_calcs_version_from_asic_id(asic_id);
- dceip = kzalloc(sizeof(dceip), GFP_KERNEL);
+ dceip = kzalloc(sizeof(*dceip), GFP_KERNEL);
if (!dceip)
return;
- vbios = kzalloc(sizeof(vbios), GFP_KERNEL);
+ vbios = kzalloc(sizeof(*vbios), GFP_KERNEL);
if (!vbios) {
kfree(dceip);
return;
1 year, 6 months
[linux-stable-rc:linux-4.19.y 7414/9999] mm/memory_hotplug.c:482:16: warning: variable 'start_pfn' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: e864f43593ccf9180c61738abdf1c1dde091367d
commit: 86834898d5a5e5aef9ae6d285201f2d99a4eb300 [7414/9999] mm/memory_hotplug: shrink zones when offlining memory
config: ia64-randconfig-r031-20210318 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.19.y
git checkout 86834898d5a5e5aef9ae6d285201f2d99a4eb300
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/ia64/include/asm/pgtable.h:154,
from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from mm/memory_hotplug.c:8:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
137 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
mm/memory_hotplug.c: In function '__remove_section':
>> mm/memory_hotplug.c:482:16: warning: variable 'start_pfn' set but not used [-Wunused-but-set-variable]
482 | unsigned long start_pfn;
| ^~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND && !ARC && !X86
vim +/start_pfn +482 mm/memory_hotplug.c
815121d2b5cd56 Yasuaki Ishimatsu 2013-02-22 478
86834898d5a5e5 David Hildenbrand 2020-01-28 479 static void __remove_section(struct mem_section *ms, unsigned long map_offset,
efaa8fb877a081 David Hildenbrand 2020-01-28 480 struct vmem_altmap *altmap)
ea01ea937dcae2 Badari Pulavarty 2008-04-28 481 {
815121d2b5cd56 Yasuaki Ishimatsu 2013-02-22 @482 unsigned long start_pfn;
815121d2b5cd56 Yasuaki Ishimatsu 2013-02-22 483 int scn_nr;
ea01ea937dcae2 Badari Pulavarty 2008-04-28 484
efaa8fb877a081 David Hildenbrand 2020-01-28 485 if (WARN_ON_ONCE(!valid_section(ms)))
efaa8fb877a081 David Hildenbrand 2020-01-28 486 return;
ea01ea937dcae2 Badari Pulavarty 2008-04-28 487
815121d2b5cd56 Yasuaki Ishimatsu 2013-02-22 488 scn_nr = __section_nr(ms);
1dd2bfc86818dd YASUAKI ISHIMATSU 2017-10-03 489 start_pfn = section_nr_to_pfn((unsigned long)scn_nr);
815121d2b5cd56 Yasuaki Ishimatsu 2013-02-22 490
dc6be8597c8c29 David Hildenbrand 2020-01-28 491 sparse_remove_one_section(ms, map_offset, altmap);
ea01ea937dcae2 Badari Pulavarty 2008-04-28 492 }
ea01ea937dcae2 Badari Pulavarty 2008-04-28 493
:::::: The code at line 482 was first introduced by commit
:::::: 815121d2b5cd56f1757d4468dc3abadd06a0ed6b memory_hotplug: clear zone when removing the memory
:::::: TO: Yasuaki Ishimatsu <isimatu.yasuaki(a)jp.fujitsu.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[arnd-playground:pci-probe-rework-20210320 22/24] arch/alpha/kernel/pci.c:254:25: error: expected identifier or '(' before '=' token
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git pci-probe-rework-20210320
head: 7339be76e8b2bf033b46af22922fd3ab88c122d2
commit: 09d4fafeb5efb4b5464774682645b93a6eb18293 [22/24] pci: move PCI_PROBE_ONLY flag into host_bridge
config: alpha-randconfig-r024-20210321 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground pci-probe-rework-20210320
git checkout 09d4fafeb5efb4b5464774682645b93a6eb18293
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/alpha/kernel/pci.c: In function 'pcibios_fixup_bus':
>> arch/alpha/kernel/pci.c:254:25: error: expected identifier or '(' before '=' token
254 | struct pci_host_bridge = pci_find_host_bridge(bus);
| ^
>> arch/alpha/kernel/pci.c:256:6: error: 'bridge' undeclared (first use in this function)
256 | if (bridge->probe_only && dev &&
| ^~~~~~
arch/alpha/kernel/pci.c:256:6: note: each undeclared identifier is reported only once for each function it appears in
arch/alpha/kernel/pci.c: At top level:
arch/alpha/kernel/pci.c:283:1: warning: no previous prototype for 'pcibios_claim_one_bus' [-Wmissing-prototypes]
283 | pcibios_claim_one_bus(struct pci_bus *b)
| ^~~~~~~~~~~~~~~~~~~~~
vim +254 arch/alpha/kernel/pci.c
250
251 void pcibios_fixup_bus(struct pci_bus *bus)
252 {
253 struct pci_dev *dev = bus->self;
> 254 struct pci_host_bridge = pci_find_host_bridge(bus);
255
> 256 if (bridge->probe_only && dev &&
257 (dev->class >> 8) == PCI_CLASS_BRIDGE_PCI) {
258 pci_read_bridge_bases(bus);
259 }
260
261 list_for_each_entry(dev, &bus->devices, bus_list) {
262 pdev_save_srm_config(dev);
263 }
264 }
265
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[arnd-playground:pci-probe-rework-20210320 21/24] arch/powerpc/kernel/pci-common.c:1666:6: warning: no previous prototype for 'pci_scan_host_bridge'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git pci-probe-rework-20210320
head: 7339be76e8b2bf033b46af22922fd3ab88c122d2
commit: 3b0acc0ac3c7dc0ecb99215c7eb87a41a4acd79f [21/24] powerpc: rework PCI host allocation
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground pci-probe-rework-20210320
git checkout 3b0acc0ac3c7dc0ecb99215c7eb87a41a4acd79f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/powerpc/kernel/pci-common.c:1666:6: warning: no previous prototype for 'pci_scan_host_bridge' [-Wmissing-prototypes]
1666 | void pci_scan_host_bridge(struct pci_host_bridge *bridge)
| ^~~~~~~~~~~~~~~~~~~~
vim +/pci_scan_host_bridge +1666 arch/powerpc/kernel/pci-common.c
1661
1662 /**
1663 * pci_scan_host_bridge - Given a pci_controller, setup and scan the PCI bus
1664 * @bridge: Pointer to the PCI host controller instance structure
1665 */
> 1666 void pci_scan_host_bridge(struct pci_host_bridge *bridge)
1667 {
1668 struct pci_controller *hose = pci_host_bridge_priv(bridge);
1669 struct device_node *node = hose->dn;
1670 int mode;
1671 int error;
1672
1673 pr_debug("PCI: Scanning PHB %pOF\n", node);
1674
1675 /* Get some IO space for the new PHB */
1676 pcibios_setup_phb_io_space(hose);
1677
1678 /* Wire up PHB bus resources */
1679 pcibios_setup_phb_resources(hose);
1680
1681 bridge->sysdata = hose;
1682 bridge->busnr = hose->first_busno;
1683 bridge->custom_bus_scan = 1;
1684
1685 hose->busn.start = hose->first_busno;
1686 hose->busn.end = hose->last_busno;
1687 hose->busn.flags = IORESOURCE_BUS;
1688 pci_add_resource(&bridge->windows, &hose->busn);
1689
1690 mode = PCI_PROBE_NORMAL;
1691 if (node && hose->controller_ops.probe_mode)
1692 mode = hose->controller_ops.probe_mode(bridge->bus);
1693 /* Get probe mode and perform scan */
1694 pr_debug(" probe mode: %d\n", mode);
1695 if (mode == PCI_PROBE_DEVTREE)
1696 bridge->custom_bus_scan = 1;
1697
1698 /* Create an empty bus for the toplevel */
1699 error = pci_scan_root_bus_bridge(bridge);
1700 if (error) {
1701 pr_err("Failed to create bus for PCI domain %04x: %d\n",
1702 hose->global_number, error);
1703 pci_free_host_bridge(bridge);
1704 return;
1705 }
1706
1707 if (mode == PCI_PROBE_DEVTREE)
1708 of_scan_bus(node, bridge->bus);
1709
1710 /* Platform gets a chance to do some global fixups before
1711 * we proceed to resource allocation
1712 */
1713 if (ppc_md.pcibios_fixup_phb)
1714 ppc_md.pcibios_fixup_phb(hose);
1715
1716 /* Configure PCI Express settings */
1717 if (bridge->bus && !pci_has_flag(PCI_PROBE_ONLY)) {
1718 struct pci_bus *child;
1719 list_for_each_entry(child, &bridge->bus->children, node)
1720 pcie_bus_configure_settings(child);
1721 }
1722 }
1723 EXPORT_SYMBOL_GPL(pcibios_scan_host_bridge);
1724
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months