diff mbox

[OVS,v2,1/4] Fix ODP linking test code

Message ID 1414589046-16214-2-git-send-email-zoltan.kiss@linaro.org
State New
Headers show

Commit Message

Zoltan Kiss Oct. 29, 2014, 1:24 p.m. UTC
An empty parameter list is not very standard, better specify it explicitly.

Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
---
 acinclude.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ciprian Barbu Oct. 30, 2014, 11:17 a.m. UTC | #1
On Wed, Oct 29, 2014 at 3:24 PM, Zoltan Kiss <zoltan.kiss@linaro.org> wrote:
> An empty parameter list is not very standard, better specify it explicitly.

You mean the parameter list for odp_init_global? It's not empty in
last ODP version, you have to specify it.

>
> Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
> ---
>  acinclude.m4 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/acinclude.m4 b/acinclude.m4
> index 09295d2..68f49b7 100644
> --- a/acinclude.m4
> +++ b/acinclude.m4
> @@ -294,7 +294,7 @@ AC_DEFUN([OVS_CHECK_ODP], [
>          LIBS="-lodp $extras $save_LIBS"
>          AC_LINK_IFELSE(
>             [AC_LANG_PROGRAM([#include <odp.h>],
> -                            [odp_init_global();])],
> +                            [odp_init_global(NULL, NULL);])],
>             [found=true])
>          if $found; then
>              break
> --
> 1.9.1
>
Zoltan Kiss Oct. 30, 2014, 11:48 a.m. UTC | #2
On 30/10/14 11:17, Ciprian Barbu wrote:
> On Wed, Oct 29, 2014 at 3:24 PM, Zoltan Kiss <zoltan.kiss@linaro.org> wrote:
>> An empty parameter list is not very standard, better specify it explicitly.
>
> You mean the parameter list for odp_init_global? It's not empty in
> last ODP version, you have to specify it.
Yes, I meant that :) Reading it again, my commit message is absolutely 
rubbish, please ignore it. Here is a better one:
The init function now has parameters, pass NULL pointers for the linking 
test.
>
>>
>> Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
>> ---
>>   acinclude.m4 | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/acinclude.m4 b/acinclude.m4
>> index 09295d2..68f49b7 100644
>> --- a/acinclude.m4
>> +++ b/acinclude.m4
>> @@ -294,7 +294,7 @@ AC_DEFUN([OVS_CHECK_ODP], [
>>           LIBS="-lodp $extras $save_LIBS"
>>           AC_LINK_IFELSE(
>>              [AC_LANG_PROGRAM([#include <odp.h>],
>> -                            [odp_init_global();])],
>> +                            [odp_init_global(NULL, NULL);])],
>>              [found=true])
>>           if $found; then
>>               break
>> --
>> 1.9.1
>>
Ciprian Barbu Oct. 30, 2014, 12:14 p.m. UTC | #3
On Thu, Oct 30, 2014 at 1:48 PM, Zoltan Kiss <zoltan.kiss@linaro.org> wrote:
>
>
> On 30/10/14 11:17, Ciprian Barbu wrote:
>>
>> On Wed, Oct 29, 2014 at 3:24 PM, Zoltan Kiss <zoltan.kiss@linaro.org>
>> wrote:
>>>
>>> An empty parameter list is not very standard, better specify it
>>> explicitly.
>>
>>
>> You mean the parameter list for odp_init_global? It's not empty in
>> last ODP version, you have to specify it.
>
> Yes, I meant that :) Reading it again, my commit message is absolutely
> rubbish, please ignore it. Here is a better one:
> The init function now has parameters, pass NULL pointers for the linking
> test.

Sounds much better :)

>
>>
>>>
>>> Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
>>> ---
>>>   acinclude.m4 | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/acinclude.m4 b/acinclude.m4
>>> index 09295d2..68f49b7 100644
>>> --- a/acinclude.m4
>>> +++ b/acinclude.m4
>>> @@ -294,7 +294,7 @@ AC_DEFUN([OVS_CHECK_ODP], [
>>>           LIBS="-lodp $extras $save_LIBS"
>>>           AC_LINK_IFELSE(
>>>              [AC_LANG_PROGRAM([#include <odp.h>],
>>> -                            [odp_init_global();])],
>>> +                            [odp_init_global(NULL, NULL);])],
>>>              [found=true])
>>>           if $found; then
>>>               break
>>> --
>>> 1.9.1
>>>
>
diff mbox

Patch

diff --git a/acinclude.m4 b/acinclude.m4
index 09295d2..68f49b7 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -294,7 +294,7 @@  AC_DEFUN([OVS_CHECK_ODP], [
         LIBS="-lodp $extras $save_LIBS"
         AC_LINK_IFELSE(
            [AC_LANG_PROGRAM([#include <odp.h>],
-                            [odp_init_global();])],
+                            [odp_init_global(NULL, NULL);])],
            [found=true])
         if $found; then
             break