Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1624789 > unrolled thread

[PATCH 1/2 v2] char: misc: move the EXPORT_SYMBOL() declarations

Started byMartin Kaiser <martin@kaiser.cx>
First post2017-04-17 20:30 +0200
Last post2017-04-17 20:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/2 v2] char: misc: move the EXPORT_SYMBOL() declarations Martin Kaiser <martin@kaiser.cx> - 2017-04-17 20:30 +0200

#1624789 — [PATCH 1/2 v2] char: misc: move the EXPORT_SYMBOL() declarations

FromMartin Kaiser <martin@kaiser.cx>
Date2017-04-17 20:30 +0200
Subject[PATCH 1/2 v2] char: misc: move the EXPORT_SYMBOL() declarations
Message-ID<txjzs-42t-5@gated-at.bofh.it>
This fixes a checkpatch warning:
EXPORT_SYMBOL(foo); should immediately follow its function/variable.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web