diff options
Diffstat (limited to 'usr/src/common')
-rw-r--r-- | usr/src/common/ficl/loader.c | 43 | ||||
-rw-r--r-- | usr/src/common/smbclnt/smbfs_ntacl.c | 12 |
2 files changed, 6 insertions, 49 deletions
diff --git a/usr/src/common/ficl/loader.c b/usr/src/common/ficl/loader.c index be642c3b46..d581015c5c 100644 --- a/usr/src/common/ficl/loader.c +++ b/usr/src/common/ficl/loader.c @@ -43,9 +43,6 @@ #include <termios.h> #else #include <stand.h> -#ifdef __i386__ -#include <machine/cpufunc.h> -#endif #include "bootstrap.h" #endif #ifdef _STANDALONE @@ -852,42 +849,6 @@ fkey(ficlVm *pVM) ficlStackPushInteger(ficlVmGetDataStack(pVM), i > 0 ? ch : -1); } - -#ifdef _STANDALONE -#ifdef __i386__ - -/* - * outb ( port# c -- ) - * Store a byte to I/O port number port# - */ -void -ficlOutb(ficlVm *pVM) -{ - uint8_t c; - uint32_t port; - - port = ficlStackPopUnsigned(ficlVmGetDataStack(pVM)); - c = ficlStackPopInteger(ficlVmGetDataStack(pVM)); - outb(port, c); -} - -/* - * inb ( port# -- c ) - * Fetch a byte from I/O port number port# - */ -void -ficlInb(ficlVm *pVM) -{ - uint8_t c; - uint32_t port; - - port = ficlStackPopUnsigned(ficlVmGetDataStack(pVM)); - c = inb(port); - ficlStackPushInteger(ficlVmGetDataStack(pVM), c); -} -#endif -#endif - /* * Retrieves free space remaining on the dictionary */ @@ -954,10 +915,6 @@ ficlSystemCompilePlatform(ficlSystem *pSys) ficlDictionarySetPrimitive(dp, "uuid-to-string", ficlUuidToString, FICL_WORD_DEFAULT); #ifdef _STANDALONE -#ifdef __i386__ - ficlDictionarySetPrimitive(dp, "outb", ficlOutb, FICL_WORD_DEFAULT); - ficlDictionarySetPrimitive(dp, "inb", ficlInb, FICL_WORD_DEFAULT); -#endif /* Register words from linker set. */ SET_FOREACH(fnpp, Xficl_compile_set) (*fnpp)(pSys); diff --git a/usr/src/common/smbclnt/smbfs_ntacl.c b/usr/src/common/smbclnt/smbfs_ntacl.c index 6780d891ee..dcc0d55e79 100644 --- a/usr/src/common/smbclnt/smbfs_ntacl.c +++ b/usr/src/common/smbclnt/smbfs_ntacl.c @@ -66,16 +66,16 @@ #define FREESZ(p, sz) kmem_free(p, sz) #else /* _KERNEL */ #define MALLOC(size) malloc(size) -#ifndef lint -#define FREESZ(p, sz) free(p) -#else /* lint */ +/* + * Define FREESZ() as inline function so the compiler will not + * trigger variable set but not used warning for sz in calling function. + */ /* ARGSUSED */ -static void -FREESZ(void *p, size_t sz) +static inline void +FREESZ(void *p, size_t sz __unused) { free(p); } -#endif /* lint */ #endif /* _KERNEL */ #define ERRCHK(expr) if ((error = expr) != 0) goto errout |