[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] new functions libxl_bitmap_{or,and}



Hi Linda,

Hi Linda,

On 14/04/15 13:14, Linda wrote:
> On 4/14/2015 3:19 AM, Wei Liu wrote:
>> Thanks, we're getting there. If my comments confuse you please just ask
>> for clarification.
>>
>> There is no need to change the subject line.  However, it would be
>> useful if you have some kind of version number in you subject line. That
>> is
>>
>>     [PATCH vX] libxl: provide libxl_bimap_{and,or}
>>
>> You can do this by supplying --subject-prefix= to git format-patch
>>
>>     git format-patch -1 --subject-prefix="[PATCH vX]" ...
> What version do you want me to use at this point?  I've sort of lost
> count, since many changes have been style changes.

IIRC, this is the v3, so the next will be v4.

> I am assuming you usually reserve new versions for substantive changes?

The version number should be incremented every time you send a new
version of the patch to the mailing list.

>>
>> where X refers to your version number.
>>
>> On Mon, Apr 13, 2015 at 01:47:18AM -0600, Linda Jacobson wrote:
>>> provide logical and and or of two bitmaps
>>>
>> And the SoB line should be here.
> What does SoB stand for in this context?

Signed-off-by.

As said on a previous mail, everything after "---" will be dropped when
the committer will apply your patch to the tree. So your SoB will
disappear too.

You have to move it before the "---"

>>
>>> ---
>>>
>>> v.1  updated comments and format
>>> v.2  rewrote bitmap functions to manipulate bytes not bits
>>>
>>> Signed-off-by: Linda Jacobson <lindaj@xxxxxxxx>

[..]

>>
>>> +int libxl_bitmap_or(libxl_ctx *ctx, libxl_bitmap *or_map,
>>> +                    libxl_bitmap *map1, libxl_bitmap *map2)
>> Actually I think you need to constify map1 and map2. I.e.
>>
>>                         const libxl_bitmap *map1,
>>                const libxl_bitmap *map2)
> How come?  Out of curiosity.

You know that the 2 bitmaps won't be modified within function.
Constifying them will allow the compiler to catch any attempt to modify
the content of the bitmap.

Regards,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.