Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1167945imu; Thu, 13 Dec 2018 10:24:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/WXAMZJarv84+Q2FKpokEkL+YrL6cGU6DsR+QSp+MVwWYgd+Wyp5Hta2iWbo0SG4kxv9dA8 X-Received: by 2002:a62:de06:: with SMTP id h6mr25820342pfg.158.1544725481151; Thu, 13 Dec 2018 10:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544725481; cv=none; d=google.com; s=arc-20160816; b=ui9MkWXw0BPO+SSFiqMrT1nvMtSOH3q2KGSr5H6kxB5WJwR6si8BdvbKEWhxjbz+Y8 gustalAAoUn9z9CMNcf0sRqkV7hlKFk6shNn6rQLfBAZLcBvFN/iNCS2QQmdDJUTm/Z1 1H6RzRWvhWgwc3BsUYYhRqY87XKccectEgI9+VmvHgE/VMyL7pXfp+Tuu6fQ0XTDOwGX 87+S9B25Iwy0oRd1wPNmwAi9Hf7w1G0NujB8+y98KtBjyizIk8Z+guXZVkRKJhBfyEY4 x4moAoXGlHe00iIltxV+bieGJuhYxi4UNcjstHw7M0tUDamKu4xRj5jzMQUftjITgLHE +OLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=eQ9omTdtGI8YPXkxucnTGpLTuTupiotPXtk1FfrUFMs=; b=HgzIyresM08XEC9dIyMLLXxfZQ1Gh3vww32kIpM6yugnb1LchzmJg8z6wj6kRnlD/A b6qbXfO9ENQ+celybblYRVrkfgXcT2rJLwUDgRZljCjGUp2KzlPsAO5i/T8t60WsAc5h KuxL3vZ2aWo81P7taWpxRPAHh2njNS9hkpP/PZTNJaqR2fDxJ9vwQKc87ZGMgRHVDO0K Cyg9TplU2Tg5Z/EQIlcmxuzZmL3ojkiX52lg5yoeRke7f5a+ehRxcsmk5oFbvUD1e/ej WXPnz0dx0p7xjiVw4hF2f5c1VgjC/NxfNcpMVN4r/qyJG3XZ5PmpfaPf+re58VOv1Rh1 +IeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=A0gHO6nz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v184si1938503pgd.295.2018.12.13.10.24.23; Thu, 13 Dec 2018 10:24:41 -0800 (PST) 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; dkim=pass header.i=@synopsys.com header.s=mail header.b=A0gHO6nz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728314AbeLMSXU (ORCPT + 99 others); Thu, 13 Dec 2018 13:23:20 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:41512 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727775AbeLMSXU (ORCPT ); Thu, 13 Dec 2018 13:23:20 -0500 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id AB55F10C0C0E; Thu, 13 Dec 2018 10:23:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1544725399; bh=eQ9omTdtGI8YPXkxucnTGpLTuTupiotPXtk1FfrUFMs=; h=From:To:CC:Subject:Date:References:From; b=A0gHO6nzfz/CHKgdu5WhMwgWRsczgeHPzyxuBBbDQqEVZuX6HX4USYM8e7QPD3qoV HE/wXLeVLPaG5vZS04uBmReEcurzIPNCm3dBBaV1nG7uLoGTgyxZp+se9jn+xxdFeh /jnCJmt6l7Aw33E3zb9fTiAc6v+l3Xg8T875KqAdXJm5yM/T/bX8iZDpzqWjGnDdPa IRqxhd0LRBsoo+oGMo1mWM4CcoynPkDSwIXf8Kj3Zen0pWaz3r+1nD0jr2dT//M+hK M95aKGQyzs83uYiN4y52fc1+PxFU0LsWK9EiJOW238kT18MxSXwvh5lylg7PFn7cM0 HMGMU0LNqV/5w== Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) by mailhost.synopsys.com (Postfix) with ESMTP id 9FEB33B22; Thu, 13 Dec 2018 10:23:19 -0800 (PST) Received: from US01WEMBX2.internal.synopsys.com ([fe80::e4b6:5520:9c0d:250b]) by US01WXQAHTC1.internal.synopsys.com ([::1]) with mapi id 14.03.0415.000; Thu, 13 Dec 2018 10:23:19 -0800 From: Vineet Gupta To: Eugeniy Paltsev , "linux-snps-arc@lists.infradead.org" CC: "linux-kernel@vger.kernel.org" , "Alexey Brodkin" Subject: Re: [PATCH] ARC: fix __ffs return value to avoid build warnings Thread-Topic: [PATCH] ARC: fix __ffs return value to avoid build warnings Thread-Index: AQHUkvqJxXSvGyNzLkuvtcEIj0Ff0w== Date: Thu, 13 Dec 2018 18:23:18 +0000 Message-ID: References: <20181213154257.23033-1-Eugeniy.Paltsev@synopsys.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.144.199.106] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/13/18 7:43 AM, Eugeniy Paltsev wrote:=0A= > Change __ffs return value from 'int' to 'unsigned long' as it=0A= > is done in other implementations (like asm-generic, x86, etc...)=0A= > to avoid build-time warnings in places where type is strictly=0A= > checked.=0A= >=0A= > As __ffs may return values in [0-31] interval changing return=0A= > type to unsigned is valid.=0A= >=0A= > Signed-off-by: Eugeniy Paltsev =0A= =0A= Can you please paste a couple of lines of offending output !=0A= =0A= -Vineet=0A=