Re: [PATCH rdma-core 4/5] libocrdma: Move ocrdma's list implementation into common directory

Bart Van Assche
2016-09-25T17:50:51Z

On 09/25/16 09:22, Christoph Hellwig wrote:
> On Sun, Sep 25, 2016 at 07:13:15PM +0300, Leon Romanovsky wrote:
>> Any suggestion where can we get list.h compliant with BSD license?
>> Is this enough [1] ?
>
> That one looks like someone who knew the Linux one very well spend
> a lot of effort obsfucating it after starting with the Linux version :)
>
> If I were the copyright holder of the file I'd be okay with that given
> that the list implementation is pretty much trivial anyway.
>
> But given that I don't know who owns every little bit of the Linux
> lists.h I'd simply avoid anything looking like it and use something
> like the BSD queue.h instead (which glibc also provides, but in a
> horribly outdated version).

How about using from libstdc++? It is allowed to use libstdc++
headers to build non-GPL software. See also
https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html for
libstdc++ license information.

Bart.