mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 17:24:17 +08:00
a30dcb4f68
Annotate dynamic sysfs attribute in atk_create_files(). This gets rid of the following lockdep warning: BUG: key ffff8800379ca670 not in .data! ------------[ cut here ]------------ WARNING: at kernel/lockdep.c:2696 lockdep_init_map+0xd2/0x108() Hardware name: P5K PRO Modules linked in: asus_atk0110(+) pata_acpi firewire_ohci ata_generic dm_multipath firewire_core crc_itu_t pata_marvell floppy Pid: 599, comm: modprobe Not tainted 2.6.34-rc4 #27 Call Trace: [<ffffffff8104cdb0>] warn_slowpath_common+0x7c/0x94 [<ffffffff8104cddc>] warn_slowpath_null+0x14/0x16 [<ffffffff81077c4d>] lockdep_init_map+0xd2/0x108 [<ffffffff81165873>] sysfs_add_file_mode+0x66/0xa2 [<ffffffff811658c0>] sysfs_add_file+0x11/0x13 [<ffffffff8116594b>] sysfs_create_file+0x2a/0x2c [<ffffffff812c1f9c>] device_create_file+0x19/0x1b [<ffffffffa005b4fd>] atk_add+0x58b/0x72e [asus_atk0110] [<ffffffff812572a1>] acpi_device_probe+0x50/0x122 [<ffffffff812c46af>] driver_probe_device+0xa2/0x127 [<ffffffff812c4783>] __driver_attach+0x4f/0x6b [<ffffffff812c4734>] ? __driver_attach+0x0/0x6b [<ffffffff812c3c94>] bus_for_each_dev+0x59/0x8e [<ffffffff812c4519>] driver_attach+0x1e/0x20 [<ffffffff812c4152>] bus_add_driver+0xb9/0x207 [<ffffffff812c4a5f>] driver_register+0x9d/0x10e [<ffffffffa005f000>] ? atk0110_init+0x0/0x31 [asus_atk0110] [<ffffffff81257c7c>] acpi_bus_register_driver+0x43/0x45 [<ffffffffa005f015>] atk0110_init+0x15/0x31 [asus_atk0110] [<ffffffffa005f000>] ? atk0110_init+0x0/0x31 [asus_atk0110] [<ffffffff81002069>] do_one_initcall+0x5e/0x15e [<ffffffff81085075>] sys_init_module+0xd8/0x239 [<ffffffff81009cf2>] system_call_fastpath+0x16/0x1b ---[ end trace 4d0c84007055efb9 ]--- BUG: key ffff8800379ca638 not in .data! BUG: key ffff8800379ca6a8 not in .data! BUG: key ffff8800379ca6e0 not in .data! BUG: key ffff880036f73670 not in .data! BUG: key ffff880036f73638 not in .data! BUG: key ffff880036f736a8 not in .data! BUG: key ffff880036f736e0 not in .data! BUG: key ffff880036f76c70 not in .data! BUG: key ffff880036f76c38 not in .data! BUG: key ffff880036f76ca8 not in .data! BUG: key ffff880036f76ce0 not in .data! BUG: key ffff8800368e7670 not in .data! BUG: key ffff8800368e7638 not in .data! BUG: key ffff8800368e76a8 not in .data! BUG: key ffff8800368e76e0 not in .data! BUG: key ffff880036ef7670 not in .data! BUG: key ffff880036ef7638 not in .data! BUG: key ffff880036ef76a8 not in .data! BUG: key ffff880036ef76e0 not in .data! BUG: key ffff8800373ccc70 not in .data! BUG: key ffff8800373ccc38 not in .data! BUG: key ffff8800373ccca8 not in .data! BUG: key ffff8800373ccce0 not in .data! BUG: key ffff880037a60870 not in .data! BUG: key ffff880037a60838 not in .data! BUG: key ffff880037a608a8 not in .data! BUG: key ffff880037a608e0 not in .data! BUG: key ffff880037355070 not in .data! BUG: key ffff880037355038 not in .data! BUG: key ffff8800373550a8 not in .data! BUG: key ffff8800373550e0 not in .data! BUG: key ffff8800378c2670 not in .data! BUG: key ffff8800378c2638 not in .data! BUG: key ffff8800378c26a8 not in .data! BUG: key ffff8800378c26e0 not in .data! BUG: key ffff880036ef7e70 not in .data! BUG: key ffff880036ef7e38 not in .data! BUG: key ffff880036ef7ea8 not in .data! BUG: key ffff880036ef7ee0 not in .data! Cc: Eric W. Biederman <ebiederm@xmission.com> Reported-by: Dhaval Giani <dhaval.giani@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Tested-by: Dhaval Giani <dhaval.giani@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
||
---|---|---|
.. | ||
ams | ||
abituguru3.c | ||
abituguru.c | ||
ad7414.c | ||
ad7418.c | ||
adcxx.c | ||
adm1021.c | ||
adm1025.c | ||
adm1026.c | ||
adm1029.c | ||
adm1031.c | ||
adm9240.c | ||
ads7828.c | ||
adt7411.c | ||
adt7462.c | ||
adt7470.c | ||
adt7475.c | ||
amc6821.c | ||
applesmc.c | ||
asb100.c | ||
asc7621.c | ||
asus_atk0110.c | ||
atxp1.c | ||
coretemp.c | ||
dme1737.c | ||
ds1621.c | ||
f71805f.c | ||
f71882fg.c | ||
f75375s.c | ||
fschmd.c | ||
g760a.c | ||
gl518sm.c | ||
gl520sm.c | ||
hdaps.c | ||
hp_accel.c | ||
hwmon-vid.c | ||
hwmon.c | ||
i5k_amb.c | ||
ibmaem.c | ||
ibmpex.c | ||
it87.c | ||
k8temp.c | ||
k10temp.c | ||
Kconfig | ||
lis3lv02d_i2c.c | ||
lis3lv02d_spi.c | ||
lis3lv02d.c | ||
lis3lv02d.h | ||
lm63.c | ||
lm70.c | ||
lm73.c | ||
lm75.c | ||
lm75.h | ||
lm77.c | ||
lm78.c | ||
lm80.c | ||
lm83.c | ||
lm85.c | ||
lm87.c | ||
lm90.c | ||
lm92.c | ||
lm93.c | ||
lm95241.c | ||
ltc4215.c | ||
ltc4245.c | ||
Makefile | ||
max1111.c | ||
max1619.c | ||
max6650.c | ||
mc13783-adc.c | ||
pc87360.c | ||
pc87427.c | ||
pcf8591.c | ||
s3c-hwmon.c | ||
sht15.c | ||
sis5595.c | ||
smsc47b397.c | ||
smsc47m1.c | ||
smsc47m192.c | ||
thmc50.c | ||
tmp401.c | ||
tmp421.c | ||
ultra45_env.c | ||
via686a.c | ||
via-cputemp.c | ||
vt1211.c | ||
vt8231.c | ||
w83l785ts.c | ||
w83l786ng.c | ||
w83627ehf.c | ||
w83627hf.c | ||
w83781d.c | ||
w83791d.c | ||
w83792d.c | ||
w83793.c | ||
wm831x-hwmon.c | ||
wm8350-hwmon.c |