[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250516165223.125083-1-18255117159@163.com>
Date: Sat, 17 May 2025 00:52:21 +0800
From: Hans Zhang <18255117159@....com>
To: bhelgaas@...gle.com,
tglx@...utronix.de,
kw@...ux.com,
manivannan.sadhasivam@...aro.org,
mahesh@...ux.ibm.com
Cc: oohall@...il.com,
linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org,
Hans Zhang <18255117159@....com>
Subject: [PATCH 0/2] PCI: Convert MSI and AER state tracking variables to bool type
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
Powered by blists - more mailing lists