From: Brice Goglin <Brice.Goglin@ens-lyon.org>
To: Greg KH <greg@kroah.com>
Cc: Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org,
Dmitry Torokhov <dtor_core@ameritech.net>,
Vojtech Pavlik <vojtech@suse.cz>
Subject: Re: 2.6.14-rc4-mm1
Date: Tue, 18 Oct 2005 09:30:35 +0200 [thread overview]
Message-ID: <4354A49B.6060809@ens-lyon.org> (raw)
In-Reply-To: <20051018065843.GB11858@kroah.com>
[-- Attachment #1: Type: text/plain, Size: 496 bytes --]
Le 18.10.2005 08:58, Greg KH a écrit :
> I know this patch doesn't have the proc path, but it does fix an easy
> oops that I can generate from sysfs input devices. Can you try it out
> to see if it fixes your issue too?
>
> thanks,
>
> greg k-h
No sorry, it doesn't fix my oops.
By the way, your patch didn't apply to my rc4-mm1 tree.
The one I had to apply is attached.
I might add some debugging code into my tree to help debugging.
But, you'll have to tell what code and where :)
Brice
[-- Attachment #2: fix-hotplug2.patch --]
[-- Type: text/x-patch, Size: 1542 bytes --]
--- linux-mm/drivers/input/input.c.old 2005-10-18 09:18:13.000000000 +0200
+++ linux-mm/drivers/input/input.c 2005-10-18 09:18:17.000000000 +0200
@@ -641,17 +641,22 @@ static ssize_t input_dev_show_##name(str
up(&input_dev->sem); \
\
return retval; \
-}
+} \
+static CLASS_DEVICE_ATTR(name, S_IRUGO, input_dev_show_##name, NULL);
INPUT_DEV_STRING_ATTR_SHOW(name);
INPUT_DEV_STRING_ATTR_SHOW(phys);
INPUT_DEV_STRING_ATTR_SHOW(uniq);
-static struct class_device_attribute input_dev_attrs[] = {
- __ATTR(name, S_IRUGO, input_dev_show_name, NULL),
- __ATTR(phys, S_IRUGO, input_dev_show_phys, NULL),
- __ATTR(uniq, S_IRUGO, input_dev_show_uniq, NULL),
- __ATTR_NULL
+static struct attribute *input_dev_attrs[] = {
+ &class_device_attr_name.attr,
+ &class_device_attr_phys.attr,
+ &class_device_attr_uniq.attr,
+ NULL
+};
+
+static struct attribute_group input_dev_group = {
+ .attrs = input_dev_attrs,
};
#define INPUT_DEV_ID_ATTR(name) \
@@ -727,7 +732,6 @@ static void input_dev_release(struct cla
static struct class input_dev_class = {
.name = "input_dev",
.release = input_dev_release,
- .class_dev_attrs = input_dev_attrs,
};
struct input_dev *input_allocate_device(void)
@@ -765,6 +769,7 @@ static void input_register_classdevice(s
kfree(path);
class_device_add(&dev->cdev);
+ sysfs_create_group(&dev->cdev.kobj, &input_dev_group);
sysfs_create_group(&dev->cdev.kobj, &input_dev_id_attr_group);
sysfs_create_group(&dev->cdev.kobj, &input_dev_caps_attr_group);
}
next prev parent reply other threads:[~2005-10-18 7:30 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-16 22:41 2.6.14-rc4-mm1 Andrew Morton
2005-10-17 0:05 ` [PATCH] add missing header in include/asm/atomic.h Dominik Karall
2005-10-17 0:13 ` 2.6.14-rc4-mm1 Michal Piotrowski
2005-10-17 3:19 ` 2.6.14-rc4-mm1 Andrew Morton
2005-10-17 6:03 ` 2.6.14-rc4-mm1 Michal Piotrowski
2005-10-17 6:42 ` 2.6.14-rc4-mm1 Michal Piotrowski
2005-10-17 7:47 ` 2.6.14-rc4-mm1 Russell King
2005-10-17 0:46 ` 2.6.14-rc4-mm1 Con Kolivas
2005-10-17 7:10 ` 2.6.14-rc4-mm1 MAEDA Naoaki
2005-10-17 9:56 ` ntfs CFT - was: 2.6.14-rc4-mm1 Anton Altaparmakov
[not found] ` <4489a22a0510172209v322e9d9eqe90c489c66b5c83b@mail.gmail.com>
[not found] ` <Pine.LNX.4.64.0510180859580.7514@hermes-1.csi.cam.ac.uk>
[not found] ` <4489a22a0510181026v577f9b0ev535cf0acc74661f@mail.gmail.com>
[not found] ` <4489a22a0510181048n60ec5952i33d52c1b3527f906@mail.gmail.com>
2005-10-19 11:10 ` Warning: Serious NTFS data corruption bug! + Fix! - Was: " Anton Altaparmakov
2005-10-17 10:29 ` 2.6.14-rc4-mm1 - drivers/serial/jsm/jsm_tty.c: no member named 'flip' Damir Perisa
2005-10-17 14:56 ` V. Ananda Krishnan
2005-10-17 15:21 ` Damir Perisa
2005-10-18 14:02 ` 2.6.14-rc4-mm1 - drivers/serial/ V. Ananda Krishnan
2005-10-18 20:12 ` Greg KH
2005-10-17 18:05 ` 2.6.14-rc4-mm1 - drivers/serial/jsm/jsm_tty.c: no member named 'flip' Alan Cox
2005-10-22 2:08 ` Paul Jackson
2005-10-22 6:39 ` Andrew Morton
2005-10-22 9:54 ` Alan Cox
2005-10-24 7:52 ` Andrew Morton
2005-10-17 12:21 ` 2.6.14-rc4-mm1 Brice Goglin
2005-10-17 20:22 ` 2.6.14-rc4-mm1 Andrew Morton
2005-10-17 21:27 ` 2.6.14-rc4-mm1 Vojtech Pavlik
2005-10-17 21:39 ` 2.6.14-rc4-mm1 Dmitry Torokhov
2005-10-17 21:48 ` 2.6.14-rc4-mm1 Greg KH
2005-10-17 21:58 ` 2.6.14-rc4-mm1 Dmitry Torokhov
2005-10-18 6:42 ` 2.6.14-rc4-mm1 Greg KH
2005-10-18 6:39 ` 2.6.14-rc4-mm1 Vojtech Pavlik
2005-10-18 6:44 ` 2.6.14-rc4-mm1 Dmitry Torokhov
2005-10-18 6:58 ` 2.6.14-rc4-mm1 Greg KH
2005-10-18 7:09 ` 2.6.14-rc4-mm1 Dmitry Torokhov
2005-10-18 7:17 ` 2.6.14-rc4-mm1 Greg KH
2005-10-18 7:22 ` 2.6.14-rc4-mm1 Dmitry Torokhov
2005-10-18 7:38 ` 2.6.14-rc4-mm1 Greg KH
2005-10-18 7:30 ` Brice Goglin [this message]
2005-10-18 7:40 ` 2.6.14-rc4-mm1 Greg KH
2005-10-18 8:26 ` 2.6.14-rc4-mm1 Brice Goglin
2005-10-19 3:44 ` 2.6.14-rc4-mm1 Greg KH
2005-10-19 3:58 ` 2.6.14-rc4-mm1 Dmitry Torokhov
2005-10-17 20:44 ` 2.6.14-rc4-mm1 Greg KH
2005-10-17 22:06 ` 2.6.14-rc4-mm1 Brice Goglin
2005-10-17 21:06 ` 2.6.14-rc4-mm1 dead in early boot Helge Hafting
2005-10-17 21:09 ` Andrew Morton
2005-10-17 21:27 ` Helge Hafting
2005-10-17 21:53 ` Helge Hafting
2005-10-18 0:38 ` Andrew Morton
2005-10-18 14:30 ` Michael Neuffer
2005-10-17 22:24 ` Helge Hafting
2005-10-18 7:45 ` [PATCH] disable PREEMPT_BKL per default Olaf Hering
2005-10-18 7:53 ` Arjan van de Ven
2005-10-18 8:47 ` Olaf Hering
2005-10-18 8:58 ` Arjan van de Ven
2005-10-18 11:12 ` Olaf Hering
2005-10-18 11:52 ` Ingo Molnar
2005-10-19 14:04 ` 2.6.14-rc4-mm1 Alexandre Buisse
2005-10-19 15:52 ` 2.6.14-rc4-mm1 Jiri Slaby
2005-10-19 15:04 ` 2.6.14-rc4-mm1 Alexandre Buisse
2005-10-19 18:49 ` Wifi oddness [Was: Re: 2.6.14-rc4-mm1] Jiri Slaby
2005-10-20 16:48 ` Alexandre Buisse
2005-10-20 21:02 ` Jiri Slaby
2005-10-20 21:26 ` Mark Lord
2005-10-20 23:08 ` Jiri Slaby
2005-10-20 23:39 ` Jeff Garzik
2005-10-20 23:45 ` Andrew Morton
2005-10-21 0:21 ` Jeff Garzik
[not found] <fa.h4unqgj.l34e31@ifi.uio.no>
2005-10-17 6:19 ` 2.6.14-rc4-mm1 Reuben Farrelly
[not found] <20051006082231.GA21800@elte.hu>
[not found] ` <20051010172631.59d98198.akpm@osdl.org>
2005-10-17 7:07 ` 2.6.14-rc4-mm1 WU Fengguang
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=4354A49B.6060809@ens-lyon.org \
--to=brice.goglin@ens-lyon.org \
--cc=akpm@osdl.org \
--cc=dtor_core@ameritech.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/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