public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [ardb:arm64-ro-page-tables-pkvm-v5.17 15/28] arch/x86/include/asm/pgtable.h:928:41: error: implicit declaration of function 'p4d_index'
Date: Tue, 22 Feb 2022 10:35:45 +0800	[thread overview]
Message-ID: <202202221016.jWajJfJO-lkp@intel.com> (raw)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-ro-page-tables-pkvm-v5.17
head:   5ca7e5f74d85e6d2ddeabaa1b85b64ae50864676
commit: 1f20265f4c3946344b0e7c88cc5ecd758726c752 [15/28] mm: make x86's definition of p4d_index() the default
config: x86_64-randconfig-a011-20220221 (https://download.01.org/0day-ci/archive/20220222/202202221016.jWajJfJO-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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/ardb/linux.git/commit/?id=1f20265f4c3946344b0e7c88cc5ecd758726c752
        git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
        git fetch --no-tags ardb arm64-ro-page-tables-pkvm-v5.17
        git checkout 1f20265f4c3946344b0e7c88cc5ecd758726c752
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 prepare

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/x86/kernel/asm-offsets.c:9:
   In file included from include/linux/crypto.h:20:
   In file included from include/linux/slab.h:136:
   In file included from include/linux/kasan.h:30:
   In file included from include/linux/pgtable.h:6:
>> arch/x86/include/asm/pgtable.h:928:41: error: implicit declaration of function 'p4d_index' [-Werror,-Wimplicit-function-declaration]
           return (p4d_t *)pgd_page_vaddr(*pgd) + p4d_index(address);
                                                  ^
   In file included from arch/x86/kernel/asm-offsets.c:9:
   In file included from include/linux/crypto.h:20:
   In file included from include/linux/slab.h:136:
   In file included from include/linux/kasan.h:30:
>> include/linux/pgtable.h:84:29: error: static declaration of 'p4d_index' follows non-static declaration
   static inline unsigned long p4d_index(unsigned long address)
                               ^
   arch/x86/include/asm/pgtable.h:928:41: note: previous implicit declaration is here
           return (p4d_t *)pgd_page_vaddr(*pgd) + p4d_index(address);
                                                  ^
   2 errors generated.
   make[2]: *** [scripts/Makefile.build:121: arch/x86/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1191: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:219: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/p4d_index +928 arch/x86/include/asm/pgtable.h

7cfb81024bc1db Jeremy Fitzhardinge 2009-02-05  922  
7cfb81024bc1db Jeremy Fitzhardinge 2009-02-05  923  /* to find an entry in a page-table-directory. */
b8c1e4293a5d1d Kirill A. Shutemov  2018-06-26  924  static inline p4d_t *p4d_offset(pgd_t *pgd, unsigned long address)
3d081b1812bd4d Jeremy Fitzhardinge 2009-02-05  925  {
ed7588d5dc6f5e Kirill A. Shutemov  2018-05-18  926  	if (!pgtable_l5_enabled())
98219dda2ab56c Kirill A. Shutemov  2018-02-14  927  		return (p4d_t *)pgd;
f2a6a7050109e0 Kirill A. Shutemov  2017-03-17 @928  	return (p4d_t *)pgd_page_vaddr(*pgd) + p4d_index(address);
3d081b1812bd4d Jeremy Fitzhardinge 2009-02-05  929  }
30f103167fcf2b Jeremy Fitzhardinge 2009-02-05  930  

:::::: The code at line 928 was first introduced by commit
:::::: f2a6a7050109e0a5c7a84c70aa6010f682b2f1ee x86: Convert the rest of the code to support p4d_t

:::::: TO: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2022-02-22  2:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202202221016.jWajJfJO-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ardb@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox