summaryrefslogtreecommitdiff
path: root/usr/src/uts/intel/asm/thread.h
diff options
context:
space:
mode:
authorAlexander Eremin <a.eremin@nexenta.com>2014-11-26 11:50:21 +0100
committerDan McDonald <danmcd@omniti.com>2014-11-28 20:30:58 -0500
commitb808966a943db6fb9a110438cce8184c87e1f62b (patch)
treed767ee331e7bfd115baba23f5c821afdf077aa15 /usr/src/uts/intel/asm/thread.h
parent67596cf9c2b72fce44cb338448ce7006e99953f8 (diff)
downloadillumos-gate-b808966a943db6fb9a110438cce8184c87e1f62b.tar.gz
5362 invalid conversion when using asm/thread.h in c++ code
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com> Reviewed by: Jason King <jason.brian.king@gmail.com> Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/uts/intel/asm/thread.h')
-rw-r--r--usr/src/uts/intel/asm/thread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/uts/intel/asm/thread.h b/usr/src/uts/intel/asm/thread.h
index df3c211ccf..620c2c3c9f 100644
--- a/usr/src/uts/intel/asm/thread.h
+++ b/usr/src/uts/intel/asm/thread.h
@@ -22,6 +22,7 @@
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _ASM_THREAD_H
@@ -48,7 +49,7 @@ struct _kthread;
extern __GNU_INLINE struct _kthread
*threadp(void)
{
- void *__value;
+ struct _kthread *__value;
#if defined(__amd64)
__asm__ __volatile__(