* [dpdk-dev] [PATCH 1/2] eal/bsd: fix FreeBSD build
@ 2018-10-16 11:41 Jeff Guo
2018-10-16 12:04 ` Ferruh Yigit
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Guo @ 2018-10-16 11:41 UTC (permalink / raw)
To: bruce.richardson, ferruh.yigit, thomas; +Cc: dev, jia.guo
When compiling on FreeBSD, a warning/error is thrown for
unused parameter. This patch aim to fix the issue by delete
the useless func definition.
Signed-off-by: Jeff Guo <jia.guo@intel.com>
---
lib/librte_eal/bsdapp/eal/eal_dev.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/lib/librte_eal/bsdapp/eal/eal_dev.c b/lib/librte_eal/bsdapp/eal/eal_dev.c
index 3a3a2a5..255d611 100644
--- a/lib/librte_eal/bsdapp/eal/eal_dev.c
+++ b/lib/librte_eal/bsdapp/eal/eal_dev.c
@@ -33,11 +33,3 @@ rte_dev_hotplug_handle_disable(void)
RTE_LOG(ERR, EAL, "Device event is not supported for FreeBSD\n");
return -1;
}
-
-void __rte_experimental
-rte_dev_event_callback_process(const char *device_name,
- enum rte_dev_event_type event)
-{
- RTE_LOG(ERR, EAL,
- "Device event callback process is not supported for FreeBSD.\n");
-}
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH 1/2] eal/bsd: fix FreeBSD build
2018-10-16 11:41 [dpdk-dev] [PATCH 1/2] eal/bsd: fix FreeBSD build Jeff Guo
@ 2018-10-16 12:04 ` Ferruh Yigit
2018-10-16 12:38 ` Ferruh Yigit
0 siblings, 1 reply; 4+ messages in thread
From: Ferruh Yigit @ 2018-10-16 12:04 UTC (permalink / raw)
To: Jeff Guo, bruce.richardson, thomas; +Cc: dev
On 10/16/2018 12:41 PM, Jeff Guo wrote:
> When compiling on FreeBSD, a warning/error is thrown for
> unused parameter. This patch aim to fix the issue by delete
> the useless func definition.
This function is part of the public API, so it should exist for FreeBSD, I think
instead of deleting the function we can add __rte_unused to parameters that are
not used to prevent build error.
>
> Signed-off-by: Jeff Guo <jia.guo@intel.com>
> ---
> lib/librte_eal/bsdapp/eal/eal_dev.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/lib/librte_eal/bsdapp/eal/eal_dev.c b/lib/librte_eal/bsdapp/eal/eal_dev.c
> index 3a3a2a5..255d611 100644
> --- a/lib/librte_eal/bsdapp/eal/eal_dev.c
> +++ b/lib/librte_eal/bsdapp/eal/eal_dev.c
> @@ -33,11 +33,3 @@ rte_dev_hotplug_handle_disable(void)
> RTE_LOG(ERR, EAL, "Device event is not supported for FreeBSD\n");
> return -1;
> }
> -
> -void __rte_experimental
> -rte_dev_event_callback_process(const char *device_name,
> - enum rte_dev_event_type event)
> -{
> - RTE_LOG(ERR, EAL,
> - "Device event callback process is not supported for FreeBSD.\n");
> -}
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH 1/2] eal/bsd: fix FreeBSD build
2018-10-16 12:04 ` Ferruh Yigit
@ 2018-10-16 12:38 ` Ferruh Yigit
2018-10-18 8:09 ` Burakov, Anatoly
0 siblings, 1 reply; 4+ messages in thread
From: Ferruh Yigit @ 2018-10-16 12:38 UTC (permalink / raw)
To: Jeff Guo, bruce.richardson, thomas; +Cc: dev
On 10/16/2018 1:04 PM, Ferruh Yigit wrote:
> On 10/16/2018 12:41 PM, Jeff Guo wrote:
>> When compiling on FreeBSD, a warning/error is thrown for
>> unused parameter. This patch aim to fix the issue by delete
>> the useless func definition.
>
> This function is part of the public API, so it should exist for FreeBSD, I think
> instead of deleting the function we can add __rte_unused to parameters that are
> not used to prevent build error.
With second check, rte_dev_event_callback_process() seems already implemented in
common, lib/librte_eal/common/eal_common_dev.c, and doesn't need linux/bsd
specific implementation, so adding this to bsdapp seems error at first place.
OK to remove function.
Fixes: 89ecd110524d ("eal: modify device event process function")
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
>
>>
>> Signed-off-by: Jeff Guo <jia.guo@intel.com>
>> ---
>> lib/librte_eal/bsdapp/eal/eal_dev.c | 8 --------
>> 1 file changed, 8 deletions(-)
>>
>> diff --git a/lib/librte_eal/bsdapp/eal/eal_dev.c b/lib/librte_eal/bsdapp/eal/eal_dev.c
>> index 3a3a2a5..255d611 100644
>> --- a/lib/librte_eal/bsdapp/eal/eal_dev.c
>> +++ b/lib/librte_eal/bsdapp/eal/eal_dev.c
>> @@ -33,11 +33,3 @@ rte_dev_hotplug_handle_disable(void)
>> RTE_LOG(ERR, EAL, "Device event is not supported for FreeBSD\n");
>> return -1;
>> }
>> -
>> -void __rte_experimental
>> -rte_dev_event_callback_process(const char *device_name,
>> - enum rte_dev_event_type event)
>> -{
>> - RTE_LOG(ERR, EAL,
>> - "Device event callback process is not supported for FreeBSD.\n");
>> -}
>>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH 1/2] eal/bsd: fix FreeBSD build
2018-10-16 12:38 ` Ferruh Yigit
@ 2018-10-18 8:09 ` Burakov, Anatoly
0 siblings, 0 replies; 4+ messages in thread
From: Burakov, Anatoly @ 2018-10-18 8:09 UTC (permalink / raw)
To: Ferruh Yigit, Jeff Guo, bruce.richardson, thomas; +Cc: dev
On 16-Oct-18 1:38 PM, Ferruh Yigit wrote:
> On 10/16/2018 1:04 PM, Ferruh Yigit wrote:
>> On 10/16/2018 12:41 PM, Jeff Guo wrote:
>>> When compiling on FreeBSD, a warning/error is thrown for
>>> unused parameter. This patch aim to fix the issue by delete
>>> the useless func definition.
>>
>> This function is part of the public API, so it should exist for FreeBSD, I think
>> instead of deleting the function we can add __rte_unused to parameters that are
>> not used to prevent build error.
>
> With second check, rte_dev_event_callback_process() seems already implemented in
> common, lib/librte_eal/common/eal_common_dev.c, and doesn't need linux/bsd
> specific implementation, so adding this to bsdapp seems error at first place.
>
> OK to remove function.
> Fixes: 89ecd110524d ("eal: modify device event process function")
>
> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Agree, but then the commit message is misleading and should be reworded
to indicate the real purpose of the fix.
>
>>
>>>
>>> Signed-off-by: Jeff Guo <jia.guo@intel.com>
>>> ---
>>> lib/librte_eal/bsdapp/eal/eal_dev.c | 8 --------
>>> 1 file changed, 8 deletions(-)
>>>
>>> diff --git a/lib/librte_eal/bsdapp/eal/eal_dev.c b/lib/librte_eal/bsdapp/eal/eal_dev.c
>>> index 3a3a2a5..255d611 100644
>>> --- a/lib/librte_eal/bsdapp/eal/eal_dev.c
>>> +++ b/lib/librte_eal/bsdapp/eal/eal_dev.c
>>> @@ -33,11 +33,3 @@ rte_dev_hotplug_handle_disable(void)
>>> RTE_LOG(ERR, EAL, "Device event is not supported for FreeBSD\n");
>>> return -1;
>>> }
>>> -
>>> -void __rte_experimental
>>> -rte_dev_event_callback_process(const char *device_name,
>>> - enum rte_dev_event_type event)
>>> -{
>>> - RTE_LOG(ERR, EAL,
>>> - "Device event callback process is not supported for FreeBSD.\n");
>>> -}
>>>
>>
>
>
--
Thanks,
Anatoly
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-10-18 8:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-16 11:41 [dpdk-dev] [PATCH 1/2] eal/bsd: fix FreeBSD build Jeff Guo
2018-10-16 12:04 ` Ferruh Yigit
2018-10-16 12:38 ` Ferruh Yigit
2018-10-18 8:09 ` Burakov, Anatoly
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).