* [willy-pagecache:set_ptes 21/37] arch/riscv/include/asm/pgtable.h:531:3: error: call to undeclared function 'set_pte_at'; ISO C99 and later do not support implicit function declarations
@ 2023-07-07 21:13 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-07 21:13 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: oe-kbuild-all
tree: git://git.infradead.org/users/willy/pagecache set_ptes
head: a357c8502e070a8a7aa2fa94492fd040ae053b78
commit: 5f76d31b1de3753e2899c3a0698fef037340d8ee [21/37] riscv: Implement the new page table range API
config: riscv-randconfig-r035-20230708 (https://download.01.org/0day-ci/archive/20230708/202307080524.GaAIlQnp-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230708/202307080524.GaAIlQnp-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/202307080524.GaAIlQnp-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/mm.h:29:
In file included from include/linux/pgtable.h:6:
>> arch/riscv/include/asm/pgtable.h:531:3: error: call to undeclared function 'set_pte_at'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
531 | set_pte_at(vma->vm_mm, address, ptep, entry);
| ^
arch/riscv/include/asm/pgtable.h:531:3: note: did you mean '__set_pte_at'?
arch/riscv/include/asm/pgtable.h:494:20: note: '__set_pte_at' declared here
494 | static inline void __set_pte_at(struct mm_struct *mm,
| ^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/mm.h:1066:
In file included from include/linux/huge_mm.h:8:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:97:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
97 | return (set->sig[3] | set->sig[2] |
| ^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
62 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/mm.h:1066:
In file included from include/linux/huge_mm.h:8:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:97:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
97 | return (set->sig[3] | set->sig[2] |
| ^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
62 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/mm.h:1066:
In file included from include/linux/huge_mm.h:8:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:113:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
113 | return (set1->sig[3] == set2->sig[3]) &&
| ^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
62 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/mm.h:1066:
In file included from include/linux/huge_mm.h:8:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:113:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
113 | return (set1->sig[3] == set2->sig[3]) &&
| ^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
62 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/mm.h:1066:
In file included from include/linux/huge_mm.h:8:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:114:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
114 | (set1->sig[2] == set2->sig[2]) &&
| ^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
62 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/mm.h:1066:
In file included from include/linux/huge_mm.h:8:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:114:21: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
114 | (set1->sig[2] == set2->sig[2]) &&
| ^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
62 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/riscv/kernel/asm-offsets.c:10:
In file included from include/linux/mm.h:1066:
In file included from include/linux/huge_mm.h:8:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:156:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
156 | _SIG_SET_BINOP(sigorsets, _sig_or)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/signal.h:137:8: note: expanded from macro '_SIG_SET_BINOP'
137 | a3 = a->sig[3]; a2 = a->sig[2]; \
| ^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
62 | unsigned long sig[_NSIG_WORDS];
| ^
vim +/set_pte_at +531 arch/riscv/include/asm/pgtable.h
08f051eda33b51 Andrew Waterman 2017-10-25 524
07037db5d479f9 Palmer Dabbelt 2017-07-10 525 #define __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS
07037db5d479f9 Palmer Dabbelt 2017-07-10 526 static inline int ptep_set_access_flags(struct vm_area_struct *vma,
07037db5d479f9 Palmer Dabbelt 2017-07-10 527 unsigned long address, pte_t *ptep,
07037db5d479f9 Palmer Dabbelt 2017-07-10 528 pte_t entry, int dirty)
07037db5d479f9 Palmer Dabbelt 2017-07-10 529 {
07037db5d479f9 Palmer Dabbelt 2017-07-10 530 if (!pte_same(*ptep, entry))
07037db5d479f9 Palmer Dabbelt 2017-07-10 @531 set_pte_at(vma->vm_mm, address, ptep, entry);
07037db5d479f9 Palmer Dabbelt 2017-07-10 532 /*
07037db5d479f9 Palmer Dabbelt 2017-07-10 533 * update_mmu_cache will unconditionally execute, handling both
07037db5d479f9 Palmer Dabbelt 2017-07-10 534 * the case that the PTE changed and the spurious fault case.
07037db5d479f9 Palmer Dabbelt 2017-07-10 535 */
07037db5d479f9 Palmer Dabbelt 2017-07-10 536 return true;
07037db5d479f9 Palmer Dabbelt 2017-07-10 537 }
07037db5d479f9 Palmer Dabbelt 2017-07-10 538
:::::: The code at line 531 was first introduced by commit
:::::: 07037db5d479f90377c998259a4f9a469c404edf RISC-V: Paging and MMU
:::::: TO: Palmer Dabbelt <palmer@dabbelt.com>
:::::: CC: Palmer Dabbelt <palmer@dabbelt.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-07 21:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-07 21:13 [willy-pagecache:set_ptes 21/37] arch/riscv/include/asm/pgtable.h:531:3: error: call to undeclared function 'set_pte_at'; ISO C99 and later do not support implicit function declarations kernel test robot
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.