mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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] documentation: fix firmware_sample_firmware_class to build
Date: Tue, 19 Feb 2008 14:40:53 -0800	[thread overview]
Message-ID: <20080219144053.f0506b87.randy.dunlap@oracle.com> (raw)
In-Reply-To: <alpine.DEB.1.00.0802181650140.21008@chino.kir.corp.google.com>

On Mon, 18 Feb 2008 16:51:31 -0800 (PST) David Rientjes wrote:

> Change sysfs_remove_bin_file() to have a return value of void in the 
> !CONFIG_SYSFS case, matching the return value of the same function with 
> the opposite configuration.
> 
> Also moves unnecessary ';' in empty void functions.
> 
> Cc: Randy Dunlap <randy.dunlap@oracle.com>
> Signed-off-by: David Rientjes <rientjes@google.com>
> ---
>  include/linux/sysfs.h |   11 +++--------
>  1 files changed, 3 insertions(+), 8 deletions(-)
> 
> diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
> --- a/include/linux/sysfs.h
> +++ b/include/linux/sysfs.h
> @@ -93,7 +93,7 @@ int __must_check sysfs_create_file(struct kobject *kobj,
>  				   const struct attribute *attr);
>  int __must_check sysfs_chmod_file(struct kobject *kobj, struct attribute *attr,
>  				  mode_t mode);
> -void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr);
> +void wsysfs_remove_file(struct kobject *kobj, const struct attribute *attr);

Please explain the change above.  I don't get it...

>  
>  int __must_check sysfs_create_bin_file(struct kobject *kobj,
>  				       struct bin_attribute *attr);
> @@ -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

  reply	other threads:[~2008-02-19 22:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-19  0:22 Randy Dunlap
2008-02-19  0:32 ` David Rientjes
2008-02-19  0:51   ` David Rientjes
2008-02-19 22:40     ` Randy Dunlap [this message]
2008-02-20  1:39       ` [patch] sysfs: small header file cleanup David Rientjes
2008-02-20  4:17         ` Randy Dunlap
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=20080219144053.f0506b87.randy.dunlap@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

all inboxes | Powered by JetHome®