mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] PCI: Convert MSI and AER state tracking variables to bool type
@ 2025-05-16 16:52 Hans Zhang
  2025-05-16 16:52 ` [PATCH 1/2] PCI/MSI: Use bool for MSI enable state tracking Hans Zhang
  2025-05-16 16:52 ` [PATCH 2/2] PCI/AER: Use bool for AER disable " Hans Zhang
  0 siblings, 2 replies; 5+ messages in thread
From: Hans Zhang @ 2025-05-16 16:52 UTC (permalink / raw)
  To: bhelgaas, tglx, kw, manivannan.sadhasivam, mahesh
  Cc: oohall, linux-pci, linux-kernel, linuxppc-dev, Hans Zhang

This patch series converts MSI/AER state tracking variables from int to
bool type to improve code clarity and align with kernel coding standards.

These variables inherently represent boolean states (enabled/disabled).
Existing code already treats them as truth values in condition checks.
Explicit bool type eliminates ambiguity between integer 1/0 and
true/false. Follows modern kernel practices for state tracking with proper
type semantics.

No functional changes - pure code cleanup to enhance readability and
maintainability.

Hans Zhang (2):
  PCI/MSI: Use bool for MSI enable state tracking
  PCI/AER: Use bool for AER disable state tracking

 drivers/pci/msi/api.c  | 2 +-
 drivers/pci/msi/msi.c  | 4 ++--
 drivers/pci/msi/msi.h  | 2 +-
 drivers/pci/pcie/aer.c | 4 ++--
 include/linux/pci.h    | 4 ++--
 5 files changed, 8 insertions(+), 8 deletions(-)


base-commit: fee3e843b309444f48157e2188efa6818bae85cf
-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-13  8:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-16 16:52 [PATCH 0/2] PCI: Convert MSI and AER state tracking variables to bool type Hans Zhang
2025-05-16 16:52 ` [PATCH 1/2] PCI/MSI: Use bool for MSI enable state tracking Hans Zhang
2025-05-21 19:37   ` [tip: irq/msi] " tip-bot2 for Hans Zhang
2025-05-16 16:52 ` [PATCH 2/2] PCI/AER: Use bool for AER disable " Hans Zhang
2025-06-13  8:45   ` Manivannan Sadhasivam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®