[PATCH 00/30] Lock warning cleanup

From: Jules Irenge
Date: Fri Feb 14 2020 - 15:48:22 EST


This patch series adds missing annotations to various functions that register warnings of context imbalance when built with Sparse tool. The adds fix the warnings and give better insight or directive on what the function are actually doing.

Jules Irenge (30):
x86/apic/vector: Add missing annotation to lock_vector_lock(void)
x86/apic/vector: Add missing annotation to lock_vector_lock(void)
mm/memcontrol: Add missing annotation for unlock_page_lru()
mm/memcontrol: Add missing annotation for lock_page_lru()
mm/compaction: Add missing annotation for compact_lock_irqsave
mm/hugetlb: Add missing annotation for gather_surplus_pages()
mm/mempolicy: Add missing annotation for queue_pages_pmd()
mm/slub: Add missing annotation for get_map()
mm/slub: Add missing annotation for put_map()
mm/zsmalloc: Add missing annotation for migrate_read_lock()
mm/zsmalloc: Add missing annotation for migrate_read_unlock()
mm/zsmalloc: Add missing annotation for pin_tag()
mm/zsmalloc: Add missing annotation for unpin_tag()
x86/xen: Add missing annotation for xen_pte_lock()
x86/xen: Add missing annotation for xen_pte_unlock()
drm/vkms: Add missing annotation for vkms_crtc_atomic_begin()
drm/vkms: Add missing annotation for vkms_crtc_atomic_flush()
driver core: Add missing annotation for device_links_write_lock()
driver core: Add missing annotation for device_links_read_lock()
pcnet32: Add missing annotation for pcnet32_suspend()
sfc: Add missing annotation for efx_ef10_try_update_nic_stats_vf()
xhci: Add missing annotation for xhci_set_port_power()
xhci: Add missing annotation for xhci_enter_test_mode
tipc: Add missing annotation for tipc_node_read_lock()
tipc: Add missing annotation for tipc_node_read_unlock()
tipc: Add missing annotation for tipc_node_write_lock()
tipc: Add missing annotation for tipc_node_write_unlock_fast()
tipc: Add missing annotation for tipc_node_write_unlock()
net: Add missing annotation for netlink_walk_start()
net: Add missing annotation for netlink_walk_stop()

arch/x86/kernel/apic/vector.c | 4 ++--
arch/x86/xen/mmu_pv.c | 3 ++-
drivers/base/core.c | 4 ++--
drivers/gpu/drm/vkms/vkms_crtc.c | 2 ++
drivers/net/ethernet/amd/pcnet32.c | 2 +-
drivers/net/ethernet/sfc/ef10.c | 1 +
drivers/usb/host/xhci-hub.c | 2 ++
mm/compaction.c | 1 +
mm/hugetlb.c | 1 +
mm/memcontrol.c | 2 ++
mm/mempolicy.c | 1 +
mm/slub.c | 3 ++-
mm/zsmalloc.c | 8 ++++----
net/netlink/af_netlink.c | 4 ++--
net/tipc/node.c | 9 +++++----
15 files changed, 30 insertions(+), 17 deletions(-)

--
2.24.1