lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201702040839.u8adYf86%fengguang.wu@intel.com>
Date:   Sat, 4 Feb 2017 08:29:43 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org, tipbuild@...or.com
Subject: [tip:WIP.sched/core 144/144] arch/cris/include/asm/pgtable.h:237:11:
 error: dereferencing pointer to incomplete type 'const struct mm_struct'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
head:   2bf1cc270cf3d7b47dccac40b650df0a1b3c14f9
commit: 2bf1cc270cf3d7b47dccac40b650df0a1b3c14f9 [144/144] sched/headers: Remove the <linux/mm_types.h> dependency from <linux/sched.h>
config: cris-allyesconfig (attached as .config)
compiler: cris-linux-gcc (GCC) 6.2.0
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 2bf1cc270cf3d7b47dccac40b650df0a1b3c14f9
        # save the attached .config to linux build tree
        make.cross ARCH=cris 

All errors (new ones prefixed by >>):

   In file included from arch/cris/kernel/process.c:16:0:
   arch/cris/include/asm/pgtable.h: In function 'pgd_offset':
>> arch/cris/include/asm/pgtable.h:237:11: error: dereferencing pointer to incomplete type 'const struct mm_struct'
     return mm->pgd + pgd_index(address);
              ^~

vim +237 arch/cris/include/asm/pgtable.h

^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  221   * the pagetable links are purely handled within the kernel SW and thus
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  222   * don't need the __pa and __va transformations.
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  223   */
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  224  
d9b5444e include/asm-cris/pgtable.h Adrian Bunk     2005-11-07  225  static inline void pmd_set(pmd_t * pmdp, pte_t * ptep)
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  226  { pmd_val(*pmdp) = _PAGE_TABLE | (unsigned long) ptep; }
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  227  
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  228  #define pmd_page(pmd)		(pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT))
46a82b2d include/asm-cris/pgtable.h Dave McCracken  2006-09-25  229  #define pmd_page_vaddr(pmd)	((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  230  
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  231  /* to find an entry in a page-table-directory. */
5d01e6ce include/asm-cris/pgtable.h Mikael Starvik  2005-07-27  232  #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  233  
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  234  /* to find an entry in a page-table-directory */
16a26ef5 include/asm-cris/pgtable.h KOSAKI Motohiro 2008-04-28  235  static inline pgd_t * pgd_offset(const struct mm_struct *mm, unsigned long address)
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  236  {
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16 @237  	return mm->pgd + pgd_index(address);
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  238  }
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  239  
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  240  /* to find an entry in a kernel page-table-directory */
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  241  #define pgd_offset_k(address) pgd_offset(&init_mm, address)
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  242  
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  243  /* Find an entry in the third-level page table.. */
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  244  #define __pte_offset(address) \
^1da177e include/asm-cris/pgtable.h Linus Torvalds  2005-04-16  245  	(((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))

:::::: The code at line 237 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (40891 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