git: 8cc1c0f35ec8 - main - amd64 trap.c: provide tag for the struct sfhandlers definition

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 20 Mar 2026 22:49:57 UTC
The branch main has been updated by kib:

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

commit 8cc1c0f35ec8d5a3edb4ee1ede962a3c1f6baef0
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-03-03 06:37:03 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-03-20 22:49:03 +0000

    amd64 trap.c: provide tag for the struct sfhandlers definition
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 sys/amd64/amd64/trap.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 8a1d1528e6da..359b3dfe3609 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -319,10 +319,12 @@ trap_check_intr_kernel(struct thread *td, struct trapframe *frame)
 /*
  * Table of handlers for various segment load faults.
  */
-static const struct {
+struct sfhandler {
 	uintptr_t	faddr;
 	uintptr_t	fhandler;
-} sfhandlers[] = {
+};
+
+static const struct sfhandler sfhandlers[] = {
 	{
 		.faddr = (uintptr_t)ld_ds,
 		.fhandler = (uintptr_t)ds_load_fault,