Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751455AbdISHoB (ORCPT ); Tue, 19 Sep 2017 03:44:01 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33451 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750918AbdISHoA (ORCPT ); Tue, 19 Sep 2017 03:44:00 -0400 X-Google-Smtp-Source: AOwi7QBbZU8EmIp+3RFq0CKG1ICCuSUhVCG33+XRERcim/s4OkOu/+wV08PyYGktspYaQ52KQib3iw== From: Bhumika Goyal To: julia.lawall@lip6.fr, mingo@kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] m32r: make resource __initdata Date: Tue, 19 Sep 2017 13:13:49 +0530 Message-Id: <1505807029-26859-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: 981 Lines: 33 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 --- arch/m32r/kernel/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/m32r/kernel/setup.c b/arch/m32r/kernel/setup.c index 1a9e977..7f98a1a 100644 --- a/arch/m32r/kernel/setup.c +++ b/arch/m32r/kernel/setup.c @@ -66,14 +66,14 @@ struct screen_info screen_info = { static char __initdata command_line[COMMAND_LINE_SIZE]; -static struct resource data_resource = { +static struct resource data_resource __initdata = { .name = "Kernel data", .start = 0, .end = 0, .flags = IORESOURCE_BUSY | IORESOURCE_SYSTEM_RAM }; -static struct resource code_resource = { +static struct resource code_resource __initdata = { .name = "Kernel code", .start = 0, .end = 0, -- 1.9.1