Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp146199pxt; Wed, 4 Aug 2021 18:26:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaiRqHfC8t4P7lt3m8gxzfsqO3bCi/tsrN5xozuMU0XaK16493Zd4K6g9kIRp3ISVfdOaR X-Received: by 2002:a05:6402:13d8:: with SMTP id a24mr3140518edx.158.1628126799424; Wed, 04 Aug 2021 18:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628126799; cv=none; d=google.com; s=arc-20160816; b=QKroHYKmyGiRoezw1BqlNyZW3pzv2ynjn+zituQZ0PqFtj2Sz8Kn2pDK/8CFHz9dqs P+5mqYuTwepV2jizvD1eNLpk/gBg7RpoGEFlsHEAkiE+AfM3cCehI0PrTS2V/yxJwFek h7FGJ1eI1nrvD5pHOF4L7OtpJvbRyzz5RkMJiURStdFc0zTmVuoeAOMyYjqSBgHnLU4w wYxgmzTc/T0NbxZhlA3pA7boH2XS/MSSqv9AzUATt6Qv7AOWqZXo0sqt9cqEF4a6mp0+ aoHKgQax37XObYrvwvoH+RTo9cPFFs4wOC0tvd+qSPdCV6SY9mgwJECYOCdt9139/WXy FB5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=p986kECRYcHggRgVz4V34Fu3C4jwChf1r4AO73kvv3M=; b=v5Jrzbbpea5v3svIiKg7ahsWikqYf24/0/3u7K/AVfah3fvxFnX2UQrzHi2ZDPlh6w QOYAL3jGkc3hklPSKi3vJXbCkA2b29+0xex9ynklQS+9x/oqxxDRNjqKKAb/axA8dU5u Rchyu6PsSTQd1ZHGh5WQlh7z6w6Dci0iARhY/KJx5tcc2utixQiOkVZQj6fS3l6Kt58/ t2gAXUPgcYfIYATUux6nj3MiPVrS/QmBu51Ifwyndh3nBRP4onF9CwzgbqVTwjJOWZXr 90w6vwncJ0SIQmbxLJIobdnjMoEsIVFPy+m09B3aK7C48T56Jtp0qFgEeDXcquTilHBe hSkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=TJaYUc8h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq32si3484853ejc.264.2021.08.04.18.26.15; Wed, 04 Aug 2021 18:26:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=TJaYUc8h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239208AbhHDTQh (ORCPT + 99 others); Wed, 4 Aug 2021 15:16:37 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]:40454 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239416AbhHDTQT (ORCPT ); Wed, 4 Aug 2021 15:16:19 -0400 Received: from mailhost.synopsys.com (sv1-mailhost1.synopsys.com [10.205.2.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mailhost.synopsys.com", Issuer "SNPSica2" (verified OK)) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 5D084C0CDE; Wed, 4 Aug 2021 19:16:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1628104566; bh=/wh7ABtjn6/Tkz5G7lWiGEgr5tXzrW9gN1lxc/ICBZY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TJaYUc8hlMAFJLFIfiKtUWwtNIviGHBUZbCaIuONUk03l7b5KjGkiqURVWaC6kf9S 8wBsK03NlXPvbnRCUnNmjJexM1G/3CKruW9J+acNEX15zOeOwzwMllL178/NkCynu2 uZkpzeT3D+h25kDACWq2RO6Eaq8FuD+v6FXvZM+NujSj5tAP6Oz8yAZGaI0NBySy07 f92m94YM822V10ivN0f5KC7jP+n0WRxW9A7nGuG3VMr1xEH9sz7duXFX//0W63S6Xi Nd736JM2vYkLYoAd47U7TYxEYG0I0s6T/lnV98QIcvOEjRjW/x5BU1rJ+ENnkaUfkQ hua53fwqBPz1A== Received: from vineetg-Latitude-7400.internal.synopsys.com (snps-fugpbdpduq.internal.synopsys.com [10.202.17.37]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client did not present a certificate) by mailhost.synopsys.com (Postfix) with ESMTPSA id 06691A0096; Wed, 4 Aug 2021 19:16:06 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Vineet Gupta To: linux-snps-arc@lists.infradead.org Cc: Peter Zijlstra , Will Deacon , Arnd Bergmann , Mark Rutland , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Vladimir Isaev , Vineet Gupta Subject: [PATCH 07/11] ARC: bitops: fls/ffs to take int (vs long) per asm-generic defines Date: Wed, 4 Aug 2021 12:15:50 -0700 Message-Id: <20210804191554.1252776-8-vgupta@synopsys.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210804191554.1252776-1-vgupta@synopsys.com> References: <20210804191554.1252776-1-vgupta@synopsys.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Vineet Gupta --- arch/arc/include/asm/bitops.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arc/include/asm/bitops.h b/arch/arc/include/asm/bitops.h index 4f35130f5ba3..a7daaf64ae34 100644 --- a/arch/arc/include/asm/bitops.h +++ b/arch/arc/include/asm/bitops.h @@ -114,7 +114,7 @@ static inline __attribute__ ((const)) unsigned long __ffs(unsigned long word) * @result: [1-32] * fls(1) = 1, fls(0x80000000) = 32, fls(0) = 0 */ -static inline __attribute__ ((const)) int fls(unsigned long x) +static inline __attribute__ ((const)) int fls(unsigned int x) { int n; @@ -141,7 +141,7 @@ static inline __attribute__ ((const)) int __fls(unsigned long x) * ffs = Find First Set in word (LSB to MSB) * @result: [1-32], 0 if all 0's */ -static inline __attribute__ ((const)) int ffs(unsigned long x) +static inline __attribute__ ((const)) int ffs(unsigned int x) { int n; -- 2.25.1