Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp451647imm; Tue, 3 Jul 2018 23:29:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc9CbyklTPkbj49oo7kL6gFEei9A8QwMJ3vdKIHH9Rqd8A2MKBJUa2tJW9tUeA6I6+uLYkr X-Received: by 2002:a17:902:7c8b:: with SMTP id y11-v6mr803298pll.222.1530685772277; Tue, 03 Jul 2018 23:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530685772; cv=none; d=google.com; s=arc-20160816; b=EW3EbkKGzvAZFRa0Eom4sk9HbUQvhO2HBrrguok3U9ecM27iMxZ1uLZERtNn67ymps Kri/sq5RIBWlXFqM0vd1nYJ8lvX3eUPt84+KZ3PVlZ8me4xk/Z3n/vTUjAW4yfUabtRW 01754nxQYv5nTQmxiJquWKRnDNPL6fB1/rfCZTy857sr/hfsJjy/91N3EAb+1WTR7HEh orHjsXVDqCuBUIYGmiIrrOg/B8jCexK+J2X4su7dZp5YPh8Pa0cpjWt3QQQ3URx6Vvrn J0j1Ub8MzfBLrfvrqZKhgYAHc3xRqEmdRxZcxSPKQFQI5XJNccwsPYS1x1ib/e/Nh/0e apCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=T8xfc7kyxaXR3p+78Nrhchd7faLnyV7B++cP2Bf/kMc=; b=y/Do3p9hRgSBIoIyz5/YIFXn0HuCY8uJIRApaGAseimpyE9cG27JT5YWXRxm+o/REX p7puzp1n0TZIp2z2n8k3m5+x1ZEaAQAAlo8XIGVj/PUKVP80VdGZRbVuhcSRcUa4unJt LbcB2KzAjJnJ4zm55IiVKvDjXEBLoUI3ljFev5tlIFwiZexVUJ3Q7T2wUHKlde0+qBxe OXFFAlCvAdB259dCmx9WwUOlBb7Fj5ZCnd02DvQeQYiTVVnoo3KhG+kcnyXd1jRRCQ3s nrxo8ObB451ia63p8igljsz1+kNqzX3osHjWOwTG9nroIVbEXHDXH+eGJr7euoYdTCse EEUA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l65-v6si2945090pfl.155.2018.07.03.23.29.17; Tue, 03 Jul 2018 23:29:32 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933358AbeGDG2e (ORCPT + 99 others); Wed, 4 Jul 2018 02:28:34 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:40282 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932500AbeGDG2b (ORCPT ); Wed, 4 Jul 2018 02:28:31 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w646OcKc019092 for ; Wed, 4 Jul 2018 02:28:31 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 2k0mpe8p3f-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 04 Jul 2018 02:28:31 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 4 Jul 2018 07:28:29 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 4 Jul 2018 07:28:26 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w646SPas46071844 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 4 Jul 2018 06:28:25 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 00EE542047; Wed, 4 Jul 2018 09:28:51 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6136342045; Wed, 4 Jul 2018 09:28:49 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.160]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 4 Jul 2018 09:28:49 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Wed, 04 Jul 2018 09:28:23 +0300 From: Mike Rapoport To: Geert Uytterhoeven , Greg Ungerer , Sam Creasey Cc: Michal Hocko , linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [PATCH v2 1/3] m68k/bitops: convert __ffs to match generic declaration Date: Wed, 4 Jul 2018 09:28:14 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530685696-14672-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1530685696-14672-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18070406-0008-0000-0000-0000024F76CF X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070406-0009-0000-0000-000021B588F6 Message-Id: <1530685696-14672-2-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-04_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807040077 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The generic bitops declare __ffs as static inline unsigned long __ffs(unsigned long word); Convert the m68k version to match the generic declaration. Signed-off-by: Mike Rapoport --- arch/m68k/include/asm/bitops.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/m68k/include/asm/bitops.h b/arch/m68k/include/asm/bitops.h index 93b47b1..54009ea 100644 --- a/arch/m68k/include/asm/bitops.h +++ b/arch/m68k/include/asm/bitops.h @@ -454,7 +454,7 @@ static inline unsigned long ffz(unsigned long word) */ #if (defined(__mcfisaaplus__) || defined(__mcfisac__)) && \ !defined(CONFIG_M68000) && !defined(CONFIG_MCPU32) -static inline int __ffs(int x) +static inline unsigned long __ffs(unsigned long x) { __asm__ __volatile__ ("bitrev %0; ff1 %0" : "=d" (x) @@ -493,7 +493,11 @@ static inline int ffs(int x) : "dm" (x & -x)); return 32 - cnt; } -#define __ffs(x) (ffs(x) - 1) + +static inline unsigned long __ffs(unsigned long x) +{ + return ffs(x) - 1; +} /* * fls: find last bit set. -- 2.7.4