Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751466AbdISHiV (ORCPT ); Tue, 19 Sep 2017 03:38:21 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34905 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750972AbdISHiT (ORCPT ); Tue, 19 Sep 2017 03:38:19 -0400 X-Google-Smtp-Source: AOwi7QCyHvT2fTiHC/EhwYVU+xo5+55rEyvI/AG/nJtTJWBc3UQYElU+AViyRlj4I4eUa+9RZ3P5Yg== From: Bhumika Goyal To: julia.lawall@lip6.fr, dhowells@redhat.com, linux-am33-list@redhat.com, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH v2] MN10300: make resource __initdata Date: Tue, 19 Sep 2017 13:08:01 +0530 Message-Id: <1505806681-26674-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 958 Lines: 34 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 --- 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