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

two problems #14

Open
Benyamin-AI-Blox opened this issue Apr 15, 2024 · 1 comment
Open

two problems #14

Benyamin-AI-Blox opened this issue Apr 15, 2024 · 1 comment

Comments

@Benyamin-AI-Blox
Copy link

Benyamin-AI-Blox commented Apr 15, 2024

Hi. I have two problems during the compilation of the code:

1-

codes/linux-tegra-5.10/nvidia/nvgpu/drivers/gpu/nvgpu/include/nvgpu/static_analysis.h:820:2: error: #error "__ARM_FEATURE_UNALIGNED not defined. Check static_analysis.h"
  820 | #error "__ARM_FEATURE_UNALIGNED not defined. Check static_analysis.h"

2-

drivers/dma/hsu/hsu.c:389:27: error: passing argument 1 of ‘spinlock_check’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  389 |         spin_lock_irqsave(&hsuc->vchan.lock, flags);
      |                           ^~~~~~~~~~~~~~~~~
      |                           |
      |                           raw_spinlock_t * {aka struct raw_spinlock *}

How can I resolve these two issues ?

I also added below line to the makefile:

KBUILD_CFLAGS   += $(call cc-option,-Werror=incompatible-pointer-types)

but didn't help.

thanks

@madisongh
Copy link
Member

If you're attempting to cross-compile, did you follow the instructions on the wiki page? Based on the errors you're seeing, it looks like you're trying to build for an x86 target, which isn't really going to work with this kernel.

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

No branches or pull requests

2 participants