Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs: Fix mtd/sector512.c:554:19: error: incomplete definition of type … #153

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/sensors/adxl362_uorb.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#include <debug.h>
#include <stdio.h>
#include <string.h>

#include <sys/param.h>

#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>
#include <nuttx/kthread.h>
#include <nuttx/signal.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/sensors/adxl372.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <debug.h>
#include <string.h>

#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>
#include <nuttx/mutex.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensors/adxl372_uorb.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#include <debug.h>
#include <stdio.h>
#include <string.h>

#include <sys/param.h>

#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>
#include <nuttx/kthread.h>
#include <nuttx/signal.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/sensors/bmg160.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <debug.h>
#include <string.h>

#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>
#include <nuttx/wqueue.h>
#include <nuttx/fs/fs.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/sensors/bmi270_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <errno.h>
#include <debug.h>

#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>
#include <nuttx/sensors/bmi270.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/sensors/bmm150_uorb.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <stdio.h>
#include <sys/param.h>

#include <nuttx/arch.h>
#include <nuttx/mutex.h>
#include <nuttx/signal.h>
#include <nuttx/kthread.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/sensors/l3gd20_uorb.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <string.h>
#include <math.h>

#include <nuttx/arch.h>
#include <nuttx/nuttx.h>
#include <nuttx/kmalloc.h>
#include <nuttx/wqueue.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/sensors/lis3dh.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <debug.h>
#include <string.h>

#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>
#include <nuttx/wqueue.h>
#include <nuttx/random.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/sensors/lis3dsh.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <debug.h>
#include <string.h>

#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>
#include <nuttx/wqueue.h>
#include <nuttx/random.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/sensors/lis3mdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <debug.h>
#include <string.h>

#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>
#include <nuttx/wqueue.h>
#include <nuttx/random.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/sensors/lsm330_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <debug.h>
#include <string.h>

#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>
#include <nuttx/mutex.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/sensors/mlx90393.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <debug.h>
#include <string.h>

#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>
#include <nuttx/wqueue.h>
#include <nuttx/fs/fs.h>
Expand Down
2 changes: 2 additions & 0 deletions drivers/sensors/msa301.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>

#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>
#include <nuttx/signal.h>
#include <nuttx/mutex.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/sensors/t67xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <string.h>
#include <time.h>

#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>
#include <nuttx/i2c/i2c_master.h>
Expand Down
3 changes: 2 additions & 1 deletion drivers/video/max7456.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@
#include <debug.h>
#include <string.h>
#include <limits.h>
#include <nuttx/mutex.h>

#include <nuttx/arch.h>
#include <nuttx/bits.h>
#include <nuttx/compiler.h>
#include <nuttx/kmalloc.h>
#include <nuttx/mutex.h>
#include <nuttx/spi/spi.h>
#include <nuttx/fs/fs.h>
#include <nuttx/video/max7456.h>
Expand Down
28 changes: 1 addition & 27 deletions include/nuttx/fs/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <nuttx/config.h>

#include <nuttx/compiler.h>
#include <nuttx/fs/ioctl.h>
#include <nuttx/fs/uio.h>

#include <sys/uio.h>
Expand Down Expand Up @@ -251,33 +252,6 @@ struct file_operations
/* This structure provides information about the state of a block driver */

#ifndef CONFIG_DISABLE_MOUNTPOINT
struct geometry
{
bool geo_available; /* true: The device is available */
bool geo_mediachanged; /* true: The media has changed since last query */
bool geo_writeenabled; /* true: It is okay to write to this device */
blkcnt_t geo_nsectors; /* Number of sectors on the device */
blksize_t geo_sectorsize; /* Size of one sector */

/* NULL-terminated string representing the device model */

char geo_model[NAME_MAX + 1];
};

struct partition_info_s
{
size_t numsectors; /* Number of sectors in the partition */
size_t sectorsize; /* Size in bytes of a single sector */
off_t startsector; /* Offset to the first section/block of the
* managed sub-region */

/* NULL-terminated string representing the name of the parent node of the
* partition.
*/

char parent[NAME_MAX + 1];
};

/* This structure is provided by block devices when they register with the
* system. It is used by file systems to perform filesystem transfers. It
* differs from the normal driver vtable in several ways -- most notably in
Expand Down
29 changes: 29 additions & 0 deletions include/nuttx/fs/ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
****************************************************************************/

#include <nuttx/config.h>

#include <stdbool.h>
#include <sys/types.h>

/****************************************************************************
Expand Down Expand Up @@ -764,6 +766,33 @@
* Public Type Definitions
****************************************************************************/

struct geometry
{
bool geo_available; /* true: The device is available */
bool geo_mediachanged; /* true: The media has changed since last query */
bool geo_writeenabled; /* true: It is okay to write to this device */
blkcnt_t geo_nsectors; /* Number of sectors on the device */
blksize_t geo_sectorsize; /* Size of one sector */

/* NULL-terminated string representing the device model */

char geo_model[NAME_MAX + 1];
};

struct partition_info_s
{
size_t numsectors; /* Number of sectors in the partition */
size_t sectorsize; /* Size in bytes of a single sector */
off_t startsector; /* Offset to the first section/block of the
* managed sub-region */

/* NULL-terminated string representing the name of the parent node of the
* partition.
*/

char parent[NAME_MAX + 1];
};

struct pipe_peek_s
{
FAR void *buf;
Expand Down
10 changes: 5 additions & 5 deletions include/nuttx/streams.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
#include <nuttx/compiler.h>

#ifdef CONFIG_LIBC_LZF
#include <lzf.h>
# include <lzf.h>
#endif
#include <stdio.h>
#ifndef CONFIG_DISABLE_MOUNTPOINT
#include <nuttx/fs/fs.h>
#ifdef CONFIG_MTD
#include <nuttx/mtd/mtd.h>
#endif
# include <nuttx/fs/fs.h>
# ifdef CONFIG_MTD
# include <nuttx/mtd/mtd.h>
# endif
#endif

/****************************************************************************
Expand Down
Loading