Re: [PATCH v2.1 1/7] crypto: GnuPG based MPI lib - source files (part 1)

From: Kasatkin, Dmitry
Date: Mon Oct 17 2011 - 07:07:19 EST


On Mon, Oct 17, 2011 at 12:11 PM, Kasatkin, Dmitry
<dmitry.kasatkin@xxxxxxxxx> wrote:
> From Kernel Docbook
>
> Â ÂSimilar to <function>EXPORT_SYMBOL()</function> except that the
> Â Âsymbols exported by <function>EXPORT_SYMBOL_GPL()</function> can
> Â Âonly be seen by modules with a
> Â Â<function>MODULE_LICENSE()</function> that specifies a GPL
> Â Âcompatible license. ÂIt implies that the function is considered
> Â Âan internal implementation issue, and not really an interface.
>
> "not really an interface"....
>
> Should it really be EXPORT_SYMBOL_GPL?
>
> - Dmitry
>
> On Sat, Oct 15, 2011 at 3:28 AM, James Morris <jmorris@xxxxxxxxx> wrote:
>> On Fri, 14 Oct 2011, Dmitry Kasatkin wrote:
>>
>>> +MPI mpi_alloc(unsigned nlimbs)
>>> +{
>>> + Â Â MPI a;
>>> +
>>> + Â Â a = (MPI) kmalloc(sizeof *a, GFP_KERNEL);
>>
>> Generally, typedef structs are frowned upon in the kernel. ÂI'd prefer to
>> see this (and any others) changed to a normal type.
>>
>> Also, kmalloc return values do not need to be cast, they're void *.
>>
>>> +EXPORT_SYMBOL(mpi_alloc);
>>
>> New interfaces should be EXPORT_SYMBOL_GPL.
>>
>>
>> --
>> James Morris
>> <jmorris@xxxxxxxxx>
>>
>

Hello James,

Also please let me know about other things so that I could fix them as well...

Thanks!

- Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/