All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bjorn Helgaas <bhelgaas@google.com>
To: Gavin Shan <gwshan@linux.vnet.ibm.com>
Cc: linux-pci@vger.kernel.org
Subject: Re: [PATCH] PCI: Remove to_hotplug_slot()
Date: Thu, 13 Nov 2014 10:40:30 -0700	[thread overview]
Message-ID: <20141113174030.GK5064@google.com> (raw)
In-Reply-To: <1415760232-12748-1-git-send-email-gwshan@linux.vnet.ibm.com>

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
> 

      reply	other threads:[~2014-11-13 17:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-12  2:43 [PATCH] PCI: Remove to_hotplug_slot() Gavin Shan
2014-11-13 17:40 ` Bjorn Helgaas [this message]

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=20141113174030.GK5064@google.com \
    --to=bhelgaas@google.com \
    --cc=gwshan@linux.vnet.ibm.com \
    --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.