From: Bjorn Helgaas <helgaas@kernel.org>
To: Ben Dooks <ben.dooks@codethink.co.uk>
Cc: linux-kernel@lists.codethink.co.uk, linux-pci@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PCI: sysfs: remove pci_bridge_groups and pcie_dev_groups
Date: Tue, 15 Oct 2019 16:21:15 -0500 [thread overview]
Message-ID: <20191015212115.GA135279@google.com> (raw)
In-Reply-To: <20191015140059.18660-1-ben.dooks@codethink.co.uk>
On Tue, Oct 15, 2019 at 03:00:59PM +0100, Ben Dooks wrote:
> The pci_bridge_groups and pcie_dev_groups objects are
> not exported and not used at-all, so remove them to
> fix the following warnings from sparse:
>
> drivers/pci/pci-sysfs.c:1546:30: warning: symbol 'pci_bridge_groups' was not declared. Should it be static?
> drivers/pci/pci-sysfs.c:1555:30: warning: symbol 'pcie_dev_groups' was not declared. Should it be static?
>
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> ---
> Cc: Bjorn Helgaas <bhelgaas@google.com>
> Cc: linux-pci@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> ---
> drivers/pci/pci-sysfs.c | 10 ----------
> 1 file changed, 10 deletions(-)
>
> diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
> index 793412954529..f7028cf3649a 100644
> --- a/drivers/pci/pci-sysfs.c
> +++ b/drivers/pci/pci-sysfs.c
> @@ -1543,20 +1543,10 @@ static const struct attribute_group pci_bridge_group = {
> .attrs = pci_bridge_attrs,
> };
>
> -const struct attribute_group *pci_bridge_groups[] = {
> - &pci_bridge_group,
> - NULL,
> -};
> -
> static const struct attribute_group pcie_dev_group = {
> .attrs = pcie_dev_attrs,
> };
>
> -const struct attribute_group *pcie_dev_groups[] = {
> - &pcie_dev_group,
> - NULL,
> -};
> -
> static const struct attribute_group pci_dev_hp_attr_group = {
> .attrs = pci_dev_hp_attrs,
> .is_visible = pci_dev_hp_attrs_are_visible,
I find the sysfs attribute/group/groups stuff quite confusing, but
aren't these now unused also?
pci_bridge_group
pcie_dev_group
next prev parent reply other threads:[~2019-10-15 21:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-15 14:00 [PATCH] PCI: sysfs: remove pci_bridge_groups and pcie_dev_groups Ben Dooks
2019-10-15 21:21 ` Bjorn Helgaas [this message]
2019-10-16 6:28 ` Christoph Hellwig
2019-10-16 7:31 ` Ben Dooks
2019-10-16 8:04 ` Ben Dooks
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=20191015212115.GA135279@google.com \
--to=helgaas@kernel.org \
--cc=ben.dooks@codethink.co.uk \
--cc=linux-kernel@lists.codethink.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
/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.