Skip to content

Commit 132ce43

Browse files
riastradhriastradh
authored andcommitted
sparc _lwp_makecontext, makecontext: Sort includes.
No functional change intended. Tidying up for: PR kern/59327: user stack pointer is not aligned properly
1 parent 8de17cd commit 132ce43

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

lib/libc/arch/sparc/gen/_lwp.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: _lwp.c,v 1.9 2025/04/24 07:37:13 martin Exp $ */
1+
/* $NetBSD: _lwp.c,v 1.10 2025/04/24 23:56:25 riastradh Exp $ */
22

33
/*-
44
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -28,15 +28,17 @@
2828

2929
#include <sys/cdefs.h>
3030
#if defined(LIBC_SCCS) && !defined(lint)
31-
__RCSID("$NetBSD: _lwp.c,v 1.9 2025/04/24 07:37:13 martin Exp $");
31+
__RCSID("$NetBSD: _lwp.c,v 1.10 2025/04/24 23:56:25 riastradh Exp $");
3232
#endif /* LIBC_SCCS and not lint */
3333

3434
#include "namespace.h"
35+
3536
#include <sys/param.h>
3637
#include <sys/types.h>
37-
#include <ucontext.h>
38+
3839
#include <lwp.h>
3940
#include <stdlib.h>
41+
#include <ucontext.h>
4042

4143
void
4244
_lwp_makecontext(ucontext_t *u, void (*start)(void *), void *arg,

lib/libc/arch/sparc/gen/makecontext.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: makecontext.c,v 1.5 2025/04/24 08:21:36 martin Exp $ */
1+
/* $NetBSD: makecontext.c,v 1.6 2025/04/24 23:56:25 riastradh Exp $ */
22

33
/*-
44
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,16 +31,17 @@
3131

3232
#include <sys/cdefs.h>
3333
#if defined(LIBC_SCCS) && !defined(lint)
34-
__RCSID("$NetBSD: makecontext.c,v 1.5 2025/04/24 08:21:36 martin Exp $");
34+
__RCSID("$NetBSD: makecontext.c,v 1.6 2025/04/24 23:56:25 riastradh Exp $");
3535
#endif
3636

3737
#include <sys/param.h>
38+
3839
#include <inttypes.h>
40+
#include <stdarg.h>
3941
#include <stddef.h>
4042
#include <ucontext.h>
41-
#include "extern.h"
4243

43-
#include <stdarg.h>
44+
#include "extern.h"
4445

4546
void
4647
makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)

0 commit comments

Comments
 (0)