Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2075444lqo; Mon, 13 May 2024 07:16:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUozhoXvKyu6XJJu4Df5Eiwuq7tMT1HC3FLXMDfq8pcNkXVbnaKRYycunmwbh4dDY0CYlDK2nUaibtYyNAqpieEwWy0R9hBeB3obBXVJQ== X-Google-Smtp-Source: AGHT+IF5jzXe8a6XJ7zrPc+jKP5cyvstx6oUnWz9GojpwN28ohR0TmAGjjdXhICvap4X9IJnY89I X-Received: by 2002:a05:6102:a50:b0:47c:3492:cb0 with SMTP id ada2fe7eead31-48077e43d2bmr9700930137.25.1715609778185; Mon, 13 May 2024 07:16:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715609778; cv=pass; d=google.com; s=arc-20160816; b=P1IJK+dY6Rt2h597Js8m5P0O2JF9xXAv5N4eysw379nVrTTt8Wg8U3xHi8AxUPHOyR vOkwJKS1y9GqMcMYWzI0fNERBZPUWJXpGGIkFf63bnbLUuiBMk1QxRnAq7Nux5yaUI9i 7mdURF8C0HYZJ+pbeXh8k/WTxKhUs7/CT6FvB5htiLgUgJMW1npXaUrCOdcDhT9B5CzB YDJN8AwYM+3jKlgHUkZEjOWCgGKbvDbdVlsWYX2i/jAxD02l+iqihYdO8g1XnULdcqtZ eqHLf2CrBZXGtNE1XE73lMw4uOG1IZGE6PrvNX/dySGMMMSabw0/Sy9L/iinqXI4qe9P fbxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=4j6ctlYBcpB505D7n+kS+LBg8muwEW1UM1JH2tiewwg=; fh=KnQw8LOK/pwqb3mJMdtuz32IIlYyWLc0LyzNtRgdMBc=; b=jS5wufEENSFUguPaEZ07278GvhAaQWFPkmEAezMssd+JP+EAmprksXpEZ8h5SXBhIz e0GMhpTUc47s4Pa+lEWQRYTRFN9c4Jf5d4gemarCeUT4s0CZMdWrJJclXgrWG1YfGB0j m6XlI6R+ztIMbmKDYPjhkYKS9NbyZWPCOsp7JQKUARu2BsbF0lB1I8ayoT4jnGW31eFE FIYgBCtLVM506A7/AmKu5ekKNtYTPh8wqrALy5RH/4Nn7VHh/b5mDxJK/ZPoYYIquwBV Gs82SWYgGo8VflNDqIJa+NMj6nAY/BF30hP5YzWEu9sxag2Pa8juInwssg59bltH0fb2 0UqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="ETl/Gfgk"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-wireless+bounces-7597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7597-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ada2fe7eead31-4806cccaea1si1581092137.818.2024.05.13.07.16.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 07:16:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="ETl/Gfgk"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-wireless+bounces-7597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7597-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3F6DB1C214F4 for ; Mon, 13 May 2024 14:16:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0ECD215383F; Mon, 13 May 2024 14:16:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="ETl/Gfgk" X-Original-To: linux-wireless@vger.kernel.org Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DB7F153BC1 for ; Mon, 13 May 2024 14:16:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715609772; cv=none; b=AQ27N9g8y5rbDUGiERA+D57pwAHDp5fN0H8oPU5oMgeYAgGsSf0c1nap+RQf7yYD2gbF1m3/3XxN9Ht8k/osM5Za4p4+j5K3flP3bs6flvt0L5rRzAuzRUPLpIh7oaOL6ytrhbveM/oRX6ZUOzWgjka2WD83tD5t6UjuPOCzpk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715609772; c=relaxed/simple; bh=wfzIXG1YzIpsWivt/YC7eycM6lNE3PrvE4CmNR0mV/8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GwuY3a4KoSztRQGLd2qkedQIHNcWyWGmKn1MbVOaCp4mnv16WSbi9HT1CLuNy1PhyyHmIwpvD2ZfepqT+M8KywAdiNzZfZSlyQsg3M5mQvRZQPqDSWy+Znzcf25EH3+2u5WPDOxtWCQWnVxTGxfGprNowaFbw28fEaGi+Tu5DBk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=ETl/Gfgk; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 172821C000B; Mon, 13 May 2024 14:16:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1715609766; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4j6ctlYBcpB505D7n+kS+LBg8muwEW1UM1JH2tiewwg=; b=ETl/Gfgkl9L6eKAfBEej7lfsDJgxVsaAlGBpO5f9EwLB7ky0FpywNwLngs7wEseao5Q9Vf zhH1fDzPHe4zO7druQeoOeWg2htZq6cFAZUkGyH2RsQUNXpVGGUye20mriLD84SAqEkhUm JtBXzsYS3Ix4livQDRHk5DksZ63qHfVrJNkkbnuiShiLh1VzLS7ZwyJChFXm/Bn+S/PwpD Fd2ecLrCmhfHm0qHPIBE5OmeeemG42a5ADb5b8cbsdvSHMdb7QPr4WewbRhdTECez9wluS fZQ+58fn3er0bs5DEWkDBUgCmub+Sp4LfOfRQDqrLihzFhO1lGKOeVrz7+YYCA== Message-ID: <1a982ba8-c5f3-415a-bb39-fae9973b100e@bootlin.com> Date: Mon, 13 May 2024 16:16:05 +0200 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [bug report] wifi: wilc1000: convert list management to RCU To: Dan Carpenter Cc: linux-wireless@vger.kernel.org References: <3b46ec7c-baee-49fd-b760-3bc12fb12eaf@moroto.mountain> From: =?UTF-8?Q?Alexis_Lothor=C3=A9?= Content-Language: en-US In-Reply-To: <3b46ec7c-baee-49fd-b760-3bc12fb12eaf@moroto.mountain> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: alexis.lothore@bootlin.com Hello Dan, sorry for the late reply On 5/9/24 15:24, Dan Carpenter wrote: > Hello Alexis Lothoré, > > Commit f236464f1db7 ("wifi: wilc1000: convert list management to > RCU") from Apr 10, 2024 (linux-next), leads to the following Smatch > static checker warning: > > drivers/net/wireless/microchip/wilc1000/mon.c:236 wilc_wfi_init_mon_interface() > warn: sleeping in atomic context I am struggling to reproduce the warning in smatch. I executed those basic steps: - clone and build latest smatch - checkout linux-next master branch - export ARCH and CROSS_COMPILE - load a defconfig enabling all features in wilc driver - run ~/src/smatch/smatch_scripts/build_kernel_data.sh - then run ~/src/smatch/smatch_scripts/test_kernel.sh Yet I do no see any mention to wilc in the resulting smatch_warns.txt file. The outcome is the same if I run smatch only on the wilc driver: - ~/src/smatch/smatch_scripts/kchecker drivers/net/wireless/microchip/ Am I missing something obvious ? Thanks, Alexis -- Alexis Lothoré, Bootlin Embedded Linux and Kernel engineering https://bootlin.com