From: Johannes Berg <johannes@sipsolutions.net>
To: "Américo Wang" <xiyou.wangcong@gmail.com>
Cc: Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: sysfs lockdep complaint
Date: Sat, 20 Feb 2010 12:13:49 +0100 [thread overview]
Message-ID: <1266664429.11514.3.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <2375c9f91002200126x22b262b3r8b9b58e3cee34077@mail.gmail.com>
On Sat, 2010-02-20 at 17:26 +0800, Américo Wang wrote:
> This should be fixed by the patchset from Eric:
>
> http://lkml.org/lkml/2010/2/11/334
That patchset doesn't even compile.
johannes
---
drivers/pci/pci-sysfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- wireless-testing.orig/drivers/pci/pci-sysfs.c 2010-02-20 12:12:28.207979616 +0100
+++ wireless-testing/drivers/pci/pci-sysfs.c 2010-02-20 12:12:54.588603464 +0100
@@ -642,7 +642,7 @@ void pci_create_legacy_files(struct pci_
if (!b->legacy_io)
goto kzalloc_err;
- sysfs_bin_attr_init(&b->legacy_io);
+ sysfs_bin_attr_init(b->legacy_io);
b->legacy_io->attr.name = "legacy_io";
b->legacy_io->size = 0xffff;
b->legacy_io->attr.mode = S_IRUSR | S_IWUSR;
@@ -655,8 +655,8 @@ void pci_create_legacy_files(struct pci_
goto legacy_io_err;
/* Allocated above after the legacy_io struct */
- sysfs_bin_attr_init(&b->legacy_mem);
b->legacy_mem = b->legacy_io + 1;
+ sysfs_bin_attr_init(b->legacy_mem);
b->legacy_mem->attr.name = "legacy_mem";
b->legacy_mem->size = 1024*1024;
b->legacy_mem->attr.mode = S_IRUSR | S_IWUSR;
next prev parent reply other threads:[~2010-02-20 11:13 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-18 9:32 sysfs lockdep complaint Johannes Berg
2010-02-20 9:26 ` Américo Wang
2010-02-20 11:13 ` Johannes Berg [this message]
2010-02-20 13:54 ` Américo Wang
2010-02-20 14:00 ` Johannes Berg
2010-02-20 11:20 ` Johannes Berg
2010-02-20 13:51 ` Américo Wang
2010-02-20 13:58 ` Johannes Berg
2010-02-20 15:16 ` Américo Wang
2010-02-20 14:01 ` Johannes Berg
2010-02-20 15:03 ` Américo Wang
2010-02-20 15:07 ` Johannes Berg
2010-02-20 15:08 ` Johannes Berg
2010-02-20 15:20 ` Américo Wang
2010-02-20 15:28 ` Johannes Berg
2010-02-20 15:31 ` Johannes Berg
2010-02-20 15:44 ` Américo Wang
2010-02-20 15:44 ` Johannes Berg
2010-02-20 15:40 ` Américo Wang
2010-02-20 15:41 ` [PATCH] module: init sysfs attributes Johannes Berg
2010-02-20 15:43 ` [PATCH] windfarm: " Johannes Berg
2010-02-24 2:49 ` Benjamin Herrenschmidt
2010-02-24 7:32 ` Johannes Berg
2010-02-24 7:34 ` Américo Wang
2010-02-24 9:12 ` Johannes Berg
2010-02-25 1:43 ` Américo Wang
2010-03-08 7:46 ` Johannes Berg
2010-02-24 13:24 ` Greg KH
2010-02-25 1:46 ` Américo Wang
2010-02-20 15:14 ` sysfs lockdep complaint Johannes Berg
2010-02-20 15:31 ` Américo Wang
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=1266664429.11514.3.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=xiyou.wangcong@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.