mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bhumika Goyal <bhumirks@gmail.com>
To: julia.lawall@lip6.fr, dhowells@redhat.com,
	linux-am33-list@redhat.com, linux-kernel@vger.kernel.org
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH] MN10300: make resource __initconst
Date: Tue, 19 Sep 2017 12:51:19 +0530	[thread overview]
Message-ID: <1505805679-22102-1-git-send-email-bhumirks@gmail.com> (raw)

Make code_resource and data_resource __initdata as these are only
modified during the init phase and after that the structures and their
fields are not referenced anywhere.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 arch/mn10300/kernel/setup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mn10300/kernel/setup.c b/arch/mn10300/kernel/setup.c
index 1b3d80d..5c21ef9 100644
--- a/arch/mn10300/kernel/setup.c
+++ b/arch/mn10300/kernel/setup.c
@@ -41,13 +41,13 @@
 
 char __initdata redboot_platform_name[COMMAND_LINE_SIZE];
 
-static struct resource code_resource = {
+static struct resource code_resource __initdata = {
 	.start	= 0x100000,
 	.end	= 0,
 	.name	= "Kernel code",
 };
 
-static struct resource data_resource = {
+static struct resource data_resource __initdata = {
 	.start	= 0,
 	.end	= 0,
 	.name	= "Kernel data",
-- 
1.9.1

                 reply	other threads:[~2017-09-19  7:21 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=1505805679-22102-1-git-send-email-bhumirks@gmail.com \
    --to=bhumirks@gmail.com \
    --cc=dhowells@redhat.com \
    --cc=julia.lawall@lip6.fr \
    --cc=linux-am33-list@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®