Skip to content

Commit 8cc1c0f

Browse files
committed
amd64 trap.c: provide tag for the struct sfhandlers definition
Sponsored by: The FreeBSD Foundation MFC after: 1 week
1 parent 23dc485 commit 8cc1c0f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

sys/amd64/amd64/trap.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,12 @@ trap_check_intr_kernel(struct thread *td, struct trapframe *frame)
319319
/*
320320
* Table of handlers for various segment load faults.
321321
*/
322-
static const struct {
322+
struct sfhandler {
323323
uintptr_t faddr;
324324
uintptr_t fhandler;
325-
} sfhandlers[] = {
325+
};
326+
327+
static const struct sfhandler sfhandlers[] = {
326328
{
327329
.faddr = (uintptr_t)ld_ds,
328330
.fhandler = (uintptr_t)ds_load_fault,

0 commit comments

Comments
 (0)