[PATCH] char: misc: EXPORT_SYMBOL should immediately follow its function
From: Rahul Bedarkar
Date: Sat Oct 11 2014 - 14:31:34 EST
This patch fixes checkpatch.pl warning
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
Signed-off-by: Rahul Bedarkar <rahulbedarkar89@xxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/