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

Need to fix the errors detected with cargo clippy test #641

Closed
liuw1 opened this issue Dec 22, 2023 · 0 comments · Fixed by #643
Closed

Need to fix the errors detected with cargo clippy test #641

liuw1 opened this issue Dec 22, 2023 · 0 comments · Fixed by #643
Assignees

Comments

@liuw1
Copy link
Contributor

liuw1 commented Dec 22, 2023

Command:

cargo clippy --target=x86_64-unknown-none --all-features

Error Log:

error: cannot find macro `asm` in this scope
  --> td-payload/src/bin/example/stack.rs:26:9
   |
26 |         asm!("mov {}, rsp", out(reg) rsp);
   |         ^^^
   |
help: consider importing this macro
   |
16 + use core::arch::asm;
   |

error[E0412]: cannot find type `RuntimeMemoryLayout` in this scope
  --> td-payload/src/bin/example/stack.rs:32:35
   |
32 | pub fn bench_stack(memory_layout: RuntimeMemoryLayout) {
   |                                   ^^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `memory_layout` in this scope
  --> td-payload/src/bin/example/main.rs:52:28
   |
52 |         stack::bench_stack(memory_layout);
   |                            ^^^^^^^^^^^^^ not found in this scope

Some errors have detailed explanations: E0412, E0425.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `td-payload` (bin "example") due to 3 previous errors
liuw1 added a commit to liuw1/td-shim that referenced this issue Dec 26, 2023
Fix confidential-containers#641

Signed-off-by: Wei Liu <wei3.liu@intel.com>
jyao1 pushed a commit that referenced this issue Dec 27, 2023
Fix #641

Signed-off-by: Wei Liu <wei3.liu@intel.com>
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 a pull request may close this issue.

1 participant