From patchwork Tue Sep 14 04:23:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Perches X-Patchwork-Id: 178772 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8E4Sho2027931 for ; Tue, 14 Sep 2010 04:28:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753195Ab0INEYn (ORCPT ); Tue, 14 Sep 2010 00:24:43 -0400 Received: from mail.perches.com ([173.55.12.10]:1984 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751711Ab0INEYN (ORCPT ); Tue, 14 Sep 2010 00:24:13 -0400 Received: from Joe-Laptop.home (unknown [192.168.1.162]) by mail.perches.com (Postfix) with ESMTP id 70BAD2436C; Mon, 13 Sep 2010 21:24:03 -0700 (PDT) From: Joe Perches To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Avi Kivity , Marcelo Tosatti , kvm@vger.kernel.org Subject: [PATCH next 04/16] arch/x86: Use static const char * const where possible Date: Mon, 13 Sep 2010 21:23:50 -0700 Message-Id: <435f275c3a189b65b992ec838aa9f2c790bfe768.1284435709.git.joe@perches.com> X-Mailer: git-send-email 1.7.3.rc1 In-Reply-To: References: Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 14 Sep 2010 04:28:44 +0000 (UTC) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 63a1a55..b745b30 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -498,7 +498,7 @@ static void impress_friends(void) void __inquire_remote_apic(int apicid) { unsigned i, regs[] = { APIC_ID >> 4, APIC_LVR >> 4, APIC_SPIV >> 4 }; - char *names[] = { "ID", "VERSION", "SPIV" }; + const char * const names[] = { "ID", "VERSION", "SPIV" }; int timeout; u32 status; diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index d2dad65..2a7d567 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -56,7 +56,7 @@ enum { AUDIT_POST_PTE_WRITE }; -char *audit_point_name[] = { +const char * const audit_point_name[] = { "pre page fault", "post page fault", "pre pte write",