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

Adjust mmap calls to new interface #29

Merged
merged 1 commit into from
Nov 9, 2023
Merged
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
2 changes: 1 addition & 1 deletion usb/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{
void *res;

if ((res = mmap(NULL, size, PROT_WRITE | PROT_READ, MAP_ANONYMOUS | MAP_UNCACHED, OID_NULL, 0)) == MAP_FAILED)
if ((res = mmap(NULL, size, PROT_WRITE | PROT_READ, MAP_ANONYMOUS | MAP_UNCACHED, -1, 0)) == MAP_FAILED)

Check warning on line 55 in usb/mem.c

View workflow job for this annotation

GitHub Actions / call-ci / build (armv7a7-imx6ull-evk)

passing argument 5 of 'mmap' makes pointer from integer without a cast [-Wint-conversion]

Check warning on line 55 in usb/mem.c

View workflow job for this annotation

GitHub Actions / call-ci / build (armv7m7-imxrt106x-evk)

passing argument 5 of 'mmap' makes pointer from integer without a cast [-Wint-conversion]

Check warning on line 55 in usb/mem.c

View workflow job for this annotation

GitHub Actions / call-ci / build (armv7m7-imxrt117x-evk)

passing argument 5 of 'mmap' makes pointer from integer without a cast [-Wint-conversion]
return NULL;

return res;
Expand Down
Loading