From 410fcaa0a1374787d8ae91561573a75d82794396 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 10 Feb 2015 13:41:49 -0600 Subject: [PATCH] Added a forward reference to struct inode to avoid warning about mismatching types in assignemnt --- TODO | 2 +- drivers/pipes/pipe_common.h | 2 +- include/nuttx/fs/fs.h | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/TODO b/TODO index 673ac9f96c..1ba73ac6f4 100644 --- a/TODO +++ b/TODO @@ -887,7 +887,7 @@ o Network (net/, drivers/net) DMxxx NIC NO PIC32 NO RGMP NO - SAM3/4 NO + SAM3/4 YES << SAMA5D3 NO SAMA5D4 YES << SIM N/A << Doesn't support interrupts diff --git a/drivers/pipes/pipe_common.h b/drivers/pipes/pipe_common.h index 8318b16f2c..2f1b119402 100644 --- a/drivers/pipes/pipe_common.h +++ b/drivers/pipes/pipe_common.h @@ -135,7 +135,7 @@ extern "C" { #endif struct file; /* Forward reference */ -struct inode; /* Forware reference */ +struct inode; /* Forward reference */ FAR struct pipe_dev_s *pipecommon_allocdev(void); void pipecommon_freedev(FAR struct pipe_dev_s *dev); diff --git a/include/nuttx/fs/fs.h b/include/nuttx/fs/fs.h index 3c8381190a..46daf7d3aa 100644 --- a/include/nuttx/fs/fs.h +++ b/include/nuttx/fs/fs.h @@ -73,8 +73,10 @@ * system. It is used to call back to perform device specific operations. */ -struct file; -struct pollfd; +struct file; /* Forward reference */ +struct pollfd; /* Forward reference */ +struct inode; /* Forward reference */ + struct file_operations { /* The device driver open method differs from the mountpoint open method */