All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Rosen Penev" <rosenp@gmail.com>
Cc: linux-pci@vger.kernel.org
Subject: Re: [PATCHv2] PCI: hotplug: compaq: fix X86 dependency
Date: Tue, 26 May 2026 04:41:09 +0000	[thread overview]
Message-ID: <20260526044110.29B821F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260526042614.1013867-1-rosenp@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The commit introduces a redundant X86_32 dependency and the commit message falsely claims it fixes an x86_64 compilation failure.
--

commit 2f32c0aa3739414d8be655780c2734e155b45ea8
Author: Rosen Penev <rosenp@gmail.com>
PCI: hotplug: compaq: fix X86 dependency

This commit restricts the HOTPLUG_PCI_COMPAQ Kconfig dependency from X86
to X86_32. The commit message indicates this is to prevent x86_64 build
failures caused by invalid assembly.

> This driver needs X86_32, not X86. It does not compile on x86_64 because
> of invalid assembly there.

[Severity: Medium]
Is this description accurate?

HOTPLUG_PCI_COMPAQ already depends on PCI_BIOS. In arch/x86/Kconfig,
config PCI_BIOS is defined with depends on X86_32.

Because of this dependency, the driver could not be selected or compiled
on x86_64 even before this patch. Could the commit message be updated to
reflect this?

> diff --git a/drivers/pci/hotplug/Kconfig b/drivers/pci/hotplug/Kconfig
> index 3207860b52e42..5074c0ac4ce18 100644
> --- a/drivers/pci/hotplug/Kconfig
> +++ b/drivers/pci/hotplug/Kconfig
> @@ -20,7 +20,7 @@ if HOTPLUG_PCI
>  
>  config HOTPLUG_PCI_COMPAQ
>  	tristate "Compaq PCI Hotplug driver"
> -	depends on X86 && PCI_BIOS
> +	depends on X86_32 && PCI_BIOS

[Severity: Medium]
Does this introduce a redundant check?

Since PCI_BIOS already restricts the build to X86_32, changing X86 to
X86_32 appears to provide no functional difference.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260526042614.1013867-1-rosenp@gmail.com?part=1

  reply	other threads:[~2026-05-26  4:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-26  4:26 [PATCHv2] PCI: hotplug: compaq: fix X86 dependency Rosen Penev
2026-05-26  4:41 ` sashiko-bot [this message]
2026-05-26  4:43   ` Rosen Penev

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=20260526044110.29B821F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=rosenp@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.