* [vireshk:virtio/msg-test 2/26] drivers/virtio/virtio_msg_mmio.c:79:17: error: implicit declaration of function 'writeq'; did you mean 'writeb'?
@ 2024-11-18 18:23 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-11-18 18:23 UTC (permalink / raw)
To: Viresh Kumar; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/linux.git virtio/msg-test
head: 702c1af18bf513f8297bfbb99b859c37b7b900ab
commit: 4095173660abdd1c436f8761ba626ad1a2098fda [2/26] virtio: Add support for MMIO based channel bus
config: arc-randconfig-r131-20241118 (https://download.01.org/0day-ci/archive/20241119/202411190237.nGmIEspd-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241119/202411190237.nGmIEspd-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411190237.nGmIEspd-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/virtio/virtio_msg_mmio.c: In function 'virtio_msg_mmio_send':
>> drivers/virtio/virtio_msg_mmio.c:79:17: error: implicit declaration of function 'writeq'; did you mean 'writeb'? [-Werror=implicit-function-declaration]
79 | writeq(*(data + i), addr + i);
| ^~~~~~
| writeb
>> drivers/virtio/virtio_msg_mmio.c:87:31: error: implicit declaration of function 'readq'; did you mean 'readw'? [-Werror=implicit-function-declaration]
87 | *(data + i) = readq(addr + i);
| ^~~~~
| readw
cc1: some warnings being treated as errors
vim +79 drivers/virtio/virtio_msg_mmio.c
68
69 static int virtio_msg_mmio_send(struct virtio_msg_device *vmdev,
70 struct virtio_msg *request,
71 struct virtio_msg *response)
72 {
73 struct virtio_msg_mmio_device *vmmdev = to_virtio_msg_mmio_device(vmdev);
74 int i, len = sizeof(*request) / sizeof(u64);
75 u64 *data = (u64 *) request;
76 u64 *addr = vmmdev->base;
77
78 for (i = 0; i < len; i++)
> 79 writeq(*(data + i), addr + i);
80
81 if (!response)
82 return 0;
83
84 data = (u64 *) response;
85
86 for (i = 0; i < len; i++)
> 87 *(data + i) = readq(addr + i);
88
89 return 0;
90 }
91
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-18 18:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18 18:23 [vireshk:virtio/msg-test 2/26] drivers/virtio/virtio_msg_mmio.c:79:17: error: implicit declaration of function 'writeq'; did you mean 'writeb'? kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.