From 0ffacf3b8ae169a26c941345b7fa54e1624f6b95 Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Thu, 11 Jun 2015 16:39:42 +0530 Subject: [PATCH] greybus: endo: Fix compilation warning WARNING: /home/viresh/work/repos/ara/greybus/greybus.o(.init.text+0xb8): Section mismatch in reference from the function init_module() to the function .exit.text:gb_endo_exit() The function __init init_module() references a function __exit gb_endo_exit(). Fix it by removing __exit from endo_exit(). Fixes: cf64356c5151 ("endo: define endo_init() and endo_exit()") Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/endo.c | 2 +- drivers/staging/greybus/endo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/greybus/endo.c b/drivers/staging/greybus/endo.c index c77861463883..baa4aa581096 100644 --- a/drivers/staging/greybus/endo.c +++ b/drivers/staging/greybus/endo.c @@ -529,6 +529,6 @@ int __init gb_endo_init(void) return 0; } -void __exit gb_endo_exit(void) +void gb_endo_exit(void) { } diff --git a/drivers/staging/greybus/endo.h b/drivers/staging/greybus/endo.h index d9f4976ac63d..ad5728c5b4a0 100644 --- a/drivers/staging/greybus/endo.h +++ b/drivers/staging/greybus/endo.h @@ -50,7 +50,7 @@ struct gb_endo { struct greybus_host_device; int gb_endo_init(void) __init; -void gb_endo_exit(void) __exit; +void gb_endo_exit(void); struct gb_endo *gb_endo_create(struct greybus_host_device *hd, u16 endo_id, u8 ap_intf_id); -- 2.11.0