lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 9 Mar 2017 14:06:16 +0100 From: Heiko Carstens <heiko.carstens@...ibm.com> To: Andrew Morton <akpm@...ux-foundation.org> Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org, linux-s390@...r.kernel.org, Dan Williams <dan.j.williams@...el.com>, Michal Hocko <mhocko@...e.com>, "Rafael J . Wysocki" <rjw@...ysocki.net>, Vladimir Davydov <vdavydov.dev@...il.com>, Ben Hutchings <ben@...adent.org.uk>, Gerald Schaefer <gerald.schaefer@...ibm.com>, Martin Schwidefsky <schwidefsky@...ibm.com>, Sebastian Ott <sebott@...ux.vnet.ibm.com>, Heiko Carstens <heiko.carstens@...ibm.com> Subject: [PATCH 2/2] drivers core: remove assert_held_device_hotplug() The last caller of assert_held_device_hotplug() is gone, so remove it again. Cc: Dan Williams <dan.j.williams@...el.com> Cc: Michal Hocko <mhocko@...e.com> Cc: "Rafael J. Wysocki" <rjw@...ysocki.net> Cc: Vladimir Davydov <vdavydov.dev@...il.com> Cc: Ben Hutchings <ben@...adent.org.uk> Cc: Gerald Schaefer <gerald.schaefer@...ibm.com> Cc: Martin Schwidefsky <schwidefsky@...ibm.com> Cc: Sebastian Ott <sebott@...ux.vnet.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@...ibm.com> --- drivers/base/core.c | 5 ----- include/linux/device.h | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 684bda4d14a1..6bb60fb6a30b 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -639,11 +639,6 @@ int lock_device_hotplug_sysfs(void) return restart_syscall(); } -void assert_held_device_hotplug(void) -{ - lockdep_assert_held(&device_hotplug_lock); -} - #ifdef CONFIG_BLOCK static inline int device_is_not_partition(struct device *dev) { diff --git a/include/linux/device.h b/include/linux/device.h index 30c4570e928d..9ef518af5515 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -1140,7 +1140,6 @@ 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); -void assert_held_device_hotplug(void); extern int device_offline(struct device *dev); extern int device_online(struct device *dev); extern void set_primary_fwnode(struct device *dev, struct fwnode_handle *fwnode); -- 2.8.4
Powered by blists - more mailing lists