diff --git a/arch/README.txt b/arch/README.txt
index 85175c6a07ac6dc8e442b6123795ed6948fd6682..ff0fd4f0044808cec2e8103157501beda7a8511d 100644
--- a/arch/README.txt
+++ b/arch/README.txt
@@ -149,17 +149,15 @@ include/types.h
 
 include/irq.h
   This file needs to define some architecture specific functions (usually
-  inline) and structure.  These include:
+  inline if the compiler supports inlining) and structure.  These include:
 
   - struct xcptcontext.  This structures represents the saved context
     of a thread.
 
-  - static inline uint32 irqsave(void) -- Used to disable
-    all interrupts.
+  - uint32 irqsave(void) -- Used to disable all interrupts.
 
-  - static inline void irqrestore(uint32 flags) -- Used to
-    restore interrupts enables to the same state as before irqsave
-    was called.
+  - void irqrestore(uint32 flags) -- Used to restore interrupt
+    enables to the same state as before irqsave was called.
 
   This file must also define NR_IRQS, the total number of IRQs supported
   by the board.
diff --git a/arch/c5471/src/up_serial.c b/arch/c5471/src/up_serial.c
index 25746da3f640e96a3c9be7d14e4a3d7d4ae67fad..df4927660a750cd31901ad711b12697aee45a8c8 100644
--- a/arch/c5471/src/up_serial.c
+++ b/arch/c5471/src/up_serial.c
@@ -123,7 +123,6 @@ static int     up_close(struct file *filep);
 static ssize_t up_read(struct file *filep, char *buffer, size_t buflen);
 static ssize_t up_write(struct file *filep, const char *buffer, size_t buflen);
 static int     up_ioctl(struct file *filep, int cmd, unsigned long arg);
-static void    up_consoleinit(up_dev_t *dev);
 static void    up_uartsetup(up_dev_t *dev);
 static void    up_delay(int milliseconds);
 
@@ -590,7 +589,7 @@ static void up_xmitchars(up_dev_t *dev)
  * serial driver.
  */
 
-static int up_interrupt(int irq, struct xcptcontext *xcp)
+static int up_interrupt(int irq, void *context)
 {
   up_dev_t         *dev;
   volatile uint32 cause;
diff --git a/fs/fs_dup.c b/fs/fs_dup.c
index 02a62daf6152810584f604c9c55adcc2c15fdcd7..114f4b9519fe55e3c230a287b5bb6aa912b623f9 100644
--- a/fs/fs_dup.c
+++ b/fs/fs_dup.c
@@ -55,23 +55,14 @@
  * Definitions
  ************************************************************/
 
+#define DUP_ISOPEN(fd, list) \
+  ((unsigned int)fd < CONFIG_NFILE_DESCRIPTORS && \
+   list->fl_files[fd].f_inode != NULL)
+
 /************************************************************
  * Private Functions
  ************************************************************/
 
-static inline boolean dup_isopen(int fd, struct filelist *list)
-{
-  if ((unsigned int)fd >= CONFIG_NFILE_DESCRIPTORS ||
-       list->fl_files[fd].f_inode == NULL)
-    {
-      return FALSE;
-    }
-  else
-    {
-      return TRUE;
-    }
-}
-
 /************************************************************
  * Global Functions
  ************************************************************/
@@ -92,7 +83,7 @@ int dup(int fildes)
 
  /* Verify that fildes is a valid, open file descriptor */
 
-  if (!dup_isopen(fildes, list))
+  if (!DUP_ISOPEN(fildes, list))
     {
       *get_errno_ptr() = EBADF;
       return ERROR;
@@ -131,7 +122,7 @@ int dup2(int fildes1, int fildes2)
 
  /* Verify that fildes is a valid, open file descriptor */
 
-  if (!dup_isopen(fildes1, list))
+  if (!DUP_ISOPEN(fildes1, list))
     {
       *get_errno_ptr() = EBADF;
       return ERROR;
diff --git a/fs/fs_files.c b/fs/fs_files.c
index 7ffede4605c8294f44b379fd5a9e18acffbdc47b..a280f92101d55260b73bbefedf101b8e9f072946 100644
--- a/fs/fs_files.c
+++ b/fs/fs_files.c
@@ -86,10 +86,7 @@ static void _files_semtake(struct filelist *list)
     }
 }
 
-static inline void _files_semgive(struct filelist *list)
-{
-  sem_post(&list->fl_sem);
-}
+#define _files_semgive(list) sem_post(&list->fl_sem)
 
 /************************************************************
  * Pulblic Functions
diff --git a/fs/fs_inode.c b/fs/fs_inode.c
index b080a4e43f3215112f2cc384596f87e992a8a585..db7451d3091a5e1a652d2c3061fc97f765b855d7 100644
--- a/fs/fs_inode.c
+++ b/fs/fs_inode.c
@@ -53,9 +53,12 @@
 #include "fs_internal.h"
 
 /************************************************************
- * Private types
+ * Definitions
  ************************************************************/
 
+#define INODE_SEMGIVE() \
+  sem_post(&tree_sem)
+
 /************************************************************
  * Private Variables
  ************************************************************/
@@ -86,10 +89,7 @@ static void _inode_semtake(void)
     }
 }
 
-static inline void _inode_semgive(void)
-{
-  sem_post(&tree_sem);
-}
+#define _inode_semgive(void) sem_post(&tree_sem)
 
 static int _inode_compare(const char *fname,
                            struct inode *node)
@@ -152,20 +152,20 @@ static int _inode_compare(const char *fname,
     }
 }
 
-static inline int _inode_namelen(const char *name)
+static int _inode_namelen(const char *name)
 {
   const char *tmp = name;
   while(*tmp && *tmp != '/') tmp++;
   return tmp - name;
 }
 
-static inline void _inode_namecpy(char *dest, const char *src)
+static void _inode_namecpy(char *dest, const char *src)
 {
   while(*src && *src != '/') *dest++ = *src++;
   *dest='\0';
 }
 
-static inline const char *_inode_nextname(const char *name)
+static const char *_inode_nextname(const char *name)
 {
    while (*name && *name != '/') name++;
    if (*name) name++;
diff --git a/fs/fs_internal.h b/fs/fs_internal.h
index 14265895f7338864bcc8d7c3a464f16a5f9f889d..e8e8a33c971cc63cd7515d49556628353f7ef10c 100644
--- a/fs/fs_internal.h
+++ b/fs/fs_internal.h
@@ -63,10 +63,6 @@ extern struct file files[CONFIG_NFILE_DESCRIPTORS];
 #endif
 extern struct inode *root_inode;
 
-/************************************************************
- * Inline Functions
- ************************************************************/
-
 /************************************************************
  * Pulblic Function Prototypes
  ************************************************************/
diff --git a/include/nuttx/arch.h b/include/nuttx/arch.h
index 1299b53f0f9f6a13e29058098d9d26441e0704ed..cc5ad35608fcdfe7551625fe2225932e97c759ad 100644
--- a/include/nuttx/arch.h
+++ b/include/nuttx/arch.h
@@ -49,10 +49,6 @@
  * Definitions
  ************************************************************/
 
-/************************************************************
- * Inline functions
- ************************************************************/
-
 /************************************************************
  * Public Types
  ************************************************************/
diff --git a/include/nuttx/irq.h b/include/nuttx/irq.h
index 0e29e2476f7c01966d8adb42fad5bc073edc4e1f..ce3543404173f1627281f07c4acaef016f9f284f 100644
--- a/include/nuttx/irq.h
+++ b/include/nuttx/irq.h
@@ -69,10 +69,6 @@ typedef int (*swint_t)(uint32 code, uint32 parm2, uint32 parm3,
 
 #include <arch/irq.h>
 
-/************************************************************
- * Inline functions
- ************************************************************/
-
 /************************************************************
  * Public Variables
  ************************************************************/
diff --git a/include/stdio.h b/include/stdio.h
index 0cc8639b465edde7bcdd3fb4e460453e3853ea7b..883e32fc48517f6b28c99ce8795fe6060b7cabaf 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -99,9 +99,9 @@
 
 /* The first three _iob entries are reserved for standard I/O */
 
-#define stdin  (__stdfile(0))
-#define stdout (__stdfile(1))
-#define stderr (__stdfile(2))
+#define stdin  (&sched_getstreams()->sl_streams[0])
+#define stdout (&sched_getstreams()->sl_streams[1])
+#define stderr (&sched_getstreams()->sl_streams[2])
 
 /* These APIs are not implemented and/or can be synthesized from
  * supported APIs.
@@ -194,29 +194,6 @@ typedef void DIR;
  * Public Variables
  ************************************************************/
 
-/************************************************************
- * Inline Functions
- ************************************************************/
-
-/* Used to reference stdin, stdout, and stderr */
-
-#ifdef CONFIG_HAVE_INLINE
-static inline FILE *__stdfile(int fd)
-{
-  if ((unsigned int)fd < CONFIG_NFILE_DESCRIPTORS)
-    {
-      struct streamlist *streams = sched_getstreams();
-      if (streams)
-        {
-          return &streams->sl_streams[fd];
-        }
-    }
-  return NULL;
-}
-#else
-extern FILE *__stdfile(int fd);
-#endif
-
 /************************************************************
  * Public Function Prototypes
  ************************************************************/
diff --git a/lib/lib_init.c b/lib/lib_init.c
index 216f7b780a20d888182dd3db5e50f921f5f198cd..a8195937fa969cdb828302f08db3b807f7e82638 100644
--- a/lib/lib_init.c
+++ b/lib/lib_init.c
@@ -71,10 +71,7 @@ static void _lib_semtake(struct streamlist *list)
     }
 }
 
