This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 16a961abb14d4df19fc4f2b4c4a89f8cd98ddc4d
Author: Marco Casaroli <[email protected]>
AuthorDate: Wed Oct 21 19:56:20 2026 +0200

    arch/risc-v: Fix the nxstyle errors in riscv_addrenv.c and riscv_fork.c.
    
    Add the blank lines after declarations that nxstyle asks for.  The errors
    are older than the next commits, which touch these files.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 arch/risc-v/src/common/riscv_addrenv.c | 1 +
 arch/risc-v/src/common/riscv_fork.c    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/risc-v/src/common/riscv_addrenv.c 
b/arch/risc-v/src/common/riscv_addrenv.c
index 022abfeb7b0..7df6cd5d5db 100644
--- a/arch/risc-v/src/common/riscv_addrenv.c
+++ b/arch/risc-v/src/common/riscv_addrenv.c
@@ -135,6 +135,7 @@ static void map_spgtables(arch_addrenv_t *addrenv, 
uintptr_t vaddr)
   for (i = 0; i < (ARCH_SPGTS - 1); i++)
     {
       uintptr_t next = addrenv->spgtables[i + 1];
+
       mmu_ln_setentry(i + 1, prev, next, vaddr, MMU_UPGT_FLAGS);
       prev = riscv_pgvaddr(next);
     }
diff --git a/arch/risc-v/src/common/riscv_fork.c 
b/arch/risc-v/src/common/riscv_fork.c
index 10757629785..63edbe075a7 100644
--- a/arch/risc-v/src/common/riscv_fork.c
+++ b/arch/risc-v/src/common/riscv_fork.c
@@ -310,6 +310,7 @@ pid_t riscv_fork(bool vfork, const struct fork_s *context)
       if (context->fp >= context->sp && context->fp < stacktop)
         {
           uintptr_t frameutil = stacktop - context->fp;
+
           newfp = newtop - frameutil;
         }
       else

Reply via email to