Re: [PATCH v3] mm/memory_hotplug: Fix remove_memory() lockdep splat

From: Dan Williams
Date: Fri Jan 10 2020 - 16:30:00 EST


On Fri, Jan 10, 2020 at 1:16 PM Dan Williams <dan.j.williams@xxxxxxxxx> wrote:
[..]
> Changes since v2 [1]:
> - Apologies I overlooked that I had local changes in my tree to fix a
> compiler error (misspelled assert_held_device_hotplug()). Now fixed
> up.
>
[..]
> diff --git a/include/linux/device.h b/include/linux/device.h
> index 96ff76731e93..e042da3b1953 100644
> --- a/include/linux/device.h
> +++ b/include/linux/device.h
> @@ -1553,6 +1553,7 @@ static inline bool device_supports_offline(struct device *dev)
> extern void lock_device_hotplug(void);
> extern void unlock_device_hotplug(void);
> extern int lock_device_hotplug_sysfs(void);
> +extern void assert_held_device_hotlpug(void);

Argh, did it again. I definitely need to fix stg mail to not send
patches while there are local changes pending in the tree.