Skip to content

Conversation

@xiaoxiang781216
Copy link
Contributor

Summary

and Fix include/nuttx/mm/map.h:55:28: error: 'struct task_group_s' declared inside parameter list will not be visible outside of this definition or declaration

Impact

Fix build break

Testing

Pass CI

and Fix include/nuttx/mm/map.h:55:28: error: 'struct task_group_s' declared inside parameter list will not be visible outside of this definition or declaration

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
@xiaoxiang781216
Copy link
Contributor Author

xiaoxiang781216 commented Jan 5, 2023

@jlaitine our internal build server found some issue with #8021. Please take a look.

@jlaitine
Copy link
Contributor

jlaitine commented Jan 5, 2023

@jlaitine our internal build server found some issue with #8021. Please take a look.

What is the error exactly?

The struct task_group_s needs to be forward declared in map.h. map.h is included in fs.h, but not every driver using map.h uses fs.h

you'll end up in circular dependencies between fs.h <-> sched.h <-> map.h, because sched.h includes fs.h.

I think I did this properly by forward declaring struct task_group_s in map.h, and included map.h in places where the mm_map is used.

Actually, things should work in #8026

@jlaitine
Copy link
Contributor

jlaitine commented Jan 5, 2023

@jlaitine our internal build server found some issue with #8021. Please take a look.

What is the error exactly?

Ah got it. This PR was a fix for exactly that + removing some extra include!

@pkarashchenko pkarashchenko merged commit 1a59f4e into apache:master Jan 5, 2023
@xiaoxiang781216 xiaoxiang781216 deleted the mmap branch January 5, 2023 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants