Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp8609imm; Tue, 17 Jul 2018 19:25:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdkbdYzEqlIkju0GtqqB7RjeEhVLeUCT8Z4aNI0QsRGEWuPm3ly2H5ttrJMvWPuJnjwOekn X-Received: by 2002:a17:902:d218:: with SMTP id t24-v6mr4011451ply.63.1531880737941; Tue, 17 Jul 2018 19:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531880737; cv=none; d=google.com; s=arc-20160816; b=NgaVlwXKPQKqlmMeCC3YlBNLK6dh9IBZjQmaEFfV2R/ND2HmSCwGoU3C0pl0H7Iir5 wbnToLl/rdSibcBQ1Q97tSPsc/7huotMrMT3PXlJbwh3qMou6Esh29+gz+F3FXyEkta0 DTlcPWtofu9oyF2+Op/X4LWOUOUzKnc8uSGu7xkk/BPQvaa7ZnKXC0a6u1PZiftQ13SZ 6QZ8hAkIwuj6tawrkuq5DIAGU4fgqRfP43ZmrFVbw0AMMLXRZLIJ7E344L8N0wi29DQl 7vZoo6Z3Me7TLEfpwYOwTwOPJuRBcDb9b5z3wY/pvq83357hAxoSQe/P6quiI8/KrqYz 5d2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:arc-authentication-results; bh=ltqzipzaMkcwTLqDThjnajCbKZZ3uqDJ6TTxujBBpoQ=; b=o9f/FTtzj9Za8IGeQma9WakrHsAg8FMTRVvJwTxAchrIMJahhD+cGAppR4pmo/5tW7 T9y7LfvtDoSJI64cvFmk/B3QA8tiQZzX8/Wfmqa8HaBNZzSAIAEQ7lAfMzQmvTWS1iVg 9z8NChQwGjqDwQFJGfYE6uj50w8ME0z3hfzSayS/rlQf9gRgFyW5gWVdZGqxgW5vgHJO e7/d5bb9/CCGttw7WYIRPv2Rv4XaKMJO3DQbX190ZVKqOI/cOdlv8w1LqsZlDZnpGSXO w7FItzsvWogMwiK4eQLKED/l/j8FoHvb8E5qQwzbiF5j4+R63BWY3AJfrYchrXRq0TJi thyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=XxZ7q0bn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si2309324pge.624.2018.07.17.19.25.22; Tue, 17 Jul 2018 19:25:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=XxZ7q0bn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731962AbeGRC7o (ORCPT + 99 others); Tue, 17 Jul 2018 22:59:44 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:42490 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731888AbeGRC7n (ORCPT ); Tue, 17 Jul 2018 22:59:43 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6I2JLMV006870; Wed, 18 Jul 2018 02:22:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references; s=corp-2018-07-02; bh=ltqzipzaMkcwTLqDThjnajCbKZZ3uqDJ6TTxujBBpoQ=; b=XxZ7q0bnNDJu0RBJzpNt3v+/VNrVwnWd9Rv5dKg8hy0e/cuPrHt9SKVku1esiwp40zSK HoYpQ4k1teX/d2dTJWRsScx7BWDlDsa9A2bA7YWIdxqJzEOUtil2zw21DAWbZgpFS7o8 zwxdXM0fEq+7/aUUpQ/myCWWAbnWwKrdZoilZkxzRgavYNvFLOlNYmsjV/j5iJvhT6MF tUeJ/870768uKKOEC8oNosoy0JxRbhXPaq+CDb0CnPCaIayi14PSlJaJkod1mRhpYYei qKH3XrfdMeB9sFEPPZDydSpdHXYAPnxktN3csW/wH87vDnCmGWJqbEVXeD+o3yeDv87n kw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2k7a3432s6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Jul 2018 02:22:33 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6I2MWrF028058 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Jul 2018 02:22:33 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w6I2MVO2013466; Wed, 18 Jul 2018 02:22:31 GMT Received: from localhost.localdomain (/73.69.118.222) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 17 Jul 2018 19:22:31 -0700 From: Pavel Tatashin To: steven.sistare@oracle.com, daniel.m.jordan@oracle.com, linux@armlinux.org.uk, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, john.stultz@linaro.org, sboyd@codeaurora.org, x86@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, tglx@linutronix.de, hpa@zytor.com, douly.fnst@cn.fujitsu.com, peterz@infradead.org, prarit@redhat.com, feng.tang@intel.com, pmladek@suse.com, gnomes@lxorguk.ukuu.org.uk, linux-s390@vger.kernel.org, pasha.tatashin@oracle.com, boris.ostrovsky@oracle.com, jgross@suse.com, pbonzini@redhat.com Subject: [PATCH v14 05/25] x86/kvmclock: Mark variables __initdata and __ro_after_init Date: Tue, 17 Jul 2018 22:21:51 -0400 Message-Id: <20180718022211.6259-6-pasha.tatashin@oracle.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180718022211.6259-1-pasha.tatashin@oracle.com> References: <20180718022211.6259-1-pasha.tatashin@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8957 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807180026 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Gleixner The kvmclock parameter is init data and the other variables are not modified after init. Signed-off-by: Thomas Gleixner Signed-off-by: Pavel Tatashin Acked-by: Paolo Bonzini --- arch/x86/kernel/kvmclock.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c index 04d2f5e1d783..f312d7f6de57 100644 --- a/arch/x86/kernel/kvmclock.c +++ b/arch/x86/kernel/kvmclock.c @@ -32,10 +32,10 @@ #include #include -static int kvmclock __ro_after_init = 1; -static int msr_kvm_system_time = MSR_KVM_SYSTEM_TIME; -static int msr_kvm_wall_clock = MSR_KVM_WALL_CLOCK; -static u64 kvm_sched_clock_offset; +static int kvmclock __initdata = 1; +static int msr_kvm_system_time __ro_after_init = MSR_KVM_SYSTEM_TIME; +static int msr_kvm_wall_clock __ro_after_init = MSR_KVM_WALL_CLOCK; +static u64 kvm_sched_clock_offset __ro_after_init; static int __init parse_no_kvmclock(char *arg) { @@ -50,7 +50,7 @@ early_param("no-kvmclock", parse_no_kvmclock); static u8 hv_clock_mem[PAGE_ALIGN(HV_CLOCK_SIZE)] __aligned(PAGE_SIZE); /* The hypervisor will put information about time periodically here */ -static struct pvclock_vsyscall_time_info *hv_clock; +static struct pvclock_vsyscall_time_info *hv_clock __ro_after_init; static struct pvclock_wall_clock wall_clock; /* -- 2.18.0