summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-02-10 13:41:49 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-02-10 13:41:49 -0600
commitbfece6b55cbc0829f607ef3d60bfb941113dc95c (patch)
tree8464b0e0a650d50790ff9fe40d93d414d1fb5d3a
parent083df51e2de94a3227cf9e8499d89a50931e83e5 (diff)
downloadnuttx-bfece6b55cbc0829f607ef3d60bfb941113dc95c.tar.gz
nuttx-bfece6b55cbc0829f607ef3d60bfb941113dc95c.tar.bz2
nuttx-bfece6b55cbc0829f607ef3d60bfb941113dc95c.zip
Added a forward reference to struct inode to avoid warning about mismatching types in assignemnt
-rw-r--r--nuttx/TODO2
-rw-r--r--nuttx/drivers/pipes/pipe_common.h2
-rw-r--r--nuttx/include/nuttx/fs/fs.h6
3 files changed, 6 insertions, 4 deletions
diff --git a/nuttx/TODO b/nuttx/TODO
index 673ac9f96..1ba73ac6f 100644
--- a/nuttx/TODO
+++ b/nuttx/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/nuttx/drivers/pipes/pipe_common.h b/nuttx/drivers/pipes/pipe_common.h
index 8318b16f2..2f1b11940 100644
--- a/nuttx/drivers/pipes/pipe_common.h
+++ b/nuttx/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/nuttx/include/nuttx/fs/fs.h b/nuttx/include/nuttx/fs/fs.h
index 3c8381190..46daf7d3a 100644
--- a/nuttx/include/nuttx/fs/fs.h
+++ b/nuttx/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 */