Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cast to avoid "incompatible function pointer types" error #1

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

ileixe
Copy link

@ileixe ileixe commented May 22, 2024

Ubuntu Noble에서 compile이 되지 않는 문제를 수정합니다.

In file included from /home/ubuntu/kernel/npu-tools/crates/npu-virtual-platform/unicorn/qemu/target/arm/unicorn_aarch64.c:10:
/home/ubuntu/kernel/npu-tools/crates/npu-virtual-platform/unicorn/qemu/unicorn_common.h: In function ‘uc_common_init’:
/home/ubuntu/kernel/npu-tools/crates/npu-virtual-platform/unicorn/qemu/unicorn_common.h:139:23: warning: assignment to ‘uc_memory_map_io_t’ {aka ‘MemoryRegion * (*)(struct uc_struct *, long unsigned int,  long unsigned int,  enum uc_tx_result (*)(struct uc_struct *, void *, struct uc_mmio_tx *), void *)’} from incompatible pointer type ‘MemoryRegion * (*)(struct uc_struct *, ram_addr_t,  size_t,  void *, void *)’ {aka ‘MemoryRegion * (*)(struct uc_struct *, long unsigned int,  long unsigned int,  void *, void *)’} [-Wincompatible-pointer-types]
  139 |     uc->memory_map_io = memory_map_io;

incompatible-pointer-types가 compiler에서 hard error로 변경된거 같습니다.

@ileixe
Copy link
Author

ileixe commented May 22, 2024

@Byeongwook-Bae 님 제가 이 repo triage 권한이 없어서 리뷰요청도 못드리는거 같은데 한번 살펴봐주시겠어요?

@Byeongwook-Bae
Copy link
Collaborator

네~ branch 에 바로 푸쉬하셔도 될 것 같아요!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants