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

lib: system: nuttx: fix undeclared parameter compile error #315

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

wyr-7
Copy link
Contributor

@wyr-7 wyr-7 commented Oct 10, 2024

fix compile error:
/home/wyr/work/code/project/cardev/nuttx/openamp/libmetal/lib/system/nuttx/device.c:16:22: error: 'io' undeclared (first use in this function)
16 | metal_unused(io);
/home/wyr/work/code/project/cardev/nuttx/openamp/libmetal/lib/system/nuttx/device.c:14:53: error: unused parameter 'dev' [-Werror=unused-parameter]
14 | int metal_generic_dev_sys_open(struct metal_device *dev)
...

Copy link
Contributor

@arnopo arnopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just code style remarks

lib/system/nuttx/device.c Show resolved Hide resolved
lib/system/nuttx/init.c Show resolved Hide resolved
Copy link
Collaborator

@tnmysh tnmysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after addressing Arnaud's concerns.

@arnopo arnopo added this to the Release v2024.10 milestone Oct 17, 2024
Copy link
Contributor

@edmooring edmooring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to go if Arnaud's suggestions are implemented.

fix compile error:
/nuttx/openamp/libmetal/lib/system/nuttx/device.c:16:22: error:
'io' undeclared (first use in this function)
   16 |         metal_unused(io);
/nuttx/openamp/libmetal/lib/system/nuttx/device.c:14:53: error:
unused parameter 'dev' [-Werror=unused-parameter]
   14 | int metal_generic_dev_sys_open(struct metal_device *dev)
...

Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
@wyr-7
Copy link
Contributor Author

wyr-7 commented Oct 18, 2024

@arnopo Thanks, I have update. @edmooring @tnmysh

Copy link
Contributor

@arnopo arnopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: We usually use the same approach as in the Linux Kernel for the hierarchy description in the commit subject. I will update the commit subject for this one. Please take it into account for other PRs.

lib/system/nuttx: fix undeclared parameter compile error
should become
lib: system; nuttx: fix undeclared parameter compile error

@arnopo arnopo merged commit d680a19 into OpenAMP:main Oct 18, 2024
6 checks passed
@arnopo arnopo changed the title lib/system/nuttx: fix undeclared parameter compile error lib: system: nuttx: fix undeclared parameter compile error Oct 22, 2024
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.

4 participants