[alibaba-cloud:intel/ck-4.19.67 91/119] arch/m68k/include/asm/motorola_pgtable.h:199:11: error: dereferencing pointer to incomplete type 'const struct mm_struct'
by kbuild test robot
tree: https://github.com/alibaba/cloud-kernel.git intel/ck-4.19.67
head: 5d5ebaddcbf30a52bfdee633c6076b6e0c24ddf5
commit: a694cabf1ff52d8a1bd53d78f89d1a6285b17e7e [91/119] device-dax: Move resource pinning+mapping into the common driver
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout a694cabf1ff52d8a1bd53d78f89d1a6285b17e7e
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/m68k/include/asm/pgtable_mm.h:148:0,
from arch/m68k/include/asm/pgtable.h:5,
from include/linux/memremap.h:7,
from drivers//dax/bus.c:3:
arch/m68k/include/asm/motorola_pgtable.h: In function 'pgd_offset':
>> arch/m68k/include/asm/motorola_pgtable.h:199:11: error: dereferencing pointer to incomplete type 'const struct mm_struct'
return mm->pgd + pgd_index(address);
^~
vim +199 arch/m68k/include/asm/motorola_pgtable.h
^1da177e4c3f41 include/asm-m68k/motorola_pgtable.h Linus Torvalds 2005-04-16 194
^1da177e4c3f41 include/asm-m68k/motorola_pgtable.h Linus Torvalds 2005-04-16 195 /* to find an entry in a page-table-directory */
5b808a593588b2 include/asm-m68k/motorola_pgtable.h Geert Uytterhoeven 2008-02-07 196 static inline pgd_t *pgd_offset(const struct mm_struct *mm,
5b808a593588b2 include/asm-m68k/motorola_pgtable.h Geert Uytterhoeven 2008-02-07 197 unsigned long address)
^1da177e4c3f41 include/asm-m68k/motorola_pgtable.h Linus Torvalds 2005-04-16 198 {
^1da177e4c3f41 include/asm-m68k/motorola_pgtable.h Linus Torvalds 2005-04-16 @199 return mm->pgd + pgd_index(address);
^1da177e4c3f41 include/asm-m68k/motorola_pgtable.h Linus Torvalds 2005-04-16 200 }
^1da177e4c3f41 include/asm-m68k/motorola_pgtable.h Linus Torvalds 2005-04-16 201
:::::: The code at line 199 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 5 months
[alibaba-cloud:intel/ck-4.19.67 15/119] drivers/acpi/hmat/hmat.c:367:25: warning: 'target' may be used uninitialized in this function
by kbuild test robot
tree: https://github.com/alibaba/cloud-kernel.git intel/ck-4.19.67
head: 5d5ebaddcbf30a52bfdee633c6076b6e0c24ddf5
commit: 8db077d67eb6556ac85119fbcdb75cba9dcdda92 [15/119] ICX: acpi/hmat: Register processor domain to its memory
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
reproduce:
git checkout 8db077d67eb6556ac85119fbcdb75cba9dcdda92
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
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 >>):
drivers/acpi/hmat/hmat.c: In function 'hmat_parse_subtable':
>> drivers/acpi/hmat/hmat.c:367:25: warning: 'target' may be used uninitialized in this function [-Wmaybe-uninitialized]
target->processor_pxm = p_node;
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
drivers/acpi/hmat/hmat.c:337:24: note: 'target' was declared here
struct memory_target *target;
^~~~~~
vim +/target +367 drivers/acpi/hmat/hmat.c
332
333 static int __init hmat_parse_proximity_domain(union acpi_subtable_headers *header,
334 const unsigned long end)
335 {
336 struct acpi_hmat_proximity_domain *p = (void *)header;
337 struct memory_target *target;
338
339 if (p->header.length != sizeof(*p)) {
340 pr_notice("HMAT: Unexpected address range header length: %d\n",
341 p->header.length);
342 return -EINVAL;
343 }
344
345 if (hmat_revision == 1)
346 pr_info("HMAT: Memory (%#llx length %#llx) Flags:%04x Processor Domain:%d Memory Domain:%d\n",
347 p->reserved3, p->reserved4, p->flags, p->processor_PD,
348 p->memory_PD);
349 else
350 pr_info("HMAT: Memory Flags:%04x Processor Domain:%d Memory Domain:%d\n",
351 p->flags, p->processor_PD, p->memory_PD);
352
353 if (p->flags & ACPI_HMAT_MEMORY_PD_VALID) {
354 target = find_mem_target(p->memory_PD);
355 if (!target) {
356 pr_debug("HMAT: Memory Domain missing from SRAT\n");
357 return -EINVAL;
358 }
359 }
360 if (target && p->flags & ACPI_HMAT_PROCESSOR_PD_VALID) {
361 int p_node = pxm_to_node(p->processor_PD);
362
363 if (p_node == NUMA_NO_NODE) {
364 pr_debug("HMAT: Invalid Processor Domain\n");
365 return -EINVAL;
366 }
> 367 target->processor_pxm = p_node;
368 }
369
370 return 0;
371 }
372
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 5 months