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.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 12F9CC433E0 for ; Tue, 21 Jul 2020 07:31:52 +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 D8AF02080D for ; Tue, 21 Jul 2020 07:31:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D8AF02080D 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.92) (envelope-from ) id 1jxmkC-0005W3-5L; Tue, 21 Jul 2020 07:31:20 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jxmkA-0005Vv-Cf for xen-devel@lists.xenproject.org; Tue, 21 Jul 2020 07:31:18 +0000 X-Inumbo-ID: 2a051d96-cb24-11ea-84f6-bc764e2007e4 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 2a051d96-cb24-11ea-84f6-bc764e2007e4; Tue, 21 Jul 2020 07:31:17 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 803A2AD1A; Tue, 21 Jul 2020 07:31:23 +0000 (UTC) Subject: Re: [PATCH 5/8] bitmap: move to/from xenctl_bitmap conversion helpers To: Julien Grall References: <3375cacd-d3b7-9f06-44a7-4b684b6a77d6@suse.com> <5835147f-8428-1d74-7d6e-bbb5522289c7@suse.com> From: Jan Beulich Message-ID: <3e2b3be4-d11c-3fa7-2ffe-8db5ebdb91b8@suse.com> Date: Tue, 21 Jul 2020 09:31:16 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , George Dunlap , Andrew Cooper , Ian Jackson , "xen-devel@lists.xenproject.org" Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 20.07.2020 18:20, Julien Grall wrote: > On 15/07/2020 11:40, Jan Beulich wrote: >> A subsequent change will exclude domctl.c from getting built for a >> particular configuration, yet the two functions get used from elsewhere. >> >> Signed-off-by: Jan Beulich >> >> --- a/xen/common/bitmap.c >> +++ b/xen/common/bitmap.c >> @@ -9,6 +9,9 @@ >> #include >> #include >> #include >> +#include >> +#include > > The inclusion of xen/domain.h in common/bitmap.c seems a bit odd to me. > Would it make sense to move the prototype of > bitmap_to_xenctl_bitmap()/xenctl_bitmap_to_bitmap() to bitmap.h? Ah yes, no idea why it didn't occur to me to do it this way; like you I didn't really like the domain.h inclusion here. (This was what the Arm side cleanup was needed for, which I guess is a nice side effect, but now no longer strictly needed. You've committed that one already anyway.) Jan