Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1734715 > unrolled thread

[PATCH v2] MN10300: make resource __initdata

Started byBhumika Goyal <bhumirks@gmail.com>
First post2017-09-19 09:40 +0200
Last post2017-09-19 09:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v2] MN10300: make resource __initdata Bhumika Goyal <bhumirks@gmail.com> - 2017-09-19 09:40 +0200

#1734715 — [PATCH v2] MN10300: make resource __initdata

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-09-19 09:40 +0200
Subject[PATCH v2] MN10300: make resource __initdata
Message-ID<urlip-1fu-7@gated-at.bofh.it>
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.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
Changes in v2:
* Replace __initconst with __initdata in the subject line.

 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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web