Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions riscv-rt/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Main function no longer needs to be close to _start. A linker script may copy
all code to RAM and keep .init in flash/ROM.

### Fixed

- `clippy` fixes

## [v0.15.0] - 2025-06-10

### Added
Expand Down
22 changes: 14 additions & 8 deletions riscv-rt/macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,22 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream {
};
}
#[cfg(feature = "u-boot")]
if let Some(argument) = f.sig.inputs.get(0) {
if let Some(message) = check_argument_type(argument, "c_int") {
return message;
}
if let Some(message) = f
.sig
.inputs
.get(0)
.and_then(|argument| check_argument_type(argument, "c_int"))
{
return message;
}
#[cfg(feature = "u-boot")]
if let Some(argument) = f.sig.inputs.get(1) {
if let Some(message) = check_argument_type(argument, "*const *const c_char") {
return message;
}
if let Some(message) = f
.sig
.inputs
.get(1)
.and_then(|argument| check_argument_type(argument, "*const *const c_char"))
{
return message;
}

// check the function signature
Expand Down