From nobody Tue Feb 10 01:19:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1606145060; cv=none; d=zohomail.com; s=zohoarc; b=A9d1PiA4zkV7tablQWDBdcyM7vKMoGW+6LgkFwrNpCyDrjQHCeJK5exIAMJrKpxtW6XnkFetCQsfsF9jQ3sXRAQWi1a3CT5h707aRMzBV9sNlC9eqy9CzmMzO7gTNLmyXr8iNmB8hckXt9hZ8ZS2YO//1qoUQL/RmkKPczVbsv8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606145060; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=w0KlMYiiW0WboZScCSGBoeGaSU9YjcD5lFMncp+ZtPw=; b=ifcT48RxBV+ibFXwHQOtZyXzVJKpHPiro2I2qvvWM6OUb8urT4Eoa+7vGYER/LWMbBcXrG4W0qAzK9gyjmjswctW43GVQWhyyiluET/59hduAUvHktABmL5JCzCEC/KLszRoOl26qyBsu7vGI2WtLRpP8jHN9H+IKY8sX/SyjzY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 160614506057871.7730471193413; Mon, 23 Nov 2020 07:24:20 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.34676.65868 (Exim 4.92) (envelope-from ) id 1khDhD-0007O5-Tv; Mon, 23 Nov 2020 15:24:03 +0000 Received: by outflank-mailman (output) from mailman id 34676.65868; Mon, 23 Nov 2020 15:24:03 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khDhD-0007Nx-Q7; Mon, 23 Nov 2020 15:24:03 +0000 Received: by outflank-mailman (input) for mailman id 34676; Mon, 23 Nov 2020 15:24:03 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khDhD-0007Nk-3B for xen-devel@lists.xenproject.org; Mon, 23 Nov 2020 15:24:03 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id d7c51524-a4e1-4201-a3c3-4e2a0362897b; Mon, 23 Nov 2020 15:24:02 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9EBE7AC23; Mon, 23 Nov 2020 15:24:01 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1khDhD-0007Nk-3B for xen-devel@lists.xenproject.org; Mon, 23 Nov 2020 15:24:03 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id d7c51524-a4e1-4201-a3c3-4e2a0362897b; Mon, 23 Nov 2020 15:24:02 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9EBE7AC23; Mon, 23 Nov 2020 15:24:01 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: d7c51524-a4e1-4201-a3c3-4e2a0362897b X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1606145041; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w0KlMYiiW0WboZScCSGBoeGaSU9YjcD5lFMncp+ZtPw=; b=Xq4CA1XdpUFDcZy4KorttAc/zYWs+iDVnlavwZOdcJ3QkM96U03rfqf7UTyTH991ZOOPSw TfaL626urcyZPycV82CCKE4UILOAOi/7ZNOXlmknassHLKq95NYRFQZGOBQSCBlZWIyddh Pv7nkKz/qTJNkpvM6YyPxWu1MQclMpA= Subject: [PATCH v3 8/8] lib: move sort code From: Jan Beulich To: "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , George Dunlap , Ian Jackson , Julien Grall , Wei Liu , Stefano Stabellini References: <1a6bac6a-7d83-f5b6-c5b9-8b3b39824d40@suse.com> Message-ID: <84bd9aaf-e94d-da6b-f2f9-c2da64df5312@suse.com> Date: Mon, 23 Nov 2020 16:24:01 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <1a6bac6a-7d83-f5b6-c5b9-8b3b39824d40@suse.com> Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) Content-Type: text/plain; charset="utf-8" Build this code into an archive, partly paralleling bsearch(). Signed-off-by: Jan Beulich Acked-by: Julien Grall Reviewed-by: Bertrand Marquis --- xen/common/Makefile | 1 - xen/lib/Makefile | 1 + xen/{common =3D> lib}/sort.c | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename xen/{common =3D> lib}/sort.c (100%) diff --git a/xen/common/Makefile b/xen/common/Makefile index e8ce23acea67..7a4e652b575e 100644 --- a/xen/common/Makefile +++ b/xen/common/Makefile @@ -36,7 +36,6 @@ obj-y +=3D rcupdate.o obj-y +=3D rwlock.o obj-y +=3D shutdown.o obj-y +=3D softirq.o -obj-y +=3D sort.o obj-y +=3D smp.o obj-y +=3D spinlock.o obj-y +=3D stop_machine.o diff --git a/xen/lib/Makefile b/xen/lib/Makefile index f12dab7a737a..42cf7a1164ef 100644 --- a/xen/lib/Makefile +++ b/xen/lib/Makefile @@ -6,3 +6,4 @@ lib-y +=3D ctype.o lib-y +=3D list-sort.o lib-y +=3D parse-size.o lib-y +=3D rbtree.o +lib-y +=3D sort.o diff --git a/xen/common/sort.c b/xen/lib/sort.c similarity index 100% rename from xen/common/sort.c rename to xen/lib/sort.c