Skip to content

[PW_SID:1083737] riscv: add Svnapot-based contiguous PTE support#1800

Closed
linux-riscv-bot wants to merge 8 commits into
workflowfrom
pw1083737
Closed

[PW_SID:1083737] riscv: add Svnapot-based contiguous PTE support#1800
linux-riscv-bot wants to merge 8 commits into
workflowfrom
pw1083737

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

PR for series 1083737 applied to workflow

Name: riscv: add Svnapot-based contiguous PTE support
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1083737
Version: 1

Linux RISC-V bot and others added 8 commits April 21, 2026 01:52
Introduce raw PTE helpers prefixed with double underscores for callers
that need direct access to the underlying PTE encoding. These __* helpers
form private low-level primitives, while the existing helpers remain the
public core-MM-facing API that RISC-V can later wrap with additional
architecture-specific semantics without exposing those details to generic
callers.

Switch kernel internal page table users in early boot, KASAN, EFI,
hibernate and pageattr to use the private raw helpers directly.

No functional change intended.

Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Use the raw RISC-V PTE helpers when KVM G-stage code needs to inspect
or update the exact leaf entry encoding. This keeps G-stage page tables
independent from the public PTE wrappers that will gain Svnapot-aware
behavior.

No functional change intended.

Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Add Svnapot-aware wrappers around the public PTE helpers so core MM
callers can operate on contiguous mappings without learning the NAPOT
encoding details. Introduce contpte.c to handle folding, unfolding and
accessed/dirty state aggregation for contiguous PTE blocks.

Keep the raw __* helpers unchanged so NAPOT-aware callers can continue
to access the underlying PTE encoding directly, and centralize the
public Svnapot-aware wrappers under a single CONFIG_RISCV_ISA_SVNAPOT
block with simple alias fallbacks for the non-Svnapot case.

Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Use raw PTE helpers in hugetlb code to operate directly on the
underlying PTE entries. This lets hugetlb manage NAPOT
folding/unfolding explicitly instead of going through Svnapot-aware
public wrappers.

Add explicit NAPOT unfolding in set_huge_pte_at() before replacing an
existing NAPOT mapping with non-NAPOT entries.

No functional change intended.

Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Add Svnapot-aware implementations of clear_full_ptes() and
get_and_clear_full_ptes() so full PTE batches can be cleared without
losing the required unfold semantics for NAPOT mappings.

Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Hook wrprotect_ptes() into the Svnapot contpte helpers so write
protection can preserve fully covered NAPOT blocks and only unfold
partial ranges at the edges.

Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Provide a Svnapot-specific pte_batch_hint() implementation so callers can
batch over a contiguous napot range without re-reading each PTE entry.
Keep the public wrapper in pgtable.h and leave the CONFIG-disabled case on
the existing single-entry fallback.

Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/7] riscv: mm: split raw and public PTE helpers"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 49.88 seconds
Result: ERROR
Output:

