Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753344AbdI1PRu (ORCPT ); Thu, 28 Sep 2017 11:17:50 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35292 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752059AbdI1PRs (ORCPT ); Thu, 28 Sep 2017 11:17:48 -0400 X-Google-Smtp-Source: AOwi7QCK6ganlBl0i12NV6nx0oDpRNrW2OtkWOo7licrrIsGPWePR7wrdQ+8lqMiSGJBdT82ek9dCw== From: Bhumika Goyal 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 Subject: [PATCH] [IA64] sn: make sn_screen_info const, static and __initconst Date: Thu, 28 Sep 2017 20:47:35 +0530 Message-Id: <1506611855-20098-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: 855 Lines: 26 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 --- 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