From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933155AbcFPBg2 (ORCPT ); Wed, 15 Jun 2016 21:36:28 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:22790 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932251AbcFPBg0 (ORCPT ); Wed, 15 Jun 2016 21:36:26 -0400 Subject: Re: [PATCH] tools/perf: fix the word selected in find_*_bit To: Arnaldo Carvalho de Melo , Yury Norov References: <1465990973-31483-1-git-send-email-maddy@linux.vnet.ibm.com> <20160615195127.GA6039@yury-N73SV> <20160615211104.GA6978@yury-N73SV> <20160615212958.GC4882@kernel.org> CC: Madhavan Srinivasan , , , "Adrian Hunter" , Borislav Petkov , David Ahern , George Spelvin , Jiri Olsa , Namhyung Kim , Rasmus Villemoes , Wang Nan , Yury Norov , Michael Ellerman From: Hekuang Message-ID: <5762027C.2020507@huawei.com> Date: Thu, 16 Jun 2016 09:35:56 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160615212958.GC4882@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.110.55.166] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090206.57620290.0009,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 2dadd493469638756441704fabdf9e22 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2016/6/16 5:29, Arnaldo Carvalho de Melo 写道: > Em Thu, Jun 16, 2016 at 12:11:04AM +0300, Yury Norov escreveu: >> On Wed, Jun 15, 2016 at 10:51:27PM +0300, Yury Norov wrote: >>> Maybe there already is some macro doing the conversion for you... >> yes it is, cpu_to_le64() is what you want > Beware that the cpu_to_le64() in tools/perf is bogus, we need to grab a > copy from the kernel sources. > > - Arnaldo > [PATCH 1/2] tools include: Sync byteorder/generic.h [PATCH 2/2] tools include: Fix wrong macro definitions for cpu_to_le* for big endian Here're two patches related to this issue, sorry for wrongly sent two more reduntant mails. Thank you.