DingDing
3e4797c63c
[stm32][pandora] fix the static conflict error in ROMFS
...
#### 为什么提交这份PR (why to submit this PR)
原版编译报错:Static declaration of 'romfs_root' follows non-static declaration in dfs_romfs.h
原因为:在`board/ports/drv_filesystem.c`71行用`static`定义了常量`romfs_root`,而在`rt-thread/components/dfs/dfs_v1/filesystems/romfs/dfs_romfs.h`29行,有它的外部引用:
```
extern const struct romfs_dirent romfs_root;
```
Original compilation error: Static declaration of 'romfs_ root' follows non-static declaration in dfs_romfs. h
The reason is: in 'board/ports/drv_filesystem.c' line 71 use `static` define `romfs_root`, while in `rt-thread/components/dfs/dfs_v1/filesystems/romfs/dfs_romfs.h` line 29, with its external reference:
```
extern const struct romfs_dirent romfs_root;
```
#### 你的解决方案是什么 (what is your solution)
在`drv_filesystem.c`中,不可以用static修饰这个常量,故去掉`static`关键字。
In `board/ports/drv_filesystem.c`, it is not allowed to define this constant with static, so the `static` keyword must be removed.
#### 在什么测试环境下测试通过 (what is the test environment)
正点原子潘多拉开发板
stm32l475-atk-pandora
2023-06-20 00:22:52 -04:00
..
2023-05-04 22:11:33 +08:00
2023-05-11 21:24:05 -04:00
2023-05-12 22:50:21 +08:00
2023-04-22 19:18:44 +01:00
2023-05-15 09:03:04 -04:00
2023-04-16 22:37:16 -04:00
2023-05-08 23:35:27 -04:00
2023-03-31 16:49:48 +08:00
2023-05-06 10:49:39 +08:00
2023-03-31 17:51:00 +08:00
2023-03-31 16:49:48 +08:00
2023-05-08 23:35:27 -04:00
2023-01-12 22:47:23 -05:00
2023-04-18 09:49:53 +08:00
2023-03-31 16:49:48 +08:00
2023-06-08 23:39:52 +08:00
2023-04-24 00:47:02 -04:00
2023-04-06 00:19:23 -04:00
2023-03-31 16:49:48 +08:00
2023-04-04 09:06:27 -04:00
2023-03-20 00:06:16 -04:00
2023-04-06 23:42:05 -04:00
2023-06-08 02:13:01 -04:00
2023-05-08 23:35:27 -04:00
2023-03-31 16:49:48 +08:00
2023-05-08 23:35:27 -04:00
2023-03-31 16:49:48 +08:00
2023-06-15 09:25:17 -04:00
2023-06-06 21:06:43 -04:00
2023-05-08 23:35:27 -04:00
2023-05-08 23:35:27 -04:00
2023-05-08 23:35:27 -04:00
2023-05-08 23:35:27 -04:00
2023-05-08 23:35:27 -04:00
2023-05-08 23:35:27 -04:00
2023-04-24 00:47:02 -04:00
2023-05-08 23:35:27 -04:00
2023-05-08 23:35:27 -04:00
2023-05-08 23:35:27 -04:00
2023-04-24 00:47:02 -04:00
2023-06-16 20:14:05 -04:00
2023-05-08 23:35:27 -04:00
2023-04-27 00:02:16 -04:00
2023-03-31 16:49:48 +08:00
2023-06-19 23:21:51 -04:00
2023-05-27 02:31:49 -04:00
2023-03-31 16:49:48 +08:00
2023-06-14 08:49:33 -04:00
2023-06-14 08:48:07 -04:00
2023-06-14 08:48:29 -04:00
2023-05-29 02:00:34 -04:00
2023-06-16 20:14:05 -04:00
2023-03-31 16:49:48 +08:00
2023-06-16 19:28:53 -04:00
2023-05-25 23:55:13 +08:00
2023-05-25 23:55:13 +08:00
2023-06-06 00:02:54 -04:00
2023-04-16 22:37:16 -04:00
2023-03-31 16:49:48 +08:00
2023-05-25 23:55:13 +08:00
2023-05-25 23:55:13 +08:00
2023-05-25 23:55:13 +08:00
2023-05-08 23:35:27 -04:00
2023-04-24 00:47:02 -04:00
2023-02-07 21:43:57 -05:00
2023-05-08 23:35:27 -04:00
2023-01-12 22:47:23 -05:00
2023-05-18 10:42:44 -04:00
2023-03-31 16:49:48 +08:00
2023-03-23 01:55:21 -04:00
2023-03-31 16:49:48 +08:00
2023-05-29 02:00:34 -04:00
2023-05-08 23:35:27 -04:00
2023-05-08 23:35:27 -04:00
2023-05-08 23:35:27 -04:00
2023-04-18 09:18:56 -04:00
2023-05-08 23:35:27 -04:00
2023-05-08 23:35:27 -04:00
2023-02-07 21:43:57 -05:00
2023-05-08 23:35:27 -04:00
2023-05-08 23:35:27 -04:00
2023-06-18 22:36:53 -04:00
2023-04-22 19:22:19 +01:00
2023-05-11 10:25:21 +08:00
2023-02-07 21:43:57 -05:00
2023-04-18 09:18:56 -04:00
2023-06-12 19:52:11 +08:00
2023-03-31 16:49:48 +08:00
2023-05-12 12:03:26 +08:00
2023-06-05 22:03:16 -04:00
2023-06-12 21:40:42 -04:00
2023-01-12 22:47:23 -05:00
2023-06-11 21:41:37 -04:00
2023-05-08 23:35:27 -04:00
2023-03-20 00:06:16 -04:00
2023-06-15 09:24:45 -04:00
2023-03-20 00:06:16 -04:00
2023-01-12 22:47:23 -05:00
2023-06-10 12:32:34 +08:00
2023-05-08 23:35:27 -04:00
2023-03-31 16:49:48 +08:00
2023-06-20 00:22:52 -04:00
2023-03-31 16:49:48 +08:00
2023-05-08 23:35:27 -04:00
2023-05-08 23:35:27 -04:00
2023-04-04 09:06:27 -04:00
2023-03-31 16:49:48 +08:00
2023-05-08 23:35:27 -04:00
2023-05-08 23:35:27 -04:00
2023-03-31 23:57:17 -04:00
2023-03-31 23:57:17 -04:00
2023-01-12 22:47:23 -05:00
2023-02-07 21:43:57 -05:00
2023-04-17 22:26:23 -04:00
2023-05-08 23:35:27 -04:00
2023-06-17 22:02:49 -04:00
2023-01-12 22:47:23 -05:00
2023-03-31 16:49:48 +08:00
2023-05-25 23:55:13 +08:00
2023-05-23 16:07:16 +08:00
2023-05-08 23:35:27 -04:00
2023-03-19 23:16:12 +08:00