From: Brian Behlendorf Date: Fri, 14 May 2010 16:42:53 +0000 (-0700) Subject: Add 3 missing typedefs. X-Git-Tag: zfs-0.8.0-rc1~152^2~607 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e2140b770152df7aa91e495f11a73308bfc6c13;p=zfs Add 3 missing typedefs. Add processorid_t, pc_t, index_t. --- diff --git a/include/sys/processor.h b/include/sys/processor.h new file mode 100644 index 000000000..65285868a --- /dev/null +++ b/include/sys/processor.h @@ -0,0 +1,8 @@ +#ifndef _SPL_PROCESSOR_H +#define _SPL_PROCESSOR_H + +#define getcpuid() smp_processor_id() + +typedef int processorid_t; + +#endif /* _SPL_PROCESSOR_H */ diff --git a/include/sys/systm.h b/include/sys/systm.h index 1fb367a9b..68bd9badf 100644 --- a/include/sys/systm.h +++ b/include/sys/systm.h @@ -3,4 +3,6 @@ #include +typedef uintptr_t pc_t; + #endif /* SPL_SYSTM_H */ diff --git a/include/sys/types.h b/include/sys/types.h index 771e8f36e..2804974dd 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -57,5 +57,6 @@ typedef uint_t minor_t; typedef ulong_t pfn_t; typedef ulong_t pgcnt_t; typedef long spgcnt_t; +typedef short index_t; #endif /* _SPL_TYPES_H */