From: sashiko-bot@kernel.org
To: "Habil Eren Türker" <habilerenturker@hotmail.com>
Cc: "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: Re: [PATCH] x86/quirks: Cast PCI_D0 to u16 in apple_airport_reset()
Date: Wed, 18 Nov 2026 16:20:43 +0000 [thread overview]
Message-ID: <sashiko-outbox-221462@kernel.org> (raw)
In-Reply-To: <20261118161559.63617-1-habilerenturker@hotmail.com>
> PCI_D0 is defined as pci_power_t, whereas pmcsr & PCI_PM_CTRL_STATE_MASK
> evaluates to a u16 integer.
>
> This causes Sparse (make C=1) to report:
> warning: restricted pci_power_t degrades to integer
>
> Add (__force u16) casts on PCI_D0 to explicitly eliminate warnings.
>
> Signed-off-by: Habil Eren Türker <habilerenturker@hotmail.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261118161559.63617-1-habilerenturker@hotmail.com?part=1
next prev parent reply other threads:[~2026-11-18 16:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 16:16 [PATCH] x86/quirks: Cast PCI_D0 to u16 in apple_airport_reset() Habil Eren Türker
2026-11-18 16:20 ` sashiko-bot [this message]
2026-11-18 18:14 ` Bjorn Helgaas
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=sashiko-outbox-221462@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=habilerenturker@hotmail.com \
--cc=linux-pci@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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