diff --git a/drivers/can.c b/drivers/can.c index a98e1145bc7..4cca6c0dbb8 100644 --- a/drivers/can.c +++ b/drivers/can.c @@ -116,10 +116,6 @@ #define HALF_SECOND_MSEC 500 #define HALF_SECOND_USEC 500000L -/**************************************************************************** - * Private Type Definitions - ****************************************************************************/ - /**************************************************************************** * Private Function Prototypes ****************************************************************************/ diff --git a/fs/aio/aio_cancel.c b/fs/aio/aio_cancel.c index 497a2b93c54..bdd4ba463a0 100644 --- a/fs/aio/aio_cancel.c +++ b/fs/aio/aio_cancel.c @@ -50,27 +50,6 @@ #ifdef CONFIG_FS_AIO -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ -/* Configuration ************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/aio/aio_fsync.c b/fs/aio/aio_fsync.c index ad816264b5a..8070817595b 100644 --- a/fs/aio/aio_fsync.c +++ b/fs/aio/aio_fsync.c @@ -52,22 +52,6 @@ #ifdef CONFIG_FS_AIO -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/aio/aio_initialize.c b/fs/aio/aio_initialize.c index 95193614213..8d30d6f54a1 100644 --- a/fs/aio/aio_initialize.c +++ b/fs/aio/aio_initialize.c @@ -50,14 +50,6 @@ #ifdef CONFIG_FS_AIO -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - /**************************************************************************** * Private Data ****************************************************************************/ @@ -92,13 +84,10 @@ static uint16_t g_aio_count; dq_queue_t g_aio_pending; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ + /**************************************************************************** * Name: aio_initialize * diff --git a/fs/aio/aio_queue.c b/fs/aio/aio_queue.c index 34cb31df0fe..d4c7cf76ea1 100644 --- a/fs/aio/aio_queue.c +++ b/fs/aio/aio_queue.c @@ -50,22 +50,6 @@ #ifdef CONFIG_FS_AIO -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/aio/aio_read.c b/fs/aio/aio_read.c index 81ee4e59263..b3e717b58bf 100644 --- a/fs/aio/aio_read.c +++ b/fs/aio/aio_read.c @@ -52,22 +52,6 @@ #ifdef CONFIG_FS_AIO -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/aio/aio_write.c b/fs/aio/aio_write.c index 70f40ca5989..e9ed46d8155 100644 --- a/fs/aio/aio_write.c +++ b/fs/aio/aio_write.c @@ -52,22 +52,6 @@ #ifdef CONFIG_FS_AIO -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/aio/aioc_contain.c b/fs/aio/aioc_contain.c index 207ae74681d..05b03c776cb 100644 --- a/fs/aio/aioc_contain.c +++ b/fs/aio/aioc_contain.c @@ -49,29 +49,10 @@ #ifdef CONFIG_FS_AIO -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ + /**************************************************************************** * Name: aio_contain * diff --git a/fs/binfs/fs_binfs.c b/fs/binfs/fs_binfs.c index 9c03b9530e3..959b3336dd2 100644 --- a/fs/binfs/fs_binfs.c +++ b/fs/binfs/fs_binfs.c @@ -59,10 +59,6 @@ #if !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_BINFS) -/**************************************************************************** - * Private Types - ****************************************************************************/ - /**************************************************************************** * Private Function Prototypes ****************************************************************************/ @@ -92,10 +88,6 @@ static int binfs_statfs(FAR struct inode *mountpt, static int binfs_stat(FAR struct inode *mountpt, FAR const char *relpath, FAR struct stat *buf); -/**************************************************************************** - * Private Data - ****************************************************************************/ - /**************************************************************************** * Public Data ****************************************************************************/ diff --git a/fs/driver/driver.h b/fs/driver/driver.h index 72ba7318a0d..9b7f59bdb79 100644 --- a/fs/driver/driver.h +++ b/fs/driver/driver.h @@ -47,10 +47,6 @@ #include "inode/inode.h" /**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - - /**************************************************************************** * Public Data ****************************************************************************/ diff --git a/fs/driver/fs_blockproxy.c b/fs/driver/fs_blockproxy.c index b01ecc2a88e..197b5534a57 100644 --- a/fs/driver/fs_blockproxy.c +++ b/fs/driver/fs_blockproxy.c @@ -58,18 +58,6 @@ #if !defined(CONFIG_DISABLE_PSEUDOFS_OPERATIONS) && \ !defined(CONFIG_DISABLE_MOUNTPOINT) -/**************************************************************************** - * Pre-processor oDefinitions - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Data ****************************************************************************/ diff --git a/fs/driver/fs_closeblockdriver.c b/fs/driver/fs_closeblockdriver.c index 99bbddfdda9..3280236af14 100644 --- a/fs/driver/fs_closeblockdriver.c +++ b/fs/driver/fs_closeblockdriver.c @@ -45,10 +45,6 @@ #include "inode/inode.h" -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/driver/fs_devsyslog.c b/fs/driver/fs_devsyslog.c index 70b21a2c082..b33129a9241 100644 --- a/fs/driver/fs_devsyslog.c +++ b/fs/driver/fs_devsyslog.c @@ -97,10 +97,6 @@ struct syslog_dev_s struct file sl_file; /* The syslog file structure */ }; -/**************************************************************************** - * Private Function Prototypes - ****************************************************************************/ - /**************************************************************************** * Private Data ****************************************************************************/ diff --git a/fs/driver/fs_findblockdriver.c b/fs/driver/fs_findblockdriver.c index ed5f240b0f1..86b2c65a158 100644 --- a/fs/driver/fs_findblockdriver.c +++ b/fs/driver/fs_findblockdriver.c @@ -49,10 +49,6 @@ #include "inode/inode.h" #include "driver/driver.h" -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/driver/fs_openblockdriver.c b/fs/driver/fs_openblockdriver.c index 21a3d516e49..28527515759 100644 --- a/fs/driver/fs_openblockdriver.c +++ b/fs/driver/fs_openblockdriver.c @@ -46,10 +46,6 @@ #include "inode/inode.h" #include "driver/driver.h" -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/driver/fs_registerblockdriver.c b/fs/driver/fs_registerblockdriver.c index 65493c900c0..69096190713 100644 --- a/fs/driver/fs_registerblockdriver.c +++ b/fs/driver/fs_registerblockdriver.c @@ -48,22 +48,6 @@ #ifndef CONFIG_DISABLE_MOUNTPOINT -/**************************************************************************** - * Pre-processor oDefinitions - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/driver/fs_registerdriver.c b/fs/driver/fs_registerdriver.c index 42c7acf4183..501bf93f662 100644 --- a/fs/driver/fs_registerdriver.c +++ b/fs/driver/fs_registerdriver.c @@ -46,22 +46,6 @@ #include "inode/inode.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/driver/fs_unregisterblockdriver.c b/fs/driver/fs_unregisterblockdriver.c index b4b775cdf04..23470e9ba31 100644 --- a/fs/driver/fs_unregisterblockdriver.c +++ b/fs/driver/fs_unregisterblockdriver.c @@ -43,26 +43,6 @@ #include "inode/inode.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/driver/fs_unregisterdriver.c b/fs/driver/fs_unregisterdriver.c index b8dec302ed0..242553a3663 100644 --- a/fs/driver/fs_unregisterdriver.c +++ b/fs/driver/fs_unregisterdriver.c @@ -43,26 +43,6 @@ #include "inode/inode.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/fat/fs_fat32.c b/fs/fat/fs_fat32.c index 7fddec4d032..c9cf80be6e9 100644 --- a/fs/fat/fs_fat32.c +++ b/fs/fat/fs_fat32.c @@ -67,14 +67,6 @@ #include "inode/inode.h" #include "fs_fat32.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - /**************************************************************************** * Private Function Prototypes ****************************************************************************/ @@ -117,10 +109,6 @@ static int fat_rename(FAR struct inode *mountpt, static int fat_stat(struct inode *mountpt, const char *relpath, FAR struct stat *buf); -/**************************************************************************** - * Private Data - ****************************************************************************/ - /**************************************************************************** * Public Data ****************************************************************************/ diff --git a/fs/fat/fs_fat32dirent.c b/fs/fat/fs_fat32dirent.c index 98a37e31988..7ea497b62a1 100644 --- a/fs/fat/fs_fat32dirent.c +++ b/fs/fat/fs_fat32dirent.c @@ -86,10 +86,6 @@ #include "inode/inode.h" #include "fs_fat32.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - /**************************************************************************** * Private Types ****************************************************************************/ @@ -155,14 +151,6 @@ static int fat_putsfdirentry(struct fat_mountpt_s *fs, struct fat_dirinfo_s *dirinfo, uint8_t attributes, uint32_t fattime); -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/fat/fs_fat32util.c b/fs/fat/fs_fat32util.c index 604b9ca07b3..84f3b8eae71 100644 --- a/fs/fat/fs_fat32util.c +++ b/fs/fat/fs_fat32util.c @@ -63,26 +63,6 @@ #include "inode/inode.h" #include "fs_fat32.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Function Prototypes - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/fat/fs_mkfatfs.h b/fs/fat/fs_mkfatfs.h index 1e1fc05e158..ce170296c64 100644 --- a/fs/fat/fs_mkfatfs.h +++ b/fs/fat/fs_mkfatfs.h @@ -109,10 +109,6 @@ struct fat_var_s const uint8_t *fv_bootcode; /* Points to boot code to put into MBR */ }; -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Public Function Prototypes ****************************************************************************/ diff --git a/fs/fs_initialize.c b/fs/fs_initialize.c index eceb3c5c209..8d37c069324 100644 --- a/fs/fs_initialize.c +++ b/fs/fs_initialize.c @@ -42,26 +42,6 @@ #include "inode/inode.h" #include "aio/aio.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/hostfs/hostfs.c b/fs/hostfs/hostfs.c index f3701273e45..ee57d8295f5 100644 --- a/fs/hostfs/hostfs.c +++ b/fs/hostfs/hostfs.c @@ -61,14 +61,6 @@ #include "hostfs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - /**************************************************************************** * Private Function Prototypes ****************************************************************************/ diff --git a/fs/hostfs/hostfs.h b/fs/hostfs/hostfs.h index 17227611a10..bf501332f98 100644 --- a/fs/hostfs/hostfs.h +++ b/fs/hostfs/hostfs.h @@ -91,10 +91,6 @@ struct hostfs_mountpt_s char fs_root[HOSTFS_MAX_PATH]; }; -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Internal function prototypes ****************************************************************************/ diff --git a/fs/inode/fs_inodeaddref.c b/fs/inode/fs_inodeaddref.c index b34a32c9f8a..f02661a2b6e 100644 --- a/fs/inode/fs_inodeaddref.c +++ b/fs/inode/fs_inodeaddref.c @@ -43,22 +43,6 @@ #include #include "inode/inode.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/inode/fs_inodefind.c b/fs/inode/fs_inodefind.c index 533e2ef2222..3ff249d348d 100644 --- a/fs/inode/fs_inodefind.c +++ b/fs/inode/fs_inodefind.c @@ -44,22 +44,6 @@ #include "inode/inode.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/inode/fs_inoderelease.c b/fs/inode/fs_inoderelease.c index 97eadfaac0e..d8e535f3bf1 100644 --- a/fs/inode/fs_inoderelease.c +++ b/fs/inode/fs_inoderelease.c @@ -46,22 +46,6 @@ #include "inode/inode.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/inode/fs_inoderemove.c b/fs/inode/fs_inoderemove.c index e0b12299c02..8f454f1d584 100644 --- a/fs/inode/fs_inoderemove.c +++ b/fs/inode/fs_inoderemove.c @@ -46,22 +46,6 @@ #include "inode/inode.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/inode/fs_inodereserve.c b/fs/inode/fs_inodereserve.c index 9bf601e0c0a..d790689de97 100644 --- a/fs/inode/fs_inodereserve.c +++ b/fs/inode/fs_inodereserve.c @@ -47,18 +47,6 @@ #include "inode/inode.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/inode/inode.h b/fs/inode/inode.h index 3437c3858bc..089bf672344 100644 --- a/fs/inode/inode.h +++ b/fs/inode/inode.h @@ -128,6 +128,7 @@ EXTERN FAR struct inode *g_root_inode; /**************************************************************************** * Public Function Prototypes ****************************************************************************/ + /* fs_inode.c ***************************************************************/ /**************************************************************************** * Name: inode_initialize diff --git a/fs/mmap/fs_rammap.h b/fs/mmap/fs_rammap.h index d4a7b05a379..d39862dd68e 100644 --- a/fs/mmap/fs_rammap.h +++ b/fs/mmap/fs_rammap.h @@ -49,10 +49,6 @@ #ifdef CONFIG_FS_RAMMAP -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - /**************************************************************************** * Public Types ****************************************************************************/ diff --git a/fs/mount/fs_automount.c b/fs/mount/fs_automount.c index e961fb5db8a..e0fea078812 100644 --- a/fs/mount/fs_automount.c +++ b/fs/mount/fs_automount.c @@ -102,14 +102,6 @@ static void automount_worker(FAR void *arg); static int automount_interrupt(FAR const struct automount_lower_s *lower, FAR void *arg, bool inserted); -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/mount/fs_mount.c b/fs/mount/fs_mount.c index abf7b9446e1..1fd2864c351 100644 --- a/fs/mount/fs_mount.c +++ b/fs/mount/fs_mount.c @@ -166,10 +166,6 @@ static const struct fsmap_t g_nonbdfsmap[] = }; #endif /* NONBDFS_SUPPORT */ -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/mount/fs_umount2.c b/fs/mount/fs_umount2.c index a60dfc2a09a..e9154a49960 100644 --- a/fs/mount/fs_umount2.c +++ b/fs/mount/fs_umount2.c @@ -47,26 +47,6 @@ #include "inode/inode.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/mqueue/mqueue.h b/fs/mqueue/mqueue.h index 4392412ddff..4edc08ece18 100644 --- a/fs/mqueue/mqueue.h +++ b/fs/mqueue/mqueue.h @@ -55,10 +55,6 @@ #define MAX_MQUEUE_PATH 64 -/**************************************************************************** - * Public Type Declarations - ****************************************************************************/ - /**************************************************************************** * Public Data ****************************************************************************/ diff --git a/fs/nfs/nfs.h b/fs/nfs/nfs.h index edcfb676cea..f0db29389cf 100644 --- a/fs/nfs/nfs.h +++ b/fs/nfs/nfs.h @@ -104,10 +104,6 @@ struct nfsstats uint64_t rpccnt[NFS_NPROCS]; }; -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Public Function Prototypes ****************************************************************************/ diff --git a/fs/nfs/nfs_util.c b/fs/nfs/nfs_util.c index eb339cee697..6e5d8e45263 100644 --- a/fs/nfs/nfs_util.c +++ b/fs/nfs/nfs_util.c @@ -60,22 +60,6 @@ #include "nfs_node.h" #include "xdr_subs.h" -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Function Prototypes - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ @@ -131,6 +115,7 @@ static inline int nfs_pathsegment(FAR const char **path, FAR char *buffer, } } } + /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/nfs/nfs_vfsops.c b/fs/nfs/nfs_vfsops.c index 934cea664bf..6d71a044572 100644 --- a/fs/nfs/nfs_vfsops.c +++ b/fs/nfs/nfs_vfsops.c @@ -115,10 +115,6 @@ uint32_t nfs_xdrneg1; struct nfsstats nfsstats; #endif -/**************************************************************************** - * Private Type Definitions - ****************************************************************************/ - /**************************************************************************** * Private Function Prototypes ****************************************************************************/ @@ -189,10 +185,6 @@ const struct mountpt_operations nfs_operations = nfs_stat /* stat */ }; -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/nfs/rpc_clnt.c b/fs/nfs/rpc_clnt.c index 030d9bafb29..0af2b470c73 100644 --- a/fs/nfs/rpc_clnt.c +++ b/fs/nfs/rpc_clnt.c @@ -107,10 +107,6 @@ # define rpc_statistics(n) #endif -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Data ****************************************************************************/ diff --git a/fs/nxffs/nxffs_block.c b/fs/nxffs/nxffs_block.c index 8dd6a47ee8d..490f3025378 100644 --- a/fs/nxffs/nxffs_block.c +++ b/fs/nxffs/nxffs_block.c @@ -50,22 +50,6 @@ #include "nxffs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Public Types - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/nxffs/nxffs_blockstats.c b/fs/nxffs/nxffs_blockstats.c index 4ff1bd8b3a1..797cae2d4cd 100644 --- a/fs/nxffs/nxffs_blockstats.c +++ b/fs/nxffs/nxffs_blockstats.c @@ -49,22 +49,6 @@ #include "nxffs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/nxffs/nxffs_dirent.c b/fs/nxffs/nxffs_dirent.c index 34d8654bf58..39150b9369d 100644 --- a/fs/nxffs/nxffs_dirent.c +++ b/fs/nxffs/nxffs_dirent.c @@ -53,22 +53,6 @@ #include "nxffs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Public Types - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/nxffs/nxffs_initialize.c b/fs/nxffs/nxffs_initialize.c index b453b38b9b0..5701d316379 100644 --- a/fs/nxffs/nxffs_initialize.c +++ b/fs/nxffs/nxffs_initialize.c @@ -53,18 +53,6 @@ #include "nxffs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Function Prototypes - ****************************************************************************/ - /**************************************************************************** * Private Data ****************************************************************************/ @@ -139,10 +127,6 @@ const uint8_t g_datamagic[NXFFS_MAGICSIZE] = struct nxffs_volume_s g_volume; #endif -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/nxffs/nxffs_inode.c b/fs/nxffs/nxffs_inode.c index 63ba8cbb466..bf4c7f59570 100644 --- a/fs/nxffs/nxffs_inode.c +++ b/fs/nxffs/nxffs_inode.c @@ -52,18 +52,6 @@ #include "nxffs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Public Types - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/nxffs/nxffs_ioctl.c b/fs/nxffs/nxffs_ioctl.c index ec2cd041de8..da0752320a3 100644 --- a/fs/nxffs/nxffs_ioctl.c +++ b/fs/nxffs/nxffs_ioctl.c @@ -52,22 +52,6 @@ #include "nxffs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Public Types - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/nxffs/nxffs_open.c b/fs/nxffs/nxffs_open.c index f665623a063..2ac1249e06a 100644 --- a/fs/nxffs/nxffs_open.c +++ b/fs/nxffs/nxffs_open.c @@ -55,14 +55,6 @@ #include "nxffs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - /**************************************************************************** * Private Data ****************************************************************************/ @@ -75,10 +67,6 @@ static struct nxffs_wrfile_s g_wrfile; #endif -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/nxffs/nxffs_pack.c b/fs/nxffs/nxffs_pack.c index 14c9e8d8f1e..0e816b359d2 100644 --- a/fs/nxffs/nxffs_pack.c +++ b/fs/nxffs/nxffs_pack.c @@ -88,10 +88,6 @@ struct nxffs_pack_s uint16_t iooffset; /* I/O block offset */ }; -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/nxffs/nxffs_read.c b/fs/nxffs/nxffs_read.c index 6bd09374f91..c327013d829 100644 --- a/fs/nxffs/nxffs_read.c +++ b/fs/nxffs/nxffs_read.c @@ -53,18 +53,6 @@ #include "nxffs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Public Types - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/nxffs/nxffs_reformat.c b/fs/nxffs/nxffs_reformat.c index ba151f4cc9c..cf2639a0478 100644 --- a/fs/nxffs/nxffs_reformat.c +++ b/fs/nxffs/nxffs_reformat.c @@ -49,18 +49,6 @@ #include "nxffs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/nxffs/nxffs_stat.c b/fs/nxffs/nxffs_stat.c index f4a16a2117a..b1dbdcbaf9b 100644 --- a/fs/nxffs/nxffs_stat.c +++ b/fs/nxffs/nxffs_stat.c @@ -54,22 +54,6 @@ #include "nxffs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Public Types - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/nxffs/nxffs_unlink.c b/fs/nxffs/nxffs_unlink.c index 8422616057d..bc42b5a3174 100644 --- a/fs/nxffs/nxffs_unlink.c +++ b/fs/nxffs/nxffs_unlink.c @@ -51,22 +51,6 @@ #include "nxffs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Public Types - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/nxffs/nxffs_util.c b/fs/nxffs/nxffs_util.c index 52354d33f94..ac51140fa35 100644 --- a/fs/nxffs/nxffs_util.c +++ b/fs/nxffs/nxffs_util.c @@ -45,22 +45,6 @@ #include "nxffs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Public Types - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/nxffs/nxffs_write.c b/fs/nxffs/nxffs_write.c index 561fb58bea0..423c61c9f6e 100644 --- a/fs/nxffs/nxffs_write.c +++ b/fs/nxffs/nxffs_write.c @@ -53,22 +53,6 @@ #include "nxffs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Public Types - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/procfs/fs_procfscpuload.c b/fs/procfs/fs_procfscpuload.c index f33986d7160..2f54ab841fe 100644 --- a/fs/procfs/fs_procfscpuload.c +++ b/fs/procfs/fs_procfscpuload.c @@ -99,10 +99,6 @@ static int cpuload_dup(FAR const struct file *oldp, FAR struct file *newp); static int cpuload_stat(FAR const char *relpath, FAR struct stat *buf); -/**************************************************************************** - * Private Data - ****************************************************************************/ - /**************************************************************************** * Public Data ****************************************************************************/ diff --git a/fs/procfs/fs_procfsuptime.c b/fs/procfs/fs_procfsuptime.c index 3e725c1473f..a1b9b070da7 100644 --- a/fs/procfs/fs_procfsuptime.c +++ b/fs/procfs/fs_procfsuptime.c @@ -101,10 +101,6 @@ static int uptime_dup(FAR const struct file *oldp, static int uptime_stat(FAR const char *relpath, FAR struct stat *buf); -/**************************************************************************** - * Private Data - ****************************************************************************/ - /**************************************************************************** * Public Data ****************************************************************************/ diff --git a/fs/procfs/fs_procfsutil.c b/fs/procfs/fs_procfsutil.c index ea483e18045..7a71ff18540 100644 --- a/fs/procfs/fs_procfsutil.c +++ b/fs/procfs/fs_procfsutil.c @@ -58,22 +58,6 @@ # define MAX(a,b) ((a > b) ? a : b) #endif -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/romfs/fs_romfs.c b/fs/romfs/fs_romfs.c index 84c786671c1..804fbb7ed46 100644 --- a/fs/romfs/fs_romfs.c +++ b/fs/romfs/fs_romfs.c @@ -63,10 +63,6 @@ #include "fs_romfs.h" -/**************************************************************************** - * Private Types - ****************************************************************************/ - /**************************************************************************** * Private Function Prototypes ****************************************************************************/ @@ -100,10 +96,6 @@ static int romfs_statfs(FAR struct inode *mountpt, static int romfs_stat(FAR struct inode *mountpt, FAR const char *relpath, FAR struct stat *buf); -/**************************************************************************** - * Private Data - ****************************************************************************/ - /**************************************************************************** * Public Data ****************************************************************************/ diff --git a/fs/romfs/fs_romfsutil.c b/fs/romfs/fs_romfsutil.c index 9e19b7a4473..ade749ffcb5 100644 --- a/fs/romfs/fs_romfsutil.c +++ b/fs/romfs/fs_romfsutil.c @@ -57,22 +57,6 @@ #include "fs_romfs.h" -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Function Prototypes - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/fs/semaphore/sem_close.c b/fs/semaphore/sem_close.c index 3576cba2157..61763d3bb99 100644 --- a/fs/semaphore/sem_close.c +++ b/fs/semaphore/sem_close.c @@ -51,26 +51,6 @@ #ifdef CONFIG_FS_NAMED_SEMAPHORES -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Type Declarations - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -150,3 +130,4 @@ int sem_close(FAR sem_t *sem) } #endif /* CONFIG_FS_NAMED_SEMAPHORES */ + diff --git a/fs/semaphore/sem_open.c b/fs/semaphore/sem_open.c index 6b3d6e0d3e4..8e42cb47175 100644 --- a/fs/semaphore/sem_open.c +++ b/fs/semaphore/sem_open.c @@ -57,26 +57,6 @@ #ifdef CONFIG_FS_NAMED_SEMAPHORES -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Type Declarations - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -272,4 +252,4 @@ errout_with_lock: return (FAR sem_t *)ERROR; } -#endif /* CONFIG_FS_NAMED_SEMAPHORES */ \ No newline at end of file +#endif /* CONFIG_FS_NAMED_SEMAPHORES */ diff --git a/fs/semaphore/sem_unlink.c b/fs/semaphore/sem_unlink.c index 636c7930853..19f758f0935 100644 --- a/fs/semaphore/sem_unlink.c +++ b/fs/semaphore/sem_unlink.c @@ -51,26 +51,6 @@ #include "inode/inode.h" #include "semaphore/semaphore.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Type Declarations - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/semaphore/semaphore.h b/fs/semaphore/semaphore.h index 5ef28b3aac0..6a1784b335b 100644 --- a/fs/semaphore/semaphore.h +++ b/fs/semaphore/semaphore.h @@ -48,10 +48,6 @@ #define MAX_SEMPATH 64 -/**************************************************************************** - * Public Type Declarations - ****************************************************************************/ - /**************************************************************************** * Public Data ****************************************************************************/ diff --git a/fs/smartfs/smartfs_smart.c b/fs/smartfs/smartfs_smart.c index 122d6dca874..df65d2bdd04 100644 --- a/fs/smartfs/smartfs_smart.c +++ b/fs/smartfs/smartfs_smart.c @@ -62,14 +62,6 @@ #include "smartfs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - /**************************************************************************** * Private Function Prototypes ****************************************************************************/ diff --git a/fs/smartfs/smartfs_utils.c b/fs/smartfs/smartfs_utils.c index dba35882bcc..4970c51d8fb 100644 --- a/fs/smartfs/smartfs_utils.c +++ b/fs/smartfs/smartfs_utils.c @@ -56,18 +56,6 @@ #include "smartfs.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - -/**************************************************************************** - * Private Function Prototypes - ****************************************************************************/ - /**************************************************************************** * Private Data ****************************************************************************/ @@ -77,14 +65,6 @@ static struct smartfs_mountpt_s *g_mounthead = NULL; #endif -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/tmpfs/fs_tmpfs.c b/fs/tmpfs/fs_tmpfs.c index 529cdd5ee71..09aa6bec704 100644 --- a/fs/tmpfs/fs_tmpfs.c +++ b/fs/tmpfs/fs_tmpfs.c @@ -80,10 +80,6 @@ #define tmpfs_unlock_directory(tdo) \ (tmpfs_unlock_object((FAR struct tmpfs_object_s *)tdo)) -/**************************************************************************** - * Private Types - ****************************************************************************/ - /**************************************************************************** * Private Function Prototypes ****************************************************************************/ diff --git a/fs/unionfs/fs_unionfs.c b/fs/unionfs/fs_unionfs.c index 491d71f74a7..3ebc6d2fdb0 100644 --- a/fs/unionfs/fs_unionfs.c +++ b/fs/unionfs/fs_unionfs.c @@ -195,10 +195,6 @@ static int unionfs_stat(FAR struct inode *mountpt, static int unionfs_getmount(FAR const char *path, FAR struct inode **inode); -/**************************************************************************** - * Private Data - ****************************************************************************/ - /**************************************************************************** * Public Data ****************************************************************************/ diff --git a/fs/vfs/fs_fsync.c b/fs/vfs/fs_fsync.c index 167daafa217..a2d58825eb4 100644 --- a/fs/vfs/fs_fsync.c +++ b/fs/vfs/fs_fsync.c @@ -51,22 +51,6 @@ #ifndef CONFIG_DISABLE_MOUNTPOINT -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/vfs/fs_mkdir.c b/fs/vfs/fs_mkdir.c index 886b4114a11..57b0d1be088 100644 --- a/fs/vfs/fs_mkdir.c +++ b/fs/vfs/fs_mkdir.c @@ -67,18 +67,6 @@ #ifdef FS_HAVE_MKDIR -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/vfs/fs_rename.c b/fs/vfs/fs_rename.c index 785898f2536..a23d7769d4b 100644 --- a/fs/vfs/fs_rename.c +++ b/fs/vfs/fs_rename.c @@ -67,18 +67,6 @@ #ifdef FS_HAVE_RENAME -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/vfs/fs_rmdir.c b/fs/vfs/fs_rmdir.c index ba46b25ee94..ecef33558e3 100644 --- a/fs/vfs/fs_rmdir.c +++ b/fs/vfs/fs_rmdir.c @@ -67,18 +67,6 @@ #ifdef FS_HAVE_RMDIR -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/vfs/fs_sendfile.c b/fs/vfs/fs_sendfile.c index cf05b888687..c1a4703601b 100644 --- a/fs/vfs/fs_sendfile.c +++ b/fs/vfs/fs_sendfile.c @@ -51,22 +51,6 @@ #if CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NET_SENDFILE -/**************************************************************************** - * Private types - ****************************************************************************/ - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/fs/vfs/fs_unlink.c b/fs/vfs/fs_unlink.c index 4c884c421bf..9de8ea2f2f7 100644 --- a/fs/vfs/fs_unlink.c +++ b/fs/vfs/fs_unlink.c @@ -67,18 +67,6 @@ #ifdef FS_HAVE_UNLINK -/**************************************************************************** - * Private Data - ****************************************************************************/ - -/**************************************************************************** - * Public Data - ****************************************************************************/ - -/**************************************************************************** - * Private Functions - ****************************************************************************/ - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/libc/netdb/lib_gethostbynamer.c b/libc/netdb/lib_gethostbynamer.c index 80109dfe779..86d46d2054e 100644 --- a/libc/netdb/lib_gethostbynamer.c +++ b/libc/netdb/lib_gethostbynamer.c @@ -58,10 +58,6 @@ #ifdef CONFIG_LIBC_NETDB -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - /**************************************************************************** * Private Type Definitions ****************************************************************************/ diff --git a/libc/queue/sq_rem.c b/libc/queue/sq_rem.c index dd513908591..02325db3d3f 100644 --- a/libc/queue/sq_rem.c +++ b/libc/queue/sq_rem.c @@ -66,9 +66,10 @@ void sq_rem(FAR sq_entry_t *node, sq_queue_t *queue) else { FAR sq_entry_t *prev; + for (prev = (FAR sq_entry_t *)queue->head; - prev && prev->flink != node; - prev = prev->flink); + prev && prev->flink != node; + prev = prev->flink); if (prev) {