Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933264AbbFJGqO (ORCPT ); Wed, 10 Jun 2015 02:46:14 -0400 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:41176 "EHLO socrates.bennee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754216AbbFJGpx (ORCPT ); Wed, 10 Jun 2015 02:45:53 -0400 References: <555B5305.9050506@kynesim.co.uk> <555B5353.2000204@kynesim.co.uk> From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Richard Watts Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: Re: [PATCH 001/003] Attempt to cope with device changes and delayed kobject deallocation In-reply-to: <555B5353.2000204@kynesim.co.uk> Date: Wed, 10 Jun 2015 07:46:16 +0100 Message-ID: <87ioaw6oxz.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: alex.bennee@linaro.org X-SA-Exim-Scanned: No (on socrates.bennee.com); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1754 Lines: 55 Richard Watts writes: > Expose kobject_get_unless_zero() which will shortly be > needed by get_device_parent(). > > Signed-off-by: Richard Watts > --- > include/linux/kobject.h | 1 + > lib/kobject.c | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/include/linux/kobject.h b/include/linux/kobject.h > index 2d61b90..662b136 100644 > --- a/include/linux/kobject.h > +++ b/include/linux/kobject.h > @@ -107,6 +107,7 @@ extern int __must_check kobject_rename(struct > kobject *, const char *new_name); > extern int __must_check kobject_move(struct kobject *, struct kobject *); > > extern struct kobject *kobject_get(struct kobject *kobj); > +extern struct kobject * __must_check kobject_get_unless_zero(struct > kobject *kobj); > extern void kobject_put(struct kobject *kobj); > > extern const void *kobject_namespace(struct kobject *kobj); > diff --git a/lib/kobject.c b/lib/kobject.c > index 3b841b9..3ba1db4 100644 > --- a/lib/kobject.c > +++ b/lib/kobject.c > @@ -586,7 +586,7 @@ struct kobject *kobject_get(struct kobject *kobj) > return kobj; > } > > -static struct kobject * __must_check kobject_get_unless_zero(struct > kobject *kobj) > +struct kobject * __must_check kobject_get_unless_zero(struct kobject *kobj) > { > if (!kref_get_unless_zero(&kobj->kref)) > kobj = NULL; Hi Richard, checkpatch is complaining about some trailing whitespace in this patch. > -- > 1.9.1 -- Alex Bennée -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/