[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1413052276-2575-1-git-send-email-rahulbedarkar89@gmail.com>
Date: Sun, 12 Oct 2014 00:01:16 +0530
From: Rahul Bedarkar <rahulbedarkar89@...il.com>
To: Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org,
Rahul Bedarkar <rahulbedarkar89@...il.com>
Subject: [PATCH] char: misc: EXPORT_SYMBOL should immediately follow its function
This patch fixes checkpatch.pl warning
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
Signed-off-by: Rahul Bedarkar <rahulbedarkar89@...il.com>
---
drivers/char/misc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/char/misc.c b/drivers/char/misc.c
index 3111e86..75b6de9 100644
--- a/drivers/char/misc.c
+++ b/drivers/char/misc.c
@@ -226,6 +226,7 @@ int misc_register(struct miscdevice *misc)
mutex_unlock(&misc_mtx);
return err;
}
+EXPORT_SYMBOL(misc_register);
/**
* misc_deregister - unregister a miscellaneous device
@@ -252,8 +253,6 @@ int misc_deregister(struct miscdevice *misc)
mutex_unlock(&misc_mtx);
return 0;
}
-
-EXPORT_SYMBOL(misc_register);
EXPORT_SYMBOL(misc_deregister);
static char *misc_devnode(struct device *dev, umode_t *mode)
--
1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists