Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp168870ybh; Wed, 11 Mar 2020 23:20:41 -0700 (PDT) X-Google-Smtp-Source: ADFU+vve5/vbTwM1+r1/d2r4du9pgKIZTnpkZvo7NdFnZ3jCcmUK6SbuPvqHpIJb2g79PfY5nQVV X-Received: by 2002:a9d:77d7:: with SMTP id w23mr4908137otl.45.1583994041744; Wed, 11 Mar 2020 23:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583994041; cv=none; d=google.com; s=arc-20160816; b=SwFHxIBcZ3tT1QSV5PbzD6GkLx7zmFqLNADDTvku6zNI6b2OZfak6mjmZX8Sht2iar 3J5Fur+CC0fpEZz4tijw947VpLj740/wntdNPhF8XpMg0/OaGDgevBQLSmfcUWObFL01 jd8JXwWxwy0eutF+y3Ci0ceijB6z1IBCYxv5xkd2jLC34IepgQ/PgdpbXjSBHs+y8n5j jUyDuWilOpJzX2NkMucQcZPdOWUEyrAGtZuojJVZBYh/FyDLRAlg6CMVPjr0jJ63vo99 ggT2FWDhpODb74FdrKWqQ5UTh7KQ47H36ekQ4RpqBX1WBgA9PbvCbxGZqX8TyjfxG7Ds nRiA== 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:from:subject:cc:to:message-id:date; bh=7a+s9gqG/klwk3SkydLQNTKdDNmIEUGksEmZDqFo6eU=; b=YrXGcFcHKv/ejW1DI2ilPsUUhhNoyNTF9sTM7Lbb585CSlj+pWnWAnTtGBrOwJ8KgF 64btnBKkzfh4R/ckD3Jwg1GSxgFKsZWg+Yd2TMxQ+CCdJrdh/XBUI9LWODMGgtx7GHaT SrW1ummdYx9Zr+O5DzM3dpD3/QkRpVRkRWhQp5H1mfwf7Hsu3j+sY5wvV3SEbCOlBBUc ypO4HU3YJxGUHIkqrLPBZ0liQMuXDRB4qDr0gMMZjSN75J5R0BN/95R8VxN8pTWLVIyY 3fngR8wWJdcLfAmJgNosD9STfrHn3QMmt7BDGoWNb6iARdztCeJk2mtE7QB9LW9nTvh+ PBUA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y25si2956079otj.304.2020.03.11.23.20.24; Wed, 11 Mar 2020 23:20:41 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387931AbgCLGUK (ORCPT + 99 others); Thu, 12 Mar 2020 02:20:10 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:56132 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387848AbgCLGUK (ORCPT ); Thu, 12 Mar 2020 02:20:10 -0400 Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 46B4014DA84A3; Wed, 11 Mar 2020 23:20:09 -0700 (PDT) Date: Wed, 11 Mar 2020 23:20:08 -0700 (PDT) Message-Id: <20200311.232008.336536129448429278.davem@davemloft.net> To: jbi.octave@gmail.com Cc: boqun.feng@gmail.com, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, kuba@kernel.org Subject: Re: [PATCH 2/8] raw: Add missing annotations to raw_seq_start() and raw_seq_stop() From: David Miller In-Reply-To: <20200311010908.42366-3-jbi.octave@gmail.com> References: <0/8> <20200311010908.42366-1-jbi.octave@gmail.com> <20200311010908.42366-3-jbi.octave@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 11 Mar 2020 23:20:09 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jules Irenge Date: Wed, 11 Mar 2020 01:09:02 +0000 > Sparse reports warnings at raw_seq_start() and raw_seq_stop() > > warning: context imbalance in raw_seq_start() - wrong count at exit > warning: context imbalance in raw_seq_stop() - unexpected unlock > > The root cause is the missing annotations at raw_seq_start() > and raw_seq_stop() > Add the missing __acquires(&h->lock) annotation > Add the missing __releases(&h->lock) annotation > > Signed-off-by: Jules Irenge Applied.