Full log:
W: Support for running offline not available (unshare: unshare failed: Operation not permitted)
tuxmake --download-all-korg-gcc-toolchains --target-arch=riscv --kconfig=rv32_defconfig --toolchain=llvm --wrapper=ccache --environment=KBUILD_BUILD_TIMESTAMP=@1621270510 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --environment=KCFLAGS=-ffile-prefix-map=/build/tmp.NPKKPOeqcl/build/= --runtime=null --image=docker.io/tuxmake/riscv_clang CROSS_COMPILE=riscv64-linux- config default kernel xipkernel modules dtbs dtbs-legacy debugkernel headers
make --silent --keep-going --jobs=48 O=/build/tmp.NPKKPOeqcl/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' rv32_defconfig
make --silent --keep-going --jobs=48 O=/build/tmp.NPKKPOeqcl/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang'
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:31:
/build/tmpivjtbtbo/include/linux/pgtable.h:410:20: error: redefinition of 'set_ptes'
  410 | static inline void set_ptes(struct mm_struct *mm, unsigned long addr,
      |                    ^
/build/tmpivjtbtbo/arch/riscv/include/asm/pgtable.h:660:20: note: previous definition is here
  660 | static inline void set_ptes(struct mm_struct *mm, unsigned long addr,
      |                    ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
   98 |                 return (set->sig[3] | set->sig[2] |
      |                         ^        ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
   98 |                 return (set->sig[3] | set->sig[2] |
      |                                       ^        ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  114 |                 return  (set1->sig[3] == set2->sig[3]) &&
      |                          ^         ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:114:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  114 |                 return  (set1->sig[3] == set2->sig[3]) &&
      |                                          ^         ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:115:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  115 |                         (set1->sig[2] == set2->sig[2]) &&
      |                          ^         ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:115:21: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  115 |                         (set1->sig[2] == set2->sig[2]) &&
      |                                          ^         ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:157:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  157 | _SIG_SET_BINOP(sigorsets, _sig_or)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:138:8: note: expanded from macro '_SIG_SET_BINOP'
  138 |                 a3 = a->sig[3]; a2 = a->sig[2];                         \
      |                      ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:157:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  157 | _SIG_SET_BINOP(sigorsets, _sig_or)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:138:24: note: expanded from macro '_SIG_SET_BINOP'
  138 |                 a3 = a->sig[3]; a2 = a->sig[2];                         \
      |                                      ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:157:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  157 | _SIG_SET_BINOP(sigorsets, _sig_or)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:139:8: note: expanded from macro '_SIG_SET_BINOP'
  139 |                 b3 = b->sig[3]; b2 = b->sig[2];                         \
      |                      ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:157:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  157 | _SIG_SET_BINOP(sigorsets, _sig_or)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:139:24: note: expanded from macro '_SIG_SET_BINOP'
  139 |                 b3 = b->sig[3]; b2 = b->sig[2];                         \
      |                                      ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:157:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  157 | _SIG_SET_BINOP(sigorsets, _sig_or)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:140:3: note: expanded from macro '_SIG_SET_BINOP'
  140 |                 r->sig[3] = op(a3, b3);                                 \
      |                 ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:157:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  157 | _SIG_SET_BINOP(sigorsets, _sig_or)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:141:3: note: expanded from macro '_SIG_SET_BINOP'
  141 |                 r->sig[2] = op(a2, b2);                                 \
      |                 ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:160:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  160 | _SIG_SET_BINOP(sigandsets, _sig_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:138:8: note: expanded from macro '_SIG_SET_BINOP'
  138 |                 a3 = a->sig[3]; a2 = a->sig[2];                         \
      |                      ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:160:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  160 | _SIG_SET_BINOP(sigandsets, _sig_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:138:24: note: expanded from macro '_SIG_SET_BINOP'
  138 |                 a3 = a->sig[3]; a2 = a->sig[2];                         \
      |                                      ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:160:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  160 | _SIG_SET_BINOP(sigandsets, _sig_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:139:8: note: expanded from macro '_SIG_SET_BINOP'
  139 |                 b3 = b->sig[3]; b2 = b->sig[2];                         \
      |                      ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:160:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  160 | _SIG_SET_BINOP(sigandsets, _sig_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:139:24: note: expanded from macro '_SIG_SET_BINOP'
  139 |                 b3 = b->sig[3]; b2 = b->sig[2];                         \
      |                                      ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:160:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  160 | _SIG_SET_BINOP(sigandsets, _sig_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:140:3: note: expanded from macro '_SIG_SET_BINOP'
  140 |                 r->sig[3] = op(a3, b3);                                 \
      |                 ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:160:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  160 | _SIG_SET_BINOP(sigandsets, _sig_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:141:3: note: expanded from macro '_SIG_SET_BINOP'
  141 |                 r->sig[2] = op(a2, b2);                                 \
      |                 ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:163:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  163 | _SIG_SET_BINOP(sigandnsets, _sig_andn)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:138:8: note: expanded from macro '_SIG_SET_BINOP'
  138 |                 a3 = a->sig[3]; a2 = a->sig[2];                         \
      |                      ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:163:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  163 | _SIG_SET_BINOP(sigandnsets, _sig_andn)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:138:24: note: expanded from macro '_SIG_SET_BINOP'
  138 |                 a3 = a->sig[3]; a2 = a->sig[2];                         \
      |                                      ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:163:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  163 | _SIG_SET_BINOP(sigandnsets, _sig_andn)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:139:8: note: expanded from macro '_SIG_SET_BINOP'
  139 |                 b3 = b->sig[3]; b2 = b->sig[2];                         \
      |                      ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:163:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  163 | _SIG_SET_BINOP(sigandnsets, _sig_andn)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:139:24: note: expanded from macro '_SIG_SET_BINOP'
  139 |                 b3 = b->sig[3]; b2 = b->sig[2];                         \
      |                                      ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:163:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  163 | _SIG_SET_BINOP(sigandnsets, _sig_andn)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:140:3: note: expanded from macro '_SIG_SET_BINOP'
  140 |                 r->sig[3] = op(a3, b3);                                 \
      |                 ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:163:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  163 | _SIG_SET_BINOP(sigandnsets, _sig_andn)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:141:3: note: expanded from macro '_SIG_SET_BINOP'
  141 |                 r->sig[2] = op(a2, b2);                                 \
      |                 ^      ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:187:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  187 | _SIG_SET_OP(signotset, _sig_not)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:174:27: note: expanded from macro '_SIG_SET_OP'
  174 |         case 4: set->sig[3] = op(set->sig[3]);                          \
      |                                  ^        ~
/build/tmpivjtbtbo/include/linux/signal.h:186:24: note: expanded from macro '_sig_not'
  186 | #define _sig_not(x)     (~(x))
      |                            ^
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:187:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  187 | _SIG_SET_OP(signotset, _sig_not)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:174:10: note: expanded from macro '_SIG_SET_OP'
  174 |         case 4: set->sig[3] = op(set->sig[3]);                          \
      |                 ^        ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  187 | _SIG_SET_OP(signotset, _sig_not)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:175:20: note: expanded from macro '_SIG_SET_OP'
  175 |                 set->sig[2] = op(set->sig[2]);                          \
      |                                  ^        ~
/build/tmpivjtbtbo/include/linux/signal.h:186:24: note: expanded from macro '_sig_not'
  186 | #define _sig_not(x)     (~(x))
      |                            ^
I: config: PASS in 0:00:32.837624
I: default: FAIL in 0:00:10.399196
I: kernel: SKIP in 0:00:00.000008
I: xipkernel: SKIP in 0:00:00.000004
I: modules: FAIL in 0:00:00.102040
I: dtbs: PASS in 0:00:02.075880
I: dtbs-legacy: SKIP in 0:00:00.004628
I: debugkernel: SKIP in 0:00:00.000004
I: headers: PASS in 0:00:01.056600
I: build output in /build/tmp.NPKKPOeqcl
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpivjtbtbo/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpivjtbtbo/include/linux/mm.h:36:
In file included from /build/tmpivjtbtbo/include/linux/rcuwait.h:6:
In file included from /build/tmpivjtbtbo/include/linux/sched/signal.h:6:
/build/tmpivjtbtbo/include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  187 | _SIG_SET_OP(signotset, _sig_not)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpivjtbtbo/include/linux/signal.h:175:3: note: expanded from macro '_SIG_SET_OP'
  175 |                 set->sig[2] = op(set->sig[2]);                          \
      |                 ^        ~
/build/tmpivjtbtbo/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
28 warnings and 1 error generated.
make[3]: *** [/build/tmpivjtbtbo/scripts/Makefile.build:184: arch/riscv/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [/build/tmpivjtbtbo/Makefile:1371: prepare0] Error 2
make[2]: Target '__all' not remade because of errors.
make[1]: *** [/build/tmpivjtbtbo/Makefile:248: __sub-make] Error 2
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target '__all' not remade because of errors.
rm -rf /build/tmp.NPKKPOeqcl/build/modinstall
make --silent --keep-going --jobs=48 O=/build/tmp.NPKKPOeqcl/build INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=/build/tmp.NPKKPOeqcl/build/modinstall ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' modules_install
make[3]: *** No rule to make target 'modules.order', needed by '/build/tmp.NPKKPOeqcl/build/modinstall/lib/modules/7.0.0-12233-g38434532bd78/modules.order'.
make[3]: *** No rule to make target 'modules.builtin', needed by '/build/tmp.NPKKPOeqcl/build/modinstall/lib/modules/7.0.0-12233-g38434532bd78/modules.builtin'.
make[3]: *** No rule to make target 'modules.builtin.modinfo', needed by '/build/tmp.NPKKPOeqcl/build/modinstall/lib/modules/7.0.0-12233-g38434532bd78/modules.builtin.modinfo'.
make[3]: Target '__modinst' not remade because of errors.
make[2]: *** [/build/tmpivjtbtbo/Makefile:2045: modules_install] Error 2
make[1]: *** [/build/tmpivjtbtbo/Makefile:248: __sub-make] Error 2
make[1]: Target 'modules_install' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'modules_install' not remade because of errors.
make --silent --keep-going --jobs=48 O=/build/tmp.NPKKPOeqcl/build INSTALL_DTBS_PATH=/build/tmp.NPKKPOeqcl/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs
rm -rf /build/tmp.NPKKPOeqcl/build/dtbsinstall
mkdir -p /build/tmp.NPKKPOeqcl/build/dtbsinstall/dtbs
make --silent --keep-going --jobs=48 O=/build/tmp.NPKKPOeqcl/build INSTALL_DTBS_PATH=/build/tmp.NPKKPOeqcl/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1776765934 --clamp-mtime -caf /build/tmp.NPKKPOeqcl/build/dtbs.tar -C /build/tmp.NPKKPOeqcl/build/dtbsinstall dtbs
rm -rf /build/tmp.NPKKPOeqcl/build/install_hdr
make --silent --keep-going --jobs=48 O=/build/tmp.NPKKPOeqcl/build INSTALL_HDR_PATH=/build/tmp.NPKKPOeqcl/build/install_hdr/ ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' headers_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1776765934 --clamp-mtime -caf /build/tmp.NPKKPOeqcl/build/headers.tar -C /build/tmp.NPKKPOeqcl/build/install_hdr .
warnings/errors:
/build/tmpivjtbtbo/include/linux/pgtable.h:410:20: error: redefinition of 'set_ptes'
/build/tmpivjtbtbo/include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:114:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:115:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:115:21: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:157:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:157:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:157:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:157:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:157:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:157:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:160:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:160:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:160:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:160:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:160:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:160:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:163:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:163:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:163:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:163:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:163:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:163:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:187:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:187:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpivjtbtbo/include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]


@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/7] riscv: mm: split raw and public PTE helpers"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 27.92 seconds
Result: ERROR
Output:

Redirect to /build/tmp.hal9QSmJVP and /build/tmp.jvlTC28xCB
Tree base:
8663b881d1abf ("Adding CI files")
Building the whole tree with the patch
error:
/build/tmpivjtbtbo/include/linux/pgtable.h:410:20: error: redefinition of 'set_ptes'



real	0m26.231s
user	0m16.194s
sys	0m29.024s

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/7] riscv: mm: split raw and public PTE helpers"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 24.22 seconds
Result: ERROR
Output:

Redirect to /build/tmp.osuv4Ml0dX and /build/tmp.m8Ks4Y6u5M
Tree base:
8663b881d1abf ("Adding CI files")
Building the whole tree with the patch
error:
/build/tmpivjtbtbo/include/linux/pgtable.h:410:20: error: redefinition of 'set_ptes'



real	0m22.671s
user	0m23.198s
sys	0m23.935s

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/7] riscv: mm: split raw and public PTE helpers"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 27.65 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/7] riscv: mm: split raw and public PTE helpers"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 28.55 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/7] riscv: mm: split raw and public PTE helpers"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 2.58 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/7] riscv: mm: split raw and public PTE helpers"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 84.40 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/7] riscv: mm: split raw and public PTE helpers"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/7] riscv: mm: split raw and public PTE helpers"
kdoc
Desc: Detects for kdoc errors
Duration: 0.90 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/7] riscv: mm: split raw and public PTE helpers"
module-param
Desc: Detect module_param changes
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/7] riscv: mm: split raw and public PTE helpers"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/7] riscv: mm: split raw and public PTE helpers"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/7] riscv/kvm: use raw PTE helpers for G-stage leaf PTEs"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 50.19 seconds
Result: ERROR
Output:

Full log:
W: Support for running offline not available (unshare: unshare failed: Operation not permitted)
tuxmake --download-all-korg-gcc-toolchains --target-arch=riscv --kconfig=rv32_defconfig --toolchain=llvm --wrapper=ccache --environment=KBUILD_BUILD_TIMESTAMP=@1621270510 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --environment=KCFLAGS=-ffile-prefix-map=/build/tmp.Ua0vNo8Gbl/build/= --runtime=null --image=docker.io/tuxmake/riscv_clang CROSS_COMPILE=riscv64-linux- config default kernel xipkernel modules dtbs dtbs-legacy debugkernel headers
make --silent --keep-going --jobs=48 O=/build/tmp.Ua0vNo8Gbl/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' rv32_defconfig
make --silent --keep-going --jobs=48 O=/build/tmp.Ua0vNo8Gbl/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang'
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:31:
/build/tmpldejh1wd/include/linux/pgtable.h:410:20: error: redefinition of 'set_ptes'
  410 | static inline void set_ptes(struct mm_struct *mm, unsigned long addr,
      |                    ^
/build/tmpldejh1wd/arch/riscv/include/asm/pgtable.h:660:20: note: previous definition is here
  660 | static inline void set_ptes(struct mm_struct *mm, unsigned long addr,
      |                    ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
   98 |                 return (set->sig[3] | set->sig[2] |
      |                         ^        ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
   98 |                 return (set->sig[3] | set->sig[2] |
      |                                       ^        ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  114 |                 return  (set1->sig[3] == set2->sig[3]) &&
      |                          ^         ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:114:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  114 |                 return  (set1->sig[3] == set2->sig[3]) &&
      |                                          ^         ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:115:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  115 |                         (set1->sig[2] == set2->sig[2]) &&
      |                          ^         ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:115:21: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  115 |                         (set1->sig[2] == set2->sig[2]) &&
      |                                          ^         ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:157:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  157 | _SIG_SET_BINOP(sigorsets, _sig_or)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:138:8: note: expanded from macro '_SIG_SET_BINOP'
  138 |                 a3 = a->sig[3]; a2 = a->sig[2];                         \
      |                      ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:157:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  157 | _SIG_SET_BINOP(sigorsets, _sig_or)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:138:24: note: expanded from macro '_SIG_SET_BINOP'
  138 |                 a3 = a->sig[3]; a2 = a->sig[2];                         \
      |                                      ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:157:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  157 | _SIG_SET_BINOP(sigorsets, _sig_or)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:139:8: note: expanded from macro '_SIG_SET_BINOP'
  139 |                 b3 = b->sig[3]; b2 = b->sig[2];                         \
      |                      ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:157:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  157 | _SIG_SET_BINOP(sigorsets, _sig_or)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:139:24: note: expanded from macro '_SIG_SET_BINOP'
  139 |                 b3 = b->sig[3]; b2 = b->sig[2];                         \
      |                                      ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:157:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  157 | _SIG_SET_BINOP(sigorsets, _sig_or)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:140:3: note: expanded from macro '_SIG_SET_BINOP'
  140 |                 r->sig[3] = op(a3, b3);                                 \
      |                 ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:157:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  157 | _SIG_SET_BINOP(sigorsets, _sig_or)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:141:3: note: expanded from macro '_SIG_SET_BINOP'
  141 |                 r->sig[2] = op(a2, b2);                                 \
      |                 ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:160:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  160 | _SIG_SET_BINOP(sigandsets, _sig_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:138:8: note: expanded from macro '_SIG_SET_BINOP'
  138 |                 a3 = a->sig[3]; a2 = a->sig[2];                         \
      |                      ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:160:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  160 | _SIG_SET_BINOP(sigandsets, _sig_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:138:24: note: expanded from macro '_SIG_SET_BINOP'
  138 |                 a3 = a->sig[3]; a2 = a->sig[2];                         \
      |                                      ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:160:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  160 | _SIG_SET_BINOP(sigandsets, _sig_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:139:8: note: expanded from macro '_SIG_SET_BINOP'
  139 |                 b3 = b->sig[3]; b2 = b->sig[2];                         \
      |                      ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:160:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  160 | _SIG_SET_BINOP(sigandsets, _sig_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:139:24: note: expanded from macro '_SIG_SET_BINOP'
  139 |                 b3 = b->sig[3]; b2 = b->sig[2];                         \
      |                                      ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:160:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  160 | _SIG_SET_BINOP(sigandsets, _sig_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:140:3: note: expanded from macro '_SIG_SET_BINOP'
  140 |                 r->sig[3] = op(a3, b3);                                 \
      |                 ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:160:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  160 | _SIG_SET_BINOP(sigandsets, _sig_and)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:141:3: note: expanded from macro '_SIG_SET_BINOP'
  141 |                 r->sig[2] = op(a2, b2);                                 \
      |                 ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:163:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  163 | _SIG_SET_BINOP(sigandnsets, _sig_andn)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:138:8: note: expanded from macro '_SIG_SET_BINOP'
  138 |                 a3 = a->sig[3]; a2 = a->sig[2];                         \
      |                      ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:163:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  163 | _SIG_SET_BINOP(sigandnsets, _sig_andn)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:138:24: note: expanded from macro '_SIG_SET_BINOP'
  138 |                 a3 = a->sig[3]; a2 = a->sig[2];                         \
      |                                      ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:163:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  163 | _SIG_SET_BINOP(sigandnsets, _sig_andn)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:139:8: note: expanded from macro '_SIG_SET_BINOP'
  139 |                 b3 = b->sig[3]; b2 = b->sig[2];                         \
      |                      ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:163:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
  163 | _SIG_SET_BINOP(sigandnsets, _sig_andn)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:139:24: note: expanded from macro '_SIG_SET_BINOP'
  139 |                 b3 = b->sig[3]; b2 = b->sig[2];                         \
      |                                      ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:163:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  163 | _SIG_SET_BINOP(sigandnsets, _sig_andn)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:140:3: note: expanded from macro '_SIG_SET_BINOP'
  140 |                 r->sig[3] = op(a3, b3);                                 \
      |                 ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:163:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  163 | _SIG_SET_BINOP(sigandnsets, _sig_andn)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:141:3: note: expanded from macro '_SIG_SET_BINOP'
  141 |                 r->sig[2] = op(a2, b2);                                 \
      |                 ^      ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:187:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  187 | _SIG_SET_OP(signotset, _sig_not)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:174:27: note: expanded from macro '_SIG_SET_OP'
  174 |         case 4: set->sig[3] = op(set->sig[3]);                          \
      |                                  ^        ~
/build/tmpldejh1wd/include/linux/signal.h:186:24: note: expanded from macro '_sig_not'
  186 | #define _sig_not(x)     (~(x))
      |                            ^
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:187:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  187 | _SIG_SET_OP(signotset, _sig_not)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:174:10: note: expanded from macro '_SIG_SET_OP'
  174 |         case 4: set->sig[3] = op(set->sig[3]);                          \
      |                 ^        ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  187 | _SIG_SET_OP(signotset, _sig_not)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:175:20: note: expanded from macro '_SIG_SET_OP'
  175 |                 set->sig[2] = op(set->sig[2]);                          \
      |                                  ^        ~
/build/tmpldejh1wd/include/linux/signal.h:186:24: note: expanded from macro '_sig_not'
  186 | #define _sig_not(x)     (~(x))
      |                            ^
I: config: PASS in 0:00:32.688107
I: default: FAIL in 0:00:10.379324
I: kernel: SKIP in 0:00:00.000006
I: xipkernel: SKIP in 0:00:00.000003
I: modules: FAIL in 0:00:00.080364
I: dtbs: PASS in 0:00:01.989325
I: dtbs-legacy: SKIP in 0:00:00.005073
I: debugkernel: SKIP in 0:00:00.000004
I: headers: PASS in 0:00:01.059530
I: build output in /build/tmp.Ua0vNo8Gbl
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
In file included from /build/tmpldejh1wd/arch/riscv/kernel/asm-offsets.c:9:
In file included from /build/tmpldejh1wd/include/linux/mm.h:36:
In file included from /build/tmpldejh1wd/include/linux/rcuwait.h:6:
In file included from /build/tmpldejh1wd/include/linux/sched/signal.h:6:
/build/tmpldejh1wd/include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
  187 | _SIG_SET_OP(signotset, _sig_not)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpldejh1wd/include/linux/signal.h:175:3: note: expanded from macro '_SIG_SET_OP'
  175 |                 set->sig[2] = op(set->sig[2]);                          \
      |                 ^        ~
/build/tmpldejh1wd/include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
   62 |         unsigned long sig[_NSIG_WORDS];
      |         ^
28 warnings and 1 error generated.
make[3]: *** [/build/tmpldejh1wd/scripts/Makefile.build:184: arch/riscv/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [/build/tmpldejh1wd/Makefile:1371: prepare0] Error 2
make[2]: Target '__all' not remade because of errors.
make[1]: *** [/build/tmpldejh1wd/Makefile:248: __sub-make] Error 2
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target '__all' not remade because of errors.
rm -rf /build/tmp.Ua0vNo8Gbl/build/modinstall
make --silent --keep-going --jobs=48 O=/build/tmp.Ua0vNo8Gbl/build INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=/build/tmp.Ua0vNo8Gbl/build/modinstall ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' modules_install
make[3]: *** No rule to make target 'modules.order', needed by '/build/tmp.Ua0vNo8Gbl/build/modinstall/lib/modules/7.0.0-12234-g5a823519a5a0/modules.order'.
make[3]: *** No rule to make target 'modules.builtin', needed by '/build/tmp.Ua0vNo8Gbl/build/modinstall/lib/modules/7.0.0-12234-g5a823519a5a0/modules.builtin'.
make[3]: *** No rule to make target 'modules.builtin.modinfo', needed by '/build/tmp.Ua0vNo8Gbl/build/modinstall/lib/modules/7.0.0-12234-g5a823519a5a0/modules.builtin.modinfo'.
make[3]: Target '__modinst' not remade because of errors.
make[2]: *** [/build/tmpldejh1wd/Makefile:2045: modules_install] Error 2
make[1]: *** [/build/tmpldejh1wd/Makefile:248: __sub-make] Error 2
make[1]: Target 'modules_install' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'modules_install' not remade because of errors.
make --silent --keep-going --jobs=48 O=/build/tmp.Ua0vNo8Gbl/build INSTALL_DTBS_PATH=/build/tmp.Ua0vNo8Gbl/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs
rm -rf /build/tmp.Ua0vNo8Gbl/build/dtbsinstall
mkdir -p /build/tmp.Ua0vNo8Gbl/build/dtbsinstall/dtbs
make --silent --keep-going --jobs=48 O=/build/tmp.Ua0vNo8Gbl/build INSTALL_DTBS_PATH=/build/tmp.Ua0vNo8Gbl/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1776765934 --clamp-mtime -caf /build/tmp.Ua0vNo8Gbl/build/dtbs.tar -C /build/tmp.Ua0vNo8Gbl/build/dtbsinstall dtbs
rm -rf /build/tmp.Ua0vNo8Gbl/build/install_hdr
make --silent --keep-going --jobs=48 O=/build/tmp.Ua0vNo8Gbl/build INSTALL_HDR_PATH=/build/tmp.Ua0vNo8Gbl/build/install_hdr/ ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' headers_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1776765934 --clamp-mtime -caf /build/tmp.Ua0vNo8Gbl/build/headers.tar -C /build/tmp.Ua0vNo8Gbl/build/install_hdr .
warnings/errors:
/build/tmpldejh1wd/include/linux/pgtable.h:410:20: error: redefinition of 'set_ptes'
/build/tmpldejh1wd/include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:114:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:115:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:115:21: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:157:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:157:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:157:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:157:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:157:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:157:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:160:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:160:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:160:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:160:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:160:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:160:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:163:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:163:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:163:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:163:1: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:163:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:163:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:187:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:187:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]
/build/tmpldejh1wd/include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds]


@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/7] riscv/kvm: use raw PTE helpers for G-stage leaf PTEs"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 27.89 seconds
Result: ERROR
Output:

Redirect to /build/tmp.r0u5zCzuI2 and /build/tmp.aHoZUHVp6h
Tree base:
38434532bd78c ("riscv: mm: split raw and public PTE helpers")
Building the whole tree with the patch
error:
/build/tmpldejh1wd/include/linux/pgtable.h:410:20: error: redefinition of 'set_ptes'



real	0m26.295s
user	0m16.181s
sys	0m29.160s

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/7] riscv/kvm: use raw PTE helpers for G-stage leaf PTEs"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 23.96 seconds
Result: ERROR
Output:

Redirect to /build/tmp.ybGL77SEAc and /build/tmp.jefdvpDZGF
Tree base:
38434532bd78c ("riscv: mm: split raw and public PTE helpers")
Building the whole tree with the patch
error:
/build/tmpldejh1wd/include/linux/pgtable.h:410:20: error: redefinition of 'set_ptes'



real	0m22.439s
user	0m22.804s
sys	0m23.911s

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/7] riscv/kvm: use raw PTE helpers for G-stage leaf PTEs"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 27.31 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/7] riscv/kvm: use raw PTE helpers for G-stage leaf PTEs"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 28.41 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/7] riscv/kvm: use raw PTE helpers for G-stage leaf PTEs"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.03 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/7] riscv/kvm: use raw PTE helpers for G-stage leaf PTEs"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 84.03 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/7] riscv/kvm: use raw PTE helpers for G-stage leaf PTEs"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/7] riscv/kvm: use raw PTE helpers for G-stage leaf PTEs"
kdoc
Desc: Detects for kdoc errors
Duration: 0.87 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/7] riscv/kvm: use raw PTE helpers for G-stage leaf PTEs"
module-param
Desc: Detect module_param changes
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 7: "[7/7] riscv: add Svnapot-aware pte_batch_hint support"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 27.17 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 7: "[7/7] riscv: add Svnapot-aware pte_batch_hint support"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 28.03 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 7: "[7/7] riscv: add Svnapot-aware pte_batch_hint support"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.11 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 7: "[7/7] riscv: add Svnapot-aware pte_batch_hint support"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 85.97 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 7: "[7/7] riscv: add Svnapot-aware pte_batch_hint support"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 7: "[7/7] riscv: add Svnapot-aware pte_batch_hint support"
kdoc
Desc: Detects for kdoc errors
Duration: 0.87 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 7: "[7/7] riscv: add Svnapot-aware pte_batch_hint support"
module-param
Desc: Detect module_param changes
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 7: "[7/7] riscv: add Svnapot-aware pte_batch_hint support"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 7: "[7/7] riscv: add Svnapot-aware pte_batch_hint support"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.31 seconds
Result: PASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants