All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: David Hildenbrand <david@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [davidhildenbrand:rmap_batching 3/11] include/linux/pgtable.h:638:20: warning: conflicting types for 'ptep_set_wrprotect'; have 'void(struct mm_struct *, long unsigned int, pte_t *)' {aka 'void(struct mm_struct *, long unsigned int,  long long unsigned int *)'}
Date: Sat, 20 Jan 2024 12:08:11 +0800	[thread overview]
Message-ID: <202401201235.fcCAbfbN-lkp@intel.com> (raw)

tree:   https://github.com/davidhildenbrand/linux rmap_batching
head:   c54f3b69b7a799efa06dbf58a60db9b3fac04111
commit: d84c9158468598cb15b038bca27fd80e113b456c [3/11] mm/memory: optimize fork() with PTE-mapped THP
config: arm-randconfig-r062-20240120 (https://download.01.org/0day-ci/archive/20240120/202401201235.fcCAbfbN-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240120/202401201235.fcCAbfbN-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401201235.fcCAbfbN-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/arm/include/asm/page.h:169,
                    from arch/arm/include/asm/thread_info.h:14,
                    from include/linux/thread_info.h:60,
                    from include/linux/sched.h:14,
                    from arch/arm/kernel/asm-offsets.c:11:
   include/linux/pgtable.h: In function 'pte_next_pfn':
   include/linux/pgtable.h:218:45: error: 'PFN_PTE_SHIFT' undeclared (first use in this function); did you mean 'PAGE_SHIFT'?
     218 |         return __pte(pte_val(pte) + (1UL << PFN_PTE_SHIFT));
         |                                             ^~~~~~~~~~~~~
   arch/arm/include/asm/pgtable-3level-types.h:51:26: note: in definition of macro '__pte'
      51 | #define __pte(x)        (x)
         |                          ^
   include/linux/pgtable.h:218:45: note: each undeclared identifier is reported only once for each function it appears in
     218 |         return __pte(pte_val(pte) + (1UL << PFN_PTE_SHIFT));
         |                                             ^~~~~~~~~~~~~
   arch/arm/include/asm/pgtable-3level-types.h:51:26: note: in definition of macro '__pte'
      51 | #define __pte(x)        (x)
         |                          ^
   In file included from include/linux/mm.h:29,
                    from arch/arm/kernel/asm-offsets.c:12:
   include/linux/pgtable.h: In function 'wrprotect_ptes':
   include/linux/pgtable.h:227:17: error: implicit declaration of function 'ptep_set_wrprotect'; did you mean 'pte_wrprotect'? [-Werror=implicit-function-declaration]
     227 |                 ptep_set_wrprotect(mm, addr, ptep);
         |                 ^~~~~~~~~~~~~~~~~~
         |                 pte_wrprotect
   include/linux/pgtable.h: At top level:
>> include/linux/pgtable.h:638:20: warning: conflicting types for 'ptep_set_wrprotect'; have 'void(struct mm_struct *, long unsigned int,  pte_t *)' {aka 'void(struct mm_struct *, long unsigned int,  long long unsigned int *)'}
     638 | static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long address, pte_t *ptep)
         |                    ^~~~~~~~~~~~~~~~~~
   include/linux/pgtable.h:638:20: error: static declaration of 'ptep_set_wrprotect' follows non-static declaration
   include/linux/pgtable.h:227:17: note: previous implicit declaration of 'ptep_set_wrprotect' with type 'void(struct mm_struct *, long unsigned int,  pte_t *)' {aka 'void(struct mm_struct *, long unsigned int,  long long unsigned int *)'}
     227 |                 ptep_set_wrprotect(mm, addr, ptep);
         |                 ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[3]: *** [scripts/Makefile.build:116: arch/arm/kernel/asm-offsets.s] Error 1
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1191: prepare0] Error 2
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:234: __sub-make] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:234: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +638 include/linux/pgtable.h

2f0584f3f4bd60 include/linux/pgtable.h       Rick Edgecombe 2023-06-12  635  
^1da177e4c3f41 include/asm-generic/pgtable.h Linus Torvalds 2005-04-16  636  #ifndef __HAVE_ARCH_PTEP_SET_WRPROTECT
8c65b4a6045059 include/asm-generic/pgtable.h Tim Schmielau  2005-11-07  637  struct mm_struct;
^1da177e4c3f41 include/asm-generic/pgtable.h Linus Torvalds 2005-04-16 @638  static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long address, pte_t *ptep)
^1da177e4c3f41 include/asm-generic/pgtable.h Linus Torvalds 2005-04-16  639  {
c33c794828f212 include/linux/pgtable.h       Ryan Roberts   2023-06-12  640  	pte_t old_pte = ptep_get(ptep);
^1da177e4c3f41 include/asm-generic/pgtable.h Linus Torvalds 2005-04-16  641  	set_pte_at(mm, address, ptep, pte_wrprotect(old_pte));
^1da177e4c3f41 include/asm-generic/pgtable.h Linus Torvalds 2005-04-16  642  }
^1da177e4c3f41 include/asm-generic/pgtable.h Linus Torvalds 2005-04-16  643  #endif
^1da177e4c3f41 include/asm-generic/pgtable.h Linus Torvalds 2005-04-16  644  

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

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

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-01-20  4:08 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=202401201235.fcCAbfbN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=david@redhat.com \
    --cc=oe-kbuild-all@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.