From: Bhumika Goyal <bhumirks@gmail.com>
To: julia.lawall@lip6.fr, tony.luck@intel.com, fenghua.yu@intel.com,
linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH] [IA64] sn: make sn_screen_info const, static and __initconst
Date: Thu, 28 Sep 2017 20:47:35 +0530 [thread overview]
Message-ID: <1506611855-20098-1-git-send-email-bhumirks@gmail.com> (raw)
Make this structure static as it is only used in the file in which it is
defined. Make it const as it is only used during a copy operation. Make
it __initconst as this usage is during the init phase.
Structure found using Coccinelle and changes done by hand.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
arch/ia64/sn/kernel/setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/ia64/sn/kernel/setup.c b/arch/ia64/sn/kernel/setup.c
index 5f6b6b4..5f4b15f 100644
--- a/arch/ia64/sn/kernel/setup.c
+++ b/arch/ia64/sn/kernel/setup.c
@@ -110,7 +110,7 @@
* code. This is just enough to make the console code think we're on a
* VGA color display.
*/
-struct screen_info sn_screen_info = {
+static const struct screen_info sn_screen_info __initconst = {
.orig_x = 0,
.orig_y = 0,
.orig_video_mode = 3,
--
1.9.1
reply other threads:[~2017-09-28 15:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1506611855-20098-1-git-send-email-bhumirks@gmail.com \
--to=bhumirks@gmail.com \
--cc=fenghua.yu@intel.com \
--cc=julia.lawall@lip6.fr \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®