mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ming Lei <tom.leiming@gmail.com>
To: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Greg KH <gregkh@suse.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] partitions: fix broken uevent_suppress conversion
Date: Thu, 11 Jun 2009 21:23:51 +0800	[thread overview]
Message-ID: <d82e647a0906110623w69dea2e2l4ac6d8b28ac39293@mail.gmail.com> (raw)
In-Reply-To: <20090611131440.GA3146@osiris.boeblingen.de.ibm.com>

2009/6/11 Heiko Carstens <heiko.carstens@de.ibm.com>:
> From: Heiko Carstens <heiko.carstens@de.ibm.com>
>
> git commit f67f129e "Driver core: implement uevent suppress in kobject"
> contains this chunk for fs/partitions/check.c:
>
>        /* suppress uevent if the disk supresses it */
> -       if (!ddev->uevent_suppress)
> +       if (!dev_get_uevent_suppress(pdev))
>                kobject_uevent(&pdev->kobj, KOBJ_ADD);
>
> However that should have been
>
> -       if (!ddev->uevent_suppress)
> +       if (!dev_get_uevent_suppress(ddev))
>
> Cc: Ming Lei <tom.leiming@gmail.com>
> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
> ---
>  fs/partitions/check.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: linux-2.6/fs/partitions/check.c
> ===================================================================
> --- linux-2.6.orig/fs/partitions/check.c
> +++ linux-2.6/fs/partitions/check.c
> @@ -426,7 +426,7 @@ struct hd_struct *add_partition(struct g
>        rcu_assign_pointer(ptbl->part[partno], p);
>
>        /* suppress uevent if the disk supresses it */
> -       if (!dev_get_uevent_suppress(pdev))
> +       if (!dev_get_uevent_suppress(ddev))
>                kobject_uevent(&pdev->kobj, KOBJ_ADD);
>
>        return p;
>

Thanks.

Acked-by: Ming Lei <tom.leiming@gmail.com>

-- 
Lei Ming

      reply	other threads:[~2009-06-11 14:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-11 13:14 Heiko Carstens
2009-06-11 13:23 ` Ming Lei [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=d82e647a0906110623w69dea2e2l4ac6d8b28ac39293@mail.gmail.com \
    --to=tom.leiming@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=gregkh@suse.de \
    --cc=heiko.carstens@de.ibm.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®