Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp982465imm; Tue, 3 Jul 2018 03:32:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeyIE4ESGos3bO4i9H3S9XJSys2EgK/STVefNNisGjeLAUEnPphUmWAkm4AEks3t1AmnDe/ X-Received: by 2002:a62:5984:: with SMTP id k4-v6mr14546813pfj.116.1530613942685; Tue, 03 Jul 2018 03:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530613942; cv=none; d=google.com; s=arc-20160816; b=Fpzbm5SaO28duvT3NH+SZw2ioZNE0H+3fdfIkwi6l0IKyPMEMlYiPZH7WuS4TVQvJJ /V2E9B8BeZ1L3w3KLxxPrY0ztIlGv5e3BnF+LqXwHemCjwtjjLkyFVvdh73MYm8MK5LB I74/d/8LNv248fKwZTyCvFiFglXNNYgkz1IhuHLdF6rRXmb2SYZMpO7amUCIFRCAWT0V kke/KPrqYILp8QtQPU6uU8zcahzNGZoKOIMirSMhPHubXbmNFjo4Gam/MCvoMgxEALNb 8PW8I8rfar/Gl1Y7dnegXi7oOxB/sLo8PyEat+RLyh3MygeAVXUSsFsHwUhqy9Lu/AD8 oUDQ== 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=Ee2v3J8tcNvAqOk1air91gxsXXygSqAVtw3GRwe59fp5I5Rcqx7rDuFWN7wIgU/aam 2ymBPaEKFa3dxcGAU/leVSfEf8cLiyr7jj5qdw0ictyUi9wKSqcYLOY2CCmWB8Nrd0K+ N0gGfv28qohV5XyVHb6UUqQoA+kYbbJ98TRX8bxzH8SbYsmn9p0K9pJXVddFIB0yTrSM 0xA7bme5BWByjANPtYvIrUS5UJYxMg45RoxsXRXdiWqDmQnk42dfiWtLG4DUEmcaTLe+ QXz5/cdeWmfX1sTmxIlq3hixhDYT8RvYu6kMlvlht9Elj0rKqnMeHoKbA1jDbWYxBZqV gWjA== 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 z4-v6si732222pgv.621.2018.07.03.03.32.08; Tue, 03 Jul 2018 03:32:22 -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 S1754823AbeGCKaL (ORCPT + 99 others); Tue, 3 Jul 2018 06:30:11 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:41274 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754798AbeGCKaJ (ORCPT ); Tue, 3 Jul 2018 06:30:09 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w63AONq4062279 for ; Tue, 3 Jul 2018 06:30:08 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2k07bgr6xw-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 03 Jul 2018 06:30:08 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Jul 2018 11:30:05 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 3 Jul 2018 11:30:02 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w63AU1rM13631684 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Jul 2018 10:30:01 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8ECE1AE059; Tue, 3 Jul 2018 13:30:04 +0100 (BST) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C09DEAE053; Tue, 3 Jul 2018 13:30:02 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.206.209]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 3 Jul 2018 13:30:02 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Tue, 03 Jul 2018 13:29:59 +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 1/3] m68k/bitops: convert __ffs to match generic declaration Date: Tue, 3 Jul 2018 13:29:53 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530613795-6956-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1530613795-6956-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18070310-0028-0000-0000-000002D7AD91 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070310-0029-0000-0000-0000238F2E15 Message-Id: <1530613795-6956-2-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-03_03:,, 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-1807030120 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