[PATCH 1/2 v2] char: misc: move the EXPORT_SYMBOL() declarations
From: Martin Kaiser
Date: Mon Apr 17 2017 - 14:23:18 EST
This fixes a checkpatch warning:
EXPORT_SYMBOL(foo); should immediately follow its function/variable.
Signed-off-by: Martin Kaiser <martin@xxxxxxxxx>
---
v2:
separate patch for each checkpatch warning
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 c9cd1ea..3447b2e 100644
--- a/drivers/char/misc.c
+++ b/drivers/char/misc.c
@@ -238,6 +238,7 @@ int misc_register(struct miscdevice *misc)
mutex_unlock(&misc_mtx);
return err;
}
+EXPORT_SYMBOL(misc_register);
/**
* misc_deregister - unregister a miscellaneous device
@@ -261,8 +262,6 @@ void misc_deregister(struct miscdevice *misc)
clear_bit(i, misc_minors);
mutex_unlock(&misc_mtx);
}
-
-EXPORT_SYMBOL(misc_register);
EXPORT_SYMBOL(misc_deregister);
static char *misc_devnode(struct device *dev, umode_t *mode)
--
1.7.10.4