]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
greybus: endo: Fix compilation warning
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 11 Jun 2015 11:09:42 +0000 (16:39 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 11 Jun 2015 16:18:45 +0000 (09:18 -0700)
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 <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/endo.c
drivers/staging/greybus/endo.h

index c778614638839830b60e9fbc1e127c9b3a741849..baa4aa581096820292d83d31bc8a96ae0aa541af 100644 (file)
@@ -529,6 +529,6 @@ int __init gb_endo_init(void)
        return 0;
 }
 
-void __exit gb_endo_exit(void)
+void gb_endo_exit(void)
 {
 }
index d9f4976ac63d93aa71a82d65e0cfd986b01e0cb5..ad5728c5b4a01185c8cc9e392087f5fa3f327a68 100644 (file)
@@ -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);