Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 2026 17:56:07 +0000
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: d9421acec5d2 - stable/15 - sys: Declare 'end' as an extern char[]
Message-ID:  <69ebaeb7.1e63d.17df739d@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=d9421acec5d25b7c106fab9259f03e89ac8abe2a

commit d9421acec5d25b7c106fab9259f03e89ac8abe2a
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-02-25 02:20:59 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-04-24 15:43:38 +0000

    sys: Declare 'end' as an extern char[]
    
    While here, remove an unused declaration.
    
    Reviewed by:    jrtc27
    Sponsored by:   AFRL, DARPA
    Differential Revision:  https://reviews.freebsd.org/D53898
    
    (cherry picked from commit 6513c2845f8912c30749cf64704d3dfeeeb9a47a)
---
 sys/arm/arm/machdep.c          | 2 --
 sys/arm/arm/machdep_boot.c     | 2 +-
 sys/arm64/arm64/machdep_boot.c | 2 +-
 sys/riscv/riscv/machdep.c      | 2 +-
 4 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/sys/arm/arm/machdep.c b/sys/arm/arm/machdep.c
index 0b395d42fc4a..d51b4f10fe6b 100644
--- a/sys/arm/arm/machdep.c
+++ b/sys/arm/arm/machdep.c
@@ -120,8 +120,6 @@ vm_offset_t vector_page;
 /* The address at which the kernel was loaded.  Set early in initarm(). */
 vm_paddr_t arm_physmem_kernaddr;
 
-extern int *end;
-
 #ifdef FDT
 vm_paddr_t pmap_pa;
 vm_offset_t systempage;
diff --git a/sys/arm/arm/machdep_boot.c b/sys/arm/arm/machdep_boot.c
index 8a6c63af3c92..2eee28c7078b 100644
--- a/sys/arm/arm/machdep_boot.c
+++ b/sys/arm/arm/machdep_boot.c
@@ -69,7 +69,7 @@
 static char static_kenv[4096];
 #endif
 
-extern int *end;
+extern char end[];
 
 static uint32_t board_revision;
 /* hex representation of uint64_t */
diff --git a/sys/arm64/arm64/machdep_boot.c b/sys/arm64/arm64/machdep_boot.c
index 0ccfd1b67a39..742622879f56 100644
--- a/sys/arm64/arm64/machdep_boot.c
+++ b/sys/arm64/arm64/machdep_boot.c
@@ -53,7 +53,7 @@
 #include <ddb/ddb.h>
 #endif
 
-extern int *end;
+extern char end[];
 static char *loader_envp;
 
 #ifdef FDT
diff --git a/sys/riscv/riscv/machdep.c b/sys/riscv/riscv/machdep.c
index b213e8812bc7..366cf1d5703f 100644
--- a/sys/riscv/riscv/machdep.c
+++ b/sys/riscv/riscv/machdep.c
@@ -118,7 +118,7 @@ uint32_t boot_hart = BOOT_HART_INVALID;	/* The hart we booted on. */
 
 cpuset_t all_harts;
 
-extern int *end;
+extern char end[];
 
 static char static_kenv[PAGE_SIZE];
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69ebaeb7.1e63d.17df739d>