linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: Remove to_hotplug_slot()
@ 2014-11-12  2:43 Gavin Shan
  2014-11-13 17:40 ` Bjorn Helgaas
  0 siblings, 1 reply; 2+ messages in thread
From: Gavin Shan @ 2014-11-12  2:43 UTC (permalink / raw)
  To: linux-pci; +Cc: bhelgaas, Gavin Shan

struct hotplug_slot doesn't have kobj. to_hotplug_slot(), which
intends converts kobj to hotplug slot, isn't valid any more.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
---
 include/linux/pci_hotplug.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/pci_hotplug.h b/include/linux/pci_hotplug.h
index 2706ee9..8c78950 100644
--- a/include/linux/pci_hotplug.h
+++ b/include/linux/pci_hotplug.h
@@ -109,7 +109,6 @@ struct hotplug_slot {
 	struct list_head		slot_list;
 	struct pci_slot			*pci_slot;
 };
-#define to_hotplug_slot(n) container_of(n, struct hotplug_slot, kobj)
 
 static inline const char *hotplug_slot_name(const struct hotplug_slot *slot)
 {
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] PCI: Remove to_hotplug_slot()
  2014-11-12  2:43 [PATCH] PCI: Remove to_hotplug_slot() Gavin Shan
@ 2014-11-13 17:40 ` Bjorn Helgaas
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2014-11-13 17:40 UTC (permalink / raw)
  To: Gavin Shan; +Cc: linux-pci

On Wed, Nov 12, 2014 at 01:43:52PM +1100, Gavin Shan wrote:
> struct hotplug_slot doesn't have kobj. to_hotplug_slot(), which
> intends converts kobj to hotplug slot, isn't valid any more.
> 
> Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>

Applied to pci/hotplug for v3.19, thanks!

> ---
>  include/linux/pci_hotplug.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/include/linux/pci_hotplug.h b/include/linux/pci_hotplug.h
> index 2706ee9..8c78950 100644
> --- a/include/linux/pci_hotplug.h
> +++ b/include/linux/pci_hotplug.h
> @@ -109,7 +109,6 @@ struct hotplug_slot {
>  	struct list_head		slot_list;
>  	struct pci_slot			*pci_slot;
>  };
> -#define to_hotplug_slot(n) container_of(n, struct hotplug_slot, kobj)
>  
>  static inline const char *hotplug_slot_name(const struct hotplug_slot *slot)
>  {
> -- 
> 1.8.3.2
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-13 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-12  2:43 [PATCH] PCI: Remove to_hotplug_slot() Gavin Shan
2014-11-13 17:40 ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).