From nobody Mon Feb 9 20:13:11 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=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1710350876; cv=none; d=zohomail.com; s=zohoarc; b=iOtQaAVFNbcPESld1LVOGdBWn3YHgPpGMctCup12UNgdxAXGlkbzoMJiFpxLU0DUqZPrYLSPHd9HMqBOqfN6x7C55B/x4hk1d1ThSF8uUCoScBQWIt5TCn2M8PaqCyg4+OT1SXd4oJVTAHhxycvSVykPrWiBJYiYSvv+bXW8sXM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1710350876; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=33TXDSAxPDO8bnXw5DlUbCOINftbDhFb4uNtskElrXY=; b=Y5N6eXCGTPdjkf0385CT/3RZYV34EzvZX5G/x/IV2tIZq27QAcNaEOlu9iX3JqJH8akgbY3bIQolKLIuZ8yPUZhg4NmQmQIwxct2wXH5c++Xi9LW25Z2fYNdU+vhi7omAAWN4y1V0PbvqmUQci16Nvb0NuW8i5jSeYo/QRwCRL4= 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=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1710350876160565.4273090348189; Wed, 13 Mar 2024 10:27:56 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.692675.1080062 (Exim 4.92) (envelope-from ) id 1rkSO5-0003NP-1g; Wed, 13 Mar 2024 17:27:33 +0000 Received: by outflank-mailman (output) from mailman id 692675.1080062; Wed, 13 Mar 2024 17:27:33 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rkSO4-0003MV-Rh; Wed, 13 Mar 2024 17:27:32 +0000 Received: by outflank-mailman (input) for mailman id 692675; Wed, 13 Mar 2024 17:27:30 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rkSO2-00023P-Se for xen-devel@lists.xenproject.org; Wed, 13 Mar 2024 17:27:30 +0000 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [2a00:1450:4864:20::12a]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id f8401d88-e15e-11ee-afdd-a90da7624cb6; Wed, 13 Mar 2024 18:27:30 +0100 (CET) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-513cc23b93aso134352e87.2 for ; Wed, 13 Mar 2024 10:27:30 -0700 (PDT) Received: from andrewcoop.citrite.net (default-46-102-197-194.interdsl.co.uk. [46.102.197.194]) by smtp.gmail.com with ESMTPSA id f15-20020a170906048f00b00a42ee62b634sm5005732eja.106.2024.03.13.10.27.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 10:27:28 -0700 (PDT) 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: f8401d88-e15e-11ee-afdd-a90da7624cb6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1710350849; x=1710955649; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=33TXDSAxPDO8bnXw5DlUbCOINftbDhFb4uNtskElrXY=; b=GQDGzq70NgXh8q66UCQMVnMT511HyPobC7cKbWr7LRG7LUyTtuOIGe4JUrdclFzeCr HjS2wRh9DvXQZKzgNCfbAmtx1X1tfMwyFn7DKcEmkXCKjMJYfIxMFY3LMdhxSl/1tCfM qkyTiQgr447cwrJDYlCt8nj0aktwFfmcUGZTc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710350849; x=1710955649; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=33TXDSAxPDO8bnXw5DlUbCOINftbDhFb4uNtskElrXY=; b=v0jz6G5XE+Fgj3mJKismko8oY4a+v7uTCtKGd7o8+bGtbS2omd09yawy/TIZwU6Zhg SrHXl65PgUS8B9pzMiXsnVLaO0SFCDdV1BjNnaBJv6/pfMSbGvA5Xp6AiRqVPLyq2rmU QNDlkXm+MKGa7Cag0g9OnQ/sxJYxDWm+T8JVBrjiRPJZrYdfgMLhb7LBEhKfyRdoykyE SQAo81vOfnLFKauNNjHbMq/4bEXTns3P6Mkl1BqF5Z5eKza7oXXBOVTLLfAOtU3wGkv6 fJrmapDvP7/OJ7IlhdRw8vRL4c8VSMy9+z9c6e2ztSyli0FImnj81h7wpBoVXR4IG1NU +HIw== X-Gm-Message-State: AOJu0YwmQrUQ25pxf008pYpjHwGnLYPdiy2UEDxofqwJ1coMxTHyWs+G xxywgzzPP74WKUjr/a0hn1CKO7cVX/UuMJqAMHu2T3VQVrm6XXuVfqic3F+NCwuIhgP3oAOlSi4 i X-Google-Smtp-Source: AGHT+IH+wJrXbeahOJLqrDjcYaBZ9zU2I/cXRNPjMfx4C/xQoBg042rLDW5ZSKpV7udLszZCL7H5+w== X-Received: by 2002:a05:6512:239f:b0:513:b8c7:7ecc with SMTP id c31-20020a056512239f00b00513b8c77eccmr3385947lfv.60.1710350849218; Wed, 13 Mar 2024 10:27:29 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Wei Liu , Stefano Stabellini , Julien Grall , Volodymyr Babchuk , Bertrand Marquis , Michal Orzel , Oleksii Kurochko , Shawn Anastasio , "consulting @ bugseng . com" , Simone Ballarin , Federico Serafini , Nicola Vetrini Subject: [PATCH 7/7] xen/bitops: Delete find_first_set_bit() Date: Wed, 13 Mar 2024 17:27:16 +0000 Message-Id: <20240313172716.2325427-8-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240313172716.2325427-1-andrew.cooper3@citrix.com> References: <20240313172716.2325427-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1710350878301100001 No more users. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Roger Pau Monn=C3=A9 CC: Wei Liu CC: Stefano Stabellini CC: Julien Grall CC: Volodymyr Babchuk CC: Bertrand Marquis CC: Michal Orzel CC: Oleksii Kurochko CC: Shawn Anastasio CC: consulting@bugseng.com CC: Simone Ballarin CC: Federico Serafini CC: Nicola Vetrini --- xen/arch/arm/include/asm/bitops.h | 12 ------------ xen/arch/ppc/include/asm/bitops.h | 9 --------- xen/arch/x86/include/asm/bitops.h | 12 ------------ 3 files changed, 33 deletions(-) diff --git a/xen/arch/arm/include/asm/bitops.h b/xen/arch/arm/include/asm/b= itops.h index 59ae8ed150b6..5104334e4874 100644 --- a/xen/arch/arm/include/asm/bitops.h +++ b/xen/arch/arm/include/asm/bitops.h @@ -160,18 +160,6 @@ static inline int fls(unsigned int x) #define arch_ffs(x) ({ unsigned int __t =3D (x); fls(ISOLATE_LSB(__t)); }) #define arch_ffsl(x) ({ unsigned long __t =3D (x); flsl(ISOLATE_LSB(__t));= }) =20 -/** - * find_first_set_bit - find the first set bit in @word - * @word: the word to search - * - * Returns the bit-number of the first set bit (first bit being 0). - * The input must *not* be zero. - */ -static inline unsigned int find_first_set_bit(unsigned long word) -{ - return ffsl(word) - 1; -} - /** * hweightN - returns the hamming weight of a N-bit word * @x: the word to weigh diff --git a/xen/arch/ppc/include/asm/bitops.h b/xen/arch/ppc/include/asm/b= itops.h index ecec2a826660..989d341a44c7 100644 --- a/xen/arch/ppc/include/asm/bitops.h +++ b/xen/arch/ppc/include/asm/bitops.h @@ -206,13 +206,4 @@ static always_inline unsigned long __ffs(unsigned long= word) return __builtin_ctzl(word); } =20 -/** - * find_first_set_bit - find the first set bit in @word - * @word: the word to search - * - * Returns the bit-number of the first set bit (first bit being 0). - * The input must *not* be zero. - */ -#define find_first_set_bit(x) (ffsl(x) - 1) - #endif /* _ASM_PPC_BITOPS_H */ diff --git a/xen/arch/x86/include/asm/bitops.h b/xen/arch/x86/include/asm/b= itops.h index 99342877e32f..2835bb6814d5 100644 --- a/xen/arch/x86/include/asm/bitops.h +++ b/xen/arch/x86/include/asm/bitops.h @@ -401,18 +401,6 @@ static always_inline unsigned int __scanbit(unsigned l= ong val, unsigned int max) r__; = \ }) =20 -/** - * find_first_set_bit - find the first set bit in @word - * @word: the word to search - *=20 - * Returns the bit-number of the first set bit. The input must *not* be ze= ro. - */ -static inline unsigned int find_first_set_bit(unsigned long word) -{ - asm ( "rep; bsf %1,%0" : "=3Dr" (word) : "rm" (word) ); - return (unsigned int)word; -} - static inline unsigned int arch_ffs(unsigned int x) { int r =3D -1; --=20 2.30.2