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

* Re: [dpdk-dev] [PATCH] contigmem: include <sys/vmmeter.h> to fix FreeBSD build
  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
  1 sibling, 1 reply; 7+ messages in thread
From: Bruce Richardson @ 2017-11-30  9:56 UTC (permalink / raw)
  To: kefu chai; +Cc: dev

On Thu, Nov 30, 2017 at 02:00:38PM +0800, kefu chai wrote:
> 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>
> ---

Hi,

what version of FreeBSD does this error occur on? Though it's been a few
weeks since I last tested, I haven't seen it before on other FreeBSD 10
or 11.

Regards,
/Bruce

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

* Re: [dpdk-dev] [PATCH] contigmem: include <sys/vmmeter.h> to fix FreeBSD build
  2017-11-30  9:56 ` Bruce Richardson
@ 2017-12-01  2:00   ` kefu chai
  0 siblings, 0 replies; 7+ messages in thread
From: kefu chai @ 2017-12-01  2:00 UTC (permalink / raw)
  To: Bruce Richardson, Willem Jan Withagen; +Cc: dev

+ Willem, he reported this issue

On Thu, Nov 30, 2017 at 5:56 PM, Bruce Richardson
<bruce.richardson@intel.com> wrote:
> On Thu, Nov 30, 2017 at 02:00:38PM +0800, kefu chai wrote:
>> 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>
>> ---
>
> Hi,
>
> what version of FreeBSD does this error occur on? Though it's been a few
> weeks since I last tested, I haven't seen it before on other FreeBSD 10
> or 11.

Bruce,

wjw@cephdev:~ % uname -a
FreeBSD cephdev.digiware.nl 12.0-CURRENT FreeBSD 12.0-CURRENT #15
r324142M: Sun Oct  1 08:19:29 CEST 2017
root@cephdev.digiware.nl:/usr/obj/usr/srcs/head/src/sys/GENERIC-NODEBUG
 amd64

>
> Regards,
> /Bruce



-- 
Regards
Kefu Chai

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

* Re: [dpdk-dev] [PATCH] contigmem: include <sys/vmmeter.h> to fix FreeBSD build
  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 10:20 ` Bruce Richardson
  1 sibling, 0 replies; 7+ messages in thread
From: Bruce Richardson @ 2017-12-01 10:20 UTC (permalink / raw)
  To: kefu chai; +Cc: dev

On Thu, Nov 30, 2017 at 02:00:38PM +0800, kefu chai wrote:
> 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>
> ---

The commit log could do with being updated to note that the error occurs
with, currently unreleased, FreeBSD 12  Otherwise:

Acked-by: Bruce Richardson <bruce.richardson@intel.com>

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

* Re: [dpdk-dev] [PATCH] contigmem: include <sys/vmmeter.h> to fix FreeBSD build
  2017-12-01 13:20 ` Bruce Richardson
@ 2018-01-09 15:38   ` Thomas Monjalon
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Monjalon @ 2018-01-09 15:38 UTC (permalink / raw)
  To: kefu chai; +Cc: dev, Bruce Richardson

01/12/2017 14:20, Bruce Richardson:
> On Fri, Dec 01, 2017 at 07:22:39PM +0800, kefu chai wrote:
> > 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>
> > ---
> As before:
> 
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied, thanks

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

* Re: [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
  2018-01-09 15:38   ` Thomas Monjalon
  0 siblings, 1 reply; 7+ messages in thread
From: Bruce Richardson @ 2017-12-01 13:20 UTC (permalink / raw)
  To: kefu chai; +Cc: dev

On Fri, Dec 01, 2017 at 07:22:39PM +0800, kefu chai wrote:
> 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>
> ---
As before:

Acked-by: Bruce Richardson <bruce.richardson@intel.com>

NOTE: for minor changes to patches, feel free to include an acked-by tag
on the patch submission if the previous version had already been acked.
Also, it's good practice to have updated versions marked with a V2
number and posted in reply to the original submission. See dev page on
dpdk.org for more details. http://dpdk.org/dev/

^ 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).