From: Randy Dunlap <randy.dunlap@oracle.com>
To: David Rientjes <rientjes@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: Re: [patch] sysfs: small header file cleanup
Date: Tue, 19 Feb 2008 20:17:20 -0800 [thread overview]
Message-ID: <47BBA9D0.4030000@oracle.com> (raw)
In-Reply-To: <alpine.DEB.1.00.0802191738070.20797@chino.kir.corp.google.com>
David Rientjes wrote:
> Convert sysfs_remove_bin_file() to have a return type of 'void' for
> !CONFIG_SYSFS configurations. Also removes unnecessary colons from empty
> void functions.
>
> Cc: Randy Dunlap <randy.dunlap@oracle.com>
Reviewed-by: Randy Dunlap <randy.dunlap@oracle.com>
Thanks, David.
> Signed-off-by: David Rientjes <rientjes@google.com>
> ---
> include/linux/sysfs.h | 9 ++-------
> 1 files changed, 2 insertions(+), 7 deletions(-)
>
> diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
> --- a/include/linux/sysfs.h
> +++ b/include/linux/sysfs.h
> @@ -131,7 +131,6 @@ static inline int sysfs_create_dir(struct kobject *kobj)
>
> static inline void sysfs_remove_dir(struct kobject *kobj)
> {
> - ;
> }
>
> static inline int sysfs_rename_dir(struct kobject *kobj, const char *new_name)
> @@ -160,7 +159,6 @@ static inline int sysfs_chmod_file(struct kobject *kobj,
> static inline void sysfs_remove_file(struct kobject *kobj,
> const struct attribute *attr)
> {
> - ;
> }
>
> static inline int sysfs_create_bin_file(struct kobject *kobj,
> @@ -169,10 +167,9 @@ static inline int sysfs_create_bin_file(struct kobject *kobj,
> return 0;
> }
>
> -static inline int sysfs_remove_bin_file(struct kobject *kobj,
> - struct bin_attribute *attr)
> +static inline void sysfs_remove_bin_file(struct kobject *kobj,
> + struct bin_attribute *attr)
> {
> - return 0;
> }
>
> static inline int sysfs_create_link(struct kobject *kobj,
> @@ -183,7 +180,6 @@ static inline int sysfs_create_link(struct kobject *kobj,
>
> static inline void sysfs_remove_link(struct kobject *kobj, const char *name)
> {
> - ;
> }
>
> static inline int sysfs_create_group(struct kobject *kobj,
> @@ -195,7 +191,6 @@ static inline int sysfs_create_group(struct kobject *kobj,
> static inline void sysfs_remove_group(struct kobject *kobj,
> const struct attribute_group *grp)
> {
> - ;
> }
>
> static inline int sysfs_add_file_to_group(struct kobject *kobj,
--
~Randy
next prev parent reply other threads:[~2008-02-20 4:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-19 0:22 [PATCH] documentation: fix firmware_sample_firmware_class to build Randy Dunlap
2008-02-19 0:32 ` David Rientjes
2008-02-19 0:51 ` David Rientjes
2008-02-19 22:40 ` Randy Dunlap
2008-02-20 1:39 ` [patch] sysfs: small header file cleanup David Rientjes
2008-02-20 4:17 ` Randy Dunlap [this message]
2008-02-20 6:46 ` [PATCH] documentation: fix firmware_sample_firmware_class to build Greg KH
2008-02-20 20:10 ` Randy Dunlap
2008-02-20 20:40 ` Greg KH
2008-02-20 21:20 ` [PATCH 1/2] firmware: move firmware_class from Documentation/ to samples/ Randy Dunlap
2008-02-20 21:48 ` Marcel Holtmann
2008-02-21 0:07 ` patch firmware-move-firmware_class-from-documentation-to-samples.patch added to gregkh-2.6 tree gregkh
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=47BBA9D0.4030000@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rientjes@google.com \
/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;
as well as URLs for NNTP newsgroup(s).