From nobody Thu May 7 08:38:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C977C433F5 for ; Wed, 25 May 2022 14:48:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241810AbiEYOsl (ORCPT ); Wed, 25 May 2022 10:48:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229865AbiEYOsj (ORCPT ); Wed, 25 May 2022 10:48:39 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52D2B6CF59 for ; Wed, 25 May 2022 07:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653490118; x=1685026118; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+zf9BLb1YsbTyRecGKN57FpFRihXjMy/F9uE9o3MsKg=; b=etV9nnO3air4BNVBLHXuW550kAszXcHj8aDDS7Ukg4I8sERTZx4sJdYN KXCMbdlF4HkSacnEc3uF8aW3U7VR3wXoatfvWZgeeBuetAM1s5NlGbbY8 jNlnm+gBIYAEJM3++kaLanTaAz8vWPDHfMcBcvUXZZAYJ65V1d3KK/OYr lICJf3Id9vmbZAr+RMNKJy80Yrjb0qow/kbILjW11JsdpjAKUb/AwOSZo S2jyrN7LFqSkzPKrMxkeqe8mbh8aCzz7tTcZYk21BMXOOC1BTWsgB9IJf yjUZFL2UZ1d/4gHHRJDDpbSfpxmE0oe0kRqbgWtZmGJhW6cMkDXGON6tR Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10358"; a="253703392" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="253703392" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 07:48:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="549050144" Received: from dev2.igk.intel.com ([10.237.148.94]) by orsmga006.jf.intel.com with ESMTP; 25 May 2022 07:48:36 -0700 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= To: Vineet Gupta , Geert Uytterhoeven Cc: linux-snps-arc@lists.infradead.org, linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Subject: [PATCH 1/2] ARC: bitops: Change __fls to return unsigned long Date: Wed, 25 May 2022 16:48:43 +0200 Message-Id: <20220525144844.1571705-2-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220525144844.1571705-1-amadeuszx.slawinski@linux.intel.com> References: <20220525144844.1571705-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As per asm-generic definition and other architectures __fls should return unsigned long. No functional change is expected as return value should fit in unsigned long. Signed-off-by: Amadeusz S=C5=82awi=C5=84ski Reviewed-by: Cezary Rojewski --- arch/arc/include/asm/bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/include/asm/bitops.h b/arch/arc/include/asm/bitops.h index bdb7e190a294..4076607e7168 100644 --- a/arch/arc/include/asm/bitops.h +++ b/arch/arc/include/asm/bitops.h @@ -82,7 +82,7 @@ static inline __attribute__ ((const)) int fls(unsigned in= t x) /* * __fls: Similar to fls, but zero based (0-31) */ -static inline __attribute__ ((const)) int __fls(unsigned long x) +static inline __attribute__ ((const)) unsigned long __fls(unsigned long x) { if (!x) return 0; --=20 2.25.1 From nobody Thu May 7 08:38:25 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63AA3C433F5 for ; Wed, 25 May 2022 14:48:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244902AbiEYOss (ORCPT ); Wed, 25 May 2022 10:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241507AbiEYOsl (ORCPT ); Wed, 25 May 2022 10:48:41 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF1FF6CF4C for ; Wed, 25 May 2022 07:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653490120; x=1685026120; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3tpP5OcS3DtXXabkYSPMX7+If5Ij31PZoojd2jKhDdY=; b=QIJXgonqw2Gat882ytA3jvTvvcBFJtyVehF2GGTV9jmtY7R3b/cm4Xu+ Q8OOjDt14nLs1trRWdCASI0DyRu16Hp6XSj7YkAB6Nk7z+WUlU/soi567 hWwJ0gUNORerWvpFAE26THAXVJkMWNwlD3oGWbSazTDo7lxgRIX7QHDGS 6pi6Hxbt4LH9dQrCk7qdyR1na34KtXD2yAlBqjVIp0huR4sTU9jZhOW9J iKqkFxKCNylNsWZSa5PjGIGE60hwuM1cqAmUTLe1IgxSqmBwZGaIqBy0K 94e706yqoTWDmxJdCTUrNZU7uubkXyAicV6EGFUCRYWcIKHLy8mZOjN8A w==; X-IronPort-AV: E=McAfee;i="6400,9594,10358"; a="253703400" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="253703400" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 07:48:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="549050157" Received: from dev2.igk.intel.com ([10.237.148.94]) by orsmga006.jf.intel.com with ESMTP; 25 May 2022 07:48:38 -0700 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= To: Vineet Gupta , Geert Uytterhoeven Cc: linux-snps-arc@lists.infradead.org, linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Subject: [PATCH 2/2] m68k: bitops: Change __fls to return and accept unsigned long Date: Wed, 25 May 2022 16:48:44 +0200 Message-Id: <20220525144844.1571705-3-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220525144844.1571705-1-amadeuszx.slawinski@linux.intel.com> References: <20220525144844.1571705-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As per asm-generic definition and other architectures __fls should return and accept unsigned long as its parameter. Signed-off-by: Amadeusz S=C5=82awi=C5=84ski Reviewed-by: Cezary Rojewski --- arch/m68k/include/asm/bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/include/asm/bitops.h b/arch/m68k/include/asm/bitops.h index 51283db53667..87c2cd66a9ce 100644 --- a/arch/m68k/include/asm/bitops.h +++ b/arch/m68k/include/asm/bitops.h @@ -510,7 +510,7 @@ static inline int fls(unsigned int x) return 32 - cnt; } =20 -static inline int __fls(int x) +static inline unsigned long __fls(unsigned long x) { return fls(x) - 1; } --=20 2.25.1