[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1492453377-23796-1-git-send-email-martin@kaiser.cx>
Date: Mon, 17 Apr 2017 20:22:56 +0200
From: Martin Kaiser <martin@...ser.cx>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Arnd Bergmann <arnd@...db.de>, Martin Kaiser <martin@...ser.cx>
Subject: [PATCH 1/2 v2] char: misc: move the EXPORT_SYMBOL() declarations
This fixes a checkpatch warning:
EXPORT_SYMBOL(foo); should immediately follow its function/variable.
Signed-off-by: Martin Kaiser <martin@...ser.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
Powered by blists - more mailing lists