diff options
| author | Yasuaki Ishimatsu <[email protected]> | 2012-12-11 16:00:44 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-12-11 17:22:22 -0800 |
| commit | fa7194eb99b8e9fefe96f045002648ffb55f53c0 (patch) | |
| tree | d75fdad6d29a53767aad6446c7fc2b3a44a9dd83 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | b3092b3b734f146d96ca023a75cacf78078f96d5 (diff) | |
memory hotplug: suppress "Device memoryX does not have a release() function" warning
When calling remove_memory_block(), the function shows following message
at device_release().
"Device 'memory528' does not have a release() function, it is broken and
must be fixed."
The reason is memory_block's device struct does not have a release()
function.
So the patch registers memory_block_release() to the device's release()
function for suppressing the warning message. Additionally, the patch
moves kfree(mem) into the release function since the release function is
prepared as a means to free a memory_block struct.
Signed-off-by: Yasuaki Ishimatsu <[email protected]>
Acked-by: David Rientjes <[email protected]>
Cc: Jiang Liu <[email protected]>
Cc: Minchan Kim <[email protected]>
Acked-by: KOSAKI Motohiro <[email protected]>
Cc: Wen Congyang <[email protected]>
Cc: Greg KH <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions