forked from beagleboard/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bluetooth: Use numbers for subsystem version string
Instead of keeping a version string around, use version and revision numbers and then stringify them for use as module parameter. Signed-off-by: Marcel Holtmann <[email protected]> Signed-off-by: Johan Hedberg <[email protected]>
- Loading branch information
Showing
3 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
|
||
#include <linux/module.h> | ||
#include <linux/debugfs.h> | ||
#include <linux/stringify.h> | ||
#include <asm/ioctls.h> | ||
|
||
#include <net/bluetooth/bluetooth.h> | ||
|
@@ -713,13 +714,16 @@ static struct net_proto_family bt_sock_family_ops = { | |
struct dentry *bt_debugfs; | ||
EXPORT_SYMBOL_GPL(bt_debugfs); | ||
|
||
#define VERSION __stringify(BT_SUBSYS_VERSION) "." \ | ||
__stringify(BT_SUBSYS_REVISION) | ||
|
||
static int __init bt_init(void) | ||
{ | ||
int err; | ||
|
||
sock_skb_cb_check_size(sizeof(struct bt_skb_cb)); | ||
|
||
BT_INFO("Core ver %s", BT_SUBSYS_VERSION); | ||
BT_INFO("Core ver %s", VERSION); | ||
|
||
err = bt_selftest(); | ||
if (err < 0) | ||
|
@@ -797,7 +801,7 @@ subsys_initcall(bt_init); | |
module_exit(bt_exit); | ||
|
||
MODULE_AUTHOR("Marcel Holtmann <[email protected]>"); | ||
MODULE_DESCRIPTION("Bluetooth Core ver " BT_SUBSYS_VERSION); | ||
MODULE_VERSION(BT_SUBSYS_VERSION); | ||
MODULE_DESCRIPTION("Bluetooth Core ver " VERSION); | ||
MODULE_VERSION(VERSION); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_ALIAS_NETPROTO(PF_BLUETOOTH); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters