Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2168368ybv; Fri, 14 Feb 2020 12:52:31 -0800 (PST) X-Google-Smtp-Source: APXvYqxVuI20MU3+DqZitIOpl3GpINTzaH36wrvnWpK04TSbDQCdGs0NSv9cInZaxr0ywRMsIDjP X-Received: by 2002:aca:f242:: with SMTP id q63mr3217833oih.72.1581713551201; Fri, 14 Feb 2020 12:52:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581713551; cv=none; d=google.com; s=arc-20160816; b=MB1hZwI9vfO2ylUzy5dJNUjvVzOcOlg1FeqiXO51Z2Ax2a5EDfe1/pJb9+gMyhVVq/ NU9WoxogaY/Wewo/K+uypP/i5uR/WCAx2qXAqX1FHsdZNCnxriig24xbD1GaMEv8pkRn XeJ0asHbmY/S9j3XEwFGr9tcmIIxuZD6HpHPNKEdbvxYeVPYLYnX03tnk2VuAvf7ZoEa 73QZYHRJcW8v5uise5051SmEoSfM3G1gyES9cwpN4hFCb24kanTwwWWLoanUylcAWioQ NBKYLSuOv0V5KH3dm3xQUTxtGfSoLvIMR9lvgMr/ZMHCQ4OzeGZ2jQb0gEgCR+2HXDfM Gt1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fYMUoir6P369DFUPvjd9IwSNVlH2uDcEsa0cDBpYLmc=; b=h9QdbJckskZCEBMdfIm0jfLtlrjhB0KtryOqN4vhtv0h1oWTyEPDZo0djaDNxFhlo1 rFvHLbXwGpl/9oPKbcCzDwhmR4IEvptiz5H6dayJOoI3zB5JNaBTkw0wDDwQgDN21/nR iJsJHuN9o3iZyYQ0O+BVK9+ywshQVsnxNRmXnRD+g18sFkX/tSb8ugwykB19niZBbg0w xywz8k3FYt1TIlCm+x+Keu3Zu3gUUUW95fdzyui8q6USzt6YK2pabYd7ED6R8qXyiE4D 3jM1oxVOgBQL4D7eLPbZx/YnVcFiwr6HLRbEOqxEPrLldz8h8Re+UH0LLwr/v/CYteN0 1BAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IH965hYm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3si3548011otn.140.2020.02.14.12.52.19; Fri, 14 Feb 2020 12:52:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IH965hYm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388297AbgBNUsu (ORCPT + 99 others); Fri, 14 Feb 2020 15:48:50 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42406 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388171AbgBNUsq (ORCPT ); Fri, 14 Feb 2020 15:48:46 -0500 Received: by mail-wr1-f67.google.com with SMTP id k11so12451777wrd.9 for ; Fri, 14 Feb 2020 12:48:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fYMUoir6P369DFUPvjd9IwSNVlH2uDcEsa0cDBpYLmc=; b=IH965hYmyOF45cvMjEbRiDZZHOfl7fOe2Zt2qY2QXjTrD5vr4E5o4ASz8NwEfLdoyf 8QJ2ggGHOVmUtDfg+vWAdH5Q2dGsRU1nSYUITlgpiO7Rh2xI/Qa6qPAriZdxx4Ed8lhP M62ffg9W1oDsfpS6MIGSI576dgmdWMpUEGvDIWrmdHObOhZiFkh0PNnuBdtD5l17XqZu Ut+cb9B8iSuqnnhoEYEkasVH9Vh4zT/JL3p9zadH9BwHaUTKi6F+SlpuvmmweEK8szLn ipvYMQPdKaczrekBAqMiz+3LYbwNKeIeRsrSTjbQvwT0dltW8NTNL6ZkifJDrLLE1gro J9WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fYMUoir6P369DFUPvjd9IwSNVlH2uDcEsa0cDBpYLmc=; b=BUPh0qTKMlKsurvuUEaj/cezJZyoaWkNqfGLQKu4FfkSCMA3gcwoKicXfEexDLvr3h Dtwwx6l+YhuIkYQ1IsVpXyoHHJL1qM4hEyO6U7zwRYWeJC3mJsGTmKvTfoZk5l3oxigx ippwduvSPO/2YJ1op3PaMZwABX9x0E4DcoUx+WVplehXYjRGO/t34iV91nr0gruh0HQ5 jumuI0YEanMp8juYtEc4b9KxbxQIYPAgR2hCce9ZPdscWCA2IzX+/91q+pxHLMg5vZQg TxABaXE2YuptdOMf7DzgvD393PvBsOaVHwvcPzZWZxHg/io3dyMhnoxiPOh8WKyHLISW QKGQ== X-Gm-Message-State: APjAAAUWPURKJ8E5Pt25WshF0urubGKvqYkmW+tCp+ooUcQi/vTibEZU +yDwHbngc937IOzxol9SVkKBo4f8HdRA X-Received: by 2002:a5d:4085:: with SMTP id o5mr5687888wrp.321.1581713324201; Fri, 14 Feb 2020 12:48:44 -0800 (PST) Received: from ninjahost.lan (host-2-102-13-223.as13285.net. [2.102.13.223]) by smtp.googlemail.com with ESMTPSA id y12sm8660782wmj.6.2020.02.14.12.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Feb 2020 12:48:43 -0800 (PST) From: Jules Irenge To: linux-kernel@vger.kernel.org Cc: boqun.feng@gmail.com, Jules Irenge , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org (open list:SLAB ALLOCATOR) Subject: [PATCH 09/30] mm/slub: Add missing annotation for put_map() Date: Fri, 14 Feb 2020 20:47:20 +0000 Message-Id: <20200214204741.94112-10-jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200214204741.94112-1-jbi.octave@gmail.com> References: <0/30> <20200214204741.94112-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse reports a warning at put_map()() warning: context imbalance in put_map() - unexpected unlock The root cause is the missing annotation at put_map() Add the missing __releases(&object_map_lock) annotation Signed-off-by: Jules Irenge --- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/slub.c b/mm/slub.c index 3c6d348afcf9..c273d0f32b8f 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -466,7 +466,7 @@ static unsigned long *get_map(struct kmem_cache *s, struct page *page) return object_map; } -static void put_map(unsigned long *map) +static void put_map(unsigned long *map) __releases(&object_map_lock) { VM_BUG_ON(map != object_map); lockdep_assert_held(&object_map_lock); -- 2.24.1