From patchwork Fri Apr 6 14:28:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 132921 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp854192ljb; Fri, 6 Apr 2018 07:28:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx48sDb+Pg1VyVW4eRMjU2BcR3yt9mKnxGcgAw8RvxaEQo76yLwQHCwGbyhlzbQ2UxqtVbncY X-Received: by 2002:a17:902:7d8a:: with SMTP id a10-v6mr4747312plm.268.1523024922870; Fri, 06 Apr 2018 07:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523024922; cv=none; d=google.com; s=arc-20160816; b=myFOWp89nCdyjvQLYAe0mdArMSnJe6uCPPrkEnGgT5896a+8Ycp6qEfaVb0qeWif1g R27WTJfrlMCIY/p+j1JzQHp7hckeBqv08wuWYak4D6vfmeunjkU+4CCsnZyYpriXsIdm MYJyVfGxwx0NAt0nIpR9hp4p5TXUpVkwKvqevfj+sMSRPuOBIPYsTimmd6+CHnjw0py+ sO8vpDh1u59C7ybAb5aySJ/ejy/qmzgiNe3QloY8Qm+u7e88IvTeMAIAnvlK+2crpaNN CUaAK/CG5snmVi+cPArrvhYwL0dnkdfRmRf87QiT1shudkhKBNdYjyi20G+wFkWzLJE0 zMPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=+U3M+Wxmcrr5pfEmZ+EuMHVquTJQ0e4vl2eh2OeLdis=; b=ygpLyQLodLomusRxRG0nywxR+4mTelSVdhriVrMpseHgMUK8EFwWnLL0MQlP4HYKN1 HbzxZJz1qKnDcfVKHY/Ufe5Wx0j7CQkDU+tEclqKtNZz7q2M3DQqRtuto0nUUqN8PLjg LHyTiVgJFw2Pq5Ua40i0lA1rYmi8FZnu9W9d3VTVy0i2lCVH1PSv7VoK0BpBPH6IeXuT eshWXPkbxwDo0f/NkYx9Xvwh5jF982R1krB3rr/cR6VqdriNA6tMuc90m0G8m4iHe9YC IqNgwmBPVia4nP4cpFcQK+0BqWne1NdTaOw9VW5dq68FU4OveUUbl4nm09Z89oDqUWgv ykvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si8155722pfh.242.2018.04.06.07.28.42; Fri, 06 Apr 2018 07:28:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932296AbeDFO2k (ORCPT + 29 others); Fri, 6 Apr 2018 10:28:40 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:56891 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752802AbeDFO2i (ORCPT ); Fri, 6 Apr 2018 10:28:38 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0MFDJ5-1fJ5sg3ndT-00GI4y; Fri, 06 Apr 2018 16:28:34 +0200 From: Arnd Bergmann To: Richard Kuo Cc: Arnd Bergmann , linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] hexagon: fix ffz/fls/ffs return type Date: Fri, 6 Apr 2018 16:28:21 +0200 Message-Id: <20180406142832.2243021-1-arnd@arndb.de> X-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zpA1jE27edHkA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Let's use the same return type as the major architectures to avoid warnings like drivers/ata/libahci_platform.c: In function 'ahci_platform_init_host': drivers/ata/libahci_platform.c:561:12: warning: comparison of distinct pointer types lacks a cast [enabled by default] Signed-off-by: Arnd Bergmann --- arch/hexagon/include/asm/bitops.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.9.0 diff --git a/arch/hexagon/include/asm/bitops.h b/arch/hexagon/include/asm/bitops.h index 5e4a59b3ec1b..8790a50b1f5e 100644 --- a/arch/hexagon/include/asm/bitops.h +++ b/arch/hexagon/include/asm/bitops.h @@ -194,7 +194,7 @@ static inline int __test_bit(int nr, const volatile unsigned long *addr) * * Undefined if no zero exists, so code should check against ~0UL first. */ -static inline long ffz(int x) +static inline int ffz(int x) { int r; @@ -211,7 +211,7 @@ static inline long ffz(int x) * This is defined the same way as ffs. * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32. */ -static inline long fls(int x) +static inline int fls(int x) { int r; @@ -232,7 +232,7 @@ static inline long fls(int x) * the libc and compiler builtin ffs routines, therefore * differs in spirit from the above ffz (man ffs). */ -static inline long ffs(int x) +static inline int ffs(int x) { int r;