Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp457014ybz; Wed, 29 Apr 2020 03:24:34 -0700 (PDT) X-Google-Smtp-Source: APiQypJZSi2ngNw4zFtKshoBSY2WzkOVkUhjKoM1ehSh+rZWmspseX2lL9Pd+Sj1Y3N0JN9dPWAC X-Received: by 2002:a50:d744:: with SMTP id i4mr1679690edj.176.1588155874320; Wed, 29 Apr 2020 03:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588155874; cv=none; d=google.com; s=arc-20160816; b=gV6beJc6XlAhLSBPxy+7cdTM14k7oThCwOqgOCVHgcOlY6qafEr3IsBLllev5pD7Mm VYuuBfpSgyjm6MuOwnqOTk1XJ7Gf4+I3tx6dfKQmpcTUeSR8AmqfX/rhqEB5Sv5yA5cZ T1ko4qE/WaZh7AwcsR1a/PBg9zJhQ3h9yKqUbyxwj9NYNAU/NgCGAcU7YrEmsdc19E6W dJXMZ6BOxtxf19reo1H4oz3IWyJt8Lmc34m0QtzSs/tuRVSkKWaCLKsam1GD80O/U0JJ OKlTsE7MR+GL1S5nzzKZhqHuYaOTBe7HQXO6+MQDy3oNorbZPio/f+o2I7uHPivhQcrG JvMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=R7cUQMhalIvvhYLPR4enSMXPfvGqvrJ4nOvDu8tkZh8=; b=HcWI+z/APm23/sOXIJ14IWSLA1vX1b7BSGYxXxrPrRfttWqoWNq69jnadU1jMEkc1x O3c9JlbTX4vebGnocky6t+dDUkXh8HdDAzW3MZIZlyNzX3TmWWgSuguxQ8XpvA6j05kq 20yBQp2whhuT0heka7+9L+VThf/JjJIyvpUAEAnORIixBoXXqg2Y3YbdLFnE6Tqkwxw6 ioXLHC0v2y4d0JfiPHhi62cpWAWgO0yyABx4xT+rVCCtRYoRMZfAQ6GI226zYTp7KG+v YV86yTtWDoGjqGB07cRgebrsYjkCROe2XyuaYQFqtcd63yLzmsn4pVGXNDbug3BVy5zV 3p/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d24si3233390edv.539.2020.04.29.03.24.10; Wed, 29 Apr 2020 03:24:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726561AbgD2KWr (ORCPT + 99 others); Wed, 29 Apr 2020 06:22:47 -0400 Received: from mga02.intel.com ([134.134.136.20]:51400 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726355AbgD2KWr (ORCPT ); Wed, 29 Apr 2020 06:22:47 -0400 IronPort-SDR: A5n8sHPjzXSV90RQUd8OoPTBisaLaZ/Xn5bHSOwPiYU9gu7iTz/ksO9Ox9gcNbk/qSzPSkRWuh O4c0Ux8Z6Q/Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 03:22:47 -0700 IronPort-SDR: H4zHciGZTwYi0gg8aA1WCO3C5ckFgJATsv5r/mqRZlt7JSKQc1dSJPRMfxa+/MPcZIYu+qdb96 9gBzOwzMvdWg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,331,1583222400"; d="scan'208";a="282455691" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga004.fm.intel.com with ESMTP; 29 Apr 2020 03:22:44 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jTjrb-003hww-3A; Wed, 29 Apr 2020 13:22:47 +0300 Date: Wed, 29 Apr 2020 13:22:47 +0300 From: Andy Shevchenko To: Jules Irenge Cc: linux-kernel@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Dan Carpenter , Shannon Nelson , Thomas Gleixner , "Michael S. Tsirkin" , "open list:NETWORKING [GENERAL]" Subject: Re: [PATCH 6/6] net: atm: Add annotation for lec_priv_walk() Message-ID: <20200429102247.GG185537@smile.fi.intel.com> References: <0/6> <20200429100529.19645-1-jbi.octave@gmail.com> <20200429100529.19645-7-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200429100529.19645-7-jbi.octave@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 29, 2020 at 11:05:28AM +0100, Jules Irenge wrote: > Sparse reports a warning at lec_priv_walk() > warning: context imbalance in lec_priv_walk() - unexpected unlock > > The root cause is the missing annotation at lec_priv_walk() > To fix this, __acquire() and __release() annotations > are added in case conditions are not met. > This only instruct Sparse to shutdown the warning > > Add the __acquire(&priv->lec_arp_lock) > Add __release(&priv->lec_arp_lock) annotation At least those two I got should be in one patch. Simple fix all same sparse issues at once. -- With Best Regards, Andy Shevchenko