rt-thread-official/bsp/stm32/stm32l475-atk-pandora/board/ports
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
..
arduino [pandor]st77xx update demo 2023-06-10 19:00:25 -04:00
audio [l475][audio] 消除编译错误 2022-01-15 23:21:38 -05:00
easyflash [stm32] auto formatted 2021-03-14 15:33:55 +08:00
fal [gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM 2022-08-16 09:39:00 +08:00
lcd [RTduino][stm32][pandora] support Arduino libraries demos 2023-05-29 01:57:19 -04:00
wifi [stm32] auto formatted 2021-03-14 15:33:55 +08:00
wlan [stm32] auto formatted 2021-03-14 15:33:55 +08:00
SConscript [stm32l475] improve the structrue of sconscript 2021-10-24 16:21:21 -04:00
drv_filesystem.c [stm32][pandora] fix the static conflict error in ROMFS 2023-06-20 00:22:52 -04:00
drv_key.c miss typing 2021-04-17 20:43:44 +08:00
drv_qspi_flash.c [stm32][qspi] qspi attach 函数问题解决方案 (#6867) 2023-01-18 22:04:45 -05:00
drv_sdio_adapter.c [stm32] auto formatted 2021-03-14 15:33:55 +08:00
drv_sensors.c improve sensor framework (#6784) 2023-01-08 21:33:38 -05:00