tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.14
head: 0aa0b62c9c366ab01cf2489054bd0c3cba0bbc42
commit: c3d31aa0e1f26dd3276b32a012cfad29798d724a [147/150] UPSTREAM: drm/amdgpu: Implement get_local_mem_info
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
git checkout c3d31aa0e1f26dd3276b32a012cfad29798d724a
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:14:0,
from include/asm-generic/bug.h:18,
from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h:29,
from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:23:
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c: In function 'get_local_mem_info':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:307:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t {aka unsigned int}' [-Wformat=]
pr_debug("Address base: 0x%llx limit 0x%llx public 0x%llx private 0x%llx\n",
^
include/linux/printk.h:286:21: note: in definition of macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
include/linux/printk.h:334:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:307:2: note: in expansion of macro 'pr_debug'
pr_debug("Address base: 0x%llx limit 0x%llx public 0x%llx private 0x%llx\n",
^~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:307:11: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'resource_size_t {aka unsigned int}' [-Wformat=]
pr_debug("Address base: 0x%llx limit 0x%llx public 0x%llx private 0x%llx\n",
^
include/linux/printk.h:286:21: note: in definition of macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
include/linux/printk.h:334:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c:307:2: note: in expansion of macro 'pr_debug'
pr_debug("Address base: 0x%llx limit 0x%llx public 0x%llx private 0x%llx\n",
^~~~~~~~
vim +307 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
If AMD doesn't support 32-bit builds, maybe the build should be restricted upstream and in chromeos-4.14 to 32-bit builds. Just a thought.
Comment 1 by djkurtz@google.com
, Jul 23Owner: dbehr@chromium.org