include: Move the remainder of the code base to stdinc.h

Change-Id: I6a142feeaad3117bd3c75e7c5cb7231a1cfa78ae
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Ben Walker 2017-05-02 11:18:25 -07:00
parent ba1e1d5308
commit b961d9cc12
152 changed files with 222 additions and 801 deletions

View File

@ -31,9 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <inttypes.h>
#include <stdint.h>
#include <stdlib.h>
#include "spdk/stdinc.h"
#include <rte_config.h>
#include <rte_lcore.h>

View File

@ -31,19 +31,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/types.h>
#include <sys/uio.h>
#include "spdk/stdinc.h"
#include <fcntl.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <termios.h>
#include <algorithm>
#include <map>
#include <vector>

View File

@ -31,14 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <ifaddrs.h>
#include "spdk/stdinc.h"
#include <rte_config.h>
#include <rte_lcore.h>

View File

@ -31,12 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include "spdk/stdinc.h"
#include "spdk/env.h"
#include "nvmf_tgt.h"

View File

@ -31,8 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdlib.h>
#include <stdio.h>
#include "spdk/stdinc.h"
#include "spdk/bdev.h"
#include "spdk/log.h"

View File

@ -31,12 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include "spdk/stdinc.h"
#include <rte_config.h>
#include <rte_lcore.h>

View File

@ -34,7 +34,7 @@
#ifndef NVMF_TGT_H
#define NVMF_TGT_H
#include <stdint.h>
#include "spdk/stdinc.h"
#include "spdk/nvmf.h"
#include "spdk/queue.h"

View File

@ -31,20 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <fcntl.h>
#include "spdk/stdinc.h"
#include <map>

View File

@ -31,10 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <getopt.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include "spdk/stdinc.h"
#include "spdk/log.h"
#include "spdk/conf.h"

View File

@ -31,13 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <inttypes.h>
#include <assert.h>
#include "spdk/stdinc.h"
#define ioat_max(a,b) (((a)>(b))?(a):(b))

View File

@ -31,12 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <assert.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "spdk/stdinc.h"
#include <rte_config.h>
#include <rte_lcore.h>

View File

@ -31,11 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "spdk/stdinc.h"
#include <rte_config.h>
#include <rte_lcore.h>

View File

@ -31,10 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include "spdk/stdinc.h"
#include <rte_config.h>
#include <rte_mempool.h>

View File

@ -31,11 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <pthread.h>
#include "spdk/stdinc.h"
#include "spdk/nvme.h"
#include "spdk/env.h"

View File

@ -31,10 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "spdk/stdinc.h"
#include "spdk/nvme.h"
#include "spdk/env.h"

View File

@ -31,14 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include "spdk/stdinc.h"
#include <rte_config.h>
#include <rte_mempool.h>

View File

@ -31,12 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "spdk/stdinc.h"
#include "spdk/log.h"
#include "spdk/nvme.h"

View File

@ -31,16 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <ctype.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#include <unistd.h>
#include <inttypes.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "spdk/stdinc.h"
#include "spdk/nvme.h"
#include "spdk/env.h"

View File

