tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   90dc7026cdc9a9cbdc815cf1d8d29aa7b776ebf1
commit: ce4e61f610058ff9311f21d7584746fcfde9577e [27/32] virtio: force spec 
specified alignment on types
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        git checkout ce4e61f610058ff9311f21d7584746fcfde9577e
        # 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 <[email protected]>

All errors (new ones prefixed by >>):

   In file included from <command-line>:32:0:
   ./usr/include/linux/virtio_ring.h:91:31: error: expected declaration 
specifiers or '...' before numeric constant
    #define VRING_USED_ALIGN_SIZE 4
                                  ^
   ./usr/include/linux/virtio_ring.h:120:42: note: in expansion of macro 
'VRING_USED_ALIGN_SIZE'
    typedef struct vring_used_elem __aligned(VRING_USED_ALIGN_SIZE)
                                             ^~~~~~~~~~~~~~~~~~~~~
>> ./usr/include/linux/virtio_ring.h:126:2: error: unknown type name 
>> 'vring_used_elem_t'
     vring_used_elem_t ring[];
     ^~~~~~~~~~~~~~~~~
   ./usr/include/linux/virtio_ring.h:92:31: error: expected declaration 
specifiers or '...' before numeric constant
    #define VRING_DESC_ALIGN_SIZE 16
                                  ^
   ./usr/include/linux/virtio_ring.h:143:37: note: in expansion of macro 
'VRING_DESC_ALIGN_SIZE'
    typedef struct vring_desc __aligned(VRING_DESC_ALIGN_SIZE) vring_desc_t;
                                        ^~~~~~~~~~~~~~~~~~~~~
   ./usr/include/linux/virtio_ring.h:90:32: error: expected declaration 
specifiers or '...' before numeric constant
    #define VRING_AVAIL_ALIGN_SIZE 2
                                   ^
   ./usr/include/linux/virtio_ring.h:144:38: note: in expansion of macro 
'VRING_AVAIL_ALIGN_SIZE'
    typedef struct vring_avail __aligned(VRING_AVAIL_ALIGN_SIZE) vring_avail_t;
                                         ^~~~~~~~~~~~~~~~~~~~~~
   ./usr/include/linux/virtio_ring.h:91:31: error: expected declaration 
specifiers or '...' before numeric constant
    #define VRING_USED_ALIGN_SIZE 4
                                  ^
   ./usr/include/linux/virtio_ring.h:145:37: note: in expansion of macro 
'VRING_USED_ALIGN_SIZE'
    typedef struct vring_used __aligned(VRING_USED_ALIGN_SIZE) vring_used_t;
                                        ^~~~~~~~~~~~~~~~~~~~~
   ./usr/include/linux/virtio_ring.h:150:2: error: unknown type name 
'vring_desc_t'
     vring_desc_t *desc;
     ^~~~~~~~~~~~
   ./usr/include/linux/virtio_ring.h:152:2: error: unknown type name 
'vring_avail_t'
     vring_avail_t *avail;
     ^~~~~~~~~~~~~
   ./usr/include/linux/virtio_ring.h:154:2: error: unknown type name 
'vring_used_t'
     vring_used_t *used;
     ^~~~~~~~~~~~
   ./usr/include/linux/virtio_ring.h: In function 'vring_init':
   ./usr/include/linux/virtio_ring.h:193:12: warning: assignment from 
incompatible pointer type [-Wincompatible-pointer-types]
     vr->avail = (struct vring_avail *)((char *)p + num * sizeof(struct 
vring_desc));
               ^
   ./usr/include/linux/virtio_ring.h:194:44: error: request for member 'ring' 
in something not a structure or union
     vr->used = (void *)(((uintptr_t)&vr->avail->ring[num] + sizeof(__virtio16)
                                               ^~

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

Reply via email to