DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] log: add missing experimental tag
@ 2018-12-04  8:28 David Marchand
  2018-12-04 15:18 ` Neil Horman
  0 siblings, 1 reply; 4+ messages in thread
From: David Marchand @ 2018-12-04  8:28 UTC (permalink / raw)
  To: dev; +Cc: stable, nhorman, tredaelli, ferruh.yigit, ivan.malov, arybchenko

When rte_log_register_type_and_pick_level() has been introduced, it has
been correctly added to the EXPERIMENTAL section of the eal map and the
symbol itself has been marked at its definition.

However, the declaration of this symbol in rte_log.h is missing the
__rte_experimental tag.
Because of this, a user can try to call this symbol without being aware
this is an experimental api (neither compilation nor link warning).

Fixes: b22e77c02620 ("eal: register log type and pick level from args")
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 lib/librte_eal/common/include/rte_log.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/librte_eal/common/include/rte_log.h b/lib/librte_eal/common/include/rte_log.h
index 2f789cb..f334efc 100644
--- a/lib/librte_eal/common/include/rte_log.h
+++ b/lib/librte_eal/common/include/rte_log.h
@@ -24,6 +24,7 @@
 
 #include <rte_common.h>
 #include <rte_config.h>
+#include <rte_compat.h>
 
 struct rte_log_dynamic_type;
 
@@ -226,6 +227,7 @@ struct rte_logs {
  *    - >=0: the newly registered log type
  *    - <0: rte_log_register() error value
  */
+__rte_experimental
 int rte_log_register_type_and_pick_level(const char *name, uint32_t level_def);
 
 /**
-- 
1.8.3.1

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

* Re: [dpdk-dev] [PATCH] log: add missing experimental tag
  2018-12-04  8:28 [dpdk-dev] [PATCH] log: add missing experimental tag David Marchand
@ 2018-12-04 15:18 ` Neil Horman
  2018-12-18 10:29   ` David Marchand
  2018-12-19  1:30   ` [dpdk-dev] [dpdk-stable] " Thomas Monjalon
  0 siblings, 2 replies; 4+ messages in thread
From: Neil Horman @ 2018-12-04 15:18 UTC (permalink / raw)
  To: David Marchand
  Cc: dev, stable, tredaelli, ferruh.yigit, ivan.malov, arybchenko

On Tue, Dec 04, 2018 at 09:28:31AM +0100, David Marchand wrote:
> When rte_log_register_type_and_pick_level() has been introduced, it has
> been correctly added to the EXPERIMENTAL section of the eal map and the
> symbol itself has been marked at its definition.
> 
> However, the declaration of this symbol in rte_log.h is missing the
> __rte_experimental tag.
> Because of this, a user can try to call this symbol without being aware
> this is an experimental api (neither compilation nor link warning).
> 
> Fixes: b22e77c02620 ("eal: register log type and pick level from args")
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
>  lib/librte_eal/common/include/rte_log.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/lib/librte_eal/common/include/rte_log.h b/lib/librte_eal/common/include/rte_log.h
> index 2f789cb..f334efc 100644
> --- a/lib/librte_eal/common/include/rte_log.h
> +++ b/lib/librte_eal/common/include/rte_log.h
> @@ -24,6 +24,7 @@
>  
>  #include <rte_common.h>
>  #include <rte_config.h>
> +#include <rte_compat.h>
>  
>  struct rte_log_dynamic_type;
>  
> @@ -226,6 +227,7 @@ struct rte_logs {
>   *    - >=0: the newly registered log type
>   *    - <0: rte_log_register() error value
>   */
> +__rte_experimental
>  int rte_log_register_type_and_pick_level(const char *name, uint32_t level_def);
>  
>  /**
> -- 
> 1.8.3.1
> 
> 
Acked-by: Neil Horman <nhorman@tuxdriver.com>

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

* Re: [dpdk-dev] [PATCH] log: add missing experimental tag
  2018-12-04 15:18 ` Neil Horman
@ 2018-12-18 10:29   ` David Marchand
  2018-12-19  1:30   ` [dpdk-dev] [dpdk-stable] " Thomas Monjalon
  1 sibling, 0 replies; 4+ messages in thread
From: David Marchand @ 2018-12-18 10:29 UTC (permalink / raw)
  To: thomas
  Cc: dev, stable, Timothy Redaelli, ferruh.yigit, ivan.malov,
	arybchenko, Neil Horman

Hello Thomas,

On Tue, Dec 4, 2018 at 4:20 PM Neil Horman <nhorman@tuxdriver.com> wrote:

> On Tue, Dec 04, 2018 at 09:28:31AM +0100, David Marchand wrote:
> > When rte_log_register_type_and_pick_level() has been introduced, it has
> > been correctly added to the EXPERIMENTAL section of the eal map and the
> > symbol itself has been marked at its definition.
> >
> > However, the declaration of this symbol in rte_log.h is missing the
> > __rte_experimental tag.
> > Because of this, a user can try to call this symbol without being aware
> > this is an experimental api (neither compilation nor link warning).
> >
> > Fixes: b22e77c02620 ("eal: register log type and pick level from args")
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
> Acked-by: Neil Horman <nhorman@tuxdriver.com>
>

Can you pick this fix ?
Thanks.

-- 
David Marchand

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

* Re: [dpdk-dev] [dpdk-stable] [PATCH] log: add missing experimental tag
  2018-12-04 15:18 ` Neil Horman
  2018-12-18 10:29   ` David Marchand
@ 2018-12-19  1:30   ` Thomas Monjalon
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2018-12-19  1:30 UTC (permalink / raw)
  To: David Marchand
  Cc: stable, Neil Horman, dev, tredaelli, ferruh.yigit, ivan.malov,
	arybchenko

04/12/2018 16:18, Neil Horman:
> On Tue, Dec 04, 2018 at 09:28:31AM +0100, David Marchand wrote:
> > When rte_log_register_type_and_pick_level() has been introduced, it has
> > been correctly added to the EXPERIMENTAL section of the eal map and the
> > symbol itself has been marked at its definition.
> > 
> > However, the declaration of this symbol in rte_log.h is missing the
> > __rte_experimental tag.
> > Because of this, a user can try to call this symbol without being aware
> > this is an experimental api (neither compilation nor link warning).
> > 
> > Fixes: b22e77c02620 ("eal: register log type and pick level from args")
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
> Acked-by: Neil Horman <nhorman@tuxdriver.com>

+Cc stable@dpdk.org

Applied, thanks

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

end of thread, other threads:[~2018-12-19  1:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-04  8:28 [dpdk-dev] [PATCH] log: add missing experimental tag David Marchand
2018-12-04 15:18 ` Neil Horman
2018-12-18 10:29   ` David Marchand
2018-12-19  1:30   ` [dpdk-dev] [dpdk-stable] " 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).