mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [rppt:pks/v0.0 27/27] arch/x86/mm/pgtable.c:493:16: warning: incompatible integer to pointer conversion initializing 'struct page *' with an expression of type 'int'
@ 2021-11-04  2:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-04  2:28 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: llvm, kbuild-all, Mike Rapoport, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2330 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git pks/v0.0
head:   b1ddb6750818e99c719da2f60b21e5752f43f0e7
commit: b1ddb6750818e99c719da2f60b21e5752f43f0e7 [27/27] x86/pks: allow PKS with PTI with __GFP_PTE_MAPPED_2
config: i386-randconfig-a005-20211103 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 847a6807332b13f43704327c2d30103ec0347c77)
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/rppt/linux.git/commit/?id=b1ddb6750818e99c719da2f60b21e5752f43f0e7
        git remote add rppt https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git
        git fetch --no-tags rppt pks/v0.0
        git checkout b1ddb6750818e99c719da2f60b21e5752f43f0e7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386 

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

All warnings (new ones prefixed by >>):

   arch/x86/mm/pgtable.c:493:23: error: implicit declaration of function '__alloc_table' [-Werror,-Wimplicit-function-declaration]
                   struct page *page = __alloc_table(GFP_PGTABLE_USER,
                                       ^
>> arch/x86/mm/pgtable.c:493:16: warning: incompatible integer to pointer conversion initializing 'struct page *' with an expression of type 'int' [-Wint-conversion]
                   struct page *page = __alloc_table(GFP_PGTABLE_USER,
                                ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.


vim +493 arch/x86/mm/pgtable.c

   489	
   490	static inline pgd_t *_pgd_alloc(void)
   491	{
   492		if (pks_page_en) {
 > 493			struct page *page = __alloc_table(GFP_PGTABLE_USER,
   494							PGD_ALLOCATION_ORDER);
   495	
   496			if (!page)
   497				return NULL;
   498			return page_address(page);
   499		}
   500	
   501		return (pgd_t *)__get_free_pages(GFP_PGTABLE_USER,
   502						 PGD_ALLOCATION_ORDER);
   503	}
   504	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30683 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-04  2:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04  2:28 [rppt:pks/v0.0 27/27] arch/x86/mm/pgtable.c:493:16: warning: incompatible integer to pointer conversion initializing 'struct page *' with an expression of type 'int' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®