summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-11-10 13:17:55 +0100
committerAlex Deucher <alexander.deucher@amd.com>2015-11-16 11:05:55 -0500
commite1b35f6103b37e0d81184b32906b7010170dda02 (patch)
tree2e8ec1974d1f13fd63062574c5b82a0c3a028f3e /drivers/gpu/drm/amd/amdgpu/ci_dpm.c
parent515c752dabee9945c1e8686c87f7cdeb3935eea4 (diff)
downloadlinux-e1b35f6103b37e0d81184b32906b7010170dda02.tar.bz2
drm/amdgpu: fix seq_printf format string
The amdgpu driver has a debugfs interface that shows the amount of VRAM in use, but the newly added code causes a build error on all 32-bit architectures: drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:1076:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'long long int' [-Wformat=] This fixes the format string to use "%llu" for printing 64-bit numbers, which works everywhere, as long as we also cast to 'u64'. Unlike atomic64_t, u64 is defined as 'unsigned long long' on all architectures. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: a2ef8a974931 ("drm/amdgpu: add vram usage into debugfs") Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/ci_dpm.c')
0 files changed, 0 insertions, 0 deletions