From mboxrd@z Thu Jan 1 00:00:00 1970 From: oulijun Subject: Re: [Test fail]//Re: some test question//Re: [For help] configure crossbar build tool in CMakelist.txt Date: Fri, 21 Oct 2016 09:42:33 +0800 Message-ID: <58097289.7070400@huawei.com> References: <5805FF8C.1060902@huawei.com> <20161018155004.GA24189@obsidianresearch.com> <5806E02E.7030400@huawei.com> <20161019041102.GA28678@obsidianresearch.com> <5808772F.6050305@huawei.com> <20161020162955.GA7375@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20161020162955.GA7375-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jason Gunthorpe Cc: linux-rdma , Linuxarm List-Id: linux-rdma@vger.kernel.org 在 2016/10/21 0:29, Jason Gunthorpe 写道: > On Thu, Oct 20, 2016 at 03:50:07PM +0800, oulijun wrote: >> 1. when set the VERBS_PROVIDER_DIR to empty, the >> sizeof(VERBS_PROVIDER_DIR) should be 0 and the branch should not be >> run > > This is a mistake, sizeof('') is 1, so the if should be (> 1)' I will > fix it. > >> 2. the value of so_name should be /libhisi-rdmav2.so in @1 and >> libhisi-rdmav2.so in @2. in fact, the value of so_name is /libhisi >> and libhisi >> >> the test print log as follows: >> >> -rdmav2.soer, 218] so_name: /libhisi >> [load_driver, 219] so_name: -rdmav2.so >> -rdmav2.soer, 229] so_name: libhisi >> [load_driver, 230] so_name: -rdmav2.so > > If you notice the -rdmav2.so has been placed at the start of the line, > this suggest you have a spurious '\r' character. This would come from > the .driver file. > > Since you did not use the cmake install process you must have written > the .driver file yourself and used a DOS text editor. UNIX line > endings are required. > > Jason > Thanks, i see it. > . > -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html