* [PATCH] PCI: Constify pcibus_class
@ 2024-04-13 21:01 Heiner Kallweit
2024-04-17 15:50 ` Bjorn Helgaas
0 siblings, 1 reply; 2+ messages in thread
From: Heiner Kallweit @ 2024-04-13 21:01 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: linux-pci
Constify pcibus_class. All users take a const struct class * argument.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/pci/probe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 1325fbae2..4ec903291 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -95,7 +95,7 @@ static void release_pcibus_dev(struct device *dev)
kfree(pci_bus);
}
-static struct class pcibus_class = {
+static const struct class pcibus_class = {
.name = "pci_bus",
.dev_release = &release_pcibus_dev,
.dev_groups = pcibus_groups,
--
2.44.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] PCI: Constify pcibus_class
2024-04-13 21:01 [PATCH] PCI: Constify pcibus_class Heiner Kallweit
@ 2024-04-17 15:50 ` Bjorn Helgaas
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2024-04-17 15:50 UTC (permalink / raw)
To: Heiner Kallweit; +Cc: Bjorn Helgaas, linux-pci
On Sat, Apr 13, 2024 at 11:01:17PM +0200, Heiner Kallweit wrote:
> Constify pcibus_class. All users take a const struct class * argument.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Applied to pci/misc for v6.10, thanks!
> ---
> drivers/pci/probe.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
> index 1325fbae2..4ec903291 100644
> --- a/drivers/pci/probe.c
> +++ b/drivers/pci/probe.c
> @@ -95,7 +95,7 @@ static void release_pcibus_dev(struct device *dev)
> kfree(pci_bus);
> }
>
> -static struct class pcibus_class = {
> +static const struct class pcibus_class = {
> .name = "pci_bus",
> .dev_release = &release_pcibus_dev,
> .dev_groups = pcibus_groups,
> --
> 2.44.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-17 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-13 21:01 [PATCH] PCI: Constify pcibus_class Heiner Kallweit
2024-04-17 15:50 ` Bjorn Helgaas
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.