[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xsm/flask: code style formatting
On 4/26/22 04:38, Jan Beulich wrote: On 23.04.2022 01:07, Andrew Cooper wrote:On 22/04/2022 20:43, Daniel P. Smith wrote:diff --git a/xen/xsm/flask/hooks.c b/xen/xsm/flask/hooks.c index 0bf63ffa84..e2ebbc7716 100644 --- a/xen/xsm/flask/hooks.c +++ b/xen/xsm/flask/hooks.c @@ -120,8 +121,8 @@ static int get_irq_sid(int irq, u32 *sid, struct avc_audit_data *ad) struct irq_desc *desc = irq_to_desc(irq); if ( desc->msi_desc && desc->msi_desc->dev ) {I've elected to also fix this misplaced brace while committing. Ack. struct pci_dev *dev = desc->msi_desc->dev; - u32 sbdf = (dev->seg << 16) | (dev->bus << 8) | dev->devfn; - if (ad) { + uint32_t sbdf = (dev->seg << 16) | (dev->bus << 8) | dev->devfn; + if ( ad ) {Brace on newline, and in the subsequent hunk. Can be fixed on commit. Otherwise, LGTM. Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>Strictly speaking the u32 -> uint32_t conversion was getting us only half the mileage, but I've committed the change as is (in this regard) nevertheless. In many of the cases "unsigned int" or alike should be used instead. Thank you, I can add a review of uint{X}_t usage to the list of updates for flask. v/r, dps
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |