public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: akpm@linux-foundation.org
Cc: linux-acpi@vger.kernel.org, heiko.carstens@de.ibm.com,
	greg@kroah.com, rui.zhang@intel.com, schwidefsky@de.ibm.com
Subject: Re: [patch 1/7] git-acpi: s390: struct bin_attribute changes
Date: Sun, 22 Jul 2007 00:43:28 -0400	[thread overview]
Message-ID: <200707220043.29286.lenb@kernel.org> (raw)
In-Reply-To: <200707091833.l69IXDiT000333@imap1.linux-foundation.org>

Applied.

thanks,
-Len
On Monday 09 July 2007 14:33, akpm@linux-foundation.org wrote:
> From: Heiko Carstens <heiko.carstens@de.ibm.com>
> 
> git-acpi contains a patch that adds 'struct bin_attribute *' to
> the read method of struct bin_attribute. This breaks s390:
> 
>   CC      arch/s390/kernel/ipl.o
> arch/s390/kernel/ipl.c:317:
>  warning: initialization from incompatible pointer type
> arch/s390/kernel/ipl.c:340:
>   warning: initialization from incompatible pointer type
> 
> Cc: Zhang Rui <rui.zhang@intel.com>
> Cc: Greg KH <greg@kroah.com>
> Cc: Len Brown <len.brown@intel.com>
> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  arch/s390/kernel/ipl.c |   10 ++++++----
>  1 files changed, 6 insertions(+), 4 deletions(-)
> 
> diff -puN arch/s390/kernel/ipl.c~git-acpi-s390-struct-bin_attribute-changes arch/s390/kernel/ipl.c
> --- a/arch/s390/kernel/ipl.c~git-acpi-s390-struct-bin_attribute-changes
> +++ a/arch/s390/kernel/ipl.c
> @@ -297,8 +297,9 @@ static ssize_t sys_ipl_device_show(struc
>  static struct subsys_attribute sys_ipl_device_attr =
>  	__ATTR(device, S_IRUGO, sys_ipl_device_show, NULL);
>  
> -static ssize_t ipl_parameter_read(struct kobject *kobj, char *buf, loff_t off,
> -				  size_t count)
> +static ssize_t ipl_parameter_read(struct kobject *kobj,
> +				  struct bin_attribute *attr,
> +				  char *buf, loff_t off, size_t count)
>  {
>  	unsigned int size = IPL_PARMBLOCK_SIZE;
>  
> @@ -320,8 +321,9 @@ static struct bin_attribute ipl_paramete
>  	.read = &ipl_parameter_read,
>  };
>  
> -static ssize_t ipl_scp_data_read(struct kobject *kobj, char *buf, loff_t off,
> -	size_t count)
> +static ssize_t ipl_scp_data_read(struct kobject *kobj,
> +				 struct bin_attribute *attr,
> +				 char *buf, loff_t off, size_t count)
>  {
>  	unsigned int size = IPL_PARMBLOCK_START->ipl_info.fcp.scp_data_len;
>  	void *scp_data = &IPL_PARMBLOCK_START->ipl_info.fcp.scp_data;
> _
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

      reply	other threads:[~2007-07-22  4:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-09 18:33 [patch 1/7] git-acpi: s390: struct bin_attribute changes akpm
2007-07-22  4:43 ` Len Brown [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=200707220043.29286.lenb@kernel.org \
    --to=lenb@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=greg@kroah.com \
    --cc=heiko.carstens@de.ibm.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=schwidefsky@de.ibm.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