[ltp] Re: [ANN] tp_smapi - a new Linux SMAPI driver

Guenther Starnberger linux-thinkpad@linux-thinkpad.org
Mon, 05 Dec 2005 21:24:45 +0100


On Mon, 2005-12-05 at 21:08 +0100, Guenther Starnberger wrote:

> I will upgrade my kernel (also for other reasons) in the next days and
> check it with a newer version on my X41.

the problem is that the function signature changed between the kernel
versions. the "struct device_attribute *attr" attribute isn't there in
older versions.

now it compiles cleanly but i still get a segfault when cat'ing a file:
[4297941.978000] Call Trace:
[4297941.978000]  [<c0174ae1>] sysfs_read_file+0x20/0x4c
[4297941.978000]  [<c0144df9>] vfs_read+0xa3/0x139
[4297941.978000]  [<c01450d7>] sys_read+0x3b/0x63
[4297941.978000]  [<c0102e9f>] sysenter_past_esp+0x54/0x75

/gst