>>> On 15.06.15 at 16:30, <dsl...@verizon.com> wrote:
> On 06/15/15 10:19, Andrew Cooper wrote:
>> On 15/06/15 15:15, Don Slutz wrote:
>>> Signed-off-by: Don Slutz <dsl...@verizon.com>
>>> CC: Don Slutz <dsl...@verizon.com>
>> 
>> Fix how?  It looks like you are bracketing val.
>> 
> 
> If val is an expression, the macro most likely does the wrong thing.
> 
> For example:
> 
> pci_writeb(devfn, PCI_IO_BASE, addr >> PCI_IO_SHIFT);
> 
> 
> is pci_write(devfn, reg, 1, (uint8_t)addr >> PCI_IO_SHIFT); which is not
> correct.  I would expect:
> 
> pci_write(devfn, reg, 1, (uint8_t)(addr >> PCI_IO_SHIFT));
> 
>> This is an improvement, but please always be specific as to what is
>> being fixed.
>> 
> 
> Does:
> 
> Improve pci_write* macros to act like a function does.
> 
> scan better?

How about simply "correctly parenthesize pci_write* macros"?

Jan


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

Reply via email to