git-acpi: s390: struct bin_attribute changes
PATCH 1/7 git-acpi: s390: struct bin_attribute changes
From: Heiko Carstens <[email protected]>
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.oarch/s390/kernel/ipl.c:317:
warning: initialization from incompatible pointer typearch/s390/kernel/ipl.c:340:
warning: initialization from incompatible pointer type
---
arch/s390/kernel/ipl.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-)
arch/s390/kernel/ipl.c renamed from arch/s390/kernel/ipl.c~git-acpi-s390-struct-bin_attribute-changes +6 -4
@@ -297,8 +297,9 @@ static ssize_t sys_ipl_device_show(strucstatic 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;
_
Applied.
thanks,
-Len
Quoted 55 lines · On Monday 09 July 2007 14:33, [email protected] wrote:
From: Heiko Carstens <[email protected]>
git-acpi contains a patch that adds 'struct
bin_attribute*' to the read method of structbin_attribute. This breaks s390:CC
arch/s390/kernel/ipl.oarch/s390/kernel/ipl.c:317:
warning: initialization from incompatible pointer typearch/s390/kernel/ipl.c:340:
warning: initialization from incompatible pointer typeCc Zhang Rui <[email protected]>Cc Greg KH <[email protected]>Cc Len Brown <[email protected]>Cc Martin Schwidefsky <[email protected]>Signed-off-by Heiko Carstens <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
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-changesarch/s390/kernel/ipl.carch/s390/kernel/ipl.c renamed from arch/s390/kernel/ipl.c~git-acpi-s390-struct-bin_attribute-changes +6
-4@@ -297,8 +297,9 @@ static ssize_t sys_ipl_device_show(strucstatic 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html