mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 10:07:52 +00:00
memory_notify() is responsible for sending events related to memory hotplugging to a notification queue. Since all the events must match one of the values from the enum memory_block_state, it is appropriate to change the function parameter type to make this condition explicit at compile time. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Israel Batista <[email protected]> Acked-by: Mike Rapoport (Microsoft) <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Cc: Omar Sandoval <[email protected]> Cc: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]>