summaryrefslogtreecommitdiffstats
path: root/mm/sparse.c
diff options
context:
space:
mode:
authorYasuaki Ishimatsu2012-12-12 01:00:57 +0100
committerLinus Torvalds2012-12-12 02:22:23 +0100
commit8c7b5b4ed948d1ddf9672ee932a16750b280822a (patch)
tree2a2a95bda012882549753e1ce1d0de845f5db314 /mm/sparse.c
parentnuma: convert static memory to dynamically allocated memory for per node device (diff)
downloadkernel-qcow2-linux-8c7b5b4ed948d1ddf9672ee932a16750b280822a.tar.gz
kernel-qcow2-linux-8c7b5b4ed948d1ddf9672ee932a16750b280822a.tar.xz
kernel-qcow2-linux-8c7b5b4ed948d1ddf9672ee932a16750b280822a.zip
memory-hotplug: suppress "Device nodeX does not have a release() function" warning
When calling unregister_node(), the function shows following message at device_release(). "Device 'node2' does not have a release() function, it is broken and must be fixed." The reason is node's device struct does not have a release() function. So the patch registers node_device_release() to the device's release() function for suppressing the warning message. Additionally, the patch adds memset() to initialize a node struct into register_node(). Because the node struct is part of node_devices[] array and it cannot be freed by node_device_release(). So if system reuses the node struct, it has a garbage. Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> Cc: David Rientjes <rientjes@google.com> Cc: Jiang Liu <liuj97@gmail.com> Cc: Minchan Kim <minchan.kim@gmail.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions