Message ID | 20220525144844.1571705-3-amadeuszx.slawinski@linux.intel.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=n3qL1UU3; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=QIJXgonq; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L7Yq20bL1z9sG4 for <incoming@patchwork.ozlabs.org>; Thu, 26 May 2022 00:48:45 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DcEBgbhbDNtiUo49VNaWRwLS/Cb3QMRtqEOniOeRE/M=; b=n3qL1UU3JNgzvv CT9G7dcF50DTO9+XkAie1JTGVzrk/jM2Kv3MUrLnREDUdPtbBIe49zLX6/SrO3h2xMphs4EznBg2G 8AYn3keQpg6xVNngZw6pVWghHqd4WkEm3CiemavUmn4K2IHbc/wZlK0PS3bcnIYWocodPIgbkFXIL 5ExBrpp/M1rVm6W2LSqjwhcXaZXjzJwTMQzEsVAvpmK34d1GCP8tvcDD+KuV89rqszWZBua9gg7w6 OfTxFyPl2y0rKs9NSjP+Ye+lT2EFhASsJvK3qTwxYl3ArATY/0ezmeRVZnuuqWOclpxHGM9FJ5POT 52cUJMeDciUu7EQ0/jwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntsJX-00BSdU-0j; Wed, 25 May 2022 14:48:43 +0000 Received: from mga06b.intel.com ([134.134.136.31] helo=mga06.intel.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntsJU-00BSc6-JD for linux-snps-arc@lists.infradead.org; Wed, 25 May 2022 14:48:42 +0000 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="334475123" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="334475123" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.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_S=C5=82awi=C5=84ski?= <amadeuszx.slawinski@linux.intel.com> To: Vineet Gupta <vgupta@kernel.org>, Geert Uytterhoeven <geert@linux-m68k.org> Cc: linux-snps-arc@lists.infradead.org, linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= <amadeuszx.slawinski@linux.intel.com> 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220525_074840_692051_8AFA481D X-CRM114-Status: GOOD ( 10.17 ) X-Spam-Score: -2.6 (--) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22bombadil=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__As_per_asm-generic_definition_and_othe?= =?unknown-8bit?q?r_architectures_=5F=5Ffls?= =?unknown-8bit?q?_should_return_and_accept_unsigned_long_as_its_parameter=2E?= =?unknown-8bit?q?_Signed-off-by=3A_Amadeusz?= =?unknown-8bit?q?_S=C5=82awi=C5=84ski_=3Camadeuszx=2Eslawinski=40linux=2Eint?= =?unknown-8bit?q?el=2Ecom=3E_---_arch/m68k/include/asm/bitops=2Eh?= =?unknown-8bit?q?_=7C_2_+-_1_file_changed=2C_1_insertion=28+=29=2C_1_deletio?= =?unknown-8bit?q?n=28-=29_?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=28-2=2E6_points=2C_5=2E0_re?= =?unknown-8bit?q?quired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_-2=2E3_RCVD=5FIN=5FDNSWL=5FMED______RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C?= =?unknown-8bit?q?_medium_trust?= =?unknown-8bit?q?_=5B134=2E134=2E136=2E31_listed_in_list=2Ednswl=2Eorg=5D?= =?unknown-8bit?q?_0=2E0_SPF=5FHELO=5FNONE__________SPF=3A_HELO_does_not_publ?= =?unknown-8bit?q?ish_an_SPF_Record?= =?unknown-8bit?q?_0=2E0_SPF=5FNONE_______________SPF=3A_sender_does_not_publ?= =?unknown-8bit?q?ish_an_SPF_Record?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily?= =?unknown-8bit?q?_valid?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FEF__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_envelope-from_domain?= =?unknown-8bit?q?_-0=2E2_DKIMWL=5FWL=5FHIGH_________DKIMwl=2Eorg_-_High_trus?= =?unknown-8bit?q?t_sender?= X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors <linux-snps-arc.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-snps-arc/> List-Post: <mailto:linux-snps-arc@lists.infradead.org> List-Help: <mailto:linux-snps-arc-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-snps-arc" <linux-snps-arc-bounces@lists.infradead.org> Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
bitops: __fls adjustments
|
expand
|
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; } -static inline int __fls(int x) +static inline unsigned long __fls(unsigned long x) { return fls(x) - 1; }
As per asm-generic definition and other architectures __fls should return and accept unsigned long as its parameter. Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> --- arch/m68k/include/asm/bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)