Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1727219ybi; Wed, 17 Jul 2019 20:52:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgG9Apa9C5f/ORX9a4VpXH27u6oWwyaSNl+dNZGF2X7SFdt9tRImTAGdQdA7JPu8WSWAUN X-Received: by 2002:a17:902:a60d:: with SMTP id u13mr47949046plq.144.1563421929395; Wed, 17 Jul 2019 20:52:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563421929; cv=none; d=google.com; s=arc-20160816; b=f7FUQK4YFhfU7LtH+S0eaGQIC8ncvwnzo0TMOQvFvJchToR55xZw/FMkiN0NN0z+ZB KZNQLTJXo3rU9YlvYnoLzSJN5QrgWXF3K9pHjTJBFsDEyUbzYQfd5QM32bFmUiLhSjuq bpmbqVKmFsmQuvAV1vXwZuJTs8z2r3cLGK5qIKJBmLtX5aNfPCIJZzkBsz0XQHIUre8S whUx3polizw4+kmq8EMRO+mWNbfUtS/p8CR4uz4kWcIZXx2swV8kagKVPwvNKbBsHymq o48Vtq2hKZp0rfrGU7SoPWqpE125ih9ozN9iO+0gn0RXFPa/kmFd42BljxbiQAi9RrcF WkJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=v1m7SdEP6g196mAoiQqMx3lF/MVGu3XSlml3fJHhy6g=; b=0BMCHKTa+7Nmds8Xq+3f/vAab+U6khS3vJlqcwoGBgHICzdzna8IN5tpv7dpFJtwDV 5F370cdNDnOhFBOtLL/EjQ382IaqJnIR8vKPDiTr5PuQz6VCO+EFE12s2DZS1sjhzyUd Mlfy9Xi2fuXQoFhWmwmBRt/6wgWN3Lgjgt3isCa+1CyiZ0xGKYb04kkV73Q/ID3wYYp8 Sepo+KklasdSNqSx5G0rVeqxpKOyzWrxyRjYlLNOFv55TVaXT2y0xZ/eH2HAYEfeXfQF MuPoNxn1v2QkZwGPeoroQH3CYryYtS1GRLuPCtVVa+edvXQ4hMZzhnJpJo2FwYcGw6xv 8fFA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14si7243pgh.205.2019.07.17.20.51.52; Wed, 17 Jul 2019 20:52:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389120AbfGRDsi (ORCPT + 99 others); Wed, 17 Jul 2019 23:48:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:57868 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732313AbfGRDsh (ORCPT ); Wed, 17 Jul 2019 23:48:37 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 996B6AFED; Thu, 18 Jul 2019 03:48:36 +0000 (UTC) Subject: Re: [PATCH v8 4/5] x86/paravirt: Remove const mark from x86_hyper_xen_hvm variable To: Joe Perches , Zhenzhong Duan , linux-kernel@vger.kernel.org Cc: bp@alien8.de, sstabellini@kernel.org, x86@kernel.org, tglx@linutronix.de, xen-devel@lists.xenproject.org, boris.ostrovsky@oracle.com, mingo@redhat.com References: <1563251169-30740-1-git-send-email-zhenzhong.duan@oracle.com> <9791d12717bba784f24f35c29ddfaab9ccb78965.camel@perches.com> <18469f4c80f3dbf04eda5415f4bcf1c8fa655370.camel@perches.com> From: Juergen Gross Message-ID: <3d74b1f6-37ae-dcb0-fa8a-6f02e183bbd7@suse.com> Date: Thu, 18 Jul 2019 05:48:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <18469f4c80f3dbf04eda5415f4bcf1c8fa655370.camel@perches.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17.07.19 19:22, Joe Perches wrote: > On Wed, 2019-07-17 at 08:49 +0200, Juergen Gross wrote: >> On 17.07.19 08:46, Joe Perches wrote: >>> On Tue, 2019-07-16 at 12:26 +0800, Zhenzhong Duan wrote: >>>> .. as "nopv" support needs it to be changeable at boot up stage. >>>> >>>> Checkpatch reports warning, so move variable declarations from >>>> hypervisor.c to hypervisor.h >>> [] >>>> diff --git a/arch/x86/xen/enlighten_hvm.c b/arch/x86/xen/enlighten_hvm.c >>> [] >>>> @@ -259,7 +259,7 @@ static __init void xen_hvm_guest_late_init(void) >>>> #endif >>>> } >>>> >>>> -const __initconst struct hypervisor_x86 x86_hyper_xen_hvm = { >>>> +struct hypervisor_x86 x86_hyper_xen_hvm __initdata = { >>> >>> static? >> >> It is being referenced from arch/x86/kernel/cpu/hypervisor.c > > But wasn't it also removed from the list of externs? > > Rereading the .h file, no it wasn't. I missed that. > > Perhaps the extern list could be reordered to move this > x86_hyper_xen_hvm to be next to x86_hyper_type. > > I also suggest that "extern bool nopv" might be a bit > non-specific and could use a longer identifier. You are a little bit late. It has been this way since V5 of the series posted on July 3rd. I have pushed the series to my tree already and I'm about to send the pull request. Followup patches welcome. :-) Juergen