tree:
git://anongit.freedesktop.org/drm/drm-misc for-linux-next
head: 352a81b71ea0a3ce8f929aa60afe369d738a0c6a
commit: 7a7a933edd6c3a6d5d64e08093f2d564104cefcd [2/9] drm/vmwgfx: Introduce VMware
mks-guest-stats
config: i386-randconfig-r032-20210612 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add drm-drm-misc
git://anongit.freedesktop.org/drm/drm-misc
git fetch --no-tags drm-drm-misc for-linux-next
git checkout 7a7a933edd6c3a6d5d64e08093f2d564104cefcd
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/drm/drm_mm.h:49,
from include/drm/ttm/ttm_bo_driver.h:33,
from drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:40,
from drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:36:
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c: In function 'vmw_mksstat_add_ioctl':
> drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:1116:25: warning: format
'%lu' expects argument of type 'long unsigned int', but argument 7 has
type 'size_t' {aka 'unsigned int'} [-Wformat=]
1116 |
DRM_DEV_INFO(dev->dev, "pid=%d arg.description='%.*s' id=%lu\n",
current->pid, (int)desc_len, pdesc->description, slot);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~
|
|
|
size_t {aka unsigned int}
include/drm/drm_print.h:368:33: note: in definition of macro 'DRM_DEV_INFO'
368 | drm_dev_printk(dev, KERN_INFO, fmt, ##__VA_ARGS__)
| ^~~
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:1116:61: note: format string is defined here
1116 | DRM_DEV_INFO(dev->dev, "pid=%d arg.description='%.*s'
id=%lu\n", current->pid, (int)desc_len, pdesc->description, slot);
| ~~^
| |
| long unsigned int
| %u
In file included from include/drm/drm_mm.h:49,
from include/drm/ttm/ttm_bo_driver.h:33,
from drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:40,
from drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:36:
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c: In function 'vmw_mksstat_remove_ioctl':
> drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:1164:25: warning: format
'%lu' expects argument of type 'long unsigned int', but argument 5 has
type 'size_t' {aka 'const unsigned int'} [-Wformat=]
1164 |
DRM_DEV_INFO(dev->dev, "pid=%d arg.id=%lu\n", current->pid, slot);
| ^~~~~~~~~~~~~~~~~~~~~ ~~~~
| |
| size_t {aka const
unsigned int}
include/drm/drm_print.h:368:33: note: in definition of macro 'DRM_DEV_INFO'
368 | drm_dev_printk(dev, KERN_INFO, fmt, ##__VA_ARGS__)
| ^~~
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:1164:42: note: format string is defined here
1164 | DRM_DEV_INFO(dev->dev, "pid=%d arg.id=%lu\n", current->pid,
slot);
| ~~^
| |
| long unsigned int
| %u
In file included from drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:37:
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c: In function 'vmw_mksstat_add_ioctl':
> drivers/gpu/drm/vmwgfx/vmwgfx_msg_x86.h:64:9: error: inconsistent
operand constraints in an 'asm'
63 | ({ \
| ~~~~~~~~~
64 | asm volatile (VMWARE_HYPERCALL : \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
65 | "=a"(eax), \
| ~~~~~~~~~~~~~~
66 | "=b"(ebx), \
| ~~~~~~~~~~~~~~
67 | "=c"(ecx), \
| ~~~~~~~~~~~~~~
68 | "=d"(edx), \
| ~~~~~~~~~~~~~~
69 | "=S"(si), \
| ~~~~~~~~~~~~~
70 | "=D"(di) : \
| ~~~~~~~~~~~~~~
71 | "a"(magic), \
| ~~~~~~~~~~~~~~~
72 | "b"(in_ebx), \
| ~~~~~~~~~~~~~~~~
73 | "c"(cmd), \
| ~~~~~~~~~~~~~
74 | "d"(flags), \
| ~~~~~~~~~~~~~~~
75 | "S"(in_si), \
| ~~~~~~~~~~~~~~~
76 | "D"(in_di) : \
| ~~~~~~~~~~~~~~~~
77 | "memory"); \
| ~~~~~~~~~~~~~~
78 | })
| ~~
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:665:2: note: in expansion of macro
'VMW_PORT'
665 | VMW_PORT(VMW_PORT_CMD_MKSGS_ADD_PPN,
| ^~~~~~~~
vim +/asm +64 drivers/gpu/drm/vmwgfx/vmwgfx_msg_x86.h
523375c943e51a5 Zack Rusin 2021-05-04 39
523375c943e51a5 Zack Rusin 2021-05-04 40 /**
523375c943e51a5 Zack Rusin 2021-05-04 41 * Hypervisor-specific bi-directional
communication channel. Should never
523375c943e51a5 Zack Rusin 2021-05-04 42 * execute on bare metal hardware. The caller
must make sure to check for
523375c943e51a5 Zack Rusin 2021-05-04 43 * supported hypervisor before using these
macros.
523375c943e51a5 Zack Rusin 2021-05-04 44 *
523375c943e51a5 Zack Rusin 2021-05-04 45 * The last two parameters are both input and
output and must be initialized.
523375c943e51a5 Zack Rusin 2021-05-04 46 *
523375c943e51a5 Zack Rusin 2021-05-04 47 * @cmd: [IN] Message Cmd
523375c943e51a5 Zack Rusin 2021-05-04 48 * @in_ebx: [IN] Message Len, through EBX
523375c943e51a5 Zack Rusin 2021-05-04 49 * @in_si: [IN] Input argument through SI, set
to 0 if not used
523375c943e51a5 Zack Rusin 2021-05-04 50 * @in_di: [IN] Input argument through DI, set
ot 0 if not used
523375c943e51a5 Zack Rusin 2021-05-04 51 * @flags: [IN] hypercall flags + [channel id]
523375c943e51a5 Zack Rusin 2021-05-04 52 * @magic: [IN] hypervisor magic value
523375c943e51a5 Zack Rusin 2021-05-04 53 * @eax: [OUT] value of EAX register
523375c943e51a5 Zack Rusin 2021-05-04 54 * @ebx: [OUT] e.g. status from an HB message
status command
523375c943e51a5 Zack Rusin 2021-05-04 55 * @ecx: [OUT] e.g. status from a non-HB
message status command
523375c943e51a5 Zack Rusin 2021-05-04 56 * @edx: [OUT] e.g. channel id
523375c943e51a5 Zack Rusin 2021-05-04 57 * @si: [OUT]
523375c943e51a5 Zack Rusin 2021-05-04 58 * @di: [OUT]
523375c943e51a5 Zack Rusin 2021-05-04 59 */
523375c943e51a5 Zack Rusin 2021-05-04 60 #define VMW_PORT(cmd, in_ebx, in_si, in_di, \
523375c943e51a5 Zack Rusin 2021-05-04 61 flags, magic, \
523375c943e51a5 Zack Rusin 2021-05-04 62 eax, ebx, ecx, edx, si, di) \
523375c943e51a5 Zack Rusin 2021-05-04 63 ({ \
523375c943e51a5 Zack Rusin 2021-05-04 @64 asm volatile (VMWARE_HYPERCALL : \
523375c943e51a5 Zack Rusin 2021-05-04 65 "=a"(eax), \
523375c943e51a5 Zack Rusin 2021-05-04 66 "=b"(ebx), \
523375c943e51a5 Zack Rusin 2021-05-04 67 "=c"(ecx), \
523375c943e51a5 Zack Rusin 2021-05-04 68 "=d"(edx), \
523375c943e51a5 Zack Rusin 2021-05-04 69 "=S"(si), \
523375c943e51a5 Zack Rusin 2021-05-04 70 "=D"(di) : \
523375c943e51a5 Zack Rusin 2021-05-04 71 "a"(magic), \
523375c943e51a5 Zack Rusin 2021-05-04 72 "b"(in_ebx), \
523375c943e51a5 Zack Rusin 2021-05-04 73 "c"(cmd), \
523375c943e51a5 Zack Rusin 2021-05-04 74 "d"(flags), \
523375c943e51a5 Zack Rusin 2021-05-04 75 "S"(in_si), \
523375c943e51a5 Zack Rusin 2021-05-04 76 "D"(in_di) : \
523375c943e51a5 Zack Rusin 2021-05-04 77 "memory"); \
523375c943e51a5 Zack Rusin 2021-05-04 78 })
523375c943e51a5 Zack Rusin 2021-05-04 79
523375c943e51a5 Zack Rusin 2021-05-04 80
:::::: The code at line 64 was first introduced by commit
:::::: 523375c943e51a52bacb69fbd2b0d71a4e990878 drm/vmwgfx: Port vmwgfx to arm64
:::::: TO: Zack Rusin <zackr(a)vmware.com>
:::::: CC: Zack Rusin <zackr(a)vmware.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org