Li Zhong
e47ff70a56
powerpc: Use of_node_init() for the fakenode in msi_bitmap.c
This patch uses of_node_init() to initialize the kobject in the fake
node used in test_of_node(), to avoid following kobject warning.
[ 0.897654] kobject: '(null)' (c0000007ca183a08): is not initialized, yet kobject_put() is being called.
[ 0.897682] ------------[ cut here ]------------
[ 0.897688] WARNING: at lib/kobject.c:670
[ 0.897692] Modules linked in:
[ 0.897701] CPU: 4 PID: 1 Comm: swapper/0 Not tainted 3.14.0+ #1
[ 0.897708] task: c0000007ca100000 ti: c0000007ca180000 task.ti: c0000007ca180000
[ 0.897715] NIP: c00000000046a1f0 LR: c00000000046a1ec CTR: 0000000001704660
[ 0.897721] REGS: c0000007ca1835c0 TRAP: 0700 Not tainted (3.14.0+)
[ 0.897727] MSR: 8000000000029032 <SF,EE,ME,IR,DR,RI> CR: 28000024 XER: 0000000d
[ 0.897749] CFAR: c0000000008ef4ec SOFTE: 1
GPR00: c00000000046a1ec c0000007ca183840 c0000000014c59b8 000000000000005c
GPR04: 0000000000000001 c000000000129770 0000000000000000 0000000000000001
GPR08: 0000000000000000 0000000000000000 0000000000000000 0000000000003fef
GPR12: 0000000000000000 c00000000f221200 c00000000000c350 0000000000000000
GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR24: 0000000000000000 c00000000144e808 c000000000c56f20 00000000000000d8
GPR28: c000000000cd5058 0000000000000000 c000000001454ca8 c0000007ca183a08
[ 0.897856] NIP [c00000000046a1f0] .kobject_put+0xa0/0xb0
[ 0.897863] LR [c00000000046a1ec] .kobject_put+0x9c/0xb0
[ 0.897868] Call Trace:
[ 0.897874] [c0000007ca183840] [c00000000046a1ec] .kobject_put+0x9c/0xb0 (unreliable)
[ 0.897885] [c0000007ca1838c0] [c000000000743f9c] .of_node_put+0x2c/0x50
[ 0.897894] [c0000007ca183940] [c000000000c83954] .test_of_node+0x1dc/0x208
[ 0.897902] [c0000007ca183b80] [c000000000c839a4] .msi_bitmap_selftest+0x24/0x38
[ 0.897913] [c0000007ca183bf0] [c00000000000bb34] .do_one_initcall+0x144/0x200
[ 0.897922] [c0000007ca183ce0] [c000000000c748e4] .kernel_init_freeable+0x2b4/0x394
[ 0.897931] [c0000007ca183db0] [c00000000000c374] .kernel_init+0x24/0x130
[ 0.897940] [c0000007ca183e30] [c00000000000a2f4] .ret_from_kernel_thread+0x5c/0x68
[ 0.897947] Instruction dump:
[ 0.897952] 7fe3fb78 38210080 e8010010 ebe1fff8 7c0803a6 4800014c e89f0000 3c62ff6e
[ 0.897971] 7fe5fb78 3863a950 48485279 60000000 <0fe00000> 39000000 393f0038 4bffff80
[ 0.897992] ---[ end trace 1eeffdb9f825a556 ]---
Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-04-09 12:53:07 +10:00
..
2014-01-15 13:46:44 +11:00
2014-01-15 13:46:44 +11:00
2014-01-15 13:46:44 +11:00
2012-07-11 14:18:22 +10:00
2013-11-23 22:33:49 -08:00
2013-06-20 16:55:08 +10:00
2014-01-15 13:46:44 +11:00
2010-03-04 10:43:58 -06:00
2010-04-19 23:13:03 -05:00
2013-10-09 20:04:11 -05:00
2014-01-29 16:58:49 +11:00
2006-11-01 14:52:48 +11:00
2008-12-21 14:21:15 +11:00
2011-10-31 19:30:37 -04:00
2014-03-04 17:37:51 +01:00
2012-07-26 13:24:32 -05:00
2012-03-16 14:50:25 -05:00
2013-02-19 11:01:54 -06:00
2013-11-07 10:34:46 -06:00
2014-01-10 17:19:27 -06:00
2012-09-12 14:57:10 -05:00
2013-07-01 18:38:42 -05:00
2013-08-07 18:38:05 -05:00
2013-08-07 18:38:05 -05:00
2014-03-19 22:37:44 -05:00
2014-03-19 22:37:44 -05:00
2013-10-09 20:04:11 -05:00
2013-10-09 20:04:11 -05:00
2011-11-24 02:01:34 -06:00
2013-10-09 20:04:11 -05:00
2013-02-12 11:05:20 -06:00
2013-10-30 22:56:10 +01:00
2011-07-12 09:28:04 -05:00
2014-01-15 13:46:44 +11:00
2014-01-07 19:23:31 -06:00
2012-02-16 06:11:24 -07:00
2012-02-14 14:06:50 -07:00
2013-12-02 14:16:39 +11:00
2014-02-18 12:20:45 -08:00
2010-07-11 11:04:06 -05:00
2011-06-10 14:55:36 +02:00
2013-02-05 07:40:43 +00:00
2014-01-15 13:46:44 +11:00
2007-07-10 00:33:51 -05:00
2013-10-24 11:50:35 +01:00
2013-10-24 11:42:51 +01:00
2011-03-29 14:48:12 +02:00
2014-01-09 17:52:14 -06:00
2011-03-29 14:48:12 +02:00
2014-02-11 11:24:45 +11:00
2012-09-12 14:57:10 -05:00
2014-04-09 12:53:07 +10:00
2014-01-16 16:31:31 +00:00
2013-01-03 15:57:04 -08:00
2012-02-16 06:11:22 -07:00
2014-01-16 16:31:31 +00:00
2007-09-22 14:49:21 +10:00
2013-10-09 20:04:11 -05:00
2012-11-15 13:00:05 +11:00
2011-12-21 14:29:42 -08:00
2010-07-05 16:14:30 -06:00
2013-01-03 15:57:04 -08:00
2013-12-10 11:25:04 +11:00
2013-05-06 13:40:40 +10:00
2011-12-09 07:51:02 -05:00
2013-10-09 20:04:11 -05:00
2013-07-15 11:25:01 +09:30
2013-11-06 14:13:50 +11:00
2011-10-31 19:30:44 -04:00
2008-12-30 11:13:45 -06:00
2012-03-28 18:30:02 +01:00
2012-02-16 06:11:23 -07:00
2014-01-15 13:46:44 +11:00
2012-02-16 06:11:24 -07:00
2013-11-11 09:10:50 -06:00
2009-06-06 10:14:22 -06:00