Skip to content

Commit

Permalink
Adjust mmap calls to new interface
Browse files Browse the repository at this point in the history
JIRA: RTOS-665
  • Loading branch information
badochov authored and agkaminski committed Nov 9, 2023
1 parent a6fdbb9 commit 7358b3f
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ static void *usb_allocUncached(size_t size)
{
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

0 comments on commit 7358b3f

Please sign in to comment.