DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] contigmem: include <sys/vmmeter.h> to fix FreeBSD build
@ 2017-11-30  6:00 kefu chai
  2017-11-30  9:56 ` Bruce Richardson
  2017-12-01 10:20 ` Bruce Richardson
  0 siblings, 2 replies; 7+ messages in thread
From: kefu chai @ 2017-11-30  6:00 UTC (permalink / raw)
  To: dev; +Cc: Kefu Chai

otherwise the build fails with

In file included from contigmem.c:57:
/usr/srcs/head/src/sys/vm/vm_phys.h:122:10: error: use of undeclared
identifier 'vm_cnt'
        return (vm_cnt.v_free_count += adj);
                ^
1 error generated.
*** Error code 1

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
---
 lib/librte_eal/bsdapp/contigmem/contigmem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_eal/bsdapp/contigmem/contigmem.c
b/lib/librte_eal/bsdapp/contigmem/contigmem.c
index e8fb9087d..9676d8b35 100644
--- a/lib/librte_eal/bsdapp/contigmem/contigmem.c
+++ b/lib/librte_eal/bsdapp/contigmem/contigmem.c
@@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/rwlock.h>
 #include <sys/systm.h>
 #include <sys/sysctl.h>
+#include <sys/vmmeter.h>

 #include <machine/bus.h>

--
2.15.0

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [dpdk-dev] [PATCH] contigmem: include <sys/vmmeter.h> to fix FreeBSD build
@ 2017-12-01 11:22 kefu chai
  2017-12-01 13:20 ` Bruce Richardson
  0 siblings, 1 reply; 7+ messages in thread
From: kefu chai @ 2017-12-01 11:22 UTC (permalink / raw)
  To: dev; +Cc: Bruce Richardson

otherwise the build fails with FreeBSD 12, like

In file included from contigmem.c:57:
/usr/srcs/head/src/sys/vm/vm_phys.h:122:10: error: use of undeclared
identifier 'vm_cnt'
        return (vm_cnt.v_free_count += adj);
                ^
1 error generated.
*** Error code 1

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
---
 lib/librte_eal/bsdapp/contigmem/contigmem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_eal/bsdapp/contigmem/contigmem.c
b/lib/librte_eal/bsdapp/contigmem/contigmem.c
index e8fb9087d..9676d8b35 100644
--- a/lib/librte_eal/bsdapp/contigmem/contigmem.c
+++ b/lib/librte_eal/bsdapp/contigmem/contigmem.c
@@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/rwlock.h>
 #include <sys/systm.h>
 #include <sys/sysctl.h>
+#include <sys/vmmeter.h>

 #include <machine/bus.h>

--
2.15.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-01-09 15:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-30  6:00 [dpdk-dev] [PATCH] contigmem: include <sys/vmmeter.h> to fix FreeBSD build kefu chai
2017-11-30  9:56 ` Bruce Richardson
2017-12-01  2:00   ` kefu chai
2017-12-01 10:20 ` Bruce Richardson
2017-12-01 11:22 kefu chai
2017-12-01 13:20 ` Bruce Richardson
2018-01-09 15:38   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).