Re:

From: Michael Tirado
Date: Sun Oct 21 2018 - 22:46:50 EST


On Mon, Oct 22, 2018 at 1:50 AM Dave Airlie <airlied@xxxxxxxxx> wrote:
>
> On Mon, 22 Oct 2018 at 10:49, Michael Tirado <mtirado418@xxxxxxxxx> wrote:
> >
> > On Mon, Oct 22, 2018 at 12:26 AM Dave Airlie <airlied@xxxxxxxxx> wrote:
> > >
> > > This shouldn't be necessary, did someone misbackport the mmap changes without:
> If you have custom userspace software, make sure it's using
> AC_SYS_LARGEFILE or whatever the equivalant is in your build system.
>
> 64-bit file offsets are important.
>

That fixed it! -D_FILE_OFFSET_BITS=64 is the pre-processor define
needed. It's a bit more than unintuitive but I'm glad I don't need
this stupid patch anymore, Thanks.

In case anyone is further interested I have attached test program
since I spent the last hour or so chopping it up anyway :S [ gcc -o
kms -D_FILE_OFFSET_BITS=64 main.c ]

Attachment: main.c
Description: Binary data