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

drivers: plic: fix compilation warning when PLIC_SHELL is enabled on 64bit platform #67193

Merged
merged 3 commits into from
Jan 8, 2024

Conversation

ycsin
Copy link
Member

@ycsin ycsin commented Jan 4, 2024

Fixed compilation warning on 64bit platform by changing the irq array iterator from size_t to int, added build-only test for PLIC_SHELL on 32bit & 64bit platforms

@zephyrbot zephyrbot added area: RISCV RISCV Architecture (32-bit & 64-bit) area: Interrupt Controller labels Jan 4, 2024
@ycsin ycsin changed the title Pr/plic shell fix format drivers: plic: fix print formatter for size_t index variable Jan 4, 2024
@ycsin ycsin added the bug The issue is a bug, or the PR is fixing a bug label Jan 4, 2024
@ycsin ycsin requested review from cfriedt and jgl-meta January 4, 2024 09:40
@ycsin ycsin marked this pull request as draft January 4, 2024 09:50
@ycsin ycsin changed the title drivers: plic: fix print formatter for size_t index variable drivers: plic: fix compilation warning Jan 4, 2024
Change the index variable type to `int` from `size_t` to compile
across 32bit and 64bit platforms without generating warnings.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Store the compile-time computed length of the `irq_count` into
a variable so that we have less to do in runtime.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Add a build-only test for the `PLIC_SHELL` configuration.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
@ycsin ycsin marked this pull request as ready for review January 4, 2024 16:18
@ycsin ycsin changed the title drivers: plic: fix compilation warning drivers: plic: fix compilation warning when PLIC_SHELL is enabled on 64bit platform Jan 5, 2024
@carlescufi carlescufi merged commit 8f6be96 into zephyrproject-rtos:main Jan 8, 2024
19 checks passed
@ycsin ycsin deleted the pr/plic_shell_fix_format branch January 8, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Interrupt Controller area: RISCV RISCV Architecture (32-bit & 64-bit) bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants