Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp489790ioo; Thu, 26 May 2022 08:02:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL4MU4AMDDqM7WLhbiMMxVNrfNz7WuaD8bmXUkMg1fPJ0ctp6B2QUonAG8mqrXBl9bv0K1 X-Received: by 2002:a17:903:1248:b0:151:9708:d586 with SMTP id u8-20020a170903124800b001519708d586mr38908757plh.15.1653577347771; Thu, 26 May 2022 08:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653577347; cv=none; d=google.com; s=arc-20160816; b=KOr5rdRrzxrkxN7tdgj2ij8F6A8xubBatkinJIQQtc5eHAR/bm/L68pRhDIah6Slit bMci2MA7GwqUsuzIuILwMSbmju+j4htFZkCtf2Lw4XLP5wo66R0UtDU0qGeN1y8QETo9 XJ55oN074LksPpP9lb2dOGMI6mVJd0pX9mAqCMQ/TbMDIscHcHw4RU0ypUQHKAHWC84I K316cJ6uwPpK53RLThhuVU3XYmhELMGrKvFHA8vs7ZgkfeQ1mRb9BZnfZ+rhSEi1Bp/U aKkuQr9WiiUZhiNQN6jVbMMKRCwkfEr61M/Z2GFkfTMys8tWBurg6R0Ng4Iy25TYF+A8 i6Tw== 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=clx9XPAFl6RYbnznmf3Lspg7MgOb1W89E3qjbkWdWYo=; b=xEHPsYQE4VTGsH7hGcafULdvTIlZghXgh6+t/E+oejd9EvFNH7t+t+67h0aAY52vaf kPeu01RBwUW0JmjDy2hVUaYb0D036+VWFIToayjVpXvYJQUAOawALbMadoxw1Uu9jrSZ /gB48zoJDcLL/aYXRH79iKxGaI4WHzSl31E/tcVISDvCIUAB/WYuwXa6OZCMWkmPLSyT sR8TcsCBxUeWYiLRt4JTrKiCCcsjCL8rKY22g1vhrdgdoKG+6jCT2NVzRp3nQyzhKfMW Bkkw/z15rJX0hPoThSp9UUva0VG5UaofR9RdAUjiiHpaVQnUfqZ6So4DHuo+AmK3XCUo YChA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=etV9nnO3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r18-20020a6560d2000000b003816043efd3si2751100pgv.456.2022.05.26.08.02.11; Thu, 26 May 2022 08:02:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=etV9nnO3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241000AbiEYOsl (ORCPT + 99 others); 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: 8bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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ławiński --- 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 int 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; -- 2.25.1