@ -31,10 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include "spdk/stdinc.h"
#include <rte_config.h>
#include <rte_mempool.h>
@ -49,8 +46,6 @@
#if HAVE_LIBAIO
#include <libaio.h>
#include <sys/stat.h>
#include <fcntl.h>
#endif
struct ctrlr_entry {

View File

@ -31,11 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <inttypes.h>
#include "spdk/stdinc.h"
#include "spdk/nvme.h"
#include "spdk/env.h"

View File

@ -46,6 +46,7 @@ extern "C" {
/* Standard C */
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
#include <limits.h>
@ -56,15 +57,33 @@ extern "C" {
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
/* POSIX */
#include <arpa/inet.h>
#include <dirent.h>
#include <fcntl.h>
#include <ifaddrs.h>
#include <netdb.h>
#include <poll.h>
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include <syslog.h>
#include <termios.h>
#include <unistd.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/uio.h>
#include <sys/un.h>
#include <sys/user.h>
#include <sys/wait.h>
#ifdef __cplusplus
}

View File

@ -34,14 +34,14 @@
#ifndef SPDK_INTERNAL_ASSERT_H
#define SPDK_INTERNAL_ASSERT_H
#include "spdk/stdinc.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "spdk/assert.h"
#include <stdlib.h>
#if !defined(DEBUG) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))
#define SPDK_UNREACHABLE() __builtin_unreachable()
#else

View File

@ -39,11 +39,7 @@
#ifndef SPDK_INTERNAL_BDEV_H
#define SPDK_INTERNAL_BDEV_H
#include <inttypes.h>
#include <unistd.h>
#include <stddef.h> /* for offsetof */
#include <sys/uio.h> /* for struct iovec */
#include <stdbool.h>
#include "spdk/stdinc.h"
#include "spdk/bdev.h"
#include "spdk/event.h"

View File

@ -34,8 +34,7 @@
#ifndef SPDK_INTERNAL_COPY_ENGINE_H
#define SPDK_INTERNAL_COPY_ENGINE_H
#include <stdio.h>
#include <stdint.h>
#include "spdk/stdinc.h"
#include "spdk/copy_engine.h"
#include "spdk/queue.h"

View File

@ -34,7 +34,7 @@
#ifndef SPDK_INTERNAL_EVENT_H
#define SPDK_INTERNAL_EVENT_H
#include <stdio.h>
#include "spdk/stdinc.h"
#include "spdk/event.h"

View File

@ -33,13 +33,7 @@
#include "blockdev_aio.h"
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "spdk/stdinc.h"
#include "spdk/bdev.h"
#include "spdk/conf.h"

View File

@ -34,7 +34,8 @@
#ifndef SPDK_BLOCKDEV_AIO_H
#define SPDK_BLOCKDEV_AIO_H
#include <stdint.h>
#include "spdk/stdinc.h"
#include <libaio.h>
#include "spdk/queue.h"

View File

@ -32,12 +32,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk/bdev.h"
#include "spdk/stdinc.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "spdk/bdev.h"
#include <rte_config.h>
#include <rte_mempool.h>

View File

@ -32,8 +32,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdio.h>
#include <errno.h>
#include "spdk/stdinc.h"
#include "blockdev_malloc.h"
#include "spdk/bdev.h"

View File

@ -34,7 +34,7 @@
#ifndef SPDK_BLOCKDEV_MALLOC_H
#define SPDK_BLOCKDEV_MALLOC_H
#include <stdint.h>
#include "spdk/stdinc.h"
#include "spdk/bdev.h"

View File

@ -32,16 +32,10 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk/stdinc.h"
#include "blockdev_nvme.h"
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/param.h>
#include <pthread.h>
#include "spdk/conf.h"
#include "spdk/endian.h"
#include "spdk/bdev.h"

View File

@ -34,7 +34,7 @@
#ifndef SPDK_BLOCKDEV_NVME_H
#define SPDK_BLOCKDEV_NVME_H
#include <stdint.h>
#include "spdk/stdinc.h"
#include "spdk/nvme.h"

View File

@ -31,7 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <string.h>
#include "spdk/stdinc.h"
#include "blockdev_nvme.h"

View File

@ -31,20 +31,13 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk/stdinc.h"
#include "blockdev_rbd.h"
#include <stdio.h>
#include <stdbool.h>
#include <errno.h>
#include <pthread.h>
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <poll.h>
#include <sys/eventfd.h>
#include <rbd/librbd.h>
#include <rados/librados.h>
#include <sys/eventfd.h>
#include "spdk/conf.h"
#include "spdk/env.h"

View File

@ -34,7 +34,7 @@
#ifndef SPDK_BLOCKDEV_RBD_H
#define SPDK_BLOCKDEV_RBD_H
#include <stdint.h>
#include "spdk/stdinc.h"
#include "spdk/bdev.h"

View File

@ -36,11 +36,7 @@
* bdev and slices it into multiple smaller bdevs.
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <pthread.h>
#include "spdk/stdinc.h"
#include "spdk/rpc.h"
#include "spdk/conf.h"

View File

@ -30,14 +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 <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
#include <stdbool.h>
#include <signal.h>
#include "spdk/stdinc.h"
#include "spdk/blob_bdev.h"
#include "spdk/blob.h"

View File

@ -31,12 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdbool.h>
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "spdk/stdinc.h"
#include "spdk/blob.h"
#include "spdk/env.h"

View File

@ -31,9 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "spdk/stdinc.h"
#include "blobstore.h"
#include "request.h"

View File

@ -34,7 +34,7 @@
#ifndef SPDK_BS_REQUEST_H
#define SPDK_BS_REQUEST_H
#include <stdint.h>
#include "spdk/stdinc.h"
#include "spdk/blob.h"

View File

@ -31,12 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdbool.h>
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "spdk/stdinc.h"
#include "spdk/blobfs.h"
#include "blobfs_internal.h"

View File

@ -31,12 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdbool.h>
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "spdk/stdinc.h"
#include "spdk/blobfs.h"
#include "blobfs_internal.h"

View File

@ -32,14 +32,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk/stdinc.h"
#include "spdk/conf.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "spdk/string.h"
struct spdk_conf_value {

View File

@ -31,11 +31,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk_internal/copy_engine.h"
#include "spdk/stdinc.h"
#include <assert.h>
#include <stdio.h>
#include <errno.h>
#include "spdk_internal/copy_engine.h"
#include <rte_config.h>
#include <rte_memcpy.h>

View File

@ -31,10 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <assert.h>
#include <stdio.h>
#include <errno.h>
#include <pthread.h>
#include "spdk/stdinc.h"
#include "spdk_internal/copy_engine.h"

View File

@ -31,9 +31,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk_cunit.h"
#include "spdk/stdinc.h"
#include <stdio.h>
#include "spdk_cunit.h"
static int
spdk_cunit_get_test_result(CU_pTest test)

View File

@ -31,10 +31,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk/env.h"
#include "spdk/stdinc.h"
#include <string.h>
#include <unistd.h>
#include "spdk/env.h"
#include <rte_config.h>
#include <rte_cycles.h>

View File

@ -34,22 +34,12 @@
#ifndef SPDK_ENV_INTERNAL_H
#define SPDK_ENV_INTERNAL_H
#include "spdk/stdinc.h"
#define spdk_pci_device rte_pci_device
#include "spdk/env.h"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <dirent.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <pthread.h>
#include <stdbool.h>
#include <rte_config.h>
#include <rte_version.h>
#include <rte_eal.h>

View File

@ -31,21 +31,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "env_internal.h"
#include "spdk/stdinc.h"
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "env_internal.h"
#include <rte_config.h>
#include <rte_eal.h>

View File

@ -31,14 +31,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "env_internal.h"
#include "spdk/stdinc.h"
#include <inttypes.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
#include "env_internal.h"
#include <rte_config.h>
#include <rte_eal_memconfig.h>

View File

@ -31,20 +31,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk_internal/event.h"
#include "spdk/stdinc.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <signal.h>
#include "spdk_internal/event.h"
#include <rte_config.h>
#include <rte_lcore.h>

View File

@ -31,13 +31,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk_internal/event.h"
#include "spdk/stdinc.h"
#include <assert.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include "spdk_internal/event.h"
#ifdef __linux__
#include <sys/prctl.h>

View File

@ -31,12 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/types.h>
#include <signal.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include "spdk/stdinc.h"
#include "spdk/rpc.h"
#include "spdk/util.h"

View File

@ -31,11 +31,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk_internal/event.h"
#include "spdk/stdinc.h"
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#include "spdk_internal/event.h"
static TAILQ_HEAD(spdk_subsystem_list, spdk_subsystem) g_subsystems =
TAILQ_HEAD_INITIALIZER(g_subsystems);

View File

@ -31,6 +31,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk/stdinc.h"
#include "ioat_internal.h"
#include "spdk/env.h"
@ -38,8 +40,6 @@
#include "spdk_internal/log.h"
#include <pthread.h>
struct ioat_driver {
pthread_mutex_t lock;
TAILQ_HEAD(, spdk_ioat_chan) attached_chans;

View File

@ -34,15 +34,10 @@
#ifndef __IOAT_INTERNAL_H__
#define __IOAT_INTERNAL_H__
#include "spdk/stdinc.h"
#include "spdk/ioat.h"
#include "spdk/ioat_spec.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "spdk/queue.h"
#include "spdk/mmio.h"

View File

@ -32,11 +32,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include "spdk/stdinc.h"
#include "spdk/env.h"
#include "spdk/event.h"

View File

@ -32,24 +32,17 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include "spdk/queue.h"
#include <sys/ioctl.h>
#include <sys/epoll.h>
#include "spdk/stdinc.h"
#include <rte_config.h>
#include <rte_mempool.h>
#include <sys/epoll.h>
#include "spdk/endian.h"
#include "spdk/env.h"
#include "spdk/event.h"
#include "spdk/queue.h"
#include "spdk/trace.h"
#include "spdk/net.h"

View File

@ -35,8 +35,7 @@
#ifndef SPDK_ISCSI_CONN_H
#define SPDK_ISCSI_CONN_H
#include <stdbool.h>
#include <stdint.h>
#include "spdk/stdinc.h"
#include "iscsi/iscsi.h"
#include "spdk/queue.h"

View File

@ -32,13 +32,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <inttypes.h>
#include <stdint.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <sys/uio.h>
#include "spdk/stdinc.h"
#include "iscsi/iscsi.h"
#include "iscsi/crc32c.h"

View File

@ -35,9 +35,7 @@
#ifndef SPDK_CRC32C_H
#define SPDK_CRC32C_H
#include <stdint.h>
#include <stddef.h>
#include <sys/uio.h>
#include "spdk/stdinc.h"
#define SPDK_CRC32C_INITIAL 0xffffffffUL
#define SPDK_CRC32C_XOR 0xffffffffUL

View File

@ -32,20 +32,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <assert.h>
#include <inttypes.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <poll.h>
#include <pthread.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include "spdk/stdinc.h"
#include "spdk/conf.h"
#include "spdk/net.h"

View File

@ -32,23 +32,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdint.h>
#include <inttypes.h>
#include <assert.h>
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <poll.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/uio.h>
#include <fcntl.h>
#include <time.h>
#include "spdk/stdinc.h"
#include <rte_config.h>
#include <rte_mempool.h>
@ -166,7 +150,6 @@ spdk_make_digest_word(uint8_t *buf, size_t len, uint32_t crc32c)
#endif
#ifndef HAVE_SRANDOMDEV
#include <time.h>
static void
srandomdev(void)
{

View File

@ -35,11 +35,7 @@
#ifndef SPDK_ISCSI_H
#define SPDK_ISCSI_H
#include <stdint.h>
#include <pthread.h>
#include <sys/mman.h>
#include <sys/uio.h>
#include <stdbool.h>
#include "spdk/stdinc.h"
#include "spdk/bdev.h"
#include "spdk/iscsi_spec.h"

View File

@ -32,9 +32,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <inttypes.h>
#include <stddef.h>
#include <unistd.h>
#include "spdk/stdinc.h"
#include <rte_config.h>
#include <rte_mempool.h>

View File

@ -32,10 +32,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <inttypes.h>
#include <stdint.h>
#include "spdk/stdinc.h"
#include <stddef.h>
#include <openssl/md5.h>
#include "iscsi/md5.h"

View File

@ -35,7 +35,7 @@
#ifndef SPDK_MD5_H
#define SPDK_MD5_H
#include <stddef.h>
#include "spdk/stdinc.h"
#include <openssl/md5.h>

View File

@ -32,13 +32,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdint.h>
#include <inttypes.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include "spdk/stdinc.h"
#include "spdk/string.h"
#include "iscsi/iscsi.h"

View File

@ -35,7 +35,7 @@
#ifndef SPDK_ISCSI_PARAM_H
#define SPDK_ISCSI_PARAM_H
#include <stdint.h>
#include "spdk/stdinc.h"
enum iscsi_param_type {
ISPT_INVALID = -1,

View File

@ -32,21 +32,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <assert.h>
#include <inttypes.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <poll.h>
#include <pthread.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include "spdk/stdinc.h"
#include "spdk/conf.h"
#include "spdk/net.h"

View File

@ -32,27 +32,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <inttypes.h>
#include <stdint.h>
#include <ctype.h>
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <pthread.h>
#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include "spdk/stdinc.h"
#include "spdk/env.h"
#include "spdk/event.h"

View File

@ -35,8 +35,7 @@
#ifndef SPDK_ISCSI_TGT_NODE_H_
#define SPDK_ISCSI_TGT_NODE_H_
#include <pthread.h>
#include <time.h>
#include "spdk/stdinc.h"
#include "spdk/scsi.h"

View File

@ -34,19 +34,9 @@
#ifndef SPDK_JSON_INTERNAL_H_
#define SPDK_JSON_INTERNAL_H_
#include "spdk/stdinc.h"
#include "spdk/json.h"
#include <stdarg.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "spdk/likely.h"
#include "spdk/string.h"

View File

@ -34,19 +34,10 @@
#ifndef SPDK_JSONRPC_INTERNAL_H_
#define SPDK_JSONRPC_INTERNAL_H_
#include "spdk/stdinc.h"
#include "spdk/jsonrpc.h"
#include <assert.h>
#include <errno.h>
#include <poll.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include "spdk_internal/log.h"
#define SPDK_JSONRPC_RECV_BUF_SIZE (32 * 1024)

View File

@ -31,16 +31,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk_internal/log.h"
#include "spdk/stdinc.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <syslog.h>
#include <ctype.h>
#include <errno.h>
#include "spdk_internal/log.h"
static TAILQ_HEAD(, spdk_trace_flag) g_trace_flags = TAILQ_HEAD_INITIALIZER(g_trace_flags);

View File

@ -31,7 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdlib.h>
#include "spdk/stdinc.h"
#include "spdk/log.h"
#include "spdk/net.h"
@ -40,19 +40,9 @@
#ifdef __linux__ /* Interface management is Linux-specific */
#include <stdio.h>
#include <string.h>
#include <netinet/in.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <net/if.h>
#include <unistd.h>
#include <stdint.h>
#include <stdio.h>
#include <errno.h>
#include <arpa/inet.h>
#include <pthread.h>
#include <assert.h>
static TAILQ_HEAD(, spdk_interface) g_interface_head;

View File

@ -31,10 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "spdk/stdinc.h"
#include "spdk/rpc.h"
#include "spdk/net.h"

View File

@ -31,18 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <unistd.h>
#include "spdk/stdinc.h"
#include "spdk/event.h"
#include "spdk/log.h"

View File

@ -31,9 +31,11 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk/stdinc.h"
#include "nvme_internal.h"
#include "spdk/env.h"
#include <signal.h>
static int nvme_ctrlr_construct_and_submit_aer(struct spdk_nvme_ctrlr *ctrlr,
struct nvme_async_event_request *aer);

View File

@ -34,25 +34,14 @@
#ifndef __NVME_INTERNAL_H__
#define __NVME_INTERNAL_H__
#include "spdk/nvme.h"
#include "spdk/stdinc.h"
#include <errno.h>
#include <pthread.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "spdk/nvme.h"
#if defined(__i386__) || defined(__x86_64__)
#include <x86intrin.h>
#endif
#include <sys/user.h>
#include "spdk/queue.h"
#include "spdk/barrier.h"
#include "spdk/bit_array.h"

View File

@ -35,10 +35,7 @@
* NVMe over PCIe transport
*/
#include <sys/mman.h>
#include <signal.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include "spdk/stdinc.h"
#include "spdk/likely.h"
#include "nvme_internal.h"

View File

@ -35,17 +35,11 @@
* NVMe over RDMA transport
*/
#include <arpa/inet.h>
#include <fcntl.h>
#include "spdk/stdinc.h"
#include <infiniband/verbs.h>
#include <rdma/rdma_cma.h>
#include <rdma/rdma_verbs.h>
#include <unistd.h>
#include <stdint.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <netdb.h>
#include "spdk/assert.h"
#include "spdk/log.h"

View File

@ -31,22 +31,15 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk/stdinc.h"
#include "spdk/log.h"
#include "spdk/event.h"
#include "nvme_uevent.h"
#ifdef __linux__
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <linux/netlink.h>
#define SPDK_UEVENT_MSG_LEN 4096

View File

@ -35,8 +35,7 @@
* NVMe over Fabrics discovery service
*/
#include <ctype.h>
#include <assert.h>
#include "spdk/stdinc.h"
#include "nvmf_internal.h"
#include "session.h"

View File

@ -31,7 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <arpa/inet.h>
#include "spdk/stdinc.h"
#include "spdk/conf.h"
#include "spdk/nvmf.h"

View File

@ -34,10 +34,7 @@
#ifndef __NVMF_INTERNAL_H__
#define __NVMF_INTERNAL_H__
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "spdk/stdinc.h"
#include "spdk/nvmf_spec.h"
#include "spdk/assert.h"

View File

@ -31,15 +31,11 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <arpa/inet.h>
#include <fcntl.h>
#include <errno.h>
#include "spdk/stdinc.h"
#include <infiniband/verbs.h>
#include <rdma/rdma_cma.h>
#include <rdma/rdma_verbs.h>
#include <unistd.h>
#include <stdio.h>
#include <stdint.h>
#include "nvmf_internal.h"
#include "request.h"

View File

@ -31,7 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <assert.h>
#include "spdk/stdinc.h"
#include "nvmf_internal.h"
#include "request.h"

View File

@ -31,9 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <arpa/inet.h>
#include <stdint.h>
#include <string.h>
#include "spdk/stdinc.h"
#include "session.h"
#include "nvmf_internal.h"

View File

@ -34,8 +34,7 @@
#ifndef NVMF_SESSION_H
#define NVMF_SESSION_H
#include <stdint.h>
#include <stdbool.h>
#include "spdk/stdinc.h"
#include "spdk/nvmf_spec.h"
#include "spdk/queue.h"

View File

@ -31,8 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <ctype.h>
#include <assert.h>
#include "spdk/stdinc.h"
#include "nvmf_internal.h"
#include "session.h"

View File

@ -31,10 +31,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "transport.h"
#include "spdk/stdinc.h"
#include <stdlib.h>
#include <strings.h>
#include "transport.h"
#include "spdk/log.h"
#include "spdk/nvmf.h"

View File

@ -34,7 +34,7 @@
#ifndef SPDK_NVMF_TRANSPORT_H
#define SPDK_NVMF_TRANSPORT_H
#include <stdint.h>
#include "spdk/stdinc.h"
#include "spdk/nvmf.h"

View File

@ -31,8 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <string.h>
#include <stdlib.h>
#include "spdk/stdinc.h"
#include "subsystem.h"
#include "session.h"

View File

@ -31,20 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include "spdk/stdinc.h"
#include "spdk/queue.h"
#include "spdk/rpc.h"

View File

@ -35,19 +35,7 @@
#ifndef SPDK_SCSI_INTERNAL_H
#define SPDK_SCSI_INTERNAL_H
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/uio.h>
#include "spdk/stdinc.h"
#include "spdk/bdev.h"
#include "spdk/scsi.h"

View File

@ -31,21 +31,11 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk/stdinc.h"
#include "spdk/env.h"
#include "spdk/trace.h"
#include <assert.h>
#include <stdint.h>
#include <string.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <errno.h>
#include <rte_config.h>
#include <rte_lcore.h>

View File

@ -31,17 +31,11 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk/stdinc.h"
#include "spdk/bit_array.h"
#include "spdk/env.h"
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "spdk/likely.h"
#include "spdk/util.h"

View File

@ -31,13 +31,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk/fd.h"
#include "spdk/stdinc.h"
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdint.h>
#include "spdk/fd.h"
#ifdef __linux__
#include <linux/fs.h>

View File

@ -31,11 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stdbool.h>
#include <pthread.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "spdk/stdinc.h"
#include "spdk/io_channel.h"
#include "spdk/log.h"

Some files were not shown because too many files have changed in this diff Show More