OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6340b02
)
tty: synclink_gt: define global strings as const strings
author
Jiri Slaby
<jirislaby@kernel.org>
Mon, 31 Jul 2023 08:59:58 +0000
(10:59 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 31 Jul 2023 15:16:20 +0000
(17:16 +0200)
And not non-const pointers to strings.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link:
https://lore.kernel.org/r/20230731090002.15680-4-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/synclink_gt.c
patch
|
blob
|
history
diff --git
a/drivers/tty/synclink_gt.c
b/drivers/tty/synclink_gt.c
index
c2ab7ec
..
a8716a8
100644
(file)
--- a/
drivers/tty/synclink_gt.c
+++ b/
drivers/tty/synclink_gt.c
@@
-87,8
+87,8
@@
/*
* module identification
*/
-static c
har *driver_name
= "SyncLink GT";
-static c
har *tty_dev_prefix
= "ttySLG";
+static c
onst char driver_name[]
= "SyncLink GT";
+static c
onst char tty_dev_prefix[]
= "ttySLG";
MODULE_LICENSE("GPL");
#define MAX_DEVICES 32