lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071105112731.288a8334@gondolin.boeblingen.de.ibm.com>
Date:	Mon, 5 Nov 2007 11:27:31 +0100
From:	Cornelia Huck <cornelia.huck@...ibm.com>
To:	Greg Kroah-Hartman <gregkh@...e.de>
Cc:	linux-kernel@...r.kernel.org, Greg Kroah-Hartman <gregkh@...e.de>,
	Kay Sievers <kay.sievers@...y.org>,
	Michael Holzheu <holzheu@...ibm.com>,
	Heiko Carstens <heiko.carstens@...ibm.com>,
	Volker Sameske <sameske@...ibm.com>
Subject: Re: [PATCH 46/54] kset: convert s390 ipl.c to use kset_create

On Fri,  2 Nov 2007 16:59:24 -0700,
Greg Kroah-Hartman <gregkh@...e.de> wrote:

> Dynamically create the kset instead of declaring it statically.
> This makes the kobject attributes now work properly that I broke in the
> previous patch.
> 
> Cc: Kay Sievers <kay.sievers@...y.org>
> Cc: Michael Holzheu <holzheu@...ibm.com>
> Cc: Heiko Carstens <heiko.carstens@...ibm.com>
> Cc: Volker Sameske <sameske@...ibm.com>
> Cc: Cornelia Huck <cornelia.huck@...ibm.com>
> Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>
> ---
>  arch/s390/kernel/ipl.c |   75 +++++++++++++++++++++++++-----------------------
>  1 files changed, 39 insertions(+), 36 deletions(-)

It seems you also need this (not yet booted):

Fix the following warnings:

arch/s390/kernel/ipl.c: In function 'reipl_init':
arch/s390/kernel/ipl.c:981: warning: passing argument 2 of 'sysfs_create_file' from incompatible pointer type
arch/s390/kernel/ipl.c: In function 'dump_init':
arch/s390/kernel/ipl.c:1070: warning: passing argument 2 of 'sysfs_create_file' from incompatible pointer type
arch/s390/kernel/ipl.c: In function 'shutdown_actions_init':
arch/s390/kernel/ipl.c:1094: warning: passing argument 2 of 'sysfs_create_file' from incompatible pointer type

Signed-off-by: Cornelia Huck <cornelia.huck@...ibm.com>

---
 arch/s390/kernel/ipl.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

Index: linux-2.6/arch/s390/kernel/ipl.c
===================================================================
--- linux-2.6.orig/arch/s390/kernel/ipl.c	2007-11-05 11:12:49.000000000 +0100
+++ linux-2.6/arch/s390/kernel/ipl.c	2007-11-05 11:22:04.000000000 +0100
@@ -978,7 +978,7 @@ static int __init reipl_init(void)
 	reipl_kset = kset_create_and_register("reipl", NULL, NULL, firmware_kset);
 	if (IS_ERR(reipl_kset))
 		return PTR_ERR(reipl_kset);
-	rc = sysfs_create_file(&reipl_kset->kobj, &reipl_type_attr);
+	rc = sysfs_create_file(&reipl_kset->kobj, &reipl_type_attr.attr);
 	if (rc) {
 		kset_unregister(reipl_kset);
 		return rc;
@@ -1067,7 +1067,7 @@ static int __init dump_init(void)
 	dump_kset = kset_create_and_register("dump", NULL, NULL, firmware_kset);
 	if (IS_ERR(dump_kset))
 		return PTR_ERR(dump_kset);
-	rc = sysfs_create_file(&dump_kset->kobj, &dump_type_attr);
+	rc = sysfs_create_file(&dump_kset->kobj, &dump_type_attr.attr);
 	if (rc) {
 		kset_unregister(dump_kset);
 		return rc;
@@ -1091,7 +1091,8 @@ static int __init shutdown_actions_init(
 							 firmware_kset);
 	if (IS_ERR(shutdown_actions_kset))
 		return PTR_ERR(shutdown_actions_kset);
-	rc = sysfs_create_file(&shutdown_actions_kset->kobj, &on_panic_attr);
+	rc = sysfs_create_file(&shutdown_actions_kset->kobj,
+			       &on_panic_attr.attr);
 	if (rc) {
 		kset_unregister(shutdown_actions_kset);
 		return rc;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