Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5E26C43331 for ; Tue, 31 Mar 2020 11:08:35 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9D7EA20838 for ; Tue, 31 Mar 2020 11:08:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9D7EA20838 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jJEkp-0005Yp-5P; Tue, 31 Mar 2020 11:08:23 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jJEkn-0005Yi-Fo for xen-devel@lists.xenproject.org; Tue, 31 Mar 2020 11:08:21 +0000 X-Inumbo-ID: ee157272-733f-11ea-ba0c-12813bfff9fa Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id ee157272-733f-11ea-ba0c-12813bfff9fa; Tue, 31 Mar 2020 11:08:20 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 043FCAF8F; Tue, 31 Mar 2020 11:08:20 +0000 (UTC) Subject: Re: [PATCH 2/3] xen/x86: ioapic: Rename init_ioapic_mappings() to init_ioapic() To: Julien Grall References: <20200327190546.21580-1-julien@xen.org> <20200327190546.21580-3-julien@xen.org> <20200330103724.GQ28601@Air-de-Roger> From: Jan Beulich Message-ID: <95b7b860-bb55-d984-2bf9-54c4a481a357@suse.com> Date: Tue, 31 Mar 2020 13:08:18 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200330103724.GQ28601@Air-de-Roger> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: xen-devel@lists.xenproject.org, Julien Grall , Andrew Cooper , Wei Liu , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 30.03.2020 12:37, Roger Pau Monné wrote: > On Fri, Mar 27, 2020 at 07:05:45PM +0000, Julien Grall wrote: >> From: Julien Grall >> >> The function init_ioapic_mappings() is doing more than initialization >> mappings. It is also initialization the number of IRQs/GSIs supported. >> >> So rename the function to init_ioapic(). This will allow us to re-use >> the name in a follow-up patch. >> >> Signed-off-by: Julien Grall > > Reviewed-by: Roger Pau Monné > > I've got one comment/request however. > >> --- >> xen/arch/x86/apic.c | 2 +- >> xen/arch/x86/io_apic.c | 2 +- >> xen/include/asm-x86/io_apic.h | 2 +- >> 3 files changed, 3 insertions(+), 3 deletions(-) >> >> diff --git a/xen/arch/x86/apic.c b/xen/arch/x86/apic.c >> index cde67cd87e..c7a54cafc3 100644 >> --- a/xen/arch/x86/apic.c >> +++ b/xen/arch/x86/apic.c >> @@ -978,7 +978,7 @@ __next: >> boot_cpu_physical_apicid = get_apic_id(); >> x86_cpu_to_apicid[0] = get_apic_id(); >> >> - init_ioapic_mappings(); >> + init_ioapic(); > > I would rename this to ioapic_init instead since you are already > changing it. I usually prefer the subsystem name to be prefixed to the > action the function performs instead of the other way around. With this adjustment Acked-by: Jan Beulich Jan