mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hans Zhang <18255117159@163.com>
To: bhelgaas@google.com, tglx@linutronix.de, kw@linux.com,
	manivannan.sadhasivam@linaro.org, mahesh@linux.ibm.com
Cc: oohall@gmail.com, linux-pci@vger.kernel.org,
	linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
	Hans Zhang <18255117159@163.com>
Subject: [PATCH 0/2] PCI: Convert MSI and AER state tracking variables to bool type
Date: Sat, 17 May 2025 00:52:21 +0800	[thread overview]
Message-ID: <20250516165223.125083-1-18255117159@163.com> (raw)

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


             reply	other threads:[~2025-05-16 16:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-16 16:52 Hans Zhang [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250516165223.125083-1-18255117159@163.com \
    --to=18255117159@163.com \
    --cc=bhelgaas@google.com \
    --cc=kw@linux.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mahesh@linux.ibm.com \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=oohall@gmail.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®