summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-05-28 12:07:46 +0100
committerKevin Traynor <ktraynor@redhat.com>2019-10-02 15:52:10 +0100
commit7ffe32a15d8c9e540a68f7ae8a7a1bb00f175ac8 (patch)
tree0b9034918795f61f1eeaa055bb9ddb4910effad4
parent5c3c20a8a8aa624ccb58433adedaa44a14b232ab (diff)
downloaddpdk-stable-7ffe32a15d8c9e540a68f7ae8a7a1bb00f175ac8.zip
dpdk-stable-7ffe32a15d8c9e540a68f7ae8a7a1bb00f175ac8.tar.gz
dpdk-stable-7ffe32a15d8c9e540a68f7ae8a7a1bb00f175ac8.tar.xz
build: remove unnecessary large file support defines
[ upstream commit f5256f8dfd959aae5a544048d1c0bdbdc1e5becf] Since we now always use _FILE_OFFSET_BITS=64 flag when building DPDK, we can remove the Makefile and C-file #defines setting it individually for parts of the build. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
-rw-r--r--examples/vhost_crypto/meson.build1
-rw-r--r--examples/vhost_scsi/meson.build1
-rw-r--r--lib/librte_eal/linuxapp/eal/eal_memalloc.c1
-rw-r--r--lib/librte_eal/linuxapp/eal/eal_memory.c1
-rw-r--r--lib/librte_vhost/Makefile2
5 files changed, 1 insertions, 5 deletions
diff --git a/examples/vhost_crypto/meson.build b/examples/vhost_crypto/meson.build
index 8e9860f..2485f3b 100644
--- a/examples/vhost_crypto/meson.build
+++ b/examples/vhost_crypto/meson.build
@@ -9,7 +9,6 @@
build = dpdk_conf.has('RTE_LIBRTE_VHOST')
allow_experimental_apis = true
deps += ['vhost', 'cryptodev']
-cflags += ['-D_FILE_OFFSET_BITS=64']
sources = files(
'main.c'
)
diff --git a/examples/vhost_scsi/meson.build b/examples/vhost_scsi/meson.build
index 2303bca..3b41b3b 100644
--- a/examples/vhost_scsi/meson.build
+++ b/examples/vhost_scsi/meson.build
@@ -10,7 +10,6 @@ if host_machine.system() != 'linux'
build = false
endif
deps += 'vhost'
-cflags += ['-D_FILE_OFFSET_BITS=64']
sources = files(
'scsi.c', 'vhost_scsi.c'
)
diff --git a/lib/librte_eal/linuxapp/eal/eal_memalloc.c b/lib/librte_eal/linuxapp/eal/eal_memalloc.c
index f85c1f3..bff7dcd 100644
--- a/lib/librte_eal/linuxapp/eal/eal_memalloc.c
+++ b/lib/librte_eal/linuxapp/eal/eal_memalloc.c
@@ -2,7 +2,6 @@
* Copyright(c) 2017-2018 Intel Corporation
*/
-#define _FILE_OFFSET_BITS 64
#include <errno.h>
#include <stdarg.h>
#include <stdbool.h>
diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c
index 898bdb7..1f2151a 100644
--- a/lib/librte_eal/linuxapp/eal/eal_memory.c
+++ b/lib/librte_eal/linuxapp/eal/eal_memory.c
@@ -3,7 +3,6 @@
* Copyright(c) 2013 6WIND S.A.
*/
-#define _FILE_OFFSET_BITS 64
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
diff --git a/lib/librte_vhost/Makefile b/lib/librte_vhost/Makefile
index 5dd3189..8623e91 100644
--- a/lib/librte_vhost/Makefile
+++ b/lib/librte_vhost/Makefile
@@ -11,7 +11,7 @@ EXPORT_MAP := rte_vhost_version.map
LIBABIVER := 4
CFLAGS += -DALLOW_EXPERIMENTAL_API
-CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -D_FILE_OFFSET_BITS=64
+CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3
CFLAGS += -I vhost_user
CFLAGS += -fno-strict-aliasing
LDLIBS += -lpthread