projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b05a1e
)
macintosh: ans-lcd: make anslcd_logo static and __initconst
author
Rasmus Villemoes
<linux@rasmusvillemoes.dk>
Fri, 2 Nov 2018 21:17:06 +0000
(22:17 +0100)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Tue, 5 Nov 2019 13:28:59 +0000
(
00:28
+1100)
This variable has no reason to have external linkage, and since it is
only used in an __init function, it might as well be made __initconst
also.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/20181102211707.10229-1-linux@rasmusvillemoes.dk
drivers/macintosh/ans-lcd.c
patch
|
blob
|
history
diff --git
a/drivers/macintosh/ans-lcd.c
b/drivers/macintosh/ans-lcd.c
index
400960c
..
b1314d1
100644
(file)
--- a/
drivers/macintosh/ans-lcd.c
+++ b/
drivers/macintosh/ans-lcd.c
@@
-147,7
+147,8
@@
static struct miscdevice anslcd_dev = {
&anslcd_fops
};
-const char anslcd_logo[] = "********************" /* Line #1 */
+static const char anslcd_logo[] __initconst =
+ "********************" /* Line #1 */
"* LINUX! *" /* Line #3 */
"* Welcome to *" /* Line #2 */
"********************"; /* Line #4 */