diff mbox

[lttng-modules] Fix: section mismatch warning caused by __exit annotation

Message ID 1488895951-12544-1-git-send-email-francis.deslauriers@efficios.com
State Accepted, archived
Headers show

Commit Message

Francis Deslauriers March 7, 2017, 2:12 p.m. UTC
lttng_logger_exit is used in a non-exit function so it can not be
annotated with `__exit`

Signed-off-by: Francis Deslauriers <francis.deslauriers at efficios.com>
---
 probes/lttng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mathieu Desnoyers March 7, 2017, 2:18 p.m. UTC | #1
merged into master and stable-2.9, thanks!

Mathieu

----- On Mar 7, 2017, at 9:12 AM, Francis Deslauriers francis.deslauriers at efficios.com wrote:

> lttng_logger_exit is used in a non-exit function so it can not be
> annotated with `__exit`
> 
> Signed-off-by: Francis Deslauriers <francis.deslauriers at efficios.com>
> ---
> probes/lttng.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/probes/lttng.c b/probes/lttng.c
> index 58aa515..8810fa2 100644
> --- a/probes/lttng.c
> +++ b/probes/lttng.c
> @@ -129,7 +129,7 @@ error:
> 	return ret;
> }
> 
> -void __exit lttng_logger_exit(void)
> +void lttng_logger_exit(void)
> {
> 	__lttng_events_exit__lttng();
> 	if (lttng_logger_dentry)
> --
> 2.7.4
diff mbox

Patch

diff --git a/probes/lttng.c b/probes/lttng.c
index 58aa515..8810fa2 100644
--- a/probes/lttng.c
+++ b/probes/lttng.c
@@ -129,7 +129,7 @@  error:
 	return ret;
 }
 
-void __exit lttng_logger_exit(void)
+void lttng_logger_exit(void)
 {
 	__lttng_events_exit__lttng();
 	if (lttng_logger_dentry)