-static inline void _lib_semgive(struct streamlist *list)
-{
-  sem_post(&list->sl_sem);
-}
+#define _lib_semgive(list) sem_post(&list->sl_sem)
 
 /************************************************************
  * Public Functions
diff --git a/lib/lib_internal.h b/lib/lib_internal.h
index 41d40d4288f1050e4deea14ddec77053a2053f28..736aec54f61d04cb03030ef7cee7c6c7786b651b 100644
--- a/lib/lib_internal.h
+++ b/lib/lib_internal.h
@@ -98,10 +98,6 @@ struct lib_rawstream_s
  * Public Variables
  ************************************************************/
 
-/************************************************************
- * Inline Functions
- ************************************************************/
-
 /************************************************************
  * Pulblic Function Prototypes
  ************************************************************/
diff --git a/mm/mm_internal.h b/mm/mm_internal.h
index e171f2b605386091b3fb3e15b52ca4c9cae382c8..fe519ab2e476adc7bcb7cd881ca99e9381514d05 100644
--- a/mm/mm_internal.h
+++ b/mm/mm_internal.h
@@ -152,10 +152,6 @@ extern struct mm_allocnode_s *g_heapend;
 
 extern struct mm_freenode_s g_nodelist[MM_NNODES];
 
-/************************************************************
- * Inline Functions
- ************************************************************/
-
 /************************************************************
  * Pulblic Function Prototypes
  ************************************************************/
diff --git a/sched/clock_internal.h b/sched/clock_internal.h
index 18806d9521daf5f32677fc914d3887e08d0b5bfc..e97c468b7e91a63809ca261feaa0893069c3d341 100644
--- a/sched/clock_internal.h
+++ b/sched/clock_internal.h
@@ -85,10 +85,6 @@ extern volatile uint32 g_system_timer;
 extern struct timespec g_basetime;
 extern uint32 g_tickbias;
 
-/************************************************************
- * Public Inline Functions
- ************************************************************/
-
 /************************************************************
  * Public Function Prototypes
  ************************************************************/
diff --git a/sched/mktime.c b/sched/mktime.c
index a0ed379f1a5a514ebab6b5f2cac3c5cea5e4649a..1c58edc37334f660624d0f7a37df8c82727e6a25 100644
--- a/sched/mktime.c
+++ b/sched/mktime.c
@@ -81,7 +81,7 @@
  *
  ************************************************************/
 
-static inline time_t clock_gregorian2utc(int year, int month, int day)
+static time_t clock_gregorian2utc(int year, int month, int day)
 {
   int temp;
 
@@ -95,7 +95,7 @@ static inline time_t clock_gregorian2utc(int year, int month, int day)
 }
 
 #ifdef CONFIG_JULIAN_TIME
-static inline time_t clock_julian2utc(int year, int month, int day)
+static time_t clock_julian2utc(int year, int month, int day)
 {
   return 367*year
     - (7*(year + 5001 + (month-9)/7))/4
diff --git a/sched/mq_close.c b/sched/mq_close.c
index b1625de736c75234d90d607e6cdaffc05ea659de..c9817f9947bb38b0d2c34ed245b3f7d805702caf 100644
--- a/sched/mq_close.c
+++ b/sched/mq_close.c
@@ -67,19 +67,15 @@
  * Function: mq_desfree
  *
  * Description:
- *   Deallocate a message queue descriptor
+ *   Deallocate a message queue descriptor but returning it
+ *   to the free liest
  *
  * Inputs:
  *   mqdes - message queue descriptor to free
  *
  ************************************************************/
 
-static inline void mq_desfree(mqd_t mqdes)
-{
-  /* Just put it back on the free list */
-
-  sq_addlast((sq_entry_t*)mqdes, &g_desfree);
-}
+#define mq_desfree(mqdes) sq_addlast((sq_entry_t*)mqdes, &g_desfree)
 
 /************************************************************
  * Public Functions
diff --git a/sched/mq_descreate.c b/sched/mq_descreate.c
index 5f68268d30a3db42451b01387474893c855cda41..f631cfd2bf8095d89e61a6cf97a98c9e032ed062 100644
--- a/sched/mq_descreate.c
+++ b/sched/mq_descreate.c
@@ -88,7 +88,7 @@
  *
  ************************************************************/
 
-static inline mqd_t mq_desalloc(void)
+static mqd_t mq_desalloc(void)
 {
   mqd_t mqdes;
 
diff --git a/sched/os_internal.h b/sched/os_internal.h
index 0be0bb5ac9067e436dbd6be291b0f5971cd4904b..4e4cdf7d67a40cc74ed6ed48d7cabba868e69b9e 100644
--- a/sched/os_internal.h
+++ b/sched/os_internal.h
@@ -228,10 +228,6 @@ extern pidhash_t g_pidhash[MAX_TASKS_ALLOWED];
 
 extern const tasklist_t g_tasklisttable[NUM_TASK_STATES];
 
-/************************************************************
- * Public Inline Functions
- ************************************************************/
-
 /************************************************************
  * Public Function Prototypes
  ************************************************************/
diff --git a/sched/sched_processtimer.c b/sched/sched_processtimer.c
index 2ab4c4bfaf8bff292aaf4d5d9fe0f64d144343c5..de066eb4657fe4f367540dc21c56b315e1312f74 100644
--- a/sched/sched_processtimer.c
+++ b/sched/sched_processtimer.c
@@ -72,7 +72,7 @@
  * Private Functions
  ************************************************************/
 
-static inline void sched_process_timeslice(void)
+static void sched_process_timeslice(void)
 {
 #if CONFIG_RR_INTERVAL > 0
   _TCB *rtcb;
diff --git a/sched/sig_internal.h b/sched/sig_internal.h
index 8f3bebe1ce3dcf481487d6ea948cabc3d25a57f5..fd8390cfed0aba5dc15145453ec49051dc36c562 100644
--- a/sched/sig_internal.h
+++ b/sched/sig_internal.h
@@ -149,10 +149,6 @@ extern sq_queue_t  g_sigpendingsignal;
 
 extern sq_queue_t  g_sigpendingirqsignal;
 
-/************************************************************
- * Public Inline Functions
- ************************************************************/
-
 /************************************************************
  * Public Function Prototypes
  ************************************************************/