Commit ba90c887 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

rte_virtio: use spdk/stdinc.h



Replace POSIX and standard C #includes with the central SPDK stdinc.h
and remove the rte_virtio exclusion from header checking in
scripts/check_format.sh

Change-Id: Ie53d11de7cd9a51c59957e3c500bd8b9b4c4bc5e
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/383003


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 94678ad9
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -31,11 +31,7 @@
 *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include "spdk/stdinc.h"

#include <linux/virtio_scsi.h>

+2 −3
Original line number Diff line number Diff line
@@ -34,9 +34,7 @@
#ifndef _VIRTIO_DEV_H_
#define _VIRTIO_DEV_H_

#include <stdint.h>
#include <sys/uio.h>
#include <sys/queue.h>
#include "spdk/stdinc.h"

#include <linux/virtio_ring.h>

@@ -45,6 +43,7 @@

#include "spdk_internal/log.h"
#include "spdk/likely.h"
#include "spdk/queue.h"

/*
 * Per virtio_config.h in Linux.
+2 −1
Original line number Diff line number Diff line
@@ -30,7 +30,8 @@
 *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
#include <stdint.h>

#include "spdk/stdinc.h"

#include <linux/virtio_scsi.h>

+2 −1
Original line number Diff line number Diff line
@@ -34,7 +34,8 @@
#ifndef _VIRTIO_PCI_H_
#define _VIRTIO_PCI_H_

#include <stdint.h>
#include "spdk/stdinc.h"

#include <linux/virtio_config.h>
#include <linux/virtio_pci.h>

+2 −6
Original line number Diff line number Diff line
@@ -31,12 +31,8 @@
 *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include <stdint.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include "spdk/stdinc.h"

#include <sys/eventfd.h>

#include <linux/virtio_scsi.h>
Loading