Pārlūkot izejas kodu

memory: Introduce exports for memory notifiers

This patch introduces two exports to allow modules to use memory notifiers.

Signed-off-by: Hannes Hering <hering2@de.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Hannes Hering 17 gadi atpakaļ
vecāks
revīzija
3c82c30cd5
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      drivers/base/memory.c

+ 2 - 0
drivers/base/memory.c

@@ -53,11 +53,13 @@ int register_memory_notifier(struct notifier_block *nb)
 {
 {
         return blocking_notifier_chain_register(&memory_chain, nb);
         return blocking_notifier_chain_register(&memory_chain, nb);
 }
 }
+EXPORT_SYMBOL(register_memory_notifier);
 
 
 void unregister_memory_notifier(struct notifier_block *nb)
 void unregister_memory_notifier(struct notifier_block *nb)
 {
 {
         blocking_notifier_chain_unregister(&memory_chain, nb);
         blocking_notifier_chain_unregister(&memory_chain, nb);
 }
 }
+EXPORT_SYMBOL(unregister_memory_notifier);
 
 
 /*
 /*
  * register_memory - Setup a sysfs device for a memory block
  * register_memory - Setup a sysfs device for a memory block