summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/amd64
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc/amd64')
-rw-r--r--usr/src/lib/libc/amd64/gen/sync_instruction_memory.c5
-rw-r--r--usr/src/lib/libc/amd64/threads/machdep.c3
-rw-r--r--usr/src/lib/libc/amd64/unwind/thrp_unwind.c19
-rw-r--r--usr/src/lib/libc/amd64/unwind/unwind.c8
4 files changed, 13 insertions, 22 deletions
diff --git a/usr/src/lib/libc/amd64/gen/sync_instruction_memory.c b/usr/src/lib/libc/amd64/gen/sync_instruction_memory.c
index 8122d79879..662d3a1daa 100644
--- a/usr/src/lib/libc/amd64/gen/sync_instruction_memory.c
+++ b/usr/src/lib/libc/amd64/gen/sync_instruction_memory.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/asm_linkage.h>
/*
@@ -35,8 +33,7 @@
* This is a no-op on x86 because it has a uniform cache.
*/
-/* ARGSUSED */
void
-sync_instruction_memory(caddr_t addr, int len)
+sync_instruction_memory(caddr_t addr __unused, int len __unused)
{
}
diff --git a/usr/src/lib/libc/amd64/threads/machdep.c b/usr/src/lib/libc/amd64/threads/machdep.c
index 81b8ee37ec..2fe575520a 100644
--- a/usr/src/lib/libc/amd64/threads/machdep.c
+++ b/usr/src/lib/libc/amd64/threads/machdep.c
@@ -33,9 +33,8 @@
extern int getlwpstatus(thread_t, lwpstatus_t *);
extern int putlwpregs(thread_t, prgregset_t);
-/* ARGSUSED2 */
void *
-setup_top_frame(void *stk, size_t stksize, ulwp_t *ulwp)
+setup_top_frame(void *stk, size_t stksize, ulwp_t *ulwp __unused)
{
uint64_t *stack;
struct {
diff --git a/usr/src/lib/libc/amd64/unwind/thrp_unwind.c b/usr/src/lib/libc/amd64/unwind/thrp_unwind.c
index 648a93894d..ecf86bf255 100644
--- a/usr/src/lib/libc/amd64/unwind/thrp_unwind.c
+++ b/usr/src/lib/libc/amd64/unwind/thrp_unwind.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "lint.h"
#include "thr_uberdata.h"
#include "stack_unwind.h"
@@ -39,15 +37,13 @@
*/
#define CFA_ADJUST 16
-/* ARGSUSED */
static _Unwind_Reason_Code
-posix_stop_func(
- int version,
- _Unwind_Action _Unwind_actions,
- uint64_t exceptionClass,
- struct _Unwind_Exception *exceptionObject,
- struct _Unwind_Context *context,
- void *func_arg)
+posix_stop_func(int version __unused,
+ _Unwind_Action _Unwind_actions __unused,
+ uint64_t exceptionClass __unused,
+ struct _Unwind_Exception *exceptionObject,
+ struct _Unwind_Context *context,
+ void *func_arg)
{
__cleanup_t **headp = (__cleanup_t **)func_arg;
__cleanup_t *head;
@@ -82,9 +78,8 @@ posix_stop_func(
* we just need to call the Posix cleanup handlers.
*/
-/* ARGSUSED */
void
-_thrp_unwind(void *dummy)
+_thrp_unwind(void *dummy __unused)
{
ulwp_t *self = curthread;
__cleanup_t **headp = &self->ul_clnup_hdr;
diff --git a/usr/src/lib/libc/amd64/unwind/unwind.c b/usr/src/lib/libc/amd64/unwind/unwind.c
index 810a385031..c16dbd4388 100644
--- a/usr/src/lib/libc/amd64/unwind/unwind.c
+++ b/usr/src/lib/libc/amd64/unwind/unwind.c
@@ -170,10 +170,11 @@ ctx_who(struct _Unwind_Context *ctx)
return (ctx->pfn);
}
-/* ARGSUSED */
_Unwind_Reason_Code
-_Unw_very_boring_personality(int version, int actions, uint64_t exclass,
- struct _Unwind_Exception *exception_object, struct _Unwind_Context *ctx)
+_Unw_very_boring_personality(int version __unused, int actions __unused,
+ uint64_t exclass __unused,
+ struct _Unwind_Exception *exception_object __unused,
+ struct _Unwind_Context *ctx)
{
_Unwind_Reason_Code res = _URC_CONTINUE_UNWIND;
uint64_t fp;
@@ -454,7 +455,6 @@ _Unwind_ForcedUnwind(struct _Unwind_Exception *exception_object,
void
_Unwind_Resume(struct _Unwind_Exception *exception_object)
{
-
struct _Unwind_Context context;
struct _Unwind_Context *ctx = &context;