lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202004222203.i1FlSO8z%lkp@intel.com>
Date:   Wed, 22 Apr 2020 22:34:06 +0800
From:   kbuild test robot <lkp@...el.com>
To:     "Michael S. Tsirkin" <mst@...hat.com>
Cc:     kbuild-all@...ts.01.org, kvm@...r.kernel.org,
        virtualization@...ts.linux-foundation.org, netdev@...r.kernel.org
Subject: [vhost:vhost 27/32] ./usr/include/linux/virtio_ring.h:126:2: error:
 unknown type name 'vring_used_elem_t'

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 <lkp@...el.com>

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/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (72279 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