Skip to content

error compiling drivers/gpu/arm/midgard/mali_kbase_jd.c  #3

Closed

Description

@bschiett

using release-4.4 branch:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4
...
CC drivers/gpu/arm/midgard/mali_kbase_jd.o
drivers/gpu/arm/midgard/mali_kbase_jd.c: In function 'kbase_jd_umm_map':
drivers/gpu/arm/midgard/mali_kbase_jd.c:368:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' [-Wformat=]
error, forbidden warning: mali_kbase_jd.c:368
...

Activity

  1. wzyy2 commented on Oct 13, 2016

    @wzyy2

    caused by using more strict compiler rule..
    casting it to 'long unsigned int ' explicitly.

  2. bschiett commented on Oct 13, 2016

    @bschiett
    Author

    I fixed it by using %zu instead of %lu

    On Oct 13, 2016, at 03:47, 陈豪 | Jacob Chen notifications@github.com wrote:

    caused by using more strict compiler rule..
    casting it to 'long unsigned int ' explicitly.

    —
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub, or mute the thread.

  3. 139 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions