summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2022-06-17 09:13:50 -0400
committerTom Rini <[email protected]>2022-06-17 09:13:50 -0400
commitee4b80a6e276c433f1c59669b7fec47d6146ceaf (patch)
treead1b79d1af1e6595910bbce43e56b8e30bbf44f9 /include
parent9abfbef57f55f31e42940ac2a18ebccfb087e5c6 (diff)
parent3c07d639ede998cb682c284d1ffc4a3ddb062e13 (diff)
Merge branch '2022-06-16-assorted-bugfixes'
- A wide array of regression fixes and minor updates
Diffstat (limited to 'include')
-rw-r--r--include/configs/odroid_xu3.h1
-rw-r--r--include/fs.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/include/configs/odroid_xu3.h b/include/configs/odroid_xu3.h
index eb35d7b4ae2..360815bc03e 100644
--- a/include/configs/odroid_xu3.h
+++ b/include/configs/odroid_xu3.h
@@ -86,6 +86,7 @@
"rootfstype=ext4\0" \
"console=console=ttySAC2,115200n8\0" \
"fdtfile=exynos5422-odroidxu3.dtb\0" \
+ "board=odroid\0" \
"board_name=odroidxu3\0" \
"mmcbootdev=0\0" \
"mmcrootdev=0\0" \
diff --git a/include/fs.h b/include/fs.h
index b43f16a692f..2195dc172ec 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -174,6 +174,8 @@ int fs_write(const char *filename, ulong addr, loff_t offset, loff_t len,
#define FS_DT_REG 8 /* regular file */
#define FS_DT_LNK 10 /* symbolic link */
+#define FS_DIRENT_NAME_LEN 256
+
/**
* struct fs_dirent - directory entry
*
@@ -194,7 +196,7 @@ struct fs_dirent {
/** change_time: time of last modification */
struct rtc_time change_time;
/** name: file name */
- char name[256];
+ char name[FS_DIRENT_NAME_LEN];
};
/* Note: fs_dir_stream should be treated as opaque to the user of fs layer */