Hi Sasha,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linus/master]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Sasha-Levin/DirectX-on-Linux/202...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
642b151f45dd54809ea00ecd3976a56c1ec9b53d
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/printk.h:326:0,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/gpu/dxgkrnl/dxgmodule.c:14:
drivers/gpu/dxgkrnl/dxgmodule.c: In function 'dxgglobal_getiospace':
> drivers/gpu/dxgkrnl/misc.h:215:22: warning: format '%llx'
expects argument of type 'long long unsigned int', but argument 6 has type
'resource_size_t {aka unsigned int}' [-Wformat=]
#define pr_fmt2(fmt)
"dxgk:err: " fmt
^
include/linux/dynamic_debug.h:125:15: note: in definition of macro
'__dynamic_func_call'
func(&id, ##__VA_ARGS__); ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro
'_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg, ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:23: note: in expansion of macro 'dev_fmt'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~
> drivers/gpu/dxgkrnl/misc.h:254:2: note: in expansion of macro
'dev_dbg'
dev_dbg(dxgglobaldev, pr_fmt2(fmt), ##__VA_ARGS__)
^~~~~~~
> drivers/gpu/dxgkrnl/misc.h:254:24: note: in expansion of macro
'pr_fmt2'
dev_dbg(dxgglobaldev, pr_fmt2(fmt), ##__VA_ARGS__)
^~~~~~~
> drivers/gpu/dxgkrnl/dxgmodule.c:305:2: note: in expansion of
macro 'TRACE_DEBUG'
TRACE_DEBUG(1, "mmio allocated %llx %llx %llx
%llxn",
^~~~~~~~~~~
drivers/gpu/dxgkrnl/dxgmodule.c:305:47: note: format string is defined here
TRACE_DEBUG(1, "mmio allocated %llx %llx %llx %llxn",
~~~^
%x
In file included from include/linux/printk.h:326:0,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/gpu/dxgkrnl/dxgmodule.c:14:
drivers/gpu/dxgkrnl/misc.h:215:22: warning: format '%llx' expects argument of type
'long long unsigned int', but argument 7 has type 'resource_size_t {aka
unsigned int}' [-Wformat=]
#define pr_fmt2(fmt) "dxgk:err: " fmt
^
include/linux/dynamic_debug.h:125:15: note: in definition of macro
'__dynamic_func_call'
func(&id, ##__VA_ARGS__); ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro
'_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg, ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:23: note: in expansion of macro 'dev_fmt'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~
> drivers/gpu/dxgkrnl/misc.h:254:2: note: in expansion of macro
'dev_dbg'
dev_dbg(dxgglobaldev, pr_fmt2(fmt), ##__VA_ARGS__)
^~~~~~~
> drivers/gpu/dxgkrnl/misc.h:254:24: note: in expansion of macro
'pr_fmt2'
dev_dbg(dxgglobaldev, pr_fmt2(fmt), ##__VA_ARGS__)
^~~~~~~
> drivers/gpu/dxgkrnl/dxgmodule.c:305:2: note: in expansion of
macro 'TRACE_DEBUG'
TRACE_DEBUG(1, "mmio allocated %llx %llx %llx
%llxn",
^~~~~~~~~~~
drivers/gpu/dxgkrnl/dxgmodule.c:305:52: note: format string is defined here
TRACE_DEBUG(1, "mmio allocated %llx %llx %llx %llxn",
~~~^
%x
drivers/gpu/dxgkrnl/dxgmodule.c: At top level:
drivers/gpu/dxgkrnl/dxgmodule.c:509:4: error: 'HV_GPUP_DXGK_VGPU_GUID' undeclared
here (not in a function); did you mean 'HV_KVP_GUID'?
{ HV_GPUP_DXGK_VGPU_GUID },
^~~~~~~~~~~~~~~~~~~~~~
HV_KVP_GUID
drivers/gpu/dxgkrnl/dxgmodule.c:511:4: error: 'HV_GPUP_DXGK_GLOBAL_GUID'
undeclared here (not in a function); did you mean 'HV_GPUP_DXGK_VGPU_GUID'?
{ HV_GPUP_DXGK_GLOBAL_GUID },
^~~~~~~~~~~~~~~~~~~~~~~~
HV_GPUP_DXGK_VGPU_GUID
--
In file included from include/linux/printk.h:7:0,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/fcntl.h:5,
from include/linux/eventfd.h:12,
from drivers/gpu/dxgkrnl/ioctl.c:14:
drivers/gpu/dxgkrnl/ioctl.c: In function 'dxgk_create_allocation':
include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type
'long int', but argument 4 has type 'unsigned int' [-Wformat=]
#define KERN_SOH "001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^~~~~~~~
include/linux/printk.h:299:9: note: in expansion of macro 'KERN_ERR'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~
> drivers/gpu/dxgkrnl/ioctl.c:1265:4: note: in expansion of macro
'pr_err'
pr_err("private data size is too big: %d %d %ld",
^~~~~~
drivers/gpu/dxgkrnl/ioctl.c:1265:50: note: format string is defined here
pr_err("private data size is too big: %d %d %ld",
~~^
%d
drivers/gpu/dxgkrnl/ioctl.c: At top level:
drivers/gpu/dxgkrnl/ioctl.c:1568:5: warning: no previous prototype for
'validate_alloc' [-Wmissing-prototypes]
int validate_alloc(struct dxgallocation *alloc0,
^~~~~~~~~~~~~~
drivers/gpu/dxgkrnl/ioctl.c: In function 'dxgk_create_sync_object':
drivers/gpu/dxgkrnl/ioctl.c:2493:7: warning: variable 'host_event_added' set but
not used [-Wunused-but-set-variable]
bool host_event_added = false;
^~~~~~~~~~~~~~~~
drivers/gpu/dxgkrnl/ioctl.c: In function 'dxgk_signal_sync_object':
> drivers/gpu/dxgkrnl/ioctl.c:2973:17: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
NULL, (void *)host_event_id,
0);
^
drivers/gpu/dxgkrnl/ioctl.c: In function 'dxgk_signal_sync_object_gpu2':
drivers/gpu/dxgkrnl/ioctl.c:3199:11: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]
(void *)host_event_id, 0);
^
drivers/gpu/dxgkrnl/ioctl.c: At top level:
drivers/gpu/dxgkrnl/ioctl.c:4734:5: warning: no previous prototype for
'assign_resource_handles' [-Wmissing-prototypes]
int assign_resource_handles(struct dxgprocess *process,
^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/dxgkrnl/ioctl.c:4793:5: warning: no previous prototype for
'open_resource' [-Wmissing-prototypes]
int open_resource(struct dxgprocess *process,
^~~~~~~~~~~~~
--
drivers/gpu/dxgkrnl/dxgvmbus.c:108:6: warning: no previous prototype for
'signal_guest_event' [-Wmissing-prototypes]
void signal_guest_event(struct dxgkvmb_command_host_to_vm *packet,
^~~~~~~~~~~~~~~~~~
drivers/gpu/dxgkrnl/dxgvmbus.c:126:6: warning: no previous prototype for
'process_inband_packet' [-Wmissing-prototypes]
void process_inband_packet(struct dxgvmbuschannel *channel,
^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/dxgkrnl/dxgvmbus.c:158:6: warning: no previous prototype for
'process_completion_packet' [-Wmissing-prototypes]
void process_completion_packet(struct dxgvmbuschannel *channel,
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/dxgkrnl/dxgvmbus.c:785:5: warning: no previous prototype for
'create_existing_sysmem' [-Wmissing-prototypes]
int create_existing_sysmem(struct dxgdevice *device,
^~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/printk.h:326:0,
from include/linux/kernel.h:15,
from drivers/gpu/dxgkrnl/dxgvmbus.c:14:
drivers/gpu/dxgkrnl/dxgvmbus.c: In function 'dxgvmb_send_create_allocation':
> drivers/gpu/dxgkrnl/misc.h:215:22: warning: format '%ld'
expects argument of type 'long int', but argument 6 has type 'unsigned
int' [-Wformat=]
#define pr_fmt2(fmt) "dxgk:err: " fmt
^
include/linux/dynamic_debug.h:125:15: note: in definition of macro
'__dynamic_func_call'
func(&id, ##__VA_ARGS__); ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro
'_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg, ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:23: note: in expansion of macro 'dev_fmt'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~
> drivers/gpu/dxgkrnl/misc.h:254:2: note: in expansion of macro
'dev_dbg'
dev_dbg(dxgglobaldev, pr_fmt2(fmt), ##__VA_ARGS__)
^~~~~~~
> drivers/gpu/dxgkrnl/misc.h:254:24: note: in expansion of macro
'pr_fmt2'
dev_dbg(dxgglobaldev, pr_fmt2(fmt), ##__VA_ARGS__)
^~~~~~~
> drivers/gpu/dxgkrnl/dxgvmbus.c:1139:2: note: in expansion of
macro 'TRACE_DEBUG'
TRACE_DEBUG(1, "command size, driver_data_size %d
%d %ld %ld",
^~~~~~~~~~~
drivers/gpu/dxgkrnl/dxgvmbus.c:1139:57: note: format string is defined here
TRACE_DEBUG(1, "command size, driver_data_size %d %d %ld %ld",
~~^
%d
In file included from include/linux/printk.h:326:0,
from include/linux/kernel.h:15,
from drivers/gpu/dxgkrnl/dxgvmbus.c:14:
drivers/gpu/dxgkrnl/misc.h:215:22: warning: format '%ld' expects argument of type
'long int', but argument 7 has type 'unsigned int' [-Wformat=]
#define pr_fmt2(fmt) "dxgk:err: " fmt
^
include/linux/dynamic_debug.h:125:15: note: in definition of macro
'__dynamic_func_call'
func(&id, ##__VA_ARGS__); ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro
'_dynamic_func_call'
_dynamic_func_call(fmt,__dynamic_dev_dbg, ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~~~~~
include/linux/dev_printk.h:114:23: note: in expansion of macro 'dev_fmt'
dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~
> drivers/gpu/dxgkrnl/misc.h:254:2: note: in expansion of macro
'dev_dbg'
dev_dbg(dxgglobaldev, pr_fmt2(fmt), ##__VA_ARGS__)
^~~~~~~
> drivers/gpu/dxgkrnl/misc.h:254:24: note: in expansion of macro
'pr_fmt2'
dev_dbg(dxgglobaldev, pr_fmt2(fmt), ##__VA_ARGS__)
^~~~~~~
> drivers/gpu/dxgkrnl/dxgvmbus.c:1139:2: note: in expansion of
macro 'TRACE_DEBUG'
TRACE_DEBUG(1, "command size, driver_data_size %d
%d %ld %ld",
^~~~~~~~~~~
drivers/gpu/dxgkrnl/dxgvmbus.c:1139:61: note: format string is defined here
TRACE_DEBUG(1, "command size, driver_data_size %d %d %ld %ld",
~~^
%d
drivers/gpu/dxgkrnl/dxgvmbus.c: In function 'dxgvmb_send_signal_sync_object':
> drivers/gpu/dxgkrnl/dxgvmbus.c:1632:31: warning: cast from
pointer to integer of different size [-Wpointer-to-int-cast]
command->cpu_event_handle = (winhandle) cpu_event_handle;
^
drivers/gpu/dxgkrnl/dxgvmbus.c: In function 'dxgvmb_send_lock2':
drivers/gpu/dxgkrnl/dxgvmbus.c:1797:32: warning: cast from pointer to integer of different
size [-Wpointer-to-int-cast]
args->data = dxg_map_iospace((uint64_t) result.
^
vim +215 drivers/gpu/dxgkrnl/misc.h
9cc562c3695b5b44 Sasha Levin 2020-05-19 212
9cc562c3695b5b44 Sasha Levin 2020-05-19 213 #undef pr_fmt
9cc562c3695b5b44 Sasha Levin 2020-05-19 214 #define pr_fmt(fmt) "dxgk:err: "
fmt
9cc562c3695b5b44 Sasha Levin 2020-05-19 @215 #define pr_fmt2(fmt) "dxgk:err: "
fmt
9cc562c3695b5b44 Sasha Levin 2020-05-19 216
9cc562c3695b5b44 Sasha Levin 2020-05-19 217 #define DXGKDEBUG 1
9cc562c3695b5b44 Sasha Levin 2020-05-19 218 /* #define USEPRINTK 1 */
9cc562c3695b5b44 Sasha Levin 2020-05-19 219
9cc562c3695b5b44 Sasha Levin 2020-05-19 220 #ifndef DXGKDEBUG
9cc562c3695b5b44 Sasha Levin 2020-05-19 221 #define TRACE_DEBUG(...)
9cc562c3695b5b44 Sasha Levin 2020-05-19 222 #define TRACE_DEFINE(...)
9cc562c3695b5b44 Sasha Levin 2020-05-19 223 #define TRACE_FUNC_ENTER(...)
9cc562c3695b5b44 Sasha Levin 2020-05-19 224 #define TRACE_FUNC_EXIT(...)
9cc562c3695b5b44 Sasha Levin 2020-05-19 225 #else
9cc562c3695b5b44 Sasha Levin 2020-05-19 226 #ifdef USEPRINTK
9cc562c3695b5b44 Sasha Levin 2020-05-19 227 #define TRACE_DEBUG(level, fmt, ...)\
9cc562c3695b5b44 Sasha Levin 2020-05-19 228 printk(KERN_DEBUG pr_fmt2(fmt),
##__VA_ARGS__);
9cc562c3695b5b44 Sasha Levin 2020-05-19 229
9cc562c3695b5b44 Sasha Levin 2020-05-19 230 #define TRACE_DEBUG2(level, offset, fmt,
...) \
9cc562c3695b5b44 Sasha Levin 2020-05-19 231 do { \
9cc562c3695b5b44 Sasha Levin 2020-05-19 232 if (offset == 0) \
9cc562c3695b5b44 Sasha Levin 2020-05-19 233 printk(KERN_DEBUG pr_fmt(fmt),
##__VA_ARGS__); \
9cc562c3695b5b44 Sasha Levin 2020-05-19 234 else \
9cc562c3695b5b44 Sasha Levin 2020-05-19 235 printk(KERN_DEBUG pr_fmt2(fmt),
##__VA_ARGS__); \
9cc562c3695b5b44 Sasha Levin 2020-05-19 236 } while (false)
9cc562c3695b5b44 Sasha Levin 2020-05-19 237
9cc562c3695b5b44 Sasha Levin 2020-05-19 238 #define TRACE_FUNC_ENTER(msg) \
9cc562c3695b5b44 Sasha Levin 2020-05-19 239 printk(KERN_DEBUG "dxgk: %s",
msg)
9cc562c3695b5b44 Sasha Levin 2020-05-19 240 #define TRACE_FUNC_EXIT(msg, ret) \
9cc562c3695b5b44 Sasha Levin 2020-05-19 241 do { \
9cc562c3695b5b44 Sasha Levin 2020-05-19 242 if (!NT_SUCCESS(ret)) \
9cc562c3695b5b44 Sasha Levin 2020-05-19 243 dxg_pr_err("%s %x %d", msg, ret,
ret); \
9cc562c3695b5b44 Sasha Levin 2020-05-19 244 else \
9cc562c3695b5b44 Sasha Levin 2020-05-19 245 printk(KERN_DEBUG "dxgk: %s
end", msg); \
9cc562c3695b5b44 Sasha Levin 2020-05-19 246 } while (false)
9cc562c3695b5b44 Sasha Levin 2020-05-19 247 #define TRACE_FUNC_EXIT_ERR(msg, ret) \
9cc562c3695b5b44 Sasha Levin 2020-05-19 248 do { \
9cc562c3695b5b44 Sasha Levin 2020-05-19 249 if (!NT_SUCCESS(ret)) \
9cc562c3695b5b44 Sasha Levin 2020-05-19 250 dxg_pr_err("%s %x", msg,
ret); \
9cc562c3695b5b44 Sasha Levin 2020-05-19 251 } while (false)
9cc562c3695b5b44 Sasha Levin 2020-05-19 252 #else
9cc562c3695b5b44 Sasha Levin 2020-05-19 253 #define TRACE_DEBUG(level, fmt, ...)\
9cc562c3695b5b44 Sasha Levin 2020-05-19 @254 dev_dbg(dxgglobaldev, pr_fmt2(fmt),
##__VA_ARGS__)
9cc562c3695b5b44 Sasha Levin 2020-05-19 255
:::::: The code at line 215 was first introduced by commit
:::::: 9cc562c3695b5b44c0c931c76bdc24e8c4f33587 gpu: dxgkrnl: core code
:::::: TO: Sasha Levin <sashal(a)kernel.org>
:::::: CC: 0day robot <lkp(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org