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

[Bug] bsp/cvitek: see more build warnings #9920

Open
unicornx opened this issue Jan 16, 2025 · 0 comments · May be fixed by #9922
Open

[Bug] bsp/cvitek: see more build warnings #9920

unicornx opened this issue Jan 16, 2025 · 0 comments · May be fixed by #9922
Labels
BSP: Cvitek BSP related with cvitek

Comments

@unicornx
Copy link
Contributor

RT-Thread Version

master

Hardware Type/Architectures

bsp/cvitek

Develop Toolchain

Other

Describe the bug

Introduced by commit 6cbb2c3

when build c906_little:

CC build/board/cache.o
board/cache.c: In function 'rt_hw_cpu_dcache_ops':
board/cache.c:36:28: warning: passing argument 1 of 'flush_dcache_range' makes integer from pointer without a cast [-Wint-conversion]
   36 |         flush_dcache_range(addr, size);
      |                            ^~~~
      |                            |
      |                            void *
board/cache.c:27:42: note: expected 'uintptr_t' {aka 'long unsigned int'} but argument is of type 'void *'
   27 | inline void flush_dcache_range(uintptr_t start, size_t size) {
      |                                ~~~~~~~~~~^~~~~
board/cache.c:39:26: warning: passing argument 1 of 'inv_dcache_range' makes integer from pointer without a cast [-Wint-conversion]
   39 |         inv_dcache_range(addr, size);
      |                          ^~~~
      |                          |
      |                          void *
board/cache.c:23:40: note: expected 'uintptr_t' {aka 'long unsigned int'} but argument is of type 'void *'
   23 | inline void inv_dcache_range(uintptr_t start, size_t size) {
      |                              ~~~~~~~~~~^~~~~
board/cache.c: In function 'rt_hw_cpu_icache_ops':
board/cache.c:65:26: warning: passing argument 1 of 'inv_icache_range' makes integer from pointer without a cast [-Wint-conversion]
   65 |         inv_icache_range(addr, size);
      |                          ^~~~
      |                          |
      |                          void *
board/cache.c:56:40: note: expected 'uintptr_t' {aka 'long unsigned int'} but argument is of type 'void *'
   56 | inline void inv_icache_range(uintptr_t start, size_t size) {
      |                              ~~~~~~~~~~^~~~~

Other additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BSP: Cvitek BSP related with cvitek
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant