|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2] vPCI: resolve MISRA R10.1 boolean arithmetic type violation
On Wed, Oct 07, 2026 at 08:39:52PM +0000, Dmytro Prokopchuk1 wrote: > MISRA C Rule 10.1 states: "Operands shall not be of an inappropriate > essential type". > > bar_write() and guest_mem_bar_write() added the boolean 'hi' to a > pointer difference when printing the ignored BAR index. These handlers > are registered only for the memory BAR registers, so print > (reg - PCI_BASE_ADDRESS_0) / 4 instead. The expression has type > unsigned int, so use %u. > > No functional changes. > > Suggested-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> > Signed-off-by: Dmytro Prokopchuk <dmytro_prokopchuk1@xxxxxxxx> Reviewed-by: Roger Pau Monné <roger@xxxxxxxxxxxxxx> Thanks, Roger.
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |